SOLFIND
Web Lens
Portal home

inspector/cli/README.md at main · MCPJam/inspector · GitHub

https://github.com/MCPJam/inspector/blob/main/cli/README.md • 325 KB fetched
Open original page


inspector/cli/README.md at main · MCPJam/inspector · GitHub Skip to content Navigation Menu Sign in Appearance settings * Platform * AI CODE CREATION * GitHub Copilot Write better code with AI * GitHub Copilot app Direct agents from issue to merge * MCP Registry Integrate external tools * DEVELOPER WORKFLOWS * Actions Automate any workflow * Codespaces Instant dev environments * Issues Plan and track work * Code Review Manage code changes * Code Quality Enforce quality at merge * APPLICATION SECURITY * GitHub Advanced Security Find and fix vulnerabilities * Code security Secure your code as you build * Secret protection Stop leaks before they start * EXPLORE * Why GitHub * Documentation * Blog * Changelog * Marketplace View all features * Solutions * BY COMPANY SIZE * Enterprises * Small and medium teams * Startups * Nonprofits * BY USE CASE * App Modernization * DevSecOps * DevOps * CI/CD * View all use cases * BY INDUSTRY * Healthcare * Financial services * Manufacturing * Government * View all industries View all solutions * Resources * EXPLORE BY TOPIC * AI * Software Development * DevOps * Security * View all topics * EXPLORE BY TYPE * Customer stories * Events & webinars * Ebooks & reports * Business insights * GitHub Skills * SUPPORT & SERVICES * Documentation * Customer support * Community forum * Trust center * Partners View all resources * Open Source * COMMUNITY * GitHub Sponsors Fund open source developers * PROGRAMS * Security Lab * Maintainer Community * GitHub Stars * Archive Program * REPOSITORIES * Topics * Trending * Collections * Enterprise * ENTERPRISE SOLUTIONS * Enterprise platform AI-powered developer platform * AVAILABLE ADD-ONS * GitHub Advanced Security Enterprise-grade security features * Copilot for Business Enterprise-grade AI features * Premium Support Enterprise-grade 24/7 support * Pricing Search / Sign in Sign up Appearance settings You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert Uh oh! There was an error while loading. Please reload this page . MCPJam / inspector Public * Uh oh! There was an error while loading. Please reload this page . * Notifications You must be signed in to change notification settings * Fork 275 * Star 2.2k * Code * Issues 52 * Pull requests 234 * Discussions * Actions * Projects * Security and quality 1 * Insights Additional navigation options * Code * Issues * Pull requests * Discussions * Actions * Projects * Security and quality * Insights Files Expand file tree main Breadcrumbs * inspector * / cli / README.md Copy path Blame More file actions Blame More file actions Latest commit   History History History 262 lines (186 loc) · 9.68 KB main Breadcrumbs * inspector * / cli / README.md Copy path Top File metadata and controls * Preview * Code * Blame 262 lines (186 loc) · 9.68 KB Raw Copy raw file Download raw file Outline Edit and raw actions @mcpjam/cli Test, debug, and validate MCP servers locally, or manage MCPJam Cloud via mcpjam cloud . Health checks, OAuth conformance, tool-surface diffing, and structured triage from the terminal or CI. Install npm i -g @mcpjam/cli Or run without installing: npx -y @mcpjam/cli@latest --help Commands Local MCP testing stays at the top level. Most account-bound commands live under mcpjam cloud ; hosted readiness is the root-level exception. See the 4.0 migration guide . $ mcpjam --help Usage: mcpjam [options] [command] Test, debug, and validate MCP servers locally, or manage MCPJam Cloud via `mcpjam cloud`. Health checks, OAuth conformance, tool-surface diffing, and structured triage from the terminal or CI. Options: -v, --version output the CLI version --timeout <ms> Request timeout in milliseconds (default: 30000) --rpc Include RPC logs in JSON output --quiet Suppress non-result progress output --no-telemetry Disable anonymous usage telemetry --format <format> Output format -h, --help display help for command Local MCP testing: server Inspect MCP server connectivity and capabilities tools List and invoke MCP server tools resources List and read MCP resources subscriptions Open a long-lived MCP subscription and stream its notifications compat Check whether an MCP server's tools and widgets work on each AI host prompts List and fetch MCP prompts apps Validate MCP Apps metadata and resource wiring tasks Create, inspect and drive MCP Tasks oauth Run MCP OAuth login, proxy, and conformance flows xaa Run the Cross-App Access (ID-JAG) debugger against an MCP server protocol MCP protocol inspection and conformance checks readiness Grade a server or plugin against a publisher's directory MCPJam Cloud: cloud MCPJam Cloud account commands (login, projects, evals, tunnels) CLI: inspector Start or attach to the local MCPJam Inspector mcp Run MCPJam as an MCP server over stdio telemetry Inspect and configure anonymous CLI telemetry mcpjam oauth login authenticates against an MCP server. mcpjam cloud login authenticates your MCPJam account. Run mcpjam cloud --help for the Cloud groups. Quick start # Probe: is the server reachable? What transport? Is OAuth configured? mcpjam server probe --url https://your-server.com/mcp # Health check: MCP handshake, tool/resource/prompt sweep, exit code 0 or fail mcpjam server doctor --url https://your-server.com/mcp --access-token $TOKEN # OAuth login mcpjam oauth login --url https://your-server.com/mcp --protocol-version 2025-11-25 # MCP Apps conformance mcpjam apps conformance --url https://your-server.com/mcp --access-token $TOKEN # Render a UI-capable tool result in Inspector mcpjam tools call --url https://your-server.com/mcp --access-token $TOKEN \ --tool-name create_view --tool-args @params.json --ui --quiet --format json # List tools with full schemas mcpjam tools list --url https://your-server.com/mcp --access-token $TOKEN --format json # Run MCPJam itself as a stdio MCP server (for Claude Desktop, Claude Code, Cursor, ...) mcpjam mcp # MCPJam Cloud (account-bound) mcpjam cloud login mcpjam cloud projects list mcpjam cloud eval run --suite smoke Why MCP servers don't have built-in health checks, OAuth conformance tests, or deploy-time regression detection. mcpjam adds those. What it does CI gate on every deploy Run server doctor in your pipeline. It probes connectivity, runs the MCP handshake, and sweeps every tool, resource, and prompt. Exit code 0 or the build fails. mcpjam server doctor --url $MCP_SERVER_URL --access-token $TOKEN --format json Catch breaking changes before they ship server export snapshots your entire tool surface as diffable JSON. A renamed parameter or changed description shows up in the diff. mcpjam server export --url $URL --access-token $TOKEN > before.json # deploy... mcpjam server export --url $URL --access-token $TOKEN > after.json diff <( jq -S . before.json ) <( jq -S . after.json ) OAuth conformance across the full matrix Cover the full registration × protocol version × auth mode matrix from a single config file. Outputs JUnit XML. mcpjam oauth conformance-suite --config ./oauth-matrix.json --reporter junit-xml > report.xml Verify tokens work end-to-end OAuth can succeed while tools/list returns 401 because the audience, scope, or session init is wrong. --verify-call-tool completes the full chain (OAuth, MCP connect, tool call) and reports which step fails. mcpjam oauth conformance --url $URL --protocol-version 2025-11-25 \ --registration dcr --verify-call-tool your_critical_tool Protocol version compatibility MCP has shipped three protocol versions (2025-03-26, 2025-06-18, 2025-11-25). Clients upgrade on their own schedule. Declare the version matrix once and test on every push. { "flows" : [ { "label" : " 2025-03-26/dcr " , "protocolVersion" : " 2025-03-26 " , "registrationStrategy" : " dcr " }, { "label" : " 2025-06-18/dcr " , "protocolVersion" : " 2025-06-18 " , "registrationStrategy" : " dcr " }, { "label" : " 2025-11-25/cimd " , "protocolVersion" : " 2025-11-25 " , "registrationStrategy" : " cimd " } ] } Structured debug artifacts --debug-out captures a JSON artifact with every request and response in the OAuth and MCP flow. Attach it to a ticket instead of writing reproduction steps. mcpjam oauth login --url $URL --protocol-version 2025-11-25 \ --registration dcr --debug-out oauth-debug.json Incident triage Separate your failures from host-side failures. --rpc records what your server returned (transport type, status codes, raw JSON-RPC pairs) as a structured artifact for postmortems. mcpjam server doctor --url $URL --access-token $TOKEN --rpc --out incident-triage.json Tool surface audit Pipe the full schema inventory into your own linter, review it in a PR, or check whether descriptions are clear enough for tool selection. mcpjam tools list --url $URL --access-token $TOKEN --format json \ | jq ' .tools[] | {name, description, inputSchema} ' JSON input ergonomics JSON-valued flags accept inline JSON, @path , or - for stdin: mcpjam tools call --url $URL --access-token $TOKEN \ --tool-name search_docs --tool-args @params.json --quiet --format json echo ' {"query":"setup guide"} ' | mcpjam tools call --url $URL --access-token $TOKEN \ --tool-name search_docs --tool-args - --quiet --format json Use --format json|human for the raw command result. Use --reporter json-summary|junit-xml on conformance and diff commands when CI needs a report artifact. server validate uses --debug-out for validation artifacts. Telemetry mcpjam collects anonymous command-level telemetry so we can understand CLI usage and reliability. Events include the command/subcommand name, success/failure, exit code, duration, CLI version, Node version, OS, CPU architecture, transport type ( http or stdio ), platform: "cli" , and coarse CI metadata ( is_ci and a provider enum such as github_actions ). Telemetry is enabled by default. The first command invocation that is not opted out writes telemetry.json with enabled: true and a random install UUID. Telemetry uses a random install UUID stored at the same platform cache location as update checks, in telemetry.json . It does not collect raw argv, URLs, hostnames, ports, tokens, headers, environment values, working directories, file paths, tool/resource/prompt names, error messages, stack traces, repository names, branch names, workflow names, or CI job ids. Disable telemetry for one invocation with --no-telemetry , or persistently with: mcpjam telemetry disable Check or re-enable it with: mcpjam telemetry status mcpjam telemetry enable Set DO_NOT_TRACK=1 or MCPJAM_TELEMETRY_DISABLED=1 to disable telemetry through the environment. Set MCPJAM_TELEMETRY_DEBUG=1 to print the sanitized telemetry payload to stderr instead of sending it. GitHub Actions name : MCP Health Check on : push : branches : [main] pull_request : jobs : mcp-doctor : runs-on : ubuntu-latest steps : - uses : actions/setup-node@v4 with : node-version : 20 - name : OAuth login (headless) run : | set -euo pipefail npx -y @mcpjam/cli@latest oauth login \ --url ${{ secrets.MCP_SERVER_URL }} \ --protocol-version 2025-11-25 \ --registration dcr \ --auth-mode headless \ --format json > /tmp/oauth-result.json TOKEN=$(jq -r '.credentials.accessToken // empty' /tmp/oauth-result.json) rm -f /tmp/oauth-result.json if [ -z "$TOKEN" ]; then echo "::error::OAuth login did not return an access token" exit 1 fi echo "::add-mask::$TOKEN" echo "MCP_TOKEN=$TOKEN" >> "$GITHUB_ENV" - name : Run doctor run : npx -y @mcpjam/cli@latest server doctor --url ${{ secrets.MCP_SERVER_URL }} --access-token $MCP_TOKEN --format json If you already have a refresh token, you can skip the login step and pass it directly: mcpjam server doctor --url $URL --refresh-token $REFRESH_TOKEN --client-id $CLIENT_ID --client-secret $CLIENT_SECRET --format json See the full CI documentation for all authentication options. Documentation Full docs at docs.mcpjam.com/cli . Footer (c) 2026 GitHub, Inc. Footer navigation * Terms * Privacy * Security * Status * Community * Docs * Contact * Manage cookies * Do not share my personal information You can’t perform that action at this time.

