code2prompt-mcp
code2prompt-mcp
MCP 服务器从代码库生成上下文提示,使 AI 助手更容易理解和使用您的代码存储库。
关于
code2prompt-mcp 利用高性能的code2prompt-rs Rust 库来分析代码库并生成结构化摘要。它能够以针对 AI 优化的格式提取相关上下文,从而弥合代码与语言模型之间的差距。
Related MCP server: Code Understanding MCP Server
安装
该项目使用Rye进行依赖管理,请确保您已安装它。
要安装必要的依赖项并在本地环境中构建模块,请运行:
# Clone the repository
git clone https://github.com/odancona/code2prompt-mcp.git
cd code2prompt-mcp
# Install dependencies with Rye
rye build它将在.venv目录中安装pyproject.toml文件中指定的所有必需依赖项。
用法
运行 MCP 服务器:
rye run python code2prompt_mcp.main执照
MIT 许可证 - 有关详细信息,请参阅 LICENSE 文件。
发展
为了进行测试,您可以使用 MCP 检查器:
npx @modelcontextprotocol/inspector python -m code2prompt_mcp.mainTool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
No tool schema history has been recorded yet.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
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
- AlicenseAqualityBmaintenanceAn 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.151MIT
Appeared in Searches
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/ODAncona/code2prompt-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server