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

            • A
              security
              F
              license
              A
              quality
              An MCP server that supercharges AI assistants with powerful tools for software development, enabling research, planning, code generation, and project scaffolding through natural language interaction.
              Last updated -
              11
              61
              TypeScript
              • Linux
              • Apple
            • -
              security
              A
              license
              -
              quality
              A Code Indexing MCP Server that connects AI coding assistants to external codebases, providing accurate and up-to-date code snippets to reduce mistakes and hallucinations.
              Last updated -
              68
              Python
              Apache 2.0
            • A
              security
              F
              license
              A
              quality
              An MCP server that allows coding agents to look up contextual rules and patterns on demand, providing just-in-time guidance for specific tasks like writing tests or authoring UI.
              Last updated -
              1
              9
              TypeScript
            • A
              security
              F
              license
              A
              quality
              A Model Context Protocol (MCP) server for advanced code analysis and editing with semantic search capabilities, enabling AI assistants to perform complex code operations through a standardized interface.
              Last updated -
              15
              Python

            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