extended-srs-mcp-server
v1.0.3MCP server for Extended SRS validation and aggregation
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
validate_extended_srs
Validate an Extended SRS project in the SRS root directory. Aggregates all .md files, merges metadata, and validates against the Extended SRS schema. Returns validation errors, warnings, conflicts, and completeness status. Pass include_files=true to also receive per-file details (name, size, modified timestamp) for a full project overview. Uses EXTENDED_SRS_ROOT environment variable to locate the SRS root.
| Parameter | Type | Description |
|---|---|---|
include_files | boolean | If true, include per-file details (path, name, size, modified) in the response. Defaults to false. |
get_project_state
Get all SRS elements with their status, dependencies, and priority. Aggregates use-cases, functional-requirements, non-functional-requirements, system-architecture modules, and development milestones. Use for Plan construction.
| Parameter | Type | Description |
|---|---|---|
filter_status | array | Filter elements by status (e.g., ["draft", "approved"]). Omit to return all. |
get_unblocked_elements
Find SRS elements whose dependencies are all satisfied and are ready for work. Returns elements sorted by priority. Use for Plan construction to identify actionable items.
| Parameter | Type | Description |
|---|---|---|
dependency_evidence | object | Caller-verified evidence for dependencies not established by the SRS: completed external IDs and IDs with an available interface contract. |
work_type | string | Filter by work phase: "spec" (draft→tentative), "impl" (approved→implemented), "verify" (implemented→verified). |
check_consistency
Extract YAML↔Markdown pairs from an SRS file for consistency evaluation. Returns structured pairs of {yaml (parsed), markdown (raw text)} for each @srs block and its following content section. The calling agent should then evaluate each pair semantically: can the YAML be reconstructed from the prose? Does the prose accurately reflect the YAML?
| Parameter | Type | Description |
|---|---|---|
file_path * | string | Path to a file inside the SRS root (relative to that root or absolute). Paths outside the root and symlinks below it are rejected. |
element_id | string | Filter pairs to only those containing this element ID. |
get_status_history
Get status change history for an SRS element by analyzing git log. Returns chronological list of status transitions with author, timestamp, and commit reference.
| Parameter | Type | Description |
|---|---|---|
element_id * | string | The element ID to get status history for (e.g., "FR-001", "UC-002"). |
get_change_log
Get all changes to files containing an SRS element via git log. Returns current version, last modifier, and chronological list of commits with diff summaries.
| Parameter | Type | Description |
|---|---|---|
element_id * | string | The element ID to get change log for. |
since | string | Only return changes after this date-time. |
submit_for_review
Submit an SRS element for human review. Creates a review record in <SRS_ROOT>/reviews/<element_id>/ and optionally notifies the configured Agent Communication Service. Called by Agent after completing work on an element.
| Parameter | Type | Description |
|---|---|---|
element_id * | string | |
gate_type * | string | |
acceptance_criteria_status | array | |
affected_elements | array | Other element IDs affected by this change. |
consistency_check_result | object | Result from check_consistency tool. |
gate_id | string | Configured approval gate. Required when multiple gates share gate_type. |
summary | string | Summary of changes made. |
get_review_history
Get all review records for an SRS element. Returns chronological list of reviews with status, gate type, author, and resolution details.
| Parameter | Type | Description |
|---|---|---|
element_id * | string |
approve_review
Approve a pending review using core workflow rules. Requires the configured project role and automated checks, records the decision, and applies on_approval_status_transition when configured. reviewer_role identifies human or agent; unresolved automatic-approval conditions require human review.
| Parameter | Type | Description |
|---|---|---|
element_id * | string | |
review_id * | integer | |
approver_role | string | Project role required by the workflow, e.g. product_owner or architect; separate from human/agent. |
checks | object | Results of checks executed by the caller. All checks required by the approval gate must be true. |
comment | string | |
reviewer_role | string | Role of the reviewer recording this decision. Defaults to "human". |
reject_review
Reject a pending review and request changes. Updates the review record with reason and commits to git. Called by human reviewer (or by an autonomous agent — set reviewer_role accordingly).
| Parameter | Type | Description |
|---|---|---|
element_id * | string | |
reason * | string | |
review_id * | integer | |
approver_role | string | Project role required by the workflow, e.g. product_owner or architect; separate from human/agent. |
requested_changes | array | |
reviewer_role | string | Role of the reviewer recording this decision. Defaults to "human". |
set_element_status
Update the lifecycle status of an SRS element by rewriting the status field in its YAML block in place and committing the change to git. Validates the transition against the 11-state lifecycle (common-definitions-schema §1.2). The element must be defined as a primary id (uc_id, req_id, module_id, milestone_id, element_id) in some .md file under EXTENDED_SRS_ROOT; files that merely reference the id are ignored.
| Parameter | Type | Description |
|---|---|---|
element_id * | string | Element ID whose status should change (e.g., "FR-001"). |
new_status * | string | Target lifecycle state. Must be reachable from the current state per the lifecycle diagram. |
dependency_evidence | object | Caller-verified evidence for dependencies not established by the SRS: completed external IDs and IDs with an available interface contract. |
reason | string | Optional human-readable rationale appended to the commit message. |
approve_element
Drive an SRS element forward through its lifecycle by one step. Picks the natural target state from the current state (e.g., draft→approved, tentative→approved, in_progress→in_review, in_review→implemented, implemented→verified, blocked→in_progress, rejected→draft) and calls set_element_status. No-op when the element is already in a stable terminal state. For non-default transitions use set_element_status directly.
| Parameter | Type | Description |
|---|---|---|
element_id * | string | |
comment | string | Optional rationale appended to the commit message. |
dependency_evidence | object | Caller-verified evidence for dependencies not established by the SRS: completed external IDs and IDs with an available interface contract. |
reject_element
Reject an SRS element by transitioning its status to "rejected" (or back to "draft" if it is already rejected, signalling re-opening for revision). A non-empty reason is required and is recorded in the commit message.
| Parameter | Type | Description |
|---|---|---|
element_id * | string | |
reason * | string |