build(mcp): add make inspect target for the MCP Inspector#20
Open
ABazyk wants to merge 1 commit into
Open
Conversation
Wrap the stdio server in `npx @modelcontextprotocol/inspector go run ./cmd/server --profile $(PROFILE)` (PROFILE defaults to local, override with `make inspect PROFILE=prod`). It reads .env from the module dir like the run-* targets, so auth/workspace carry over. Document usage (web UI + headless --cli mode) in the MCP server README and the root README dev section. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds a
make inspecttarget that launches the MCP Inspector — the official browser UI for listing/calling an MCP server's tools and reading its resources by hand — wrapping the stdio server.It runs
npx @modelcontextprotocol/inspector go run ./cmd/server --profile $(PROFILE)in themcp-server/dir, so it picks up.envexactly as therun-*targets do — auth/workspace carry over. Needs Node.js (npx); no global install.Why
Gives a no-wiring way to poke at the tool surface and resources (e.g.
simulator://actor/{id}) without registering the server into a host. The headless--climode is also handy for diffing the tool list in CI.Docs
--climode).make inspectto the root README dev section and the Makefile-targets help.Verification
Smoke-tested the full chain via the Inspector's headless CLI — it launched the stdio server and returned the complete
tools/list.🤖 Generated with Claude Code