{"$schema":"https://wellknown.network/schemas/agent-record-v1.json","schemaVersion":"1","id":"ag_3vyp2kqne7xw","handle":"mcp-coded-tools","url":"https://wellknown.network/agents/mcp-coded-tools","links":{"self":"https://wellknown.network/agents/mcp-coded-tools/record.json","html":"https://wellknown.network/agents/mcp-coded-tools","markdown":"https://wellknown.network/agents/mcp-coded-tools/record.md","api":"https://wellknown.network/api/v1/agents/mcp-coded-tools","status":"https://wellknown.network/api/v1/agents/mcp-coded-tools/status","claim":"https://wellknown.network/agents/mcp-coded-tools/claim","claimApi":"https://wellknown.network/api/v1/claims","claimDescriptor":"https://wellknown.network/agents/mcp-coded-tools/claim.json","badge":"https://wellknown.network/agents/mcp-coded-tools/badge.svg","openapi":"https://wellknown.network/openapi.json","history":"https://wellknown.network/api/v1/agents/mcp-coded-tools/history","tools":"https://wellknown.network/api/v1/agents/mcp-coded-tools/tools"},"ard":{"identifier":"urn:air::server:mcp-coded-tools","type":"application/mcp-server-card+json"},"kind":"mcp_server","declared":{"name":"mcp-coded-tools","summary":"Generate discoverable code from MCP servers for agent tool usage","description":"# mcp-coded-tools\n\n[![PyPI version](https://badge.fury.io/py/mcp-coded-tools.svg)](https://badge.fury.io/py/mcp-coded-tools)\n[![Python Versions](https://img.shields.io/pypi/pyversions/mcp-coded-tools.svg)](https://pypi.org/project/mcp-coded-tools/)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n[![CI](https://github.com/bluman1/mcp-coded-tools/workflows/CI/badge.svg)](https://github.com/bluman1/mcp-coded-tools/actions)\n\nGenerate discoverable code from MCP servers for AI agent tool usage.\n\n## Why?\n\nThe [Model Context Protocol (MCP)](https://modelcontextprotocol.io/) lets AI agents connect to external tools and data. However, as Anthropic's [engineering post](https://www.anthropic.com/engineering/code-execution-with-mcp) explains, loading hundreds or thousands of tool definitions directly into an agent's context window is inefficient:\n\n- Tool definitions consume excessive tokens (100K+ tokens for large tool sets)\n- Intermediate results flow through the context window repeatedly\n- Agents become slower and more expensive at scale\n\n**The solution**: Present MCP servers as *code APIs* that agents can discover and use through a filesystem interface. This approach reduces token usage by up to 98.7% while enabling more powerful agent workflows.\n\n**The problem**: Manually writing wrapper code for each MCP tool is tedious.\n\n**mcp-coded-tools**: Automatically generate discoverable Python code from any MCP server.\n\n## Installation\n\n```bash\npip install mcp-coded-tools\n```\n\n## Quick Start\n\n### CLI Usage\n\n```bash\n# Generate code from popular MCP servers\nmcp-coded-tools generate \\\n  --command \"npx -y @modelcontextprotocol/server-github\" \\\n  --output ./servers \\\n  --server-name github\n\n# Generate from multiple servers for complete workflows\nmcp-coded-tools generate \\\n  --command \"npx -y @modelcontextprotocol/server-github\" \\\n  --command \"npx -y @modelcontextprotocol/server-postgres\" \\\n  --command \"python slack_mcp_server.p…","publisher":null,"homepage":"https://github.com/bluman1/mcp-coded-tools","repository":"https://github.com/bluman1/mcp-coded-tools","version":"0.1.0","license":null,"protocols":["mcp"],"tags":["mcp","model-context-protocol","code-generation","ai-agents","codegen"],"pricing":null,"endpoints":[{"url":"pypi:mcp-coded-tools","type":"package_pypi","auth":null,"probeable":false}],"skills":null,"tools":null,"extra":null,"attribution":{"kind":"pypi","name":"pypi","repoUrl":"pypi","summary":"pypi","version":"pypi","description":"pypi","homepageUrl":"pypi"}},"derived":{"capabilities":[{"slug":"code.generation","name":"Code Generation","confidence":1,"provenance":"declared"},{"slug":"dev.filesystem","name":"Filesystem","confidence":0.882,"provenance":"derived"}],"categories":["code","dev"],"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-coded-tools","registry":"pypi","observedAt":"2026-10-22T08:24:25.277Z","publishedAt":"2025-11-06T06:36:28.395170Z","latestVersion":"0.1.0"},"toolSurface":null,"endpointFacts":[]},"verification":{"claimed":false,"claimedAt":null,"proofs":[]},"provenance":{"sources":[{"source":"pypi","key":"mcp-coded-tools","url":"https://pypi.org/project/mcp-coded-tools/","firstSeenAt":"2026-09-10T01:19:20.733Z","fetchedAt":"2026-10-22T08:22:53.560Z","normalizedAt":"2026-10-22T08:22:53.560Z"}]},"firstSeenAt":"2026-09-10T01:19:20.733Z","updatedAt":"2026-10-22T08:24:25.277Z"}