MCP Tool Discovery Workbench
A scoped MCP inventory server that discovers schemas inside a measured context budget. Run python3 cli.py /absolute/inventory.json --serve as a stdio server. tools/call catalog_search takes query, max_chars and k; the response returns selected public schemas and their character count.
A scoped MCP inventory server that discovers schemas inside a measured context budget.
- Run python3 cli.py /absolute/inventory.json --serve as a stdio server. tools/call catalog_search takes query, max_chars and k; the response returns selected public schemas and their character count.
- Python 3.10+, Node 22.18+, dictionaries, JSON-RPC request ids, stdin/stdout and child processes.
- Python Stdlib data structures, explicit algorithms and deterministic local tests.
- TypeScript Typed wire messages and real subprocess integration.
MCP Tool Discovery Workbench in 5 stages
A scoped MCP inventory server that discovers schemas inside a measured context budget.
Build a catalog of 250 read-only tools
The generated catalog contains exactly 250 unique tools.
starter · ~2 hours · Python
buildacatalogofSelect tools under an explicit context budget
The query pods count selects pods_count first and never exceeds the serialized budget.
core · ~2 hours · Python
selecttoolsunderanImplement initialized JSON-RPC over stdio
A call before initialization returns -32002; an initialized tools/list returns 32 tools and a cursor.
core · ~2 hours · Python
implementinitializedjson-rpcoverAudit catalog coverage through protocol pages
An exhaustive traversal returns 250 unique names across 8 pages.
stretch · ~2 hours · Python
auditcatalogcoveragethroughExercise the real wire with a typed client
Spawn the Python server and verify every serialized response from TypeScript.
stretch · ~2 hours · TypeScript
stdiocorrelationtimeouts