Integrations
Allows analyzing Git-based codebases to generate structured summaries and contextual prompts for AI assistants to better understand repositories
Enables working with GitHub repositories by extracting relevant code context and producing optimized summaries for AI consumption
Leverages the code2prompt-rs Rust library to analyze codebases and produce structured summaries optimized for AI assistants
code2prompt-mcp
An MCP server that generates contextual prompts from codebases, making it easier for AI assistants to understand and work with your code repositories.
About
code2prompt-mcp leverages the high-performance code2prompt-rs Rust library to analyze codebases and produce structured summaries. It helps bridge the gap between your code and language models by extracting relevant context in a format that's optimized for AI consumption.
Installation
This project uses Rye for dependency management, make sure you have it installed.
To install the necessary dependencies, and build the module in the local environment, run:
It will install all the required dependencies specified in the pyproject.toml
file in the .venv
directory.
Usage
Run the MCP server:
License
MIT License - See LICENSE file for details.
Development
For testing, you can use the MCP Inspector:
This server cannot be installed
An MCP server that analyzes codebases and generates contextual prompts, making it easier for AI assistants to understand and work with code repositories.