Links found on this page

  1. Skip to content [direct]
  2. Sign in [direct]
  3. GitHub Copilot Write better code with AI [direct]
  4. GitHub Copilot app Direct agents from issue to merge [direct]
  5. MCP Registry Integrate external tools [direct]
  6. Actions Automate any workflow [direct]
  7. Codespaces Instant dev environments [direct]
  8. Issues Plan and track work [direct]
  9. Code Review Manage code changes [direct]
  10. Code Quality Enforce quality at merge [direct]
  11. GitHub Advanced Security Find and fix vulnerabilities [direct]
  12. Code security Secure your code as you build [direct]
  13. Secret protection Stop leaks before they start [direct]
  14. Why GitHub [direct]
  15. Documentation [direct]
  16. Blog [direct]
  17. Changelog [direct]
  18. Marketplace [direct]
  19. View all features [direct]
  20. Enterprises [direct]
  21. Small and medium teams [direct]
  22. Startups [direct]
  23. Nonprofits [direct]
  24. App Modernization [direct]
  25. DevSecOps [direct]
  26. DevOps [direct]
  27. CI/CD [direct]
  28. View all use cases [direct]
  29. Healthcare [direct]
  30. Financial services [direct]
  31. Manufacturing [direct]
  32. Government [direct]
  33. View all industries [direct]
  34. View all solutions [direct]
  35. AI [direct]
  36. Software Development [direct]
  37. DevOps [direct]
  38. Security [direct]
  39. View all topics [direct]
  40. Customer stories [direct]
  41. Events & webinars [direct]
  42. Ebooks & reports [direct]
  43. Business insights [direct]
  44. GitHub Skills [direct]
  45. Customer support [direct]
  46. Community forum [direct]
  47. Trust center [direct]
  48. Partners [direct]
  49. View all resources [direct]
  50. GitHub Sponsors Fund open source developers [direct]
  51. Security Lab [direct]
  52. Maintainer Community [direct]
  53. GitHub Stars [direct]
  54. Archive Program [direct]
  55. Topics [direct]
  56. Trending [direct]
  57. Collections [direct]
  58. Copilot for Business Enterprise-grade AI features [direct]
  59. Premium Support Enterprise-grade 24/7 support [direct]
  60. Pricing [direct]
  61. Sign up [direct]
  62. MCPJam [direct]
  63. inspector [direct]
  64. Notifications [direct]
  65. Issues 52 [direct]
  66. Pull requests 234 [direct]
  67. Discussions [direct]
  68. Actions [direct]
  69. Projects [direct]
  70. Security and quality 1 [direct]
  71. Insights [direct]
  72. inspector [direct]
  73. cli [direct]
  74. History [direct]
  75. Raw [direct]
  76. 4.0 migration guide [direct]
  77. CI documentation [direct]
  78. docs.mcpjam.com/cli [direct]
  79. Terms [direct]
  80. Privacy [direct]