code2prompt
A CLI tool and MCP server that converts local codebases into optimally formatted LLM prompts, enabling agents to efficiently read and query code repositories without bloating context windows. Supports smart glob filtering, token counting, and Handlebars-based templating.
Connects to: Claude, Cursor, VS Code, Git · · MIT 7,568★
Use it with an AI agent
Loadbay is an MCP server, so an agent can search the catalog and find this harness:
claude mcp add --transport http loadbay https://loadbay.xyz/api/mcp
- Source: https://github.com/mufeedvh/code2prompt
- This harness as JSON: /api/harnesses/code2prompt
- Agent setup: /setup.md
- Browse all 700+ harnesses on Loadbay