mcp-inspector-testing
Validate Wassette changes end-to-end by running the MCP server with just and driving it with the MCP Inspector CLI over Streamable HTTP — listing tools, resources, and prompts, and calling tools. Use before committing server changes or when debugging tool exposure and behavior.
- License 许可
- MIT
- 最近更新
- 2026-11-03
- Stars
- ★ 976
- Forks
- 78
01 前言 Front Matter
- name
- mcp-inspector-testing
- description
- Validate Wassette changes end-to-end by running the MCP server with just and driving it with the MCP Inspector CLI over Streamable HTTP — listing tools, resources, and prompts, and calling tools. Use before committing server changes or when debugging tool exposure and behavior.
- allowed-tools
- Bash, Read, Write, Edit, Glob, Grep
02 资源文件 4
- 参考文档references/api.md118.3 KB
- 参考文档references/dataset-formats.md45.0 KB
- 参考文档references/index.md199 B
- 参考文档references/other.md137.1 KB
03 SKILL.md 正文
mcp-inspector-testing skill
Test server-facing Wassette changes with the MCP Inspector before committing. This confirms the server starts, tools are exposed over MCP, tool calls behave as expected, and no regressions slipped in.
Workflow
- Build your changes:
just build. - Start the server (Terminal 1):
just run, or an example such asjust run-fetch-rs. The server listens at127.0.0.1:9001/mcpover Streamable HTTP. - Drive it with the Inspector (Terminal 2) — always run
tools/listfirst. - Capture Inspector output when it helps demonstrate or debug the change.
Running the server
just run # Default server
just run RUST_LOG='debug' # Verbose logs
just run-filesystem # Example: filesystem component
just run-fetch-rs # Example: fetch component
just run-memory # Example: memory component
just run-get-weather # Example: weather (needs OPENWEATHER_API_KEY)
Inspecting with the MCP Inspector
BASE=http://127.0.0.1:9001/mcp
# List capabilities (run tools/list first)
npx @modelcontextprotocol/inspector --cli $BASE --transport http --method tools/list
npx @modelcontextprotocol/inspector --cli $BASE --transport http --method resources/list
npx @modelcontextprotocol/inspector --cli $BASE --transport http --method prompts/list
# Call a tool
npx @modelcontextprotocol/inspector --cli $BASE --transport http \
--method tools/call --tool-name mytool --tool-arg key=value
# Multiple args, or JSON for complex parameters
npx @modelcontextprotocol/inspector --cli $BASE --transport http \
--method tools/call --tool-name mytool --tool-arg key1=v1 --tool-arg key2=v2
npx @modelcontextprotocol/inspector --cli $BASE --transport http \
--method tools/call --tool-name mytool --tool-arg 'options={"format":"json","max_tokens":100}'
# Custom headers (e.g. auth testing)
npx @modelcontextprotocol/inspector --cli $BASE --transport http \
--method tools/list --header "X-API-Key: your-api-key"
Capturing output
npx @modelcontextprotocol/inspector --cli $BASE --transport http \
--method tools/list > inspector-output.txt
Include captured output in review notes or issue comments when it helps demonstrate a fix.
Troubleshooting
- Confirm
just runstarted without errors. - Run
tools/listto see what is actually exposed. - Re-run the server with
RUST_LOG=debugfor detailed logs. - Start with simple tool calls, then add argument complexity.
- Compare against a known-good example such as
fetch-rs.
04 同仓库更多 Skills
rust-code-style
Write idiomatic, well-structured Rust for Wassette — single-responsibility design, anyhow error handling, Arc/Mutex for shared state, and the required formatting and linting with cargo +nightly fmt, cargo clippy, and cargo machete. Use when adding or refactoring Rust code in this repository.
pull-request
Write concise, focused pull request descriptions for Wassette — at most three sentences on the what and why, with an explicit note on any breaking public-API change and how users adapt. Use when opening or editing a Wassette pull request.
documentation
Build, serve, and write Wassette's mdBook documentation under docs/ — concise, code-first prose, the multi-version URL layout, and navigation in SUMMARY.md. Use when editing docs/ pages or previewing the documentation site.
copyright-headers
Ensure every Rust (.rs) file in Wassette starts with the required Microsoft copyright header, using the idempotent scripts/copyright.sh helper. Use when adding new Rust files or when a copyright-header check fails.
build-and-test
Build the Wassette workspace and run its test suite with the just recipes — debug and release builds, example and test components, and the combined unit plus documentation tests. Use when compiling Wassette, building example components, or running and debugging tests.