Skip to main content

MCP server for Code2Prompt

Project description

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:

# Clone the repository
git clone https://github.com/odancona/code2prompt-mcp.git
cd code2prompt-mcp

# Install dependencies with Rye
rye build

It will install all the required dependencies specified in the pyproject.toml file in the .venv directory.

Usage

Run the MCP server:

rye run python code2prompt_mcp.main

License

MIT License - See LICENSE file for details.

Development

For testing, you can use the MCP Inspector:

npx @modelcontextprotocol/inspector python -m code2prompt_mcp.main

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mseep_code2prompt_mcp-0.1.0.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mseep_code2prompt_mcp-0.1.0-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file mseep_code2prompt_mcp-0.1.0.tar.gz.

File metadata

  • Download URL: mseep_code2prompt_mcp-0.1.0.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.12

File hashes

Hashes for mseep_code2prompt_mcp-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ac8a7cd91e5798f03d196d7b669f9223c8d27d7291d99f51ec5b9b8374cfcc35
MD5 eff4fc0c287ca6d7aadc52c30fc2bac5
BLAKE2b-256 c7c3e58a17f9bcb990897c5d8339f5ac9e69b85569933eeb643c1d9d97b5fe93

See more details on using hashes here.

File details

Details for the file mseep_code2prompt_mcp-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for mseep_code2prompt_mcp-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9075a0056cb31e2485fd7f81e90284a2e2e0c1127638d0284dd7bab97680cc85
MD5 e25292a2ca84bc119476977375a78f08
BLAKE2b-256 d368f04daab031dab9038db72a2a2aca0adf7ccbfba8c8c327c8b7e78700c2a6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page