Skip to main content
Glama
project-decision-rag

project-decision-rag

Project decision RAG MCP server

Chromaでプロジェクト固有の意思決定ルールを意味検索し、MCPツールとしてLLMに提供するサンプルです。

セットアップ

miseでNode.js・Python・Python仮想環境を管理します。ChromaサーバはPythonパッケージとしてインストールします。

mise trust
mise install
mise run install

mise trust は、プロジェクトの mise.toml を信頼するための初回のみ必要な操作です。詳しくは mise.tomlの信頼 を参照してください。

Python 3.12.0の配布バイナリにはGitHub Artifact Attestationがないため、mise.tomlではPythonに限ってこの検証を無効化しています。また、仮想環境にはpipをseedし、mise run installでもpipを復旧してから依存関係をインストールします。

Chromaサーバを別のターミナルで起動し、ルールを登録します。

mise run start-chroma
mise run ingest

MCPクライアントからは、次のコマンドをstdioサーバとして登録します。

mise run start-mcp

デフォルトでは 127.0.0.1:8000 の project-decision-rules-multilingual-v1 コレクションを使用します。日本語検索に対応した Xenova/paraphrase-multilingual-MiniLM-L12-v2 をEmbeddingモデルとして使用します。変更する場合は CHROMA_HOST、CHROMA_PORT、CHROMA_SSL、CHROMA_COLLECTION、CHROMA_EMBEDDING_MODEL を設定してください。

Embeddingモデルを変更した場合は、登録時と検索時で同じモデルを使う必要があります。既存のコレクションとベクトルが混ざらないよう、別のCHROMA_COLLECTIONを指定するか、対象コレクションへmise run ingestを実行してください。

Related MCP server: RooCode-RAG-Lookup

ツール

find_project_decisions(query) に質問や状況を渡すと、Chromaで関連ルールを検索し、検索結果のIDから正式なルールを読み込んで返します。

正式なルールは src/rules.ts、検索インデックスへの投入は src/ingest-rules.ts で管理します。

mise run build

Available Tools

1 tool
find_project_decisionsA

ユーザーの質問に関連する、このプロジェクト固有の意思決定ルールを検索します。一般論よりも、このプロジェクトのルールを優先して判断する必要がある場合に利用します。

Inputs: query (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.6/5.0

    Scored across 1 tool

    Disambiguation5/5

    With only one tool, there is no possibility of confusion or misselection. The tool has a unique, clearly defined purpose.

    Naming Consistency5/5

    The single tool name 'find_project_decisions' follows a clear verb_noun pattern and is internally consistent.

    Tool Count2/5

    A single tool feels too thin for a server named 'project-decision-rag'. Even a focused RAG server would typically include additional tools for managing or indexing decisions.

    Completeness2/5

    The server only provides search/retrieval of project decisions. There is no way to add, update, or delete decisions, which are significant gaps for a decision management workflow.

    Maintenance

    ActivityInactive
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      Not graded
      maintenance
      Enables LLMs to perform semantic search and document management using ChromaDB, supporting natural language queries with intuitive similarity metrics for retrieval augmented generation applications.
      -
    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables semantic search across documents and code repositories using RAG (Retrieval-Augmented Generation) with vector embeddings. Automatically indexes PDF documents and performs relevance-scored lookups through ChromaDB and sentence transformers.
      -