extended-srs-mcp-server

v1.0.3
@collmate/extended-srs-mcp-server Checked 4 days ago Published 3 days ago

MCP 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.

ParameterTypeDescription
include_filesbooleanIf 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.

ParameterTypeDescription
filter_statusarrayFilter 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.

ParameterTypeDescription
dependency_evidenceobjectCaller-verified evidence for dependencies not established by the SRS: completed external IDs and IDs with an available interface contract.
work_typestringFilter 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?

ParameterTypeDescription
file_path *stringPath to a file inside the SRS root (relative to that root or absolute). Paths outside the root and symlinks below it are rejected.
element_idstringFilter 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.

ParameterTypeDescription
element_id *stringThe 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.

ParameterTypeDescription
element_id *stringThe element ID to get change log for.
sincestringOnly 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.

ParameterTypeDescription
element_id *string
gate_type *string
acceptance_criteria_statusarray
affected_elementsarrayOther element IDs affected by this change.
consistency_check_resultobjectResult from check_consistency tool.
gate_idstringConfigured approval gate. Required when multiple gates share gate_type.
summarystringSummary 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.

ParameterTypeDescription
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.

ParameterTypeDescription
element_id *string
review_id *integer
approver_rolestringProject role required by the workflow, e.g. product_owner or architect; separate from human/agent.
checksobjectResults of checks executed by the caller. All checks required by the approval gate must be true.
commentstring
reviewer_rolestringRole 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).

ParameterTypeDescription
element_id *string
reason *string
review_id *integer
approver_rolestringProject role required by the workflow, e.g. product_owner or architect; separate from human/agent.
requested_changesarray
reviewer_rolestringRole 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.

ParameterTypeDescription
element_id *stringElement ID whose status should change (e.g., "FR-001").
new_status *stringTarget lifecycle state. Must be reachable from the current state per the lifecycle diagram.
dependency_evidenceobjectCaller-verified evidence for dependencies not established by the SRS: completed external IDs and IDs with an available interface contract.
reasonstringOptional 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.

ParameterTypeDescription
element_id *string
commentstringOptional rationale appended to the commit message.
dependency_evidenceobjectCaller-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.

ParameterTypeDescription
element_id *string
reason *string