agentic-sdlc-mcp 1.8.0 → 1.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +357 -320
- package/README_zh.md +441 -0
- package/dist/assessment/acceptance.d.ts +155 -0
- package/dist/assessment/acceptance.d.ts.map +1 -0
- package/dist/assessment/acceptance.js +278 -0
- package/dist/assessment/acceptance.js.map +1 -0
- package/dist/assessment/continuity.d.ts +266 -0
- package/dist/assessment/continuity.d.ts.map +1 -0
- package/dist/assessment/continuity.js +246 -0
- package/dist/assessment/continuity.js.map +1 -0
- package/dist/assessment/current-check.d.ts +36 -0
- package/dist/assessment/current-check.d.ts.map +1 -0
- package/dist/assessment/current-check.js +303 -0
- package/dist/assessment/current-check.js.map +1 -0
- package/dist/assessment/github-session.d.ts +15 -0
- package/dist/assessment/github-session.d.ts.map +1 -0
- package/dist/assessment/github-session.js +157 -0
- package/dist/assessment/github-session.js.map +1 -0
- package/dist/assessment/pr-assessment.d.ts +168 -0
- package/dist/assessment/pr-assessment.d.ts.map +1 -0
- package/dist/assessment/pr-assessment.js +139 -0
- package/dist/assessment/pr-assessment.js.map +1 -0
- package/dist/briefing/work-item-brief.d.ts.map +1 -1
- package/dist/briefing/work-item-brief.js +58 -12
- package/dist/briefing/work-item-brief.js.map +1 -1
- package/dist/catalog.d.ts +4 -0
- package/dist/catalog.d.ts.map +1 -0
- package/dist/catalog.js +17 -0
- package/dist/catalog.js.map +1 -0
- package/dist/cli/arguments.d.ts +14 -0
- package/dist/cli/arguments.d.ts.map +1 -0
- package/dist/cli/arguments.js +62 -0
- package/dist/cli/arguments.js.map +1 -0
- package/dist/cli/doctor.d.ts +28 -0
- package/dist/cli/doctor.d.ts.map +1 -0
- package/dist/cli/doctor.js +56 -0
- package/dist/cli/doctor.js.map +1 -0
- package/dist/cli/github-client.d.ts +4 -0
- package/dist/cli/github-client.d.ts.map +1 -0
- package/dist/cli/github-client.js +11 -0
- package/dist/cli/github-client.js.map +1 -0
- package/dist/cli/run.d.ts +12 -0
- package/dist/cli/run.d.ts.map +1 -0
- package/dist/cli/run.js +204 -0
- package/dist/cli/run.js.map +1 -0
- package/dist/cli.d.ts +3 -0
- package/dist/cli.d.ts.map +1 -0
- package/dist/cli.js +14 -0
- package/dist/cli.js.map +1 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +24 -4
- package/dist/config.js.map +1 -1
- package/dist/contracts/mcp-manifest.d.ts +70 -0
- package/dist/contracts/mcp-manifest.d.ts.map +1 -0
- package/dist/contracts/mcp-manifest.js +571 -0
- package/dist/contracts/mcp-manifest.js.map +1 -0
- package/dist/evaluation/budgets.d.ts +89 -0
- package/dist/evaluation/budgets.d.ts.map +1 -0
- package/dist/evaluation/budgets.js +234 -0
- package/dist/evaluation/budgets.js.map +1 -0
- package/dist/evaluation/faults.d.ts +153 -0
- package/dist/evaluation/faults.d.ts.map +1 -0
- package/dist/evaluation/faults.js +95 -0
- package/dist/evaluation/faults.js.map +1 -0
- package/dist/evaluation/model.d.ts +115 -0
- package/dist/evaluation/model.d.ts.map +1 -0
- package/dist/evaluation/model.js +242 -0
- package/dist/evaluation/model.js.map +1 -0
- package/dist/evaluation/scorer.d.ts +46 -0
- package/dist/evaluation/scorer.d.ts.map +1 -0
- package/dist/evaluation/scorer.js +126 -0
- package/dist/evaluation/scorer.js.map +1 -0
- package/dist/evidence/adapters.d.ts +11 -0
- package/dist/evidence/adapters.d.ts.map +1 -0
- package/dist/evidence/adapters.js +200 -0
- package/dist/evidence/adapters.js.map +1 -0
- package/dist/evidence/budget.d.ts +13 -0
- package/dist/evidence/budget.d.ts.map +1 -0
- package/dist/evidence/budget.js +42 -0
- package/dist/evidence/budget.js.map +1 -0
- package/dist/evidence/model.d.ts +258 -0
- package/dist/evidence/model.d.ts.map +1 -0
- package/dist/evidence/model.js +212 -0
- package/dist/evidence/model.js.map +1 -0
- package/dist/evidence/render.d.ts +4 -0
- package/dist/evidence/render.d.ts.map +1 -0
- package/dist/evidence/render.js +75 -0
- package/dist/evidence/render.js.map +1 -0
- package/dist/evidence/timeout.d.ts +17 -0
- package/dist/evidence/timeout.d.ts.map +1 -0
- package/dist/evidence/timeout.js +71 -0
- package/dist/evidence/timeout.js.map +1 -0
- package/dist/github/client.d.ts +6 -0
- package/dist/github/client.d.ts.map +1 -1
- package/dist/github/client.js +44 -15
- package/dist/github/client.js.map +1 -1
- package/dist/github/codeowners.d.ts +1 -1
- package/dist/github/codeowners.d.ts.map +1 -1
- package/dist/github/codeowners.js +3 -1
- package/dist/github/codeowners.js.map +1 -1
- package/dist/github/context.d.ts.map +1 -1
- package/dist/github/context.js +5 -0
- package/dist/github/context.js.map +1 -1
- package/dist/github/pull-request-evidence.d.ts +9 -3
- package/dist/github/pull-request-evidence.d.ts.map +1 -1
- package/dist/github/pull-request-evidence.js +82 -29
- package/dist/github/pull-request-evidence.js.map +1 -1
- package/dist/github/request-options.d.ts +6 -0
- package/dist/github/request-options.d.ts.map +1 -0
- package/dist/github/request-options.js +4 -0
- package/dist/github/request-options.js.map +1 -0
- package/dist/http-server.d.ts +6 -4
- package/dist/http-server.d.ts.map +1 -1
- package/dist/http-server.js +249 -31
- package/dist/http-server.js.map +1 -1
- package/dist/index.d.ts +1 -11
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +18 -9
- package/dist/index.js.map +1 -1
- package/dist/operations/issue-creation.d.ts +44 -0
- package/dist/operations/issue-creation.d.ts.map +1 -0
- package/dist/operations/issue-creation.js +237 -0
- package/dist/operations/issue-creation.js.map +1 -0
- package/dist/policy/repository-policy-loader.d.ts +1 -1
- package/dist/policy/repository-policy-loader.d.ts.map +1 -1
- package/dist/policy/repository-policy-loader.js +5 -3
- package/dist/policy/repository-policy-loader.js.map +1 -1
- package/dist/policy/repository-policy.d.ts +7 -7
- package/dist/rendering/markdown.d.ts +1 -0
- package/dist/rendering/markdown.d.ts.map +1 -1
- package/dist/rendering/markdown.js +15 -0
- package/dist/rendering/markdown.js.map +1 -1
- package/dist/resources/index.d.ts +1 -1
- package/dist/resources/index.d.ts.map +1 -1
- package/dist/resources/index.js +36 -20
- package/dist/resources/index.js.map +1 -1
- package/dist/review/pull-request-review.d.ts +3 -1
- package/dist/review/pull-request-review.d.ts.map +1 -1
- package/dist/review/pull-request-review.js +911 -108
- package/dist/review/pull-request-review.js.map +1 -1
- package/dist/security/prompt-injection-patterns.d.ts +9 -0
- package/dist/security/prompt-injection-patterns.d.ts.map +1 -0
- package/dist/security/prompt-injection-patterns.js +120 -0
- package/dist/security/prompt-injection-patterns.js.map +1 -0
- package/dist/security/prompt-injection.d.ts +20 -0
- package/dist/security/prompt-injection.d.ts.map +1 -0
- package/dist/security/prompt-injection.js +25 -0
- package/dist/security/prompt-injection.js.map +1 -0
- package/dist/security/secret-scanner-evidence.d.ts +23 -1
- package/dist/security/secret-scanner-evidence.d.ts.map +1 -1
- package/dist/security/secret-scanner-evidence.js +380 -40
- package/dist/security/secret-scanner-evidence.js.map +1 -1
- package/dist/security/trust-boundary.d.ts +24 -0
- package/dist/security/trust-boundary.d.ts.map +1 -0
- package/dist/security/trust-boundary.js +29 -0
- package/dist/security/trust-boundary.js.map +1 -0
- package/dist/server.d.ts +1 -1
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +3 -1
- package/dist/server.js.map +1 -1
- package/dist/stdio-server.d.ts +5 -0
- package/dist/stdio-server.d.ts.map +1 -0
- package/dist/stdio-server.js +7 -0
- package/dist/stdio-server.js.map +1 -0
- package/dist/tools/agent-handoff.d.ts +164 -6
- package/dist/tools/agent-handoff.d.ts.map +1 -1
- package/dist/tools/agent-handoff.js +491 -24
- package/dist/tools/agent-handoff.js.map +1 -1
- package/dist/tools/branch-protection-status.d.ts +19 -6
- package/dist/tools/branch-protection-status.d.ts.map +1 -1
- package/dist/tools/branch-protection-status.js +50 -20
- package/dist/tools/branch-protection-status.js.map +1 -1
- package/dist/tools/create-issue-set.d.ts +72 -3
- package/dist/tools/create-issue-set.d.ts.map +1 -1
- package/dist/tools/create-issue-set.js +90 -79
- package/dist/tools/create-issue-set.js.map +1 -1
- package/dist/tools/create-pr-summary.d.ts +67 -2
- package/dist/tools/create-pr-summary.d.ts.map +1 -1
- package/dist/tools/create-pr-summary.js +30 -7
- package/dist/tools/create-pr-summary.js.map +1 -1
- package/dist/tools/plan-from-context.d.ts +15 -9
- package/dist/tools/plan-from-context.d.ts.map +1 -1
- package/dist/tools/plan-from-context.js +21 -16
- package/dist/tools/plan-from-context.js.map +1 -1
- package/dist/tools/prepare-work-item.d.ts +28 -22
- package/dist/tools/prepare-work-item.d.ts.map +1 -1
- package/dist/tools/prepare-work-item.js +5 -2
- package/dist/tools/prepare-work-item.js.map +1 -1
- package/dist/tools/quality-gate-status.d.ts +27 -21
- package/dist/tools/quality-gate-status.d.ts.map +1 -1
- package/dist/tools/quality-gate-status.js +69 -6
- package/dist/tools/quality-gate-status.js.map +1 -1
- package/dist/tools/release-readiness.d.ts +20 -8
- package/dist/tools/release-readiness.d.ts.map +1 -1
- package/dist/tools/release-readiness.js +28 -9
- package/dist/tools/release-readiness.js.map +1 -1
- package/dist/tools/repo-context.d.ts +27 -6
- package/dist/tools/repo-context.d.ts.map +1 -1
- package/dist/tools/repo-context.js +57 -21
- package/dist/tools/repo-context.js.map +1 -1
- package/dist/tools/review-pr.d.ts +34 -28
- package/dist/tools/review-pr.d.ts.map +1 -1
- package/dist/tools/review-pr.js +9 -6
- package/dist/tools/review-pr.js.map +1 -1
- package/dist/tools/sdlc-evidence-packet.d.ts +57 -0
- package/dist/tools/sdlc-evidence-packet.d.ts.map +1 -0
- package/dist/tools/sdlc-evidence-packet.js +636 -0
- package/dist/tools/sdlc-evidence-packet.js.map +1 -0
- package/dist/tools/security-triage.d.ts +21 -5
- package/dist/tools/security-triage.d.ts.map +1 -1
- package/dist/tools/security-triage.js +113 -26
- package/dist/tools/security-triage.js.map +1 -1
- package/dist/tools/workflow-permissions-audit.d.ts +10 -4
- package/dist/tools/workflow-permissions-audit.d.ts.map +1 -1
- package/dist/tools/workflow-permissions-audit.js +5 -2
- package/dist/tools/workflow-permissions-audit.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.d.ts.map +1 -1
- package/dist/version.js +1 -1
- package/dist/version.js.map +1 -1
- package/docs/client-recipes.md +153 -0
- package/docs/evidence-continuity.md +100 -0
- package/docs/pr-workflows.md +136 -0
- package/docs/user-pilot.md +80 -0
- package/evaluation/schema.json +224 -0
- package/package.json +41 -8
- package/server.json +2 -2
- package/skills/pr-evidence-review/SKILL.md +24 -0
package/README.md
CHANGED
|
@@ -1,154 +1,152 @@
|
|
|
1
1
|
<p align="center">
|
|
2
|
-
<img src="assets/logo.svg" alt="
|
|
2
|
+
<img src="assets/logo.svg" alt="agentic-sdlc-mcp logo" width="120">
|
|
3
3
|
</p>
|
|
4
4
|
|
|
5
|
-
<h1 align="center">
|
|
5
|
+
<h1 align="center">agentic-sdlc-mcp</h1>
|
|
6
6
|
|
|
7
7
|
<p align="center">
|
|
8
|
-
<
|
|
8
|
+
<strong>Governance and evidence controls for AI coding agents working in real GitHub repositories.</strong>
|
|
9
|
+
</p>
|
|
10
|
+
|
|
11
|
+
<p align="center">
|
|
12
|
+
Let Claude Code, Cursor, and other Model Context Protocol (MCP) clients work with repository context, review gates, security evidence, and human approval points.
|
|
13
|
+
</p>
|
|
14
|
+
|
|
15
|
+
<p align="center">
|
|
16
|
+
<a href="README_zh.md">中文</a> ·
|
|
17
|
+
<a href="https://www.npmjs.com/package/agentic-sdlc-mcp">npm</a> ·
|
|
18
|
+
<a href="https://registry.modelcontextprotocol.io/v0.1/servers?search=io.github.SakuraCianna%2Fagentic-sdlc-mcp">MCP Registry</a> ·
|
|
19
|
+
<a href="docs/ROADMAP.md">Roadmap</a>
|
|
9
20
|
</p>
|
|
10
21
|
|
|
11
22
|
<p align="center">
|
|
12
23
|
<a href="https://www.npmjs.com/package/agentic-sdlc-mcp"><img src="https://img.shields.io/npm/v/agentic-sdlc-mcp.svg?style=flat-square&color=blue" alt="npm version"></a>
|
|
24
|
+
<a href="https://www.npmjs.com/package/agentic-sdlc-mcp"><img src="https://img.shields.io/npm/dm/agentic-sdlc-mcp.svg?style=flat-square&color=green" alt="npm downloads"></a>
|
|
13
25
|
<a href="https://github.com/SakuraCianna/agentic-sdlc-mcp/actions/workflows/ci.yml"><img src="https://img.shields.io/github/actions/workflow/status/SakuraCianna/agentic-sdlc-mcp/ci.yml?branch=main&style=flat-square" alt="CI status"></a>
|
|
14
|
-
<
|
|
15
|
-
<a href="
|
|
16
|
-
<a href="https://modelcontextprotocol.io"><img src="https://img.shields.io/badge/MCP-Compatible-blue?style=flat-square" alt="MCP Compatible"></a>
|
|
26
|
+
<img src="https://img.shields.io/badge/Node.js-%3E%3D22-339933?style=flat-square&logo=node.js&logoColor=white" alt="Node.js 22 or newer">
|
|
27
|
+
<a href="LICENSE"><img src="https://img.shields.io/npm/l/agentic-sdlc-mcp.svg?style=flat-square&color=orange" alt="MIT license"></a>
|
|
17
28
|
</p>
|
|
18
29
|
|
|
19
|
-
|
|
30
|
+
`agentic-sdlc-mcp` is a software development lifecycle (SDLC) governance layer for teams that already let AI coding agents change production repositories. It turns GitHub context, policy, checks, reviews, security alerts, and release signals into 13 workflow-level MCP tools. Twelve tools are read-only. The only GitHub write tool previews changes by default.
|
|
20
31
|
|
|
21
|
-
|
|
32
|
+
Version **1.11.0** also provides `agentic-sdlc`, a read-only CLI for PR assessment, portable evidence, snapshot comparisons, and acceptance traceability. `agentic-sdlc-mcp` remains the MCP server entry point. Verify the exact package and [release metadata](https://github.com/SakuraCianna/agentic-sdlc-mcp/releases/tag/v1.11.0) when installing this version.
|
|
22
33
|
|
|
23
|
-
|
|
34
|
+
## What changes with this MCP
|
|
24
35
|
|
|
25
|
-
|
|
36
|
+
AI coding agents can create code and pull requests without understanding every repository rule. This server gives the agent bounded context and gives reviewers explicit evidence gaps instead of another free-form summary.
|
|
37
|
+
|
|
38
|
+
| Concern | Without this MCP | With `agentic-sdlc-mcp` |
|
|
39
|
+
|---|---|---|
|
|
40
|
+
| Repository context | The agent starts from the prompt and guesses project conventions | `repo_context` reads bounded metadata, scripts, policy, issues, pull requests, and agent instructions |
|
|
41
|
+
| High-risk work | Authentication, payment, migration, and workflow changes receive a generic plan | `prepare_work_item` adds risk reasons, defensive requirements, negative scenarios, rollback, and observability |
|
|
42
|
+
| Issue planning | A human reformats the plan into GitHub work items | `plan_from_context` creates structured drafts and `create_issue_set` previews the exact write |
|
|
43
|
+
| Pull request gates | A green continuous integration (CI) badge may be treated as sufficient evidence | `quality_gate_status` separates checks, reviews, ownership, protection, labels, and missing evidence |
|
|
44
|
+
| Secret risk | Scanner names or keyword matches may be accepted without provenance | PR review separates trusted scanner evidence, bounded patch heuristics, and unverified gaps |
|
|
45
|
+
| Release and handoff | Readiness depends on free-form status summaries | Release and handoff tools preserve blockers, policy obligations, evidence warnings, and human approval points |
|
|
46
|
+
|
|
47
|
+
This server does not write code, merge pull requests, force-push, create releases, deploy software, or replace human security review.
|
|
48
|
+
|
|
49
|
+
## How it fits into a production agent workflow
|
|
50
|
+
|
|
51
|
+
The MCP sits between an AI coding agent and GitHub evidence. Repository changes still happen through the agent's normal development environment, and high-impact decisions remain with your team.
|
|
26
52
|
|
|
27
|
-
### The Agentic SDLC Loop
|
|
28
53
|
```mermaid
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
54
|
+
flowchart LR
|
|
55
|
+
Policy["Engineering policy<br>and repository rules"] --> MCP["agentic-sdlc-mcp"]
|
|
56
|
+
Agent["AI coding agent<br>Claude Code · Cursor · MCP client"] --> MCP
|
|
57
|
+
MCP --> GitHub["GitHub API evidence"]
|
|
58
|
+
GitHub --> MCP
|
|
59
|
+
MCP --> Reports["Briefs · plans · gates<br>reviews · release reports"]
|
|
60
|
+
Reports --> Agent
|
|
61
|
+
Reports --> Human["Human review and approval"]
|
|
62
|
+
Agent -. "Code · commits · pull requests" .-> GitHub
|
|
63
|
+
Human -. "Merge · release · deploy" .-> GitHub
|
|
37
64
|
```
|
|
38
65
|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
## 🛠️ Tools Categorization
|
|
66
|
+
## Where it helps
|
|
42
67
|
|
|
43
|
-
|
|
68
|
+
Use the tools as decision support at the points where an autonomous agent would otherwise guess or rely on stale prose.
|
|
44
69
|
|
|
45
|
-
|
|
|
70
|
+
| Production scenario | Recommended tools | Decision artifact |
|
|
46
71
|
|---|---|---|
|
|
47
|
-
|
|
|
48
|
-
|
|
|
49
|
-
|
|
|
50
|
-
|
|
|
51
|
-
|
|
|
72
|
+
| Onboard an agent into an unfamiliar repository | `repo_context` | Repository briefing with scripts, workflows, policy, open work, and known gaps |
|
|
73
|
+
| Turn a feature, bug, or security goal into reviewable work | `plan_from_context` → `create_issue_set` | Work-type-aware plan, issue drafts, and preview-first GitHub issues |
|
|
74
|
+
| Prepare auth, payment, migration, or infrastructure work | `prepare_work_item` | Risk-aware brief with defensive requirements, negative tests, rollback, and observability |
|
|
75
|
+
| Detect dynamic credential construction in a patch | `review_pr_against_standard` | Patch-local findings for concatenation, interpolation, decoding, aliases, and auth-header sinks |
|
|
76
|
+
| Decide whether a pull request is ready for human review | `create_pr_summary` → `quality_gate_status` → `review_pr_against_standard` | Diff summary, merge-gate evidence, findings, blockers, and next actions |
|
|
77
|
+
| Audit repository governance | `branch_protection_status` → `workflow_permissions_audit` | Branch/ruleset evidence and GitHub Actions least-privilege findings |
|
|
78
|
+
| Assess release readiness | `security_triage` → `release_readiness_check` | Security-alert summary, CI evidence, release blockers, changelog status, and rollback requirements |
|
|
79
|
+
| Transfer work to another agent | `agent_handoff_packet` | Bounded continuation packet that labels caller assertions and evidence warnings |
|
|
80
|
+
| Archive a decision snapshot | `sdlc_evidence_packet` | Versioned Issue, PR, or release evidence with provenance, freshness, completeness, and a stable content digest |
|
|
52
81
|
|
|
53
|
-
|
|
82
|
+
## Review a PR without an agent
|
|
54
83
|
|
|
55
|
-
|
|
56
|
-
```mermaid
|
|
57
|
-
sequenceDiagram
|
|
58
|
-
autonumber
|
|
59
|
-
actor Developer as Human Owner
|
|
60
|
-
participant Agent as AI Coding Agent (Cursor/Claude)
|
|
61
|
-
participant MCP as agentic-sdlc-mcp (Control Plane)
|
|
62
|
-
participant GitHub as GitHub API
|
|
63
|
-
participant npm as npm Registry
|
|
64
|
-
|
|
65
|
-
Developer->>Agent: "Create a feature for repo X"
|
|
66
|
-
Agent->>MCP: Call repo_context / plan_from_context
|
|
67
|
-
MCP->>GitHub: Fetch repository states & file tree
|
|
68
|
-
GitHub-->>MCP: Repo Metadata & Files
|
|
69
|
-
MCP-->>Agent: SDLC Plan & context brief
|
|
70
|
-
Note over Agent: Agent develops code...
|
|
71
|
-
Agent->>MCP: Call review_pr_against_standard / quality_gate_status
|
|
72
|
-
MCP->>GitHub: Audit pull request, CODEOWNERS, & checks status
|
|
73
|
-
GitHub-->>MCP: PR approvals, CI check status
|
|
74
|
-
MCP-->>Agent: Verification report & findings
|
|
75
|
-
Note over Developer,Agent: Human Review Gate: Merge PR
|
|
76
|
-
Developer->>MCP: Trigger gh release create v1.3.0
|
|
77
|
-
MCP->>GitHub: Create Release Tag
|
|
78
|
-
GitHub->>GitHub: Trigger publish.yml Workflow (OIDC)
|
|
79
|
-
GitHub->>npm: Publish package (Signed with provenance)
|
|
80
|
-
```
|
|
84
|
+
Collect a human-readable decision and a JSON snapshot with one command. The assessment combines existing gate and rule-based review evidence, binds it to the PR head/base and policy digest, and preserves blockers, missing evidence, request counts, and collection duration.
|
|
81
85
|
|
|
82
|
-
|
|
86
|
+
Build from a reviewed checkout with Node.js 22 or newer:
|
|
83
87
|
|
|
84
|
-
|
|
88
|
+
```powershell
|
|
89
|
+
npm ci
|
|
90
|
+
npm run build
|
|
91
|
+
node dist/cli.js doctor --repo acme/widget
|
|
92
|
+
node dist/cli.js assess-pr --repo acme/widget --pr 42 --output artifacts/pr-42-first.json --summary artifacts/pr-42-first.md
|
|
93
|
+
```
|
|
85
94
|
|
|
86
|
-
|
|
87
|
-
1. **Node.js >= 24** installed on your system.
|
|
88
|
-
2. **GitHub Personal Access Token (PAT)**:
|
|
89
|
-
* **Classic PAT scopes**: `repo` plus `security_events`; add `read:org` when organization/team metadata must be resolved.
|
|
90
|
-
* **Fine-grained PAT repository permissions (read)**: Contents, Pull requests, Issues, Checks, Commit statuses, Administration (classic branch protection), Code scanning alerts, Dependabot alerts, and Secret scanning alerts. Metadata read is automatically included and is sufficient for repository rulesets.
|
|
91
|
-
* GraphQL review decisions and linked-issue queries reuse the underlying Pull requests and Issues permissions; GitHub has no separate "GraphQL read" permission switch.
|
|
92
|
-
* Grant **Issues: write** only when you intend to call `create_issue_set` with `dryRun: false`; the v1.6 gate/review tools do not need write access.
|
|
93
|
-
* Note: Make sure to verify token permissions against [GitHub REST API Documentation](https://docs.github.com/en/rest) if security endpoints fail.
|
|
95
|
+
Inject `GITHUB_TOKEN` through your process or secret manager before online collection. The CLI reads environment variables only; it does not load a home configuration or `.env`. `doctor` is offline unless `--online` is supplied, and missing configuration returns exit code 2. Once the package is installed, `agentic-sdlc` runs the same CLI as `node dist/cli.js`.
|
|
94
96
|
|
|
95
|
-
|
|
97
|
+
| Command | Result |
|
|
98
|
+
|---|---|
|
|
99
|
+
| `doctor --repo acme/widget --online --json` | Read-only endpoint diagnostics; no credential values in the report |
|
|
100
|
+
| `assess-pr --repo acme/widget --pr 42 --standard strict --json` | `ready_for_review`, `blocked`, or `needs_evidence`, with a versioned packet |
|
|
101
|
+
| `evidence --repo acme/widget --subject pr --number 42 --output artifacts/pr-42-evidence.json` | Existing Issue, PR, or release evidence packet; use `--subject issue --number N` or `--subject release --ref REF` for other subjects |
|
|
102
|
+
| `diff --previous artifacts/pr-42-first.json --current artifacts/pr-42-next.json --json` | Added, removed, changed, unchanged, and invalidated evidence; both files must already exist |
|
|
103
|
+
| `trace --packet artifacts/pr-42-evidence.json --acceptance acceptance.md --source openspec --json` | Explicit checklist/numbered conditions linked to supplied evidence |
|
|
96
104
|
|
|
97
|
-
|
|
105
|
+
`assess-pr` and `evidence` also accept `--previous`, `--acceptance`, and optional `--mappings` for one collection plus local analysis. Mapping files use the strict array schema described in [evidence continuity](docs/evidence-continuity.md). `--json` changes stdout; `--output` always creates a JSON file. Existing files are never overwritten. `--summary` creates a new Markdown file, or appends when it points to GitHub Actions' exact `GITHUB_STEP_SUMMARY` path.
|
|
98
106
|
|
|
99
|
-
|
|
100
|
-
You do not need to download or clone the repository. Run the server directly inside your MCP client environment:
|
|
101
|
-
```bash
|
|
102
|
-
npx -y agentic-sdlc-mcp
|
|
103
|
-
```
|
|
107
|
+
Assessments are advisory by default: a completed report returns 0 even when its decision is blocked or needs evidence. `assess-pr --enforce` returns 1 for `blocked`, 2 for `needs_evidence`, and 0 for `ready_for_review`. Configuration/input/unavailable-source errors return 2; cancellation returns 130. A successful `diff` or `trace` command means the analysis completed, not that the evidence or acceptance conditions passed.
|
|
104
108
|
|
|
105
|
-
|
|
106
|
-
Or install the package globally on your system:
|
|
107
|
-
```bash
|
|
108
|
-
npm install -g agentic-sdlc-mcp
|
|
109
|
-
# Start using the global command
|
|
110
|
-
agentic-sdlc-mcp
|
|
111
|
-
```
|
|
109
|
+
Online collection defaults to a 30-second timeout and 120-request budget; supported overrides are `--timeout-ms` from 1 to 120000 and `--max-requests` from 2 to 500. `doctor` has its own bounded probes and accepts the timeout option. File inputs and serialized outputs are limited to 1 MiB.
|
|
112
110
|
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
git clone https://github.com/SakuraCianna/agentic-sdlc-mcp.git
|
|
117
|
-
cd agentic-sdlc-mcp
|
|
118
|
-
npm install
|
|
119
|
-
npm run build
|
|
120
|
-
node dist/index.js
|
|
121
|
-
```
|
|
111
|
+
An unchanged snapshot never inherits an earlier verification. Head/base, policy, producer version, freshness, and completeness changes can require recollection. Checked boxes, agent claims, and ordinary green CI do not prove business acceptance; the CLI has no trusted acceptance producer configured by default. Neither a ready report nor `--enforce` approves, merges, or deploys a PR.
|
|
112
|
+
|
|
113
|
+
For MCP review sessions, set `SDLC_CONFIG_MODE=envonly` to avoid home/`.env` configuration and `SDLC_READ_ONLY=true` to reject live Issue creation while retaining previews. Use a token restricted to the intended repositories and read permissions. Client configuration and the portable review skill are in [client recipes](docs/client-recipes.md); the unexecuted small-sample validation plan is in [user pilot](docs/user-pilot.md).
|
|
122
114
|
|
|
123
|
-
|
|
115
|
+
## Install from npm
|
|
124
116
|
|
|
125
|
-
|
|
117
|
+
You need Node.js 22 or newer. Node 22 and 24 are tested in GitHub Actions. Run the published package directly from npm:
|
|
126
118
|
|
|
127
119
|
```powershell
|
|
128
|
-
|
|
129
|
-
$env:PORT = "3000"
|
|
130
|
-
node dist/index.js
|
|
120
|
+
npx -y agentic-sdlc-mcp
|
|
131
121
|
```
|
|
132
122
|
|
|
133
|
-
|
|
123
|
+
For a global CLI installation:
|
|
124
|
+
|
|
125
|
+
```powershell
|
|
126
|
+
npm install -g agentic-sdlc-mcp
|
|
127
|
+
agentic-sdlc-mcp
|
|
128
|
+
```
|
|
134
129
|
|
|
135
|
-
|
|
130
|
+
The default transport is stdio. Most MCP clients should start the package for you instead of running it in a separate terminal.
|
|
136
131
|
|
|
137
|
-
|
|
132
|
+
These npm commands resolve published releases. Pin `agentic-sdlc-mcp@1.11.0` to reproduce this version, verify its release/package metadata, and restart any existing MCP connection after an upgrade.
|
|
138
133
|
|
|
139
|
-
##
|
|
134
|
+
## Let a coding agent set it up
|
|
140
135
|
|
|
141
|
-
|
|
136
|
+
Paste this prompt into Codex, Claude Code, or another coding agent:
|
|
142
137
|
|
|
143
|
-
|
|
138
|
+
```text
|
|
139
|
+
Use npm install -g agentic-sdlc-mcp to install and configure this MCP globally. Repository: https://github.com/SakuraCianna/agentic-sdlc-mcp
|
|
140
|
+
Configure GITHUB_TOKEN and optional repository defaults through the MCP client's secret or environment configuration. On a trusted single-user machine, you may instead run agentic-sdlc-mcp configure or write them to ~/.agentic-sdlc-mcp.json. Never expose the token in chat, logs, or repository files; ask me for missing non-secret details.
|
|
141
|
+
Then verify the connection with the read-only repo_context tool and summarize its capabilities, required GitHub permissions, and safety boundaries.
|
|
142
|
+
```
|
|
144
143
|
|
|
145
|
-
|
|
144
|
+
Review every command and configuration change before approving it. Node.js 22 or newer is required.
|
|
146
145
|
|
|
147
|
-
|
|
146
|
+
## Connect an MCP client
|
|
148
147
|
|
|
149
|
-
Add
|
|
148
|
+
Add the server to Claude Desktop, Cursor, Windsurf, or another MCP client. Inject the GitHub token through the client's secret or environment configuration.
|
|
150
149
|
|
|
151
|
-
### Claude Desktop / Cursor / Windsurf (Using npm package)
|
|
152
150
|
```json
|
|
153
151
|
{
|
|
154
152
|
"mcpServers": {
|
|
@@ -156,249 +154,288 @@ Add this server configuration to your MCP client setting files (e.g., `claude_de
|
|
|
156
154
|
"command": "npx",
|
|
157
155
|
"args": ["-y", "agentic-sdlc-mcp"],
|
|
158
156
|
"env": {
|
|
159
|
-
"GITHUB_TOKEN": "
|
|
160
|
-
"GITHUB_OWNER": "
|
|
161
|
-
"GITHUB_REPO": "
|
|
157
|
+
"GITHUB_TOKEN": "your_github_token_here",
|
|
158
|
+
"GITHUB_OWNER": "your_organization",
|
|
159
|
+
"GITHUB_REPO": "your_repository"
|
|
162
160
|
}
|
|
163
161
|
}
|
|
164
162
|
}
|
|
165
163
|
}
|
|
166
164
|
```
|
|
167
165
|
|
|
168
|
-
|
|
166
|
+
Some Windows MCP clients require `npx` through `cmd`:
|
|
167
|
+
|
|
168
|
+
```json
|
|
169
|
+
{
|
|
170
|
+
"command": "cmd",
|
|
171
|
+
"args": ["/c", "npx", "-y", "agentic-sdlc-mcp"]
|
|
172
|
+
}
|
|
173
|
+
```
|
|
174
|
+
|
|
175
|
+
`GITHUB_OWNER` and `GITHUB_REPO` are optional defaults. Tool calls can provide repository coordinates explicitly. Use the [GitHub permission matrix](#github-permissions) to grant only the capabilities you enable.
|
|
176
|
+
|
|
177
|
+
<details>
|
|
178
|
+
<summary>Local interactive configuration</summary>
|
|
179
|
+
|
|
180
|
+
```powershell
|
|
181
|
+
npx -y agentic-sdlc-mcp configure
|
|
182
|
+
```
|
|
183
|
+
|
|
184
|
+
This compatibility path stores configuration in `~/.agentic-sdlc-mcp.json`, including the GitHub token. Use it only on a trusted, single-user workstation. For production-focused setups, prefer MCP client secret injection or process environment variables.
|
|
185
|
+
|
|
186
|
+
</details>
|
|
187
|
+
|
|
188
|
+
## Verify the connection
|
|
189
|
+
|
|
190
|
+
Start with a read-only call so you can inspect the repository boundary before granting write access:
|
|
191
|
+
|
|
192
|
+
```text
|
|
193
|
+
Use agentic-sdlc-mcp to run repo_context for the configured repository. Include package scripts, workflows, governance, and repository policy. Do not create issues or modify GitHub.
|
|
194
|
+
```
|
|
195
|
+
|
|
196
|
+
Then validate the write boundary without creating anything:
|
|
197
|
+
|
|
198
|
+
```text
|
|
199
|
+
Generate a feature plan and pass its issue drafts to create_issue_set with dryRun: true. Show the target repository, titles, labels, body summaries, and warnings. Do not write to GitHub.
|
|
200
|
+
```
|
|
201
|
+
|
|
202
|
+
See the [client-neutral smoke test](docs/ai-coding-agent-smoke-test.md) for a five-minute verification path.
|
|
203
|
+
|
|
204
|
+
## Tools
|
|
205
|
+
|
|
206
|
+
The server registers 13 workflow-level tools. MCP clients receive the full input and output schemas at runtime; this catalog explains when to use each tool and how to interpret its result.
|
|
207
|
+
|
|
208
|
+
| Tool | Use it when | Main result | Access |
|
|
209
|
+
|---|---|---|---|
|
|
210
|
+
| `repo_context` | An agent needs repository facts before planning | Bounded briefing with metadata, README/package summaries, scripts, workflows, governance, policy, issues, and PRs | Read-only |
|
|
211
|
+
| `plan_from_context` | A goal needs an SDLC plan and issue drafts | Work-type-aware plan, confidence, clarification signal, and three to five structured issue drafts | Read-only |
|
|
212
|
+
| `prepare_work_item` | An agent is about to implement a GitHub Issue | Risk profile, sourced acceptance criteria, defensive requirements, related evidence, rollback, and handoff prompt | Read-only |
|
|
213
|
+
| `create_issue_set` | A reviewed plan should become GitHub Issues | Exact dry-run preview or partial-success-aware live creation result | Preview-first write |
|
|
214
|
+
| `create_pr_summary` | A pull request needs a reviewable overview | Change summary, affected files, test signals, risks, checklist, and release-note draft | Read-only |
|
|
215
|
+
| `quality_gate_status` | A team needs real merge-gate evidence | `passing`, `failing`, `pending`, `needs_review`, `policy_gap`, or `no_evidence` with blockers and gaps | Read-only |
|
|
216
|
+
| `review_pr_against_standard` | A pull request needs SDLC and security review | Structured findings, release risk, test evidence, ownership gaps, and scanner provenance | Read-only |
|
|
217
|
+
| `branch_protection_status` | A team needs branch and ruleset visibility | Required reviews, status checks, force-push and deletion settings, and verification gaps | Read-only |
|
|
218
|
+
| `workflow_permissions_audit` | GitHub Actions token permissions need review | Top-level and job-level permission findings with least-privilege guidance | Read-only |
|
|
219
|
+
| `security_triage` | Release or incident work needs GitHub security alerts | Code scanning, Dependabot, and secret scanning triage | Read-only |
|
|
220
|
+
| `release_readiness_check` | A human is deciding whether to publish | CI status, blocking issues/labels, changelog and rollback evidence, blockers, and next actions | Read-only |
|
|
221
|
+
| `agent_handoff_packet` | Another agent must continue the work | Compact issue/PR context, policy obligations, caller assertions, warnings, and ordered next steps | Read-only |
|
|
222
|
+
| `sdlc_evidence_packet` | A workflow decision needs a portable evidence snapshot | Versioned Issue, PR, or release packet with verified/unverified state, freshness, completeness, provenance, limitations, and digest | Read-only |
|
|
223
|
+
|
|
224
|
+
<details>
|
|
225
|
+
<summary>Context and planning details</summary>
|
|
226
|
+
|
|
227
|
+
- **`repo_context`**: Defaults to a bounded README summary. Opt in to package scripts, workflow names, agent instructions, governance, validated `.agentic-sdlc.yml`, and recent open work. Item and character limits are explicit, and missing sources produce degraded context rather than invented facts.
|
|
228
|
+
- **`plan_from_context`**: Accepts `docs`, `feature`, `bugfix`, `refactor`, `security`, `release`, or `infra`. If omitted, the tool returns its inferred work type, confidence, reasoning, and `needsClarification`. Repository policy can add required checks and protected-path obligations, but an explicit caller work type wins.
|
|
229
|
+
- **`prepare_work_item`**: Reads bounded Issue/comment evidence, confirmed root scripts, repository policy, milestone context, and optional related files, official Issue relationships, and recent PR history. It separates Issue-authored criteria from derived requirements. Deep evidence paths expose request budgets and incomplete-source warnings. Its `riskProfile` estimates implementation-planning controls; it is not proof of a vulnerability or leaked credential. Ambiguous LLM token-budget and non-credential "secret" wording require explicit credential context before entering the secrets domain.
|
|
230
|
+
|
|
231
|
+
</details>
|
|
232
|
+
|
|
233
|
+
<details>
|
|
234
|
+
<summary>Work tracking details</summary>
|
|
235
|
+
|
|
236
|
+
- **`create_issue_set`**: Accepts `plan_from_context.issueDrafts` directly. `dryRun` defaults to `true` and does not call a GitHub write API. A live batch requires `dryRun: false`, preserves successful Issue URLs, and returns safe per-item failures instead of hiding partial completion.
|
|
237
|
+
|
|
238
|
+
Advanced preview matching and bounded recovery use optional request metadata at `params._meta["io.github.SakuraCianna/agentic-sdlc-mcp/issue-recovery"]`, with `idempotencyKey` and/or `previewDigest`. They are not tool arguments; the existing argument schema is unchanged and same-named extra argument fields do not enable recovery. Clients that cannot attach request metadata should use the default preview and basic reports, and must not assume automatic idempotent retries. See the [JSON-RPC example and recovery limits](docs/pr-workflows.md#issue-preview-and-recovery-through-mcp). Metadata and a matching digest do not authorize a write.
|
|
239
|
+
|
|
240
|
+
</details>
|
|
241
|
+
|
|
242
|
+
<details>
|
|
243
|
+
<summary>Pull request evidence details</summary>
|
|
244
|
+
|
|
245
|
+
- **`create_pr_summary`**: Caps file evidence and reports truncation. Documentation-only changes receive document validation guidance instead of a false missing-code-tests warning.
|
|
246
|
+
- **`quality_gate_status`**: In PR mode, combines checks, commit statuses, reviews, CODEOWNERS routing, draft and merge state, classic branch protection, rulesets, blocking labels, linked Issues, and base-SHA repository policy. Permission failures remain visible as degraded or unverified evidence.
|
|
247
|
+
- **`review_pr_against_standard`**: Supports `basic`, `strict`, and `security-focused` review. It trusts Gitleaks or TruffleHog as primary passing evidence only when the check, workflow, PR head SHA, base workflow job, scanner action, and immutable action SHA can be linked. Internal provenance binds each signal to its exact base workflow and static configuration dependencies without changing the public MCP output schema. Unrelated workflow changes do not invalidate the signal; changes to its workflow (including a previous rename path), Gitleaks root/default or `GITLEAKS_CONFIG` path, or TruffleHog `extra_args --config` path invalidate only affected scanners. Dynamic, ambiguous, absolute, traversing, or otherwise unbounded configuration remains fail-closed. Its dynamic secret construction scanner is bounded, patch-local analysis, not whole-program data flow or proof that a repository is secret-free. Operators and quantifiers that occur only inside credential-detection regex literals are not treated as runtime credential construction; dynamically assembled patterns and rules remain in scope regardless of their names.
|
|
248
|
+
|
|
249
|
+
</details>
|
|
169
250
|
|
|
170
|
-
|
|
251
|
+
<details>
|
|
252
|
+
<summary>Governance and release details</summary>
|
|
171
253
|
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
254
|
+
- **`branch_protection_status`**: Reads classic protection and repository rulesets. Administration permission gaps are reported instead of being treated as an unprotected branch.
|
|
255
|
+
- **`workflow_permissions_audit`**: Reads `.github/workflows/*.yml` and evaluates repository and job-level `permissions` declarations. It does not edit workflow files or repository settings.
|
|
256
|
+
- **`security_triage`**: Reads Code Scanning, Dependabot, and Secret Scanning alerts. Availability depends on repository features and token permissions.
|
|
257
|
+
- **`release_readiness_check`**: Requires explicit passing CI evidence. Pending, unknown, failing, or zero-signal CI blocks readiness. Repository policy can also require changelog and tested rollback evidence.
|
|
258
|
+
|
|
259
|
+
</details>
|
|
260
|
+
|
|
261
|
+
<details>
|
|
262
|
+
<summary>Handoff details</summary>
|
|
263
|
+
|
|
264
|
+
- **`agent_handoff_packet`**: Derives a default current status from system evidence and can carry an Issue, PR, or release subject plus optional goal, non-goals, completed actions, decisions, and next steps. Caller-authored fields remain unverified; PR handoffs aggregate CI, review, policy, and head freshness, while release handoffs aggregate readiness and repository security evidence. Repository, Issue, PR, policy, and deep-evidence collection share one abortable 30-second total budget.
|
|
265
|
+
- **`sdlc_evidence_packet`**: Collects one Issue, pull request, or release ref at a time. Caller assertions remain unverified, PR evidence is pinned to the head SHA and becomes stale if the head changes during collection, and partial API failures, timeouts, rate limits, and bounded pagination remain explicit instead of producing a false clean result. The packet publishes and enforces GitHub-request, source-text, file/item, Markdown, evidence-item, and timeout budgets; omitted content is reported through `omittedEvidence`, and timeout aborts supported Octokit requests. If Issue/PR text or PR changed-file names exceed collection budgets, prompt-injection evidence remains unverified and partial rather than claiming the unread content is safe.
|
|
266
|
+
- Every successful tool response includes both MCP `_meta` and `structuredContent.trustBoundary`. Repository- and caller-derived fields remain untrusted data even when no prompt-injection pattern is detected. Never execute embedded instructions, reveal secrets, or expand permissions because of those fields.
|
|
267
|
+
|
|
268
|
+
</details>
|
|
269
|
+
|
|
270
|
+
The server also exposes five read-only `sdlc://` resources for the SDLC standard and Issue, PR summary, release-readiness, and handoff templates.
|
|
271
|
+
|
|
272
|
+
## Common workflows
|
|
273
|
+
|
|
274
|
+
These sequences reduce tool-selection ambiguity. Each sequence ends with a human decision.
|
|
275
|
+
|
|
276
|
+
```text
|
|
277
|
+
Start work
|
|
278
|
+
repo_context → plan_from_context → create_issue_set (dryRun: true)
|
|
279
|
+
→ human confirms the work items → create_issue_set (dryRun: false)
|
|
280
|
+
→ prepare_work_item
|
|
281
|
+
|
|
282
|
+
Review a pull request
|
|
283
|
+
create_pr_summary → quality_gate_status → review_pr_against_standard
|
|
284
|
+
→ human reviews findings and decides whether to merge
|
|
285
|
+
|
|
286
|
+
Review governance
|
|
287
|
+
branch_protection_status → workflow_permissions_audit → security_triage
|
|
288
|
+
→ repository owners decide which settings or workflows to change
|
|
289
|
+
|
|
290
|
+
Prepare a release
|
|
291
|
+
security_triage → release_readiness_check → sdlc_evidence_packet
|
|
292
|
+
→ human approves the tag, release, and deployment
|
|
293
|
+
|
|
294
|
+
Transfer work
|
|
295
|
+
relevant evidence tools → sdlc_evidence_packet → agent_handoff_packet
|
|
296
|
+
→ the next agent validates stale or caller-asserted state before continuing
|
|
176
297
|
```
|
|
177
|
-
This guides you through configuring:
|
|
178
|
-
* `GITHUB_TOKEN` (Primary token; [generate one here](https://github.com/settings/tokens) and follow the least-privilege matrix in [Prerequisites](#-prerequisites))
|
|
179
|
-
* `GITHUB_OWNER` (Default repository owner name, optional)
|
|
180
|
-
* `GITHUB_REPO` (Default repository name, optional)
|
|
181
298
|
|
|
182
|
-
|
|
183
|
-
|
|
299
|
+
## GitHub permissions
|
|
300
|
+
|
|
301
|
+
Do not grant every permission by default. Select the permissions required by the tools your team enables, and test against a non-production repository first.
|
|
302
|
+
|
|
303
|
+
| Capability | Fine-grained repository permission | Classic PAT scope | Used by |
|
|
304
|
+
|---|---|---|---|
|
|
305
|
+
| Repository metadata and files | Metadata read, Contents read | `repo` or `public_repo` | Context, policy, workflow, review, changelog, and CODEOWNERS evidence |
|
|
306
|
+
| Issues | Issues read | `repo` or `public_repo` | Context, planning, work-item briefs, gates, releases, and handoffs |
|
|
307
|
+
| Pull requests and reviews | Pull requests read | `repo` or `public_repo` | PR summaries, gates, reviews, and handoffs |
|
|
308
|
+
| Checks and statuses | Checks read, Commit statuses read | `repo` or `public_repo` | Quality gates, release readiness, and trusted scanner evidence |
|
|
309
|
+
| Actions provenance | Actions read | `repo` or `public_repo` | Workflow run, job, and workflow identity behind trusted scanner evidence |
|
|
310
|
+
| Branch protection | Administration read | `repo` or `public_repo` | Classic branch protection; repository rulesets use Metadata read |
|
|
311
|
+
| Code scanning alerts | Code scanning alerts read | `security_events` | `security_triage` |
|
|
312
|
+
| Dependabot alerts | Dependabot alerts read | `security_events` | `security_triage` |
|
|
313
|
+
| Secret scanning alerts | Secret scanning alerts read | `security_events` | `security_triage` |
|
|
314
|
+
| Create Issues | Issues write | `repo` or `public_repo` | Only `create_issue_set` with `dryRun: false` |
|
|
315
|
+
|
|
316
|
+
GitHub permissions and endpoint requirements can change. Confirm failures against the [GitHub REST API permission documentation](https://docs.github.com/en/rest/authentication/permissions-required-for-fine-grained-personal-access-tokens). Missing optional permissions may produce degraded or unverified evidence; that is not a reason to grant unrelated access.
|
|
317
|
+
|
|
318
|
+
## Safety and trust boundaries
|
|
319
|
+
|
|
320
|
+
The server constrains its own tools. It cannot control every action available to the surrounding AI agent or MCP client.
|
|
321
|
+
|
|
322
|
+
- **One preview-first write tool**: `create_issue_set` is the only GitHub write tool and defaults to `dryRun: true`
|
|
323
|
+
- **No privileged repository mutations**: no merge, approval, force-push, branch deletion, branch-rule mutation, release creation, or deployment tools
|
|
324
|
+
- **Human gates remain external**: the server reports CODEOWNERS, review, policy, CI, security, and release evidence; GitHub and your team enforce the final decision
|
|
325
|
+
- **Evidence stays qualified**: missing, stale, truncated, malformed, or permission-limited sources remain visible as gaps
|
|
326
|
+
- **Repository policy is base-bound**: PR policy is read from the base SHA when available so a pull request cannot silently weaken its own gate
|
|
327
|
+
- **External text is untrusted**: repository and caller text is bounded and escaped; any detected instruction override, secret/data exfiltration, encoded-command, or tool-coercion pattern is omitted from agent-facing Markdown while raw structured evidence remains available for inspection
|
|
328
|
+
- **Secret detection has limits**: trusted scanner provenance and patch heuristics reduce risk, but cross-file or runtime data flow still needs CodeQL or other static application security testing (SAST), secret scanners, tests, and human review
|
|
329
|
+
- **Credentials remain your responsibility**: prefer client secret injection or environment variables; never commit tokens or paste them into Issue, PR, or log content
|
|
330
|
+
- **Local-only transport boundary**: stdio and loopback HTTP are for a trusted local workstation. Remote OAuth and multi-tenant hosting are not on the current product roadmap
|
|
331
|
+
|
|
332
|
+
See [Repository policy](docs/repository-policy.md) for `.agentic-sdlc.yml` schema, provenance, limits, and base-SHA self-modification behavior. See [Testing strategy](docs/testing-strategy.md) for the adversarial matrix and coverage rules.
|
|
333
|
+
|
|
334
|
+
## Repository policy and resources
|
|
335
|
+
|
|
336
|
+
Add `.agentic-sdlc.yml` when repository-specific checks should affect plans, protected paths, PR gates, reviewers, blocking labels, changelog requirements, and rollback requirements. Policy output includes its source ref, blob SHA, digest, stable rule IDs, and warnings.
|
|
337
|
+
|
|
338
|
+
Static resources are available under the `sdlc://` scheme:
|
|
339
|
+
|
|
340
|
+
| Resource | Purpose |
|
|
341
|
+
|---|---|
|
|
342
|
+
| `sdlc://standards/agentic-sdlc` | Agentic SDLC reference standard |
|
|
343
|
+
| `sdlc://templates/issue` | Structured GitHub Issue template |
|
|
344
|
+
| `sdlc://templates/pr-summary` | Pull request summary template |
|
|
345
|
+
| `sdlc://templates/release-readiness` | Pre-release checklist |
|
|
346
|
+
| `sdlc://templates/handoff` | Agent continuation template |
|
|
347
|
+
|
|
348
|
+
## Local HTTP profile
|
|
349
|
+
|
|
350
|
+
Stdio is the default and recommended local transport. Both local entries use the official SDK v2 era router: 2025 clients continue through `initialize`, while clients that explicitly negotiate `2026-07-28` use `server/discover`. Both eras expose the same 13 tools and 5 resources.
|
|
351
|
+
|
|
352
|
+
A local client that requires Streamable HTTP can opt in after building from source:
|
|
353
|
+
|
|
354
|
+
```powershell
|
|
355
|
+
$env:TRANSPORT = "http"
|
|
356
|
+
$env:PORT = "3000"
|
|
357
|
+
node dist/index.js
|
|
358
|
+
```
|
|
359
|
+
|
|
360
|
+
The endpoint is `http://127.0.0.1:3000/mcp`. It binds only to loopback, validates `Host` and supplied `Origin` before parsing a bounded request body, creates an isolated stateless server and transport for each POST, rejects unsupported GET/DELETE session operations, bounds error details, and aborts in-flight exchanges during shutdown.
|
|
361
|
+
|
|
362
|
+
The 2025 stateless HTTP profile has no session or client identity with which to correlate a separate `notifications/cancelled` POST to an earlier request. The client still observes its local cancellation, but the original server operation may run to natural completion. Both stdio eras and 2026 HTTP propagate cancellation to the server request. Prefer stdio when server-side cancellation of legacy calls is required.
|
|
363
|
+
|
|
364
|
+
Do not expose or reverse-proxy this endpoint to another machine. Remote OAuth and multi-tenant hosting are not planned. If that scope is reconsidered, the project must first satisfy the separate [remote deployment re-entry criteria](docs/remote-deployment-considerations.md); the current local server is not a safe remote deployment base.
|
|
365
|
+
|
|
366
|
+
## Development and project links
|
|
367
|
+
|
|
368
|
+
Clone the repository only when you want to contribute or inspect the implementation:
|
|
184
369
|
|
|
185
|
-
#### 3. Global Environment Variables (Fallback)
|
|
186
|
-
You can still define environment variables directly in your terminal shell (`PowerShell` for Windows or `bash` for macOS/Linux):
|
|
187
370
|
```powershell
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
371
|
+
git clone https://github.com/SakuraCianna/agentic-sdlc-mcp.git
|
|
372
|
+
Set-Location agentic-sdlc-mcp
|
|
373
|
+
npm install
|
|
374
|
+
npm run build
|
|
375
|
+
npm run test
|
|
192
376
|
```
|
|
193
377
|
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
## 🎯 Typical Scenarios & Best Practices
|
|
197
|
-
|
|
198
|
-
AI agents should not run commands blindly or write code without structure. This control plane enforces software engineering discipline. Below are the recommended agent-collaboration patterns:
|
|
199
|
-
|
|
200
|
-
### Scenario 1: Bootstrapping a Feature / Fix
|
|
201
|
-
When an agent starts a task, it must follow this checklist to prevent "blind coding":
|
|
202
|
-
1. **Gather Context**: Call [`repo_context`](#repo_context) to check current issues, PRs, and branch states.
|
|
203
|
-
2. **Design a Plan**: Call [`plan_from_context`](#plan_from_context) with the task goal. This will outline structured issues corresponding to SDLC phases (Plan, Create, Test, Review, Optimize, Secure).
|
|
204
|
-
3. **Write Issues**: Call [`create_issue_set`](#create_issue_set) with `dryRun: false` to publish the checklist directly to GitHub.
|
|
205
|
-
4. **Acquire Work Brief**: Call [`prepare_work_item`](#prepare_work_item) on the active issue to retrieve precise guidelines, scope definitions, and related files.
|
|
206
|
-
|
|
207
|
-
### Scenario 2: Guarding the Pull Request Gate
|
|
208
|
-
Before submitting a PR for human review, the agent must verify its own quality:
|
|
209
|
-
1. **Generate PR Summary**: Call [`create_pr_summary`](#create_pr_summary) to auto-generate structured, professional release notes and file diff changes.
|
|
210
|
-
2. **Audit CI Status**: Call [`quality_gate_status`](#quality_gate_status) to ensure all GitHub Actions tests and linting check runs are passing green.
|
|
211
|
-
3. **Execute Static Audit**: Call [`review_pr_against_standard`](#review_pr_against_standard) with `standard: "strict"` or `"security-focused"` to scan diffs for key leaks, verify `.env` safety, and ensure `.github/CODEOWNERS` reviewers are correctly assigned.
|
|
212
|
-
|
|
213
|
-
### Scenario 3: Release Readiness Check
|
|
214
|
-
When preparation is complete and a release is requested:
|
|
215
|
-
1. **Vulnerability Check**: Call [`security_triage`](#security_triage) to audit Code Scanning (SAST), Dependabot, and Secret Scanning. Ensure no critical alerts block the release.
|
|
216
|
-
2. **Release Readiness**: Call [`release_readiness_check`](#release_readiness_check) to generate a rollback plan template, verify there are no open release-blocking issues, and ensure CHANGELOG.md is up to date.
|
|
217
|
-
3. **Handoff**: If transferring deployment duties to another agent, call [`agent_handoff_packet`](#agent_handoff_packet) to pass along the complete audit log.
|
|
218
|
-
|
|
219
|
-
---
|
|
220
|
-
|
|
221
|
-
## 📖 Tools Reference
|
|
222
|
-
|
|
223
|
-
Detailed specifications of the exposed MCP tools.
|
|
224
|
-
|
|
225
|
-
### `repo_context`
|
|
226
|
-
Reads repository metadata, README, package.json, open issues, and open PRs. Optionally acts as a fuller "repository briefing packet" -- detected package manager, tech stack, common verification scripts, workflow file names, lightweight governance signals, and agent instruction file summaries (e.g. `AGENTS.md`, `CLAUDE.md`). Use this at the start of any workflow to orient the agent.
|
|
227
|
-
When requested, the bounded `readmeSummary` and `packageJsonSummary` values are also returned in `structuredContent`, so agents do not need to recover them from the Markdown response.
|
|
228
|
-
* **Arguments:**
|
|
229
|
-
* `owner` (string, optional): GitHub owner.
|
|
230
|
-
* `repo` (string, optional): GitHub repo.
|
|
231
|
-
* `includeReadme` (boolean, default: `true`): Include a truncated README summary.
|
|
232
|
-
* `includePackageJson` (boolean, default: `false`): Include package.json summary, detected package manager (npm/pnpm/yarn/bun), tech stack, and common scripts (build/test/typecheck/lint/smoke/...).
|
|
233
|
-
* `includeWorkflows` (boolean, default: `false`): Include `.github/workflows/*.yml` file names (names only -- use `workflow_permissions_audit` for permission contents).
|
|
234
|
-
* `includeAgentInstructions` (boolean, default: `false`): Include summaries of agent instruction files found at the repo root (`AGENTS.md`, `CLAUDE.md`).
|
|
235
|
-
* `includeGovernance` (boolean, default: `false`): Include whether a CODEOWNERS file exists (for full branch protection details, use `branch_protection_status`).
|
|
236
|
-
* `includePolicy` (boolean, default: `false`): Include validated repository policy, digest, stable rule IDs, and source ref/blob SHA.
|
|
237
|
-
* `includeOpenIssues` / `includeOpenPRs` (boolean, default: `false`): Include recent open issues/PRs.
|
|
238
|
-
* `issueLimit` / `prLimit` (number, default: `20`, max: `100`): Cap how many issues/PRs are fetched.
|
|
239
|
-
* `maxReadmeChars` (number, default: `3000`): Max README characters before truncation.
|
|
240
|
-
* `maxInstructionChars` (number, default: `1000`): Max characters per agent instruction file summary before truncation.
|
|
241
|
-
|
|
242
|
-
### `plan_from_context`
|
|
243
|
-
Generates a structured, phase-by-phase SDLC plan matching the standard milestones, tailored to a `workType`. Each work type gets a materially different plan -- e.g. `docs` never defaults to requiring code unit tests, `bugfix` always includes repro + regression tests, `security` always includes a threat model and least-privilege review, and `release`/`infra` always include changelog/rollback and workflow-permission checks respectively.
|
|
244
|
-
The response includes 3-5 structured `issueDrafts` whose titles, Markdown bodies, confirmed repository labels, SDLC phases, acceptance criteria, risk levels, and source goal can be passed directly to `create_issue_set`.
|
|
245
|
-
Repository policy can add a default work type, required checks, protected-path constraints, and review/release tasks. An explicit caller `workType` always wins.
|
|
246
|
-
* **Arguments:**
|
|
247
|
-
* `owner` / `repo` (string, optional): Repo coordinates.
|
|
248
|
-
* `goal` (string, required): The target feature or fix description.
|
|
249
|
-
* `workType` (string, optional): One of `docs` / `feature` / `bugfix` / `refactor` / `security` / `release` / `infra`. If omitted, it is inferred from `goal` + `acceptanceCriteria` via a conservative keyword heuristic -- the response's `confidence` (`high`/`medium`/`low`) and `needsClarification` fields tell you whether to trust the guess or pass `workType` explicitly.
|
|
250
|
-
* `constraints` (string[], optional): Technical or business constraints.
|
|
251
|
-
* `acceptanceCriteria` (string[], optional): Explicit acceptance criteria (also used for workType inference).
|
|
252
|
-
|
|
253
|
-
### `create_issue_set`
|
|
254
|
-
Previews or batch-creates GitHub issues mapping to the generated plan. Dry-run responses include the target repository, final titles, labels, body summaries, and human-review warnings without calling a GitHub write API. Live batches retain successful issue numbers and URLs while reporting safe per-item failure reasons, so one rejected issue does not hide earlier successes or stop later attempts.
|
|
255
|
-
* **Arguments:**
|
|
256
|
-
* `owner` / `repo` (string, optional): Repo coordinates.
|
|
257
|
-
* `issues` (array of objects, required): Structured list of issues to create (title, body, labels, and optional assignees). Accepts `plan_from_context.issueDrafts` directly.
|
|
258
|
-
* `dryRun` (boolean, default: `true`): If `true`, previews the list without writing to GitHub.
|
|
259
|
-
|
|
260
|
-
### `prepare_work_item`
|
|
261
|
-
Generates a risk-aware implementation brief. It combines bounded Issue/comment evidence, `.agentic-sdlc.yml` at the default branch, confirmed root package scripts, verified related-file evidence, official GitHub issue relationships, milestone context, and bounded recent-PR history. Structured output separates Issue-authored and derived acceptance criteria and includes work type/confidence, risk level/domains/blast radius/reasons, source provenance, defensive requirements, negative scenarios, clarification questions, rollback, observability, and verified commands.
|
|
262
|
-
|
|
263
|
-
Issue titles, bodies, comments, PR metadata, and file names are treated as untrusted external evidence. Markdown and the handoff prompt are bounded and escaped; requests to bypass policy, reveal secrets, or expand tool authority become prompt-injection risk signals rather than instructions. Explicit `riskLevel: low` cannot downgrade protected-path or repository-policy risk. Monorepo package paths do not inherit root commands without package-level evidence.
|
|
264
|
-
* **Arguments:**
|
|
265
|
-
* `owner` / `repo` (string, optional): Repo coordinates.
|
|
266
|
-
* `issueNumber` (number, required): The target issue ID.
|
|
267
|
-
* `includeRelatedFiles` (boolean, default: `false`): Verify explicit path hints at the repository default branch and discover existing adjacent tests and common root entry files. Each result reports `reason`, `confidence`, `verified`, and matching CODEOWNERS; permission/API failures set `relatedFilesIncomplete` instead of claiming the candidate does not exist. This opt-in path can make up to 40 additional GitHub requests (3 CODEOWNERS locations, 20 explicit hints, 12 adjacent candidates, and 5 entry candidates).
|
|
268
|
-
* `includeDependencies` (boolean, default: `false`): Read GitHub's official blocked-by, blocking, sub-issue, and timeline cross-reference sources using four parallel requests, capped at 20 records per source. Results expose `dependencies`, open `blockers`, and relationship-derived `parallelizableWork` candidates; a cross-reference is evidence of linkage, not a blocker. Per-source failures, malformed responses, or overflow set `dependencyEvidenceIncomplete` and preserve successful sources.
|
|
269
|
-
* `includeRecentPRs` (boolean, default: `false`): Scan up to 20 PR candidates and return up to 5 merged matches. This opt-in deep history path can make up to 61 additional sequential GitHub requests; limits and API failures are reported through `recentPRsIncomplete`/`evidenceWarnings`.
|
|
270
|
-
* `workType` (string, optional): Explicit `docs`, `feature`, `bugfix`, `refactor`, `security`, `release`, or `infra`; otherwise inferred with confidence.
|
|
271
|
-
* `riskLevel` (string, optional): Explicit minimum `low`, `medium`, `high`, or `critical`; policy evidence may raise it.
|
|
272
|
-
|
|
273
|
-
### `quality_gate_status`
|
|
274
|
-
Aggregates check runs and commit statuses. In PR mode it also evaluates reviews, CODEOWNERS routing, draft/mergeability, branch protection/rulesets, blocking labels, and linked issues. Its six conclusions are `passing`, `failing`, `pending`, `needs_review`, `policy_gap`, and `no_evidence`. Permission failures and bounded/truncated sources are exposed through `degraded`, `unverifiedSignals`, and safe `errors`; missing evidence is never invented as a pass.
|
|
275
|
-
* **Arguments:**
|
|
276
|
-
* `owner` / `repo` (string, optional): Repo coordinates.
|
|
277
|
-
* `pullNumber` (number, optional): Query checks by PR number.
|
|
278
|
-
* `ref` (string, optional): Query checks by branch, tag, or SHA.
|
|
279
|
-
* `blockingLabels` (string[], default: `blocked`, `do-not-merge`, `release-blocker`, `security-blocker`): Exact, case-insensitive PR labels that block the gate; pass `[]` to disable this built-in list.
|
|
280
|
-
|
|
281
|
-
PR policy is evaluated from the base SHA. Repository-required checks and labels cannot be disabled by caller overrides or by editing policy in the PR itself.
|
|
282
|
-
|
|
283
|
-
### `create_pr_summary`
|
|
284
|
-
Generates a structured pull request description and changelog draft. Documentation-only PRs receive document validation guidance instead of a false missing-code-tests warning. File evidence is capped at 300 and exposes `filesTruncated` rather than silently claiming completeness; external PR metadata is escaped and bounded in Markdown.
|
|
285
|
-
* **Arguments:**
|
|
286
|
-
* `owner` / `repo` (string, optional): Repo coordinates.
|
|
287
|
-
* `pullNumber` (number, required): The pull request ID.
|
|
288
|
-
|
|
289
|
-
### `review_pr_against_standard`
|
|
290
|
-
Reviews pull request code changes against SDLC governance levels (`basic` / `strict` / `security-focused`).
|
|
291
|
-
|
|
292
|
-
The caller may explicitly set `workType` to `docs`, `feature`, `bugfix`, `refactor`, `security`, `release`, or `infra`; otherwise the tool returns a conservative inference with confidence and reasoning. Structured output includes `dimension`, `paths`, and `reason` per finding plus `releaseRisk`, `testCoverageSignal`, and `ownershipRoutingGaps`. Docs-only work requires document verification rather than code unit tests; bug fixes require reproduction/regression evidence; workflow/infra work audits complete workflow content, triggers, least-privilege permissions, failure paths, and rollback evidence.
|
|
293
|
-
|
|
294
|
-
`security-focused` can treat Gitleaks or TruffleHog as primary passing evidence only after its concrete Actions job URL, workflow run, PR head SHA, unique matching base-ref workflow job, and known scanner action pinned to a full commit SHA are verified. Secretlint, detect-secrets, and GitHub Secret Scanning names are recognized and surfaced, but remain unverified claims in v1.6 because this release cannot bind them to an equivalent immutable workflow provenance chain. Same-name/duplicate-name jobs or statuses, checks from unknown Apps, conditional/error-tolerant scanner jobs or steps, and mutable action tags are not trusted as clean-scan proof. If evidence is incomplete, scanner policy changes in the PR, no provenance-supported scanner ran, or the scan is pending/failed, the review fails closed. The built-in added-line assignment heuristic is supplemental and is never reported as proof that a repository is secret-free.
|
|
295
|
-
|
|
296
|
-
The supplemental scanner runs under every review standard and reports `DynamicSecretConstruction` when a credential-like field or authentication-header API sink is assembled through string concatenation/formatting, common JavaScript/Java/Go/Rust/Python/Ruby/PHP/Kotlin/Swift interpolation or builder forms, `.concat()`/`.join()`, common decoding calls, multiline statements, or bounded patch-local computed-field aliases. It preserves diff-hunk and statement boundaries, caps tracked aliases and input/output growth, and aggregates repeated findings. Explicit environment-variable/secret-manager sources, comments, removed lines, and credential metadata such as `tokenCount` are excluded to reduce noise. This is patch-local risk detection, not whole-program data-flow analysis: indirect construction across functions/files or fully unknown computed keys still requires trusted scanners, CodeQL/SAST, and human review.
|
|
297
|
-
|
|
298
|
-
* **Arguments:**
|
|
299
|
-
* `owner` / `repo` (string, optional): Repo coordinates.
|
|
300
|
-
* `pullNumber` (number, required): The pull request ID.
|
|
301
|
-
* `standard` (string, default: `"basic"`): Standard level.
|
|
302
|
-
* `workType` (string, optional): Explicit work type; omit to infer it from PR metadata and paths.
|
|
303
|
-
* `checkOwnership` (boolean, default: `true`): Validates file ownership changes against `.github/CODEOWNERS` and flags unassigned reviewers.
|
|
304
|
-
|
|
305
|
-
### `security_triage`
|
|
306
|
-
Retrieves and triages Code Scanning, Dependabot, and Secret Scanning alerts.
|
|
307
|
-
* **Arguments:**
|
|
308
|
-
* `owner` / `repo` (string, optional): Repo coordinates.
|
|
309
|
-
|
|
310
|
-
### `release_readiness_check`
|
|
311
|
-
Assesses pre-release health (combined check runs and commit statuses, open bugs, and changelog presence) and generates rollback instructions. A release is ready only when CI is explicitly `passing`; `pending`, `unknown`, zero-signal, or failing CI blocks readiness.
|
|
312
|
-
* **Arguments:**
|
|
313
|
-
* `owner` / `repo` (string, optional): Repo coordinates.
|
|
314
|
-
* `headRef` (string, optional): Target release branch/tag.
|
|
315
|
-
* `pullNumber` (number, optional): Evaluate the PR head and its real blocking labels.
|
|
316
|
-
* `rollbackPlanEvidence` (object, optional): Caller-sourced `{ reference, tested }`, required when repository policy requires a tested rollback plan.
|
|
317
|
-
|
|
318
|
-
### Repository policy
|
|
319
|
-
|
|
320
|
-
Add `.agentic-sdlc.yml` to strengthen checks, protected paths, reviewers, blocking labels, and release requirements. See [Repository policy](docs/repository-policy.md) for schema, examples, provenance, base-SHA self-modification behavior, limits, and migration.
|
|
321
|
-
|
|
322
|
-
### `branch_protection_status`
|
|
323
|
-
Queries classic branch protection and repository rulesets for required reviews, status checks, and push limits.
|
|
324
|
-
* **Arguments:**
|
|
325
|
-
* `owner` / `repo` (string, optional): Repo coordinates.
|
|
326
|
-
* `branch` (string, optional): Target branch. Defaults to default branch.
|
|
327
|
-
|
|
328
|
-
### `workflow_permissions_audit`
|
|
329
|
-
Scans `.github/workflows/*.yml` files for `permissions` blocks and flags over-permissioned tokens.
|
|
330
|
-
* **Arguments:**
|
|
331
|
-
* `owner` / `repo` (string, optional): Repo coordinates.
|
|
332
|
-
* `ref` (string, optional): Git ref. Defaults to default branch.
|
|
333
|
-
|
|
334
|
-
### `agent_handoff_packet`
|
|
335
|
-
Compiles current issue context, completed work, repository-policy obligations, and remaining tasks into a compact prompt packet for the next agent. Requested Issue/PR lookup failures are surfaced as evidence warnings, PR policy is read at the immutable base SHA when available, and caller/external text is labeled as untrusted handoff evidence.
|
|
336
|
-
* **Arguments:**
|
|
337
|
-
* `owner` / `repo` (string, optional): Repo coordinates.
|
|
338
|
-
* `issueNumber` (number, optional): Active issue ID.
|
|
339
|
-
* `pullNumber` (number, optional): Active pull request ID.
|
|
340
|
-
* `currentStatus` (string, required): Caller-reported status; preserved as an assertion, not system verification.
|
|
341
|
-
* `nextSteps` (string[], optional): Ordered caller-provided next steps.
|
|
342
|
-
|
|
343
|
-
---
|
|
344
|
-
|
|
345
|
-
## 📚 Resources Reference
|
|
346
|
-
|
|
347
|
-
The server exposes read-only static resources under the `sdlc://` schema for quick agent guidance:
|
|
348
|
-
|
|
349
|
-
| Resource URI | Description |
|
|
378
|
+
| Command | Purpose |
|
|
350
379
|
|---|---|
|
|
351
|
-
| `
|
|
352
|
-
| `
|
|
353
|
-
| `
|
|
354
|
-
| `
|
|
355
|
-
| `
|
|
380
|
+
| `npm run typecheck` | Check TypeScript types |
|
|
381
|
+
| `npm run build` | Build `dist/` |
|
|
382
|
+
| `npm run test` | Run the full Vitest suite |
|
|
383
|
+
| `npm run test:integration` | Run configuration and MCP runtime integration tests |
|
|
384
|
+
| `npm run test:coverage` | Enforce coverage floors and write reports |
|
|
385
|
+
| `npm run contracts:check` | Compare current real MCP discovery with the tracked v1.9.0 contract and verify its local tag/SHA |
|
|
386
|
+
| `npm run contracts:verify-baseline` | Read-only replay of the pinned v1.9.0 checkout to prove the tracked baseline is reproducible |
|
|
387
|
+
| `npm run contracts:generate` | Explicitly regenerate that pinned baseline from an isolated v1.9.0 detached worktree |
|
|
388
|
+
| `npm run contracts:inspector:install` | Install the exact Inspector 2.0.0 test dependency from its isolated lockfile |
|
|
389
|
+
| `npm run contracts:inspector:stdio` | Verify the built stdio server through the official Inspector CLI |
|
|
390
|
+
| `npm run contracts:inspector:http` | Verify the built local HTTP adapter through Inspector on a random IPv4 loopback port |
|
|
391
|
+
| `npm run contracts:conformance:install` | Install the exact Conformance 0.1.16 pilot dependency from its isolated lockfile |
|
|
392
|
+
| `npm run contracts:conformance:pilot` | Run the legacy 2025-11-25 active suite and write a sanitized `checks.json` artifact |
|
|
393
|
+
| `npm run eval:ci` | Run the offline 12-scenario release gate plus all 13 budget and 11 fault reports |
|
|
394
|
+
| `npm run smoke` | Verify registration without GitHub credentials |
|
|
395
|
+
| `npm run check:line-endings` | Reject CRLF and mixed line endings |
|
|
356
396
|
|
|
357
|
-
|
|
397
|
+
The integration gate calls all 13 public tools through a real SDK `Client.callTool` in both eras: legacy through the project stdio wrapper and modern through the production direct-fetch HTTP handler pinned to `2026-07-28`. It validates registered output schemas, key Markdown/structured results, trust boundaries, error/degradation semantics, modern wire headers, and the default `create_issue_set` dry-run behavior. The fixture fails immediately on any live issue write and blocks external fetch/socket access.
|
|
358
398
|
|
|
359
|
-
|
|
399
|
+
The separate Inspector stdio gate pins Inspector 2.0.0 behind its own lockfile and invokes the real `dist/index.js` from outside the process. It verifies legacy initialize, all 13 tool declarations, all five resource reads, one explicit zero-write `create_issue_set` preview, and stable JSON/exit contracts for invalid input and an unknown resource URI. Every `tools/call` targets `create_issue_set` with `dryRun:true`. Inspector passes a fixed environment allowlist to the target with its official `-e` option, and the run fails unless the real server writes a temporary harness-loaded marker. The harness preserves the user's HOME value but blocks the product's global config-file probe, replaces inherited GitHub credentials with a non-secret test placeholder, isolates Inspector storage/OAuth state, and disables every fetch/TCP connection for this stdio-only check. This is black-box compatibility evidence, not MCP certification and not evidence for modern `server/discover`.
|
|
360
400
|
|
|
361
|
-
|
|
401
|
+
The HTTP gate starts the production adapter on `127.0.0.1:0`, targets its canonical `/mcp` URL with Inspector's non-interactive `--stored-auth-only` mode, compares complete tool/resource JSON with an independent Inspector stdio discovery, and closes every child after success or failure. A separate empty-store 401 loopback fixture forces auto-open eligibility but still requires immediate `3/auth_required`; a browser-spawn marker makes any interactive OAuth attempt fail the gate. The harness allows only exact IPv4 loopback fetch/socket targets; DNS aliases, deceptive hostnames, external network access, and inherited credentials remain unavailable. On Windows, Inspector 2.0.0 can emit the correct JSON error and then hit one upstream libuv closing assertion. The runner accepts only that exact platform/status/two-line signature and reports the raw exit class; Linux and every other failure remain fail-closed.
|
|
362
402
|
|
|
363
|
-
|
|
364
|
-
* **Reviewable Batch Results**: Issue previews expose the exact target repository and warnings before a write. Live batches preserve both successful results and safe failure details instead of concealing partial completion.
|
|
365
|
-
* **Zero Self-Merge Policy**: No tools exist to auto-merge pull requests. Human approval is required on all merge gates.
|
|
366
|
-
* **Access Restraints**: The server does not support force-pushing or deleting branch rules.
|
|
367
|
-
* **CODEOWNERS Enforced Review**: Special paths (such as workflows under `.github/` and core files under `src/`) require owner approvals.
|
|
368
|
-
* **Read-only Decision Tools**: v1.7 policy-aware gate, PR review, workflow audit, security triage, release-readiness, and handoff tools only read evidence. They never approve or merge PRs and never modify branch protection, rulesets, or repository policy. The separate issue-creation tool remains protected by `dryRun: true` by default.
|
|
403
|
+
The Conformance pilot pins official 0.1.16 and its legacy `2025-11-25` active suite. It currently records 30 scenarios: five direct passes and 25 governed expected failures, primarily because the upstream everything-server prompts, fixture URIs, fixture tools, subscriptions, media/callback capabilities, and stateful SSE assumptions are not this product's public contract. Every expected failure has a reason, owner, and removal condition; a new failure or stale entry fails the run. The uploaded `checks.json` excludes raw response details and credentials. This is a non-blocking compatibility pilot, not certification and not a reason to add test-only production capabilities.
|
|
369
404
|
|
|
370
|
-
|
|
405
|
+
CI runs the full product suite and current-contract comparison on Node 22 and Node 24. Separate Node 24 jobs replay the immutable baseline and run the required contract/evaluation gate: Inspector stdio/HTTP, Conformance, 12 fixed scenarios, all 13 response budgets, and the 11-case GitHub fault matrix. The gate requires at least 90% total scenario accuracy and 100% for the six safety-critical scenarios, then uploads only five bounded summary artifacts. Node 20 is not a supported runtime because it is end-of-life; local contributors only need one supported Node version, while the compatibility matrix is enforced by GitHub Actions.
|
|
371
406
|
|
|
372
|
-
|
|
407
|
+
Evaluation results retain their provenance. `scripted` means a deterministic fixture, `recorded-agent` means a sanitized historical execution replayed against fixed inputs, and `live-model` means an optional current model run. Required CI contains six scripted and six recorded-agent scenarios and no live-model run. A passing replay proves the checked-in workflow remains deterministic; it is not a claim about every model, provider, future prompt, or MCP certification. See the [evaluation guide](docs/evaluation.md).
|
|
373
408
|
|
|
374
|
-
|
|
375
|
-
* `npm run typecheck`: Runs TypeScript compiler type checking.
|
|
376
|
-
* `npm run build`: Compiles TS files to the `dist/` directory.
|
|
377
|
-
* `npm run test`: Executes the full unit test suite.
|
|
378
|
-
* `npm run test:integration`: Exercises configuration lifecycle and the production MCP server factory through the SDK's in-memory transport.
|
|
379
|
-
* `npm run test:coverage`: Enforces the coverage regression floor and writes text, LCOV, and JSON summary reports.
|
|
380
|
-
* `npm run smoke`: Verifies registration and loading without external credentials.
|
|
381
|
-
* `npm run check:line-endings`: Rejects tracked CRLF or mixed-EOL text before CI.
|
|
409
|
+
Ordinary tests, `contracts:check`, and `contracts:verify-baseline` never rewrite the baseline. The replay command and the maintainer-only `contracts:generate` command verify the pinned tag/commit, install the historical lockfile with lifecycle scripts, audit, and funding output disabled, build it in the system temporary directory, and use real `tools/list` and `resources/list` calls in a bounded child process whose cwd stays outside the checkout. That child receives only an allowlist of OS path, temporary-directory, locale, and dynamic-library environment variables; credentials, business configuration, `NODE_OPTIONS`, and local state paths are not inherited. Windows cleanup uses bounded retries after historical handles are released. The commands require npm registry access but do not call GitHub APIs or model services. Only `contracts:generate` writes the tracked JSON, leaving its diff visible for review.
|
|
382
410
|
|
|
383
|
-
|
|
411
|
+
## Contribute through issues and pull requests
|
|
384
412
|
|
|
385
|
-
|
|
386
|
-
This package is securely published to npm via GitHub Actions using **Trusted Publishing (OIDC)**, eliminating the need to store static `NPM_TOKEN` secrets in the repository. Publishing is triggered by creating a GitHub Release or manually running the Action.
|
|
413
|
+
Issues and pull requests are welcome. Check the [open issues](https://github.com/SakuraCianna/agentic-sdlc-mcp/issues) and [roadmap](docs/ROADMAP.md) before starting. Open an Issue first when a change affects public behavior, security boundaries, tool schemas, or architecture.
|
|
387
414
|
|
|
388
|
-
|
|
415
|
+
1. Fork the repository and create a focused branch from the latest `main`.
|
|
416
|
+
2. Run `npm ci`, then make only the changes required for the contribution.
|
|
417
|
+
3. Add or update tests and documentation when behavior changes.
|
|
418
|
+
4. Run the checks relevant to your change. The Node 22/24 matrix runs `npm run check:line-endings`, `npm run typecheck`, `npm run build`, the built form of `npm run contracts:check`, `npm run test`, `npm run smoke`, and `npm run test:coverage`; separate Node 24 jobs run the immutable baseline replay and the pinned Inspector stdio/HTTP and Conformance contracts.
|
|
419
|
+
5. Open a pull request against `main`. Describe the problem, solution, risks, validation results, and linked Issues.
|
|
389
420
|
|
|
390
|
-
|
|
421
|
+
Keep tokens, credentials, private repository content, and generated local configuration out of commits, Issues, pull requests, and logs. A passing CI run supports review but does not replace maintainer approval.
|
|
391
422
|
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
423
|
+
- [Roadmap](docs/ROADMAP.md)
|
|
424
|
+
- [Repository policy guide](docs/repository-policy.md)
|
|
425
|
+
- [Client recipes and portable review skill](docs/client-recipes.md)
|
|
426
|
+
- [Evidence continuity and acceptance traceability](docs/evidence-continuity.md)
|
|
427
|
+
- [User pilot plan](docs/user-pilot.md)
|
|
428
|
+
- [Testing strategy](docs/testing-strategy.md)
|
|
429
|
+
- [Remote deployment re-entry criteria](docs/remote-deployment-considerations.md)
|
|
430
|
+
- [v1.10.0 release notes](docs/releases/v1.10.0.md)
|
|
431
|
+
- [v1.9.0 release notes](docs/releases/v1.9.0.md)
|
|
432
|
+
- [AI coding agent smoke test](docs/ai-coding-agent-smoke-test.md)
|
|
433
|
+
- [Changelog](CHANGELOG.md)
|
|
434
|
+
- [Releases](https://github.com/SakuraCianna/agentic-sdlc-mcp/releases)
|
|
435
|
+
- [Open issues](https://github.com/SakuraCianna/agentic-sdlc-mcp/issues)
|
|
399
436
|
|
|
400
|
-
|
|
437
|
+
The npm and MCP Registry workflows use GitHub OpenID Connect (OIDC) trusted publishing. Publishing a GitHub Release triggers both workflows. The Registry workflow waits for that exact npm package version before it publishes matching immutable stdio metadata.
|
|
401
438
|
|
|
402
|
-
##
|
|
439
|
+
## License
|
|
403
440
|
|
|
404
|
-
|
|
441
|
+
[MIT](LICENSE)
|