code2prompt-mcp
Code2Prompt-MCP
Ein MCP-Server, der kontextbezogene Eingabeaufforderungen aus Codebasen generiert, sodass KI-Assistenten Ihre Code-Repositories leichter verstehen und damit arbeiten können.
Um
code2prompt-mcp nutzt die leistungsstarke Rust-Bibliothek code2prompt-rs, um Codebasen zu analysieren und strukturierte Zusammenfassungen zu erstellen. Es hilft, die Lücke zwischen Ihrem Code und Ihren Sprachmodellen zu schließen, indem es relevanten Kontext in einem für die KI-Nutzung optimierten Format extrahiert.
Related MCP server: Code Understanding MCP Server
Installation
Dieses Projekt verwendet Rye zur Abhängigkeitsverwaltung. Stellen Sie sicher, dass Sie es installiert haben.
Um die erforderlichen Abhängigkeiten zu installieren und das Modul in der lokalen Umgebung zu erstellen, führen Sie Folgendes aus:
# Clone the repository
git clone https://github.com/odancona/code2prompt-mcp.git
cd code2prompt-mcp
# Install dependencies with Rye
rye buildEs werden alle erforderlichen Abhängigkeiten installiert, die in der Datei pyproject.toml im Verzeichnis .venv angegeben sind.
Verwendung
Führen Sie den MCP-Server aus:
rye run python code2prompt_mcp.mainLizenz
MIT-Lizenz – Einzelheiten finden Sie in der Datei LICENSE.
Entwicklung
Zum Testen können Sie den MCP Inspector verwenden:
npx @modelcontextprotocol/inspector python -m code2prompt_mcp.mainThis server cannot be deployed
Maintenance
Related MCP Connectors
An MCP server that gives your AI access to the source code and docs of all public github repos
Driflyte MCP server which lets AI assistants query topic-specific knowledge from web and GitHub.
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
An MCP server that integrates with Discord to provide AI-powered features.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceAn MCP server that transforms codebases into intelligent, queryable knowledge bases, enabling AI assistants to perform semantic search, explore architecture, and analyze code relationships.166-
- AlicenseCqualityDmaintenanceAn MCP server that analyzes local or remote GitHub repositories, providing intelligent code context and structure to AI coding assistants.1013MIT
- AlicenseAqualityDmaintenanceAn MCP server that helps AI agents comprehend a codebase by providing tools for navigating, searching, and understanding code structure and history.10MIT
- AlicenseNot gradedqualityDmaintenanceA self-hosted MCP server that indexes your codebase and provides AI assistants with deep context including file tree, full-text search, git history, dependencies, and stack detection, all without sending your code to third parties.6 npm1MIT