freshcrate
Home > MCP Servers > mcp-debug

mcp-debug

Command-line tool for debugging MCP servers

Description

Command-line tool for debugging MCP servers

README

MCP Debug

Go Report Card

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-http transport.
  • 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:

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

# Disable CIMD and force Dynamic Client Registration
./mcp-debug --oauth --oauth-disable-cimd --endpoint https://mcp.example.com/mcp

See the OAuth Documentation for detailed guides, examples, and troubleshooting.

Basic Examples

Connect to a server and listen for notifications:

./mcp-debug --endpoint http://localhost:8090/mcp

Start the interactive REPL:

./mcp-debug --repl

Run as an MCP server for AI assistant integration:

./mcp-debug --mcp-server

Refer to the usage guide for more advanced examples.

Contributing

Contributions are welcome! Please open an issue or submit a pull request.

License

mcp-debug is licensed under the Apache 2.0 License.

Release History

VersionChangesUrgencyDate
v0.0.79## Changelog * 2b0f92a03a5446e315a7762bf0a5b3511ecdf098 fix(deps): update module github.com/mark3labs/mcp-go to v0.49.0 (#106) High4/21/2026
v0.0.78## Changelog * cd17493ad16b560bc82fe093cbe2530deea5d8f4 Align files (#105) High4/16/2026
v0.0.77## Changelog * e08b2b0ab3b51755bcb81cfc60f9fd66271b8723 Align files (#104) High4/15/2026
v0.0.76## Changelog * 0a78b3bc516d27ee1be29fb94b8914869862f9fd chore(deps): update actions/upload-pages-artifact action to v5 (#102) High4/15/2026
v0.0.75## Changelog * fca2624f12958d3edaf21356aa88c144eacf286b fix(deps): update module github.com/mark3labs/mcp-go to v0.48.0 (#103) Medium4/14/2026
v0.0.74## Changelog * b3dec2d49e2828f5904b061e470c7d6991c52bb3 fix(deps): update module github.com/mark3labs/mcp-go to v0.47.1 (#100) Medium4/9/2026
v0.0.73## Changelog * aeb9fb7fbfa8fe3cb8ec279304958c8211423371 Align files (#101) Medium4/9/2026
v0.0.72## Changelog * 85eb17a638659e8948c4dc45338823d14c2262f5 fix(deps): update module github.com/mark3labs/mcp-go to v0.47.0 (#99) Medium4/5/2026
v0.0.71## Changelog * 89d4df265073325f714a552561b7d8c1fa720593 chore(deps): update actions/configure-pages action to v6 (#98) Medium3/30/2026
v0.0.70## Changelog * ce8572d26d71d4f4515944be60461b455aced358 chore(deps): update actions/deploy-pages action to v5 (#96) Medium3/26/2026
v0.0.69## Changelog * e0384d69e1b3e37499caeab71524d5b723349b7b fix(deps): update module github.com/mark3labs/mcp-go to v0.46.0 (#97) Medium3/26/2026
v0.0.68## Changelog * 0993b0e97efae15ee81c33f89cf0d934a08f528e chore: align Renovate config to Giant Swarm presets (#95) Low3/7/2026
v0.0.67## Changelog * c3b4b8443da897ff312b934a5b4411353dc3537a fix(deps): update module github.com/mark3labs/mcp-go to v0.45.0 (#93) Low3/6/2026
v0.0.66## Changelog * 29648ce0898e043212a34282f0fd3e63e1fb35dd Fix auto-release workflow YAML syntax error * 5a822337504ad9c70dd48c64590d183e35721c7a chore(deps): update dependency go to 1.26 (#86) * a69e68b16fec1df6ab5d539a7caff698c392392c chore(deps): update dependency ubuntu to v24 (#84) * 77bbc113d1f5b48995c2228f92053b38dda1aae6 fix(ci): prevent auto-release from conflicting with manual releases (#91) Low3/4/2026
v0.0.65## Changelog * 75d587b6ffee9665dca22554b26af1420300e7e3 chore(deps): update goreleaser/goreleaser-action action to v7 (#90) Low2/28/2026
v0.0.64## Changelog * 4cd693d32188f206822fb5f7c2076add7adebd82 chore(deps): update github artifact actions (#89) Low2/28/2026
v0.0.63## Changelog * 7ec8b0b68979d830fb5f71b9348ee3335e3c74c1 fix(deps): update module github.com/mark3labs/mcp-go to v0.44.1 (#88) Low2/27/2026
v0.0.62## Changelog * ec9b05f1f9e50805a8fb0b8d3ddc7fdc2faaffd6 chore(deps): update actions-ecosystem/action-add-labels digest to 18f1af5 (#80) Low2/27/2026
v0.0.61## Changelog * 4475c6fa998b7f245e962d437f792f411278eedc chore(deps): update actions/add-to-project action to v1.0.2 (#81) Low2/27/2026
v0.0.60## Changelog * 13d19be021a4b6ba2f27f7dd06d9dde33e0704bd fix(deps): update module github.com/mark3labs/mcp-go to v0.44.0 (#87) Low2/20/2026
v0.0.59## Changelog * 137cd6ed5e8e636a6a3088db90cebe820471becb chore(deps): update github artifact actions (#85) Low2/12/2026
v0.0.58## Changelog * c9e44b5d2b7b7bdab429db3c0faee204675065f7 Align files (#79) Low2/3/2026
v0.0.57## Changelog * fcdbbbcefae2316538938ae5899ccfc6116e7f68 fix(deps): update module github.com/creativeprojects/go-selfupdate to v1.5.2 (#69) Low1/9/2026
v0.0.56## Changelog * 1182183990bb71981fcecc4306f9867b834d7cb7 chore(deps): update actions-ecosystem/action-add-labels digest to 18f1af5 (#71) Low1/9/2026
v0.0.55## Changelog * d9fa35e67a04d34ec04bfe2670c0eed62f669190 chore(deps): update actions/add-to-project action to v1.0.2 (#72) Low1/9/2026
v0.0.54## Changelog * 00547afd95dbc298aa60aa7a45933ea0873b61ce chore(deps): update dependency ubuntu to v24 (#75) * fb7fab98b5d9283297b540e150e19f7ee23cc018 chore(deps): update giantswarm/install-binary-action action to v4 (#76) Low1/9/2026
v0.0.53## Changelog * c502b57a6a13f0c65911ab9e918d94d02b880ad7 chore(deps): update github artifact actions (#77) Low1/9/2026
v0.0.52## Changelog * 153efbdfe7c4c91a066750453f31c835c5e75eb6 chore(deps): update actions/upload-artifact action to v4.6.2 (#74) Low1/9/2026
v0.0.51## Changelog * 85f95aebcf493ea9b2c0914ec0752eb77cf1d6e3 Align files (#70) Low1/9/2026
v0.0.50## Changelog * beab08610c7aad1956434c2a800eeb4883f3ab42 refactor(module): update module name to github.com/giantswarm/mcp-debug (#68) Low12/18/2025
v0.0.49## Changelog * 6a1f4e5440807716b785e1c5749dddd21d8b775a fix: use resource URI from Protected Resource Metadata (RFC 9728) (#67) Low12/14/2025
v0.0.48## Changelog * f571e7d722899268f1b2b4d825b44fd5b1383c75 refactor: reduce cyclomatic complexity below 15 threshold (#66) Low12/14/2025
v0.0.47## Changelog * 5e831c903ce9a6e3fde9d1e7ecf7a23d1780d2e9 docs: add CIMD and client.json documentation to README (#65) Low12/14/2025
v0.0.46## Changelog * 4c9a67a353c2babf9ef813f9a176caf8b5d509a2 cleanup old and unused dot files (#64) Low12/14/2025
v0.0.45## Changelog * e77982291307851ce22deafac2a1f9190421b4b7 chore(deps): update actions/upload-pages-artifact action to v4 (#63) Low12/14/2025
v0.0.44## Changelog * 19f214248cee728dcf376de94b10b259994000c3 chore(deps): update github artifact actions (major) Low12/14/2025
v0.0.43## Changelog * daa5d87ac5a43dc1b559d980c897a6188392b63c chore(deps): update giantswarm/install-binary-action action to v4 * 15ac7addc5df7e2036e3c86a83ea46dcd2d8a8a6 fix(deps): update module github.com/spf13/cobra to v1.10.2 * 8824c4606d52ae70e94a185b1a6af8774cd030b7 chore(deps): update actions/checkout action to v6.0.1 Low12/14/2025
v0.0.42## Changelog * 9a96a81b24e7bb95d55be7d14b6a00de53f61dae feat(oauth): add official CIMD support with GitHub Pages hosting Low12/14/2025
v0.0.41## Changelog * 76e1e4a150f5a5ee523f91b2c38215451d6c5e5c docs(oauth): add comprehensive OAuth 2.1 documentation (#55) Low11/27/2025
v0.0.40## Changelog * fa5bb6306ab683001552db65a68f4e1d60597ef3 feat(oauth): implement Client ID Metadata Documents support (#54) Low11/26/2025
v0.0.39## Changelog * 1cf82a3054286d9901a61ee76239f54ea15db6b6 test(oauth): add comprehensive OAuth 2.1 compliance testing suite (#53) Low11/26/2025
v0.0.38## Changelog * 04b64ee3fa8ab0fdb6c606e918e4edbced2b962d feat(oauth): implement step-up authorization for insufficient_scope errors (#52) Low11/26/2025
v0.0.37## Changelog * b7266727e6be20e9a4752fb5f79f986626daeb26 feat(oauth): implement scope selection strategy per MCP spec (#51) Low11/26/2025
v0.0.36## Changelog * 0ba3c9c9925d883600028be465134f4bad6fe19d feat(oauth): implement multi-endpoint AS metadata discovery with PKCE validation (#50) Low11/26/2025
v0.0.35## Changelog * bba2a7dd4a9ad6864e0c031fe0ef971e42dde982 feat(oauth): implement RFC 9728 Protected Resource Metadata Discovery (#49) Low11/26/2025
v0.0.34## Changelog * aa25aba0e29b645b34faea4c9821cba97c54ea0f feat(oauth): Implement RFC 8707 Resource Indicators for OAuth 2.0 (#48) Low11/26/2025
v0.0.33## Changelog * f8606a79eb3aa95c1ac657e7414d9b46c086d268 fix(deps): update module github.com/mark3labs/mcp-go to v0.43.1 (#26) Low11/26/2025
v0.0.32## Changelog * a403f47ff49b448f260979b604c6af6f5246c93a fix(oauth): correct UTF-8 encoding in browser success message (#39) Low11/23/2025
v0.0.31## Changelog * a14f0d584f6a12120b0199c647689623d37dea80 feat(oauth): Add support for OAuth registration access tokens (#38) Low11/23/2025
v0.0.30## Changelog * 7411b0b414b071316ebcfe5f245e7f93d9751614 chore(deps): update github artifact actions (#36) Low11/23/2025

Dependencies & License Audit

Loading dependencies...

Similar Packages

ingeroeBPF-based GPU causal observability agentv0.10.0
devtapšŸš€ Streamline build and dev output by feeding logs directly into AI coding sessions using Model Context Protocol for seamless automation.main@2026-04-21
Paylink🌐 Simplify payment processing with PayLink, a unified API for multi-provider checkouts, ensuring reliable transactions and seamless integration.main@2026-04-21
toolhive-catalogToolHive's registry catalog of MCP serversv0.20260421.0
tekmetric-mcpšŸ” Ask questions about your shop data in natural language and get instant answers about appointments, customers, and repair orders with Tekmetric MCP.main@2026-04-21