Skip to content

chore(weather-mcp): bump payments SDK to ^1.10.0 + Fleet smoke-test guide#58

Draft
r-marques wants to merge 1 commit into
mainfrom
feat/weather-mcp-fleet-smoke-test
Draft

chore(weather-mcp): bump payments SDK to ^1.10.0 + Fleet smoke-test guide#58
r-marques wants to merge 1 commit into
mainfrom
feat/weather-mcp-fleet-smoke-test

Conversation

@r-marques

Copy link
Copy Markdown
Member

What & why

weather-mcp on main is already on the x402 v2 in-band transport (from #57), pinned at @nevermined-io/payments@^1.9.0 (lockfile 1.9.0). This PR moves it to the latest release 1.10.0, fixes a doc reference to an SDK method that was removed, and adds a guide for driving the server from LangSmith Fleet.

Changes

  • Bump @nevermined-io/payments ^1.9.0^1.10.0 (+ lockfile).
  • Fix stale docs (README.md, RUN.md, CLAUDE.md): payments.agents.getAgentAccessToken() was removed — replaced with payments.x402.getX402AccessToken(planId, agentId, { delegationConfig: { delegationId } }), creating the delegation first via payments.delegation.createDelegation(...). Also dropped the now-deprecated environment option (1.10.0 derives it from the API-key prefix).
  • Add FLEET-SMOKE-TEST.md — connect this MCP server to a LangSmith Fleet agent via a static Authorization: Bearer header (Fleet injects static headers, not per-call _meta, so it rides the x402 v2 header fallback), including the pre-Fleet curl gating check.

Verification

  • yarn build (tsc) compiles cleanly on 1.10.0 (registration API unchanged).
  • node dist/main.js boots to Payments-client init and correctly rejects an invalid key (a real sandbox key is the only missing piece).
  • Surfaced a 1.10.0 deprecation warning for the environment option (folded into the doc fix).

Draft — the header-fallback path is deprecated in the SDK; the durable Fleet integration is OAuth-based (tracked separately in nvm-monorepo).

🤖 Generated with Claude Code

… docs, add Fleet smoke-test guide

- Bump @nevermined-io/payments ^1.9.0 -> ^1.10.0 (latest release; keeps the
  x402 v2 in-band MCP transport). Verified: `yarn build` (tsc) compiles and the
  server boots to Payments-client init on 1.10.0.
- Fix docs referencing the removed `payments.agents.getAgentAccessToken()` ->
  `payments.x402.getX402AccessToken(planId, agentId, { delegationConfig })`
  (create the delegation first via `payments.delegation.createDelegation`).
- Drop the deprecated `environment` option (1.10.0 derives it from the API-key prefix).
- Add FLEET-SMOKE-TEST.md: run this MCP server behind LangSmith Fleet via a
  static `Authorization: Bearer` header (the x402 v2 header fallback).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant