Skip to main content
Glama

code2prompt-mcp

by ODAncona

code2prompt-mcp

MCP 服务器从代码库生成上下文提示,使 AI 助手更容易理解和使用您的代码存储库。

关于

code2prompt-mcp 利用高性能的code2prompt-rs Rust 库来分析代码库并生成结构化摘要。它能够以针对 AI 优化的格式提取相关上下文,从而弥合代码与语言模型之间的差距。

安装

该项目使用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.main
-
security - not tested
A
license - permissive license
-
quality - not tested

分析代码库并生成上下文提示的 MCP 服务器,使 AI 助手更容易理解和使用代码存储库。

  1. 关于
    1. 安装
      1. 用法
        1. 执照
          1. 发展

            Related MCP Servers

            • -
              security
              A
              license
              -
              quality
              An MCP server that implements Claude Code-like functionality, allowing the AI to analyze codebases, modify files, execute commands, and manage projects through direct file system interactions.
              Last updated -
              179
              Python
              MIT License
              • Apple
              • Linux
            • A
              security
              A
              license
              A
              quality
              A Model Context Protocol server that enables AI assistants to interact with Linear project management systems, allowing users to retrieve, create, and update issues, projects, and teams through natural language.
              Last updated -
              32
              80
              5
              TypeScript
              MIT License
              • Apple
            • -
              security
              A
              license
              -
              quality
              An MCP server that enables AI assistants to control a web browser through natural language commands, allowing them to navigate websites and extract information via SSE transport.
              Last updated -
              505
              Python
              MIT License
              • Apple
            • -
              security
              F
              license
              -
              quality
              An MCP server that allows AI assistants to programmatically manage Unleash feature flags through natural language, enabling operations like creating, updating, and retrieving feature flags across projects.
              Last updated -
              5
              2
              TypeScript

            View all related MCP servers

            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