LEVEL 4 · SYSTEMS

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.

5 stages~10 hoursPython, TypeScriptcore
Build a catalog of 250 read-only toolsSelect tools under an explicit context budgetImplement initialized JSON-RPC over stdioAudit catalog coverage through protocol pages
YOU END UP WITH

A scoped MCP inventory server that discovers schemas inside a measured context budget.

USEFUL FOR
  • 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.
LEARN FIRST
  • Python 3.10+, Node 22.18+, dictionaries, JSON-RPC request ids, stdin/stdout and child processes.
WHY THESE LANGUAGES
  • Python Stdlib data structures, explicit algorithms and deterministic local tests.
  • TypeScript Typed wire messages and real subprocess integration.
PROJECT OUTLINE

MCP Tool Discovery Workbench in 5 stages

A scoped MCP inventory server that discovers schemas inside a measured context budget.

  1. Build a catalog of 250 read-only tools

    The generated catalog contains exactly 250 unique tools.

    starter · ~2 hours · Python

    buildacatalogof
  2. Select tools under an explicit context budget

    The query pods count selects pods_count first and never exceeds the serialized budget.

    core · ~2 hours · Python

    selecttoolsunderan
  3. Implement 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-rpcover
  4. Audit catalog coverage through protocol pages

    An exhaustive traversal returns 250 unique names across 8 pages.

    stretch · ~2 hours · Python

    auditcatalogcoveragethrough
  5. Exercise the real wire with a typed client

    Spawn the Python server and verify every serialized response from TypeScript.

    stretch · ~2 hours · TypeScript

    stdiocorrelationtimeouts

All projects · Course catalog · Source on GitHub