What is Agents Md Generator?
Agents Md Generator is an MCP server that analyzes codebases using tree-sitter AST parsing and produces AGENTS.md files — a README formatted for AI agents rather than human readers. It is compatible with any MCP-capable client, including Claude Code, Gemini CLI, Cursor, and Windsurf.
How to use Agents Md Generator?
Install with Python 3.11+, uv, and Git. Register the server in your MCP client’s config (e.g., claude mcp add agents-md uvx agents-md-generator). Then ask your AI client: “Generate the AGENTS.md for this project”. The client automatically calls the generate_agents_md tool. Optionally set project_path (defaults to current directory) and force_full_scan (skips cache). Large projects are handled via a chunked streaming tool.
Key features of Agents Md Generator
- Tree-sitter based AST parsing across five languages
- Incremental scanning with SHA-256 change detection
- Chunked streaming of large analysis payloads over MCP
- Cache and temporary files stored outside the project directory
- Support for custom exclusion/inclusion patterns via
.agents-config.json
- Environment variable and entry point detection
Use cases of Agents Md Generator
- Generate
AGENTS.md for a new project from scratch
- Automatically update
AGENTS.md when the codebase changes
- Share consistent project context across different AI coding assistants
评论