demo-mcp-server
demo-mcp-server
開発中にOAuth認可をエンドツーエンドで検証するために使用する、使い捨てのMCPサーバーおよびクライアントメタデータドキュメントです。ここにあるものは本番コードではありません。
サーバー
src/は、Auth0発行のベアラートークンの背後で、ストリーミング可能なHTTP上でMCPを提供します。
パス | 動作 |
| MCPエンドポイント。未認証のリクエストには、メタデータドキュメントを指定する |
| RFC 9728 保護リソースメタデータ |
トークンはテナントのJWKSに対してiss、exp、audを検証され、Organizationを指定しないトークンは拒否されます。Organizationがなければ、作業するチーム境界が存在しないためです。2つのツールは異なるスコープを要求します。whoamiはmcp:readを必要とし、トークンが保持していたIDを報告します。echoはmcp:writeを必要とします。そのため、スコープ不足の呼び出しはinsufficient_scope付きの実際の403を生成します。
nvm use 22 && npm install
npm run dev設定はsrc/config.tsにあり、すべて環境変数で上書き可能です。リソース識別子は、クライアントが実際に接続するURLと一致している必要があります。クライアントは、それ以外のものを指定するメタデータドキュメントを拒否します。
Related MCP server: MCP Server OAuth Toy
メタデータドキュメント
docs/client.jsonはGitHub Pages経由で公開され、そのURLがクライアントのclient_idとなります。OAuth Client ID Metadata DocumentおよびMCP client registrationに従います。
リダイレクトURIはMCP Inspectorのデフォルトです。CLIとTUIはポート6276、Webクライアントはポート6274です。
このリポジトリは、認可サーバーがドキュメントを匿名で取得するため公開されています。設定や認証情報は含まれていません。
This server cannot be deployed
Maintenance
Related MCP Connectors
Minimal streamable HTTP MCP server used for owned-account registry connectivity tests.
MCP server for mandates, delegation, policy-gated execution, credential grants, and audit.
Experimental MCP server for current empirical verification of explicit public HTTPS endpoint claims.
Streamable HTTP MCP server for Google Calendar and Sheets with OAuth login.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceMinimal MCP server for testing SkyStage's self-auth auto-detection feature. It includes tools like ping, echo, server_info, and read_secret, and uses a mock OAuth provider for login.-
- FlicenseNot gradedqualityBmaintenanceA simple MCP server with OAuth 2.0 authentication for testing OAuth support in mcp-cli.-
- FlicenseNot gradedqualityBmaintenanceA simple HTTP-based MCP server that provides demo tools (get_test_string, echo, check_maintenance), greeting prompts, and test resources, with optional OAuth 2.1 support.-
- FlicenseNot gradedqualityCmaintenanceA configurable OAuth 2.0 authorization server and OAuth-protected MCP server for end-to-end testing of OAuth-protected MCP flows, including failure injection and control plane.-