Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Track migration to MCP spec 2026-07-28 (stateless, MRTR, deprecated Sampling)

未关闭
#130 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
25/100
Issue 类型
重构
描述清晰度
需要澄清
活跃度
冷清
技术栈
typescript
领域
api, backend

调研方向

首先阅读 TypeScript SDK 迁移指南和关于支持 2026-07-28 规范的 changelog,然后验证 Claude Desktop、Claude Code 和 VS Code Copilot 中的 MRTR 支持。审查此 repository,查找 PR #57 之外对 elicitInput 和 Sampling 的使用。完成工作的标准是:客户端支持、SDK 支持以及 repository 中所有受影响的使用都已得到充分记录,足以定义迁移方案。

由索引模型根据 Issue 内容生成。

描述

Summary

The MCP spec released a new revision on 2026-07-28 (announced at https://blog.modelcontextprotocol.io/posts/2026-07-28/) that moves from the stateful bidirectional protocol to a stateless request/response model. Key changes relevant to us:

  • The initialize/initialized handshake and session IDs are eliminated; each request is self-describing.
  • Server-initiated elicitation is replaced by "Multi Round-Trip Requests" (MRTR).
  • Sampling is deprecated.
  • Roots and Logging are also deprecated.
  • Header-based routing, cacheable list results, tasks moved to an official extensions framework.
  • Security: RFC 9207 issuer validation required, shift from Dynamic Client Registration toward Client ID Metadata Documents (CIMD).
  • Deprecations get a 12-month minimum window; legacy HTTP+SSE transport gets a year-long offramp. No fire drill, but not indefinite either.

As of this issue, @modelcontextprotocol/sdk on npm is still on the 1.x line (1.30.0 latest) — there is no separate 2.0.0 package. The new spec appears to be supported via 1.x releases, not a major SDK version bump.

Why this needs a dedicated pass, not an incidental bump

This repo is actively building on the mechanisms this spec revision replaces/deprecates — most concretely, the in-progress add-preview-token-elicitation work (PR #57) depends on server-initiated elicitation, the exact thing MRTR replaces. Migrating means redesigning against whatever MRTR's actual API surface turns out to be, not just bumping a dependency version.

What to check before starting

  • Confirm real client support for MRTR (Claude Desktop, Claude Code, VS Code Copilot) — no point redesigning against a mechanism clients can't use yet.
  • Read the SDK's actual migration guide/changelog for the TypeScript SDK version(s) that implement 2026-07-28 support.
  • Audit this repo for every current use of elicitInput/Sampling beyond the in-progress PR #57 work.

Non-goals for now

  • No urgency given the 12-month deprecation window.
  • The routine SDK dependency bump (1.29.0 → 1.30.0) is handled separately and does not itself adopt the new spec — see the corresponding PR.

See also mapbox/mcp-server#245 for the equivalent tracking issue there.

主要语言
TypeScript
星标
61
派生
11
平均合并
3 天 2 小时
30 天内合并 PR
1

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

mapbox/mcp-devkit-server 的其他 Issue

查看 mapbox/mcp-devkit-server 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。