mcp-migrate

mcp-migrate is a command for Claude Code from sigistry/marketplace. It costs 24 tokens per session (851 once invoked), scanned A, original, MIT.

A command that updates an MCP server to the 2026-07-28 protocol shape. It covers the move from HTTP+SSE to Streamable HTTP, stateless requests, server lifecycle, capabilities, and remote-server authorization.

In plain words
What is it for?
Use it to migrate an existing server, replace its transport, remove unnecessary session state, update its SDK, and apply the relevant authentication changes.
Why use it?
It helps bring an older MCP server in line with the newer protocol and deployment model.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: model in frontmatter.

Part of the mcp-server-smith plugin — 4 skills, 3 commands, 2 agents shipped together

Good fit Use it to migrate an existing server, replace its transport, remove unnecessary session state, update its SDK, and apply the relevant authentication changes.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/sigistry/marketplace/mcp-migrate
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/sigistry/marketplace

Made for: Claude Code.

Or install mcp-server-smith, the plugin that ships this one along with the rest of its 4 skills, 3 commands, 2 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for mcp-migrate

README.md
[![agentmods](https://agentmods.dev/badge/commands/sigistry/marketplace/mcp-migrate/github.svg)](https://agentmods.dev/commands/sigistry/marketplace/mcp-migrate)
Your own site
<a href="https://agentmods.dev/commands/sigistry/marketplace/mcp-migrate"><img src="https://agentmods.dev/badge/commands/sigistry/marketplace/mcp-migrate/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for mcp-migrate

Your own site · 80×15
<a href="https://agentmods.dev/commands/sigistry/marketplace/mcp-migrate"><img src="https://agentmods.dev/badge/commands/sigistry/marketplace/mcp-migrate.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 24 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 851 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00024 $0.00851
Opus 5.5 $0.00010 $0.00340
Sonnet 5.5 $0.00005 $0.00170
Haiku 4.5 $0.00002 $0.00085

Measured 1mo ago against content hash 22692f9fcb2d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

mcp-migrate scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/mcp-server-smith/commands/mcp-migrate.md · 39 lines

How it starts

The opening of the file, as written. The whole thing — 39 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Migrate the MCP server at $ARGUMENTS (directory or entry file; current repo if omitted) to the MCP 2026-07-28 specification: from the removed HTTP+SSE transport and stateful sessions to the stateless Streamable HTTP core, with lifecycle, capabilities, and authorization brought up to spec. Load the mcp-2026-07-28 skill (transport + lifecycle + versioned extensions) and, for remote servers, mcp-authorization, then dispatch the mcp-migrator agent to apply the edits. Run /mcp-audit first if you have not already, and reuse its findings.

Process

Step 1: Establish the starting point

Detect the SDK/language and the current transport and protocol version (see /mcp-audit Step 1). Classify the server:

  • HTTP+SSE (dual-endpoint) → the removed transport; the core migration target.
  • Stateful Streamable HTTP (relies on a persisted Mcp-Session-Id / in-process session map) → migrate to stateless where the tools allow.
  • stdio → transport is fine; only lifecycle/version/capability and (n/a) auth items apply.

Step 2: Migrate the transport

Replace the SSE dual-endpoint (GET /sse + POST /messages) with a single Streamable HTTP endpoint. Bump the SDK to a version that speaks 2026-07-28. Preserve every registered tool, resource, and prompt and their handlers, this is a transport swap, not a rewrite. See references/transport-and-lifecycle.md for the before/after per SDK.

Step 3: Make it stateless where possible

Move per-session in-process state to either (a) the request itself (self-contained requests) or (b) an external store keyed by a stable id, so any replica can serve any request. Where a tool genuinely needs continuity (a long-running job), model it with the Tasks versioned extension rather than a sticky session. Call out honestly any state that cannot be made stateless and why.

Step 4: Fix lifecycle, capabilities, and auth

  • Update the initialize result to report the new protocolVersion and only the capabilities actually implemented.
  • For remote servers, align authorization to OAuth 2.1 / OIDC: validate the access token's audience against this server, add the Protected Resource Metadata document, and remove any token passthrough to downstream APIs (mcp-authorization, references/oauth-oidc-patterns.md).

Read the full file on GitHub · 39 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 39 lines · 24 tokens per session scan A 22692f9fcb2d

Subscribe to this mod's changes

mcp-migrate is a command published in the GitHub repository sigistry/marketplace (3 stars, last pushed 4d ago), licensed MIT. It adds 24 tokens to every session and 851 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.