Support DPoP (RFC 9449 / SEP-1932) in the OAuth client

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

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
12/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
活跃
技术栈
typescript, wasm

调研方向

Start by checking the status of SEP-1932 and whether @modelcontextprotocol/client supports DPoP, since the issue gates the work on that. The shared OAuth path lives in core/auth, and the conformance DPoP scenarios are in src/scenarios/client/auth/dpop.ts with helpers under src/scenarios/client/auth/helpers/. Done means the Inspector's client passes auth/dpop and auth/dpop-nonce, with DPoP-Nonce handled at both the authorization and resource servers.

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

描述

enhancement v2

Summary

Support DPoP (RFC 9449) as profiled for MCP by SEP-1932. DPoP is a named deliverable in docs/inspector-roadmap-2026-h2.md §3.3 (Agent identity and enterprise-ready security), rated 🟡, but nothing has been tracking it until now.

Scope (from the roadmap)

  • Generate and hold a DPoP proof key per connection or server
  • Send DPoP proofs to the token endpoint and the MCP resource, handling DPoP-Nonce challenges from both the authorization server and the resource server
  • Show the proof/nonce exchange in the Network view
  • Add DPoP to the shared core/auth path so that Web, CLI, TUI and mcpdo all get it

Gating

The roadmap says to design against SEP-1932 and build once it is Final or a Tier-1 SDK implements it. As of 2026-11-12, SEP-1932 is still an open draft PR (labels SEP, draft, extension, roadmap/security). Check its status, and whether @modelcontextprotocol/client supports DPoP, before starting.

Test fixtures

We don't need a DPoP fixture of our own to start with. modelcontextprotocol/conformance already has DPoP scenarios against SEP-1932:

  • Client scenarios auth/dpop (no nonce) and auth/dpop-nonce (server-required nonce), in src/scenarios/client/auth/dpop.ts, with mock AS and RS helpers under src/scenarios/client/auth/helpers/dpop*.ts
  • Negative-case example clients: replay, missing token proof, and missing AS or RS nonce

We could run the Inspector's client against those scenarios, or reuse the helpers if we add a DPoP mode to the composable test server (test-servers/).

主要语言
TypeScript
星标
11.3k
派生
1.6k
平均合并
2 小时 28 分钟
30 天内合并 PR
111

环境准备

从这里开始

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

modelcontextprotocol/inspector 的其他 Issue

查看 modelcontextprotocol/inspector 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

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