Skip to main content

MCP server for Code2Prompt

Project description

MseeP.ai Security Assessment Badge

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.1.tar.gz (5.5 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.1-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mseep_code2prompt_mcp-0.1.1.tar.gz
  • Upload date:
  • Size: 5.5 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.1.tar.gz
Algorithm Hash digest
SHA256 cf833364071deb54caea7c8bc19db7339feb23ae64816d016944137adf96ba19
MD5 b079369f03c80c063d66a708edbb9de6
BLAKE2b-256 dbe5b0d66130b15ca1826ba5b0b901350e905a8bcb7355cbd612f4750fd3830d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mseep_code2prompt_mcp-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 dec4991d7d54337c4147d3416c05ac71ffc4999e3b06db5aea37c4cfd92c6b7b
MD5 03b97a250c3e128d9f4d959b9c4684de
BLAKE2b-256 b656db8b73e6c3cb511966077854726691f4618429a2422e776ed44dcb9f1e2c

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