Azure-Samples / Azure-Samples/remote-mcp-apim-functions-python

OAuth 2.0 Protected Resource Metadata support

オープン
#24 コメント 3 件 リアクション 1 件 担当者 0 名 GitHub で見る
主要言語
Bicep
スター
129
フォーク
79
PR マージ指標
30日以内にマージされた PR はありません

説明

According to MCP atuhorization specification 2025-06-18, supporting OAuth 2.0 Protected Resource Metadata becomes MUST.
https://modelcontextprotocol.io/specification/2025-06-18/basic/authorization

Do you have a plan to add /.well-known/oauth-protected-resource endpoint to response resource metadata and to add the resource server endpoint info to WWW-Authenticate header of MCP API endpoints?

[example [RFC9728](https://datatracker.ietf.org/doc/html/rfc9728)]
HTTP/1.1 200 OK
Content-Type: application/json

{
"resource":
"https://resource.example.com",
"authorization_servers":
["https://as1.example.com",
"https://as2.example.net"],
"bearer_methods_supported":
["header", "body"],
"scopes_supported":
["profile", "email", "phone"],
"resource_documentation":
"https://resource.example.com/resource_documentation.html"
}

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

2025-06-18付けのMCP認可仕様とRFC9728を読むことから始めます。MCP APIエンドポイントとレスポンスリソースのメタデータ処理を調査します。/.well-known/oauth-protected-resourceを提供し、リソースサーバーのエンドポイント情報を各WWW-Authenticateヘッダーに含めれば完了です。

索引モデルが issue の本文から書いたものです。

評価

領域
api, authentication, security
issue の種類
機能追加
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。