
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
MCP サーバーをデバッグするためのコマンドラインツール
概要
mcp-debug は、MCP (Model Context Protocol) サーバをデバッグするためのコマンドラインツールです。 開発者は、MCP サーバーの機能、デバッグツールの統合、テストサーバーの通知を検査するのに役立ちます。 - : ストリーム可能な http トランスポートを使用してサーバーで動作します。 - :セキュリティファーストのデフォルトでフルMCP認証仕様(2025-11-25)準拠 - 自動検出(RFC 9728保護リソースメタデータ、RFC 8414 ASメタデータ) - トークンオーディエンスバインディングのためのリソースインジケータ(RFC 8707) - PKCE検証(MCP仕様で必須) - 動的クライアント登録(RFC 7591)およびクライアントIDメタデータ文書 - ランタイムパーミッションエスカレーションのステップアップ承認 - インテリジェント選択スコープ(自動および手動モード) - 利用可能なツール、およびインタラクティブなリソースを探索する - インタラクティブなツール、およびインタラクティブなリソース。 - : MCP サーバー自体として動作し、Cursor のような AI アシスタントと統合できます。 - :詳細なデバッグのためのJSON-RPCメッセージの詳細なログ。 - : 1つのコマンドでツールを最新の状態に保ちます.
概要(AI 翻訳)
[mcp-debug は、MCP (Model Context Protocol) サーバをデバッグするためのコマンドラインツールです。 開発者は、MCP サーバーの機能、デバッグツールの統合、テストサーバーの通知を検査するのに役立ちます。
主な特長
- MCP Server:
streamable-httpトランスポートを使用してサーバーと連携します。 - OAuth 2.1 認証:セキュリティ優先デフォルトで完全なMCP認証仕様(2025-11-25)準拠
- 自動検出(RFC 9728保護された資源メタデータ、メタデータとしてRFC 8414)
- トークンオーディエンスバインディングのためのリソースインジケータ(RFC 8707)
- PKCE 検証(MCP 仕様により必須)
- 動的クライアント登録(RFC 7591)およびクライアントIDメタデータ文書
- ランタイム許可のエスカレーションのステップアップ承認
- インテリジェントスコープ選択(自動および手動モード)
- 相互適用REPL: 利用可能なツール、リソース、およびインタラクティブなプロンプトをご覧ください。
- MCP Server Mode:MCPサーバー自体として動作し、CursorのようなAIアシスタントと統合できます。 -Verbose Logging:詳細なデバッグのためのJSON-RPCメッセージの詳細なログ。 -Self-Update: 1つのコマンドでツールを最新の状態に保ちます.
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
MCP Debug
mcp-debug is a command-line tool for debugging MCP (Model Context Protocol) servers. It helps developers inspect MCP server capabilities, debug tool integrations, and test server notifications.
Key Features
- Connect to any MCP Server: Works with servers using
streamable-httptransport. - OAuth 2.1 Authentication: Full MCP authorization specification (2025-11-25) compliance with security-first defaults
- Automatic discovery (RFC 9728 Protected Resource Metadata, RFC 8414 AS Metadata)
- Resource Indicators (RFC 8707) for token audience binding
- PKCE validation (required by MCP spec)
- Dynamic Client Registration (RFC 7591) and Client ID Metadata Documents
- Step-up authorization for runtime permission escalation
- Intelligent scope selection (auto and manual modes)
- Interactive REPL: Explore available tools, resources, and prompts interactively.
- MCP Server Mode: Acts as an MCP server itself, allowing integration with AI assistants like Cursor.
- Verbose Logging: Detailed logging of JSON-RPC messages for in-depth debugging.
- Self-Update: Keep the tool up-to-date with a single command.
- Shell Autocompletion: Generates autocompletion scripts for Bash, Zsh, Fish, and PowerShell.
Getting Started
Installation
To build the tool from source and install it in your PATH:
go install github.com/giantswarm/mcp-debug@latest
Documentation
For detailed instructions on all features:
- ➡️ mcp-debug Usage Guide - Complete feature guide
- ➡️ OAuth 2.1 Documentation - Comprehensive OAuth authentication guide
OAuth 2.1 Quick Start
Connect to a protected MCP server with automatic discovery:
./mcp-debug --oauth --endpoint https://mcp.example.com/mcp
This automatically:
- Discovers the authorization server (RFC 9728)
- Validates PKCE support (required by MCP spec)
- Uses the official Client ID Metadata Document (CIMD)
- Falls back to Dynamic Client Registration if CIMD is not supported
- Opens your browser for authorization
- Connects with audience-bound tokens (RFC 8707)
Client ID Metadata Document (CIMD)
mcp-debug uses CIMD by default for OAuth authentication. The official client metadata is hosted at:
https://giantswarm.github.io/mcp-debug/client.json
This allows OAuth-protected MCP servers to identify mcp-debug without requiring pre-registration. The authorization server fetches the metadata from this URL and displays “MCP Debugger CLI” on the consent screen.
If you need to use a custom CIMD or disable it:
# Use a custom CIMD URL
./mcp-debug --oauth --oauth-client-id-metadata-url https://example.com/my-client.json --endpoint https://mcp.example.com/mcp
インストール
This server does not publish a one-line install command.
Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →