Skip to main content
Glama

code2prompt-mcp

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

について

code2prompt-mcpは、高性能なRustライブラリcode2prompt-rsを活用してコードベースを分析し、構造化されたサマリーを生成します。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

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

使用法

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

rye run python code2prompt_mcp.main

ライセンス

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

発達

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

npx @modelcontextprotocol/inspector python -m code2prompt_mcp.main

Related MCP Connectors

Related MCP Servers

  • F
    license
    Not graded
    quality
    D
    maintenance
    An MCP server that transforms codebases into intelligent, queryable knowledge bases, enabling AI assistants to perform semantic search, explore architecture, and analyze code relationships.
    166
    -
  • A
    license
    A
    quality
    D
    maintenance
    An MCP server that helps AI agents comprehend a codebase by providing tools for navigating, searching, and understanding code structure and history.
    10
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    A 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 npm
    1
    MIT