{"$schema":"https://wellknown.network/schemas/agent-record-v1.json","schemaVersion":"1","id":"ag_bzu74y8ej3bx","handle":"mcp-static-toolgen","url":"https://wellknown.network/agents/mcp-static-toolgen","links":{"self":"https://wellknown.network/agents/mcp-static-toolgen/record.json","html":"https://wellknown.network/agents/mcp-static-toolgen","markdown":"https://wellknown.network/agents/mcp-static-toolgen/record.md","api":"https://wellknown.network/api/v1/agents/mcp-static-toolgen","status":"https://wellknown.network/api/v1/agents/mcp-static-toolgen/status","claim":"https://wellknown.network/agents/mcp-static-toolgen/claim","claimApi":"https://wellknown.network/api/v1/claims","claimDescriptor":"https://wellknown.network/agents/mcp-static-toolgen/claim.json","badge":"https://wellknown.network/agents/mcp-static-toolgen/badge.svg","openapi":"https://wellknown.network/openapi.json","history":"https://wellknown.network/api/v1/agents/mcp-static-toolgen/history","tools":"https://wellknown.network/api/v1/agents/mcp-static-toolgen/tools"},"ard":{"identifier":"urn:air::server:mcp-static-toolgen","type":"application/mcp-server-card+json"},"kind":"mcp_server","declared":{"name":"mcp-static-toolgen","summary":"Static binding code generator for MCP tools","description":"# MCP-Static-Toolgen\n\nStatic binding code generator for MCP tools.\n\n## Background\n\nMost MCP integrations fetch tool schemas **dynamically at runtime**. While flexible, this makes it impossible to use static type checkers, breaks IDE autocompletion, and introduces \"runtime surprises\" when upstream schemas change.\n\nThis project is a **static bindgen** for MCP. It connects to an MCP server once and generates strictly typed Python code. By moving tool resolution from **runtime to build-time**, you get:\n\n* **Full Type Safety**: Catch interface mismatches with `mypy` or `pyright` before execution.\n\n* **IDE Support**: Enjoy perfect autocompletion for tool arguments.\n\n* **Determinism**: Your agent's interface is locked in code, making it auditable and production-ready.\n\n## Usage\n#### Install\n```\nuv add mcp_static_toolgen\n```\n\n#### Code Generation\n```python\nimport asyncio\nfrom langchain_mcp_adapters.sessions import Connection\nfrom mcp_static_toolgen.mcp import connect_and_generate\n\nconnections: dict[str, Connection] = {\n    \"mock\": {\n        \"transport\": \"stdio\",\n        \"command\": \"python\",\n        \"args\": [\"src/tests/mock_mcp_server.py\"],\n    },\n}\ngenerated_codes = asyncio.run(connect_and_generate(connections))\n```\nSee `example` for complete example.","publisher":null,"homepage":null,"repository":null,"version":"0.1.3","license":"https://opensource.org/license/mit\n        \n        Copyright 2…","protocols":["mcp"],"tags":["code-generation","llm-tools","mcp","model-context-protocol","pydantic","tool-generation"],"pricing":null,"endpoints":[{"url":"pypi:mcp-static-toolgen","type":"package_pypi","auth":null,"probeable":false}],"skills":null,"tools":null,"extra":null,"attribution":{"kind":"pypi","name":"pypi","license":"pypi","summary":"pypi","version":"pypi","description":"pypi"}},"derived":{"capabilities":[{"slug":"code.generation","name":"Code Generation","confidence":1,"provenance":"derived"}],"categories":["code"],"language":"en"},"observed":{"status":"unknown","statusReason":"Distributed as a package to run locally; no network endpoint to check.","lastOkAt":null,"lastProbedAt":null,"statusComputedAt":null,"reliability30d":null,"latestObservations":[],"tools":null,"package":{"name":"mcp-static-toolgen","registry":"pypi","observedAt":"2026-10-22T12:26:16.519Z","publishedAt":"2026-03-18T09:24:16.999910Z","latestVersion":"0.1.3"},"toolSurface":null,"endpointFacts":[]},"verification":{"claimed":false,"claimedAt":null,"proofs":[]},"provenance":{"sources":[{"source":"pypi","key":"mcp-static-toolgen","url":"https://pypi.org/project/mcp-static-toolgen/","firstSeenAt":"2026-09-10T04:23:23.178Z","fetchedAt":"2026-10-22T12:24:25.447Z","normalizedAt":"2026-10-22T12:24:25.447Z"}]},"firstSeenAt":"2026-09-10T04:23:23.178Z","updatedAt":"2026-10-22T12:26:16.519Z"}