Skip to main content
Glama

code2prompt-mcp

by ODAncona

code2prompt-mcp

コードベースからコンテキスト プロンプトを生成する MCP サーバー。これにより、AI アシスタントがコード リポジトリを理解して操作しやすくなります。

について

code2prompt-mcpは、高性能なRustライブラリcode2prompt-rsを活用してコードベースを分析し、構造化されたサマリーを生成します。AIでの利用に最適化された形式で関連コンテキストを抽出することで、コードと言語モデル間のギャップを埋めるのに役立ちます。

インストール

このプロジェクトは依存関係の管理にRyeを使用するので、インストールされていることを確認してください。

必要な依存関係をインストールし、ローカル環境でモジュールをビルドするには、次のコマンドを実行します。

# Clone the repository git clone https://github.com/odancona/code2prompt-mcp.git cd code2prompt-mcp # Install dependencies with Rye rye build

pyproject.tomlファイルで指定されたすべての必要な依存関係が.venvディレクトリにインストールされます。

使用法

MCP サーバーを実行します。

rye run python code2prompt_mcp.main

ライセンス

MIT ライセンス - 詳細については LICENSE ファイルを参照してください。

発達

テストには、MCP Inspector を使用できます。

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