sphinx-needs-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| config | No | 網羅の規則などを書いた設定ファイルのパス。既定は起動したフォルダの sphinx-needs-mcp.toml(あれば)。 | |
| docs-dir | No | 原稿のフォルダ。鮮度の確認と、原稿の場所の表示に使います。既定は ubproject.toml のあるフォルダ。 | |
| ubproject | No | ubproject.toml のパス。列挙値やリンクの呼び名を補います。なしでも動作します。 | |
| needs-json | No | 読み込む needs.json のパス。 | _build/html/needs.json |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
sphinx-needs が出力した needs.json から、要件・設計・検証ケースなどの need を引きます。need の型やリンクの名前はプロジェクトごとに違うので、最初に describe_project で確かめてください。ID が分かっていれば get_need、分からなければ search_needs、変更の影響範囲を調べるときは trace、全体の状況は status_report を使います。設定ファイル(sphinx-needs-mcp.toml)に網羅の規則があれば、check_rules で規則を守れていない need とその理由が分かります。ツールはすべて読み取り専用です。原稿を直したあとは、ドキュメントをビルドし直してから問い合わせてください(古い needs.json のときは、結果に warning が付きます)。
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| describe_projectA | プロジェクトにどんな need の型・リンク・フィールドがあるかを返します。 型やリンクの名前はプロジェクトごとに違います。 search_needs や trace を使う前に、まずこれで名前を確かめてください。 設定ファイルに網羅の規則があれば、その一覧(rules)も返します。 |
| get_needA | need 1 件の詳細を返します。 本文、プロジェクトのフィールド、出ているリンク(outgoing)と 向かってくるリンク(incoming)、原稿の場所(source)を含みます。 ID が分からないときは search_needs を使ってください。 |
| search_needsA | 条件に合う need の一覧(ID・型・タイトル・ステータス)を返します。 条件はすべて「かつ」で組み合わせます。本文は返さないので、 気になった ID は get_need で詳しく見てください。 |
| traceA | リンクをたどって、上流・下流の need を列挙します。 変更の影響範囲(このシステム要件を変えたら、どの要件と検証ケースに波及するか)は direction="down"、要件の出どころを確かめるときは "up" を使います。 |
| status_reportA | プロジェクト全体の状況(件数とリンクの張られ具合)を返します。 型ごと・ステータスごとの件数、型ごと・リンクごとの「リンクを出している数・ 受けている数」、リンク先が存在しない need を含みます。 設定ファイルの [watch] に書いたもの(TBD などの注目するフィールドの一覧と、 値の内訳)があれば、それも足します。 |
| check_rulesA | 設定ファイル(sphinx-needs-mcp.toml)の網羅の規則を調べ、守れていない need と理由を返します。 例:「承認済みのソフトウェア要件は、検証ケースから参照されていること」を守れていない要件。 合否を決めるのはビルドです。これは、どこを直せばよいかを細かく調べるためのものです。 規則の一覧は describe_project の rules で分かります。 |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 6 tools
Each tool targets a distinct operation: schema discovery (describe_project), single-record detail (get_need), filtered listing (search_needs), link traversal (trace), aggregate stats (status_report), and rule validation (check_rules). The only mild overlap is between status_report and check_rules, both of which surface project-health issues (broken links vs. rule violations), but their descriptions draw a clear line between counts and rule compliance.
Four of six tools follow a clean verb_noun pattern (describe_project, get_need, search_needs, check_rules). The bare verb 'trace' and the noun-first 'status_report' are minor deviations but remain readable and unambiguous in context.
Six tools is well-scoped for a read-oriented requirements-inspection server. Each tool covers a distinct facet (schema, search, detail, tracing, stats, rules) with no redundancy or filler.
The read/analysis surface is comprehensive: schema discovery, search, detail, link tracing, project status, and rule checking form a coherent workflow with no dead ends for inspection. The main gap is the absence of any write/mutation tools (create/update/delete needs), though the server appears intentionally read-only, so this is a minor limitation rather than a failure.