agentic-sdlc-mcp 1.7.1 → 1.9.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 +298 -299
- package/dist/briefing/work-item-brief.d.ts +63 -0
- package/dist/briefing/work-item-brief.d.ts.map +1 -0
- package/dist/briefing/work-item-brief.js +215 -0
- package/dist/briefing/work-item-brief.js.map +1 -0
- package/dist/briefing/work-item-context.d.ts +42 -0
- package/dist/briefing/work-item-context.d.ts.map +1 -0
- package/dist/briefing/work-item-context.js +109 -0
- package/dist/briefing/work-item-context.js.map +1 -0
- package/dist/briefing/work-item-evidence.d.ts +88 -0
- package/dist/briefing/work-item-evidence.d.ts.map +1 -0
- package/dist/briefing/work-item-evidence.js +458 -0
- package/dist/briefing/work-item-evidence.js.map +1 -0
- 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/config.d.ts.map +1 -1
- package/dist/config.js +9 -1
- package/dist/config.js.map +1 -1
- 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 +257 -0
- package/dist/evidence/model.d.ts.map +1 -0
- package/dist/evidence/model.js +211 -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 +74 -0
- package/dist/evidence/render.js.map +1 -0
- package/dist/evidence/timeout.d.ts +6 -0
- package/dist/evidence/timeout.d.ts.map +1 -0
- package/dist/evidence/timeout.js +44 -0
- package/dist/evidence/timeout.js.map +1 -0
- package/dist/github/client.d.ts.map +1 -1
- package/dist/github/client.js +9 -3
- 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/pull-request-evidence.d.ts +2 -2
- package/dist/github/pull-request-evidence.d.ts.map +1 -1
- package/dist/github/pull-request-evidence.js +35 -21
- 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 +14 -0
- package/dist/http-server.d.ts.map +1 -0
- package/dist/http-server.js +120 -0
- package/dist/http-server.js.map +1 -0
- package/dist/index.js +28 -51
- package/dist/index.js.map +1 -1
- 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.map +1 -1
- package/dist/resources/index.js +36 -20
- package/dist/resources/index.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 +72 -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.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 +4 -0
- package/dist/server.d.ts.map +1 -0
- package/dist/server.js +36 -0
- package/dist/server.js.map +1 -0
- package/dist/tools/agent-handoff.d.ts +165 -5
- package/dist/tools/agent-handoff.d.ts.map +1 -1
- package/dist/tools/agent-handoff.js +517 -32
- package/dist/tools/agent-handoff.js.map +1 -1
- package/dist/tools/branch-protection-status.d.ts +18 -5
- package/dist/tools/branch-protection-status.d.ts.map +1 -1
- package/dist/tools/branch-protection-status.js +49 -19
- package/dist/tools/branch-protection-status.js.map +1 -1
- package/dist/tools/create-issue-set.d.ts +7 -1
- package/dist/tools/create-issue-set.d.ts.map +1 -1
- package/dist/tools/create-issue-set.js +15 -8
- package/dist/tools/create-issue-set.js.map +1 -1
- package/dist/tools/create-pr-summary.d.ts +69 -0
- package/dist/tools/create-pr-summary.d.ts.map +1 -1
- package/dist/tools/create-pr-summary.js +58 -21
- package/dist/tools/create-pr-summary.js.map +1 -1
- package/dist/tools/plan-from-context.d.ts +14 -8
- package/dist/tools/plan-from-context.d.ts.map +1 -1
- package/dist/tools/plan-from-context.js +20 -15
- package/dist/tools/plan-from-context.js.map +1 -1
- package/dist/tools/prepare-work-item.d.ts +191 -17
- package/dist/tools/prepare-work-item.d.ts.map +1 -1
- package/dist/tools/prepare-work-item.js +254 -114
- package/dist/tools/prepare-work-item.js.map +1 -1
- package/dist/tools/quality-gate-status.d.ts +26 -20
- package/dist/tools/quality-gate-status.d.ts.map +1 -1
- package/dist/tools/quality-gate-status.js +4 -1
- package/dist/tools/quality-gate-status.js.map +1 -1
- package/dist/tools/release-readiness.d.ts +18 -6
- package/dist/tools/release-readiness.d.ts.map +1 -1
- package/dist/tools/release-readiness.js +27 -8
- package/dist/tools/release-readiness.js.map +1 -1
- package/dist/tools/repo-context.d.ts +26 -5
- package/dist/tools/repo-context.d.ts.map +1 -1
- package/dist/tools/repo-context.js +56 -20
- package/dist/tools/repo-context.js.map +1 -1
- package/dist/tools/review-pr.d.ts +32 -26
- package/dist/tools/review-pr.d.ts.map +1 -1
- package/dist/tools/review-pr.js +4 -1
- 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 +20 -4
- package/dist/tools/security-triage.d.ts.map +1 -1
- package/dist/tools/security-triage.js +97 -26
- package/dist/tools/security-triage.js.map +1 -1
- package/dist/tools/workflow-permissions-audit.d.ts +9 -3
- package/dist/tools/workflow-permissions-audit.d.ts.map +1 -1
- package/dist/tools/workflow-permissions-audit.js +4 -1
- 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/package.json +6 -4
- package/server.json +2 -2
package/README.md
CHANGED
|
@@ -1,140 +1,115 @@
|
|
|
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
9
|
</p>
|
|
10
10
|
|
|
11
11
|
<p align="center">
|
|
12
|
-
|
|
13
|
-
<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
|
-
<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="downloads"></a>
|
|
15
|
-
<a href="https://github.com/SakuraCianna/agentic-sdlc-mcp/blob/main/LICENSE"><img src="https://img.shields.io/npm/l/agentic-sdlc-mcp.svg?style=flat-square&color=orange" alt="license"></a>
|
|
16
|
-
<a href="https://modelcontextprotocol.io"><img src="https://img.shields.io/badge/MCP-Compatible-blue?style=flat-square" alt="MCP Compatible"></a>
|
|
12
|
+
Let Claude Code, Cursor, and other Model Context Protocol (MCP) clients work with repository context, review gates, security evidence, and human approval points.
|
|
17
13
|
</p>
|
|
18
14
|
|
|
19
|
-
|
|
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>
|
|
20
|
+
</p>
|
|
20
21
|
|
|
21
|
-
|
|
22
|
+
<p align="center">
|
|
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>
|
|
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>
|
|
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>
|
|
28
|
+
</p>
|
|
22
29
|
|
|
23
|
-
|
|
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.
|
|
24
31
|
|
|
25
|
-
|
|
32
|
+
## What changes with this MCP
|
|
26
33
|
|
|
27
|
-
|
|
28
|
-
```mermaid
|
|
29
|
-
graph TD
|
|
30
|
-
A[Phase 1: Plan] -->|Exposed context & briefs| B[Phase 2: Create]
|
|
31
|
-
B -->|Incremental commits| C[Phase 3: Test]
|
|
32
|
-
C -->|Local test reports| D[Phase 4: Review]
|
|
33
|
-
D -->|Human review gate| E[Phase 5: Optimize]
|
|
34
|
-
E -->|Refinement| F[Phase 6: Secure]
|
|
35
|
-
F -->|Security check | G[Human Release Approval]
|
|
36
|
-
G -->|Release Tag & deploy| A
|
|
37
|
-
```
|
|
34
|
+
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.
|
|
38
35
|
|
|
39
|
-
|
|
36
|
+
| Concern | Without this MCP | With `agentic-sdlc-mcp` |
|
|
37
|
+
|---|---|---|
|
|
38
|
+
| 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 |
|
|
39
|
+
| 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 |
|
|
40
|
+
| 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 |
|
|
41
|
+
| 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 |
|
|
42
|
+
| Secret risk | Scanner names or keyword matches may be accepted without provenance | PR review separates trusted scanner evidence, bounded patch heuristics, and unverified gaps |
|
|
43
|
+
| Release and handoff | Readiness depends on free-form status summaries | Release and handoff tools preserve blockers, policy obligations, evidence warnings, and human approval points |
|
|
40
44
|
|
|
41
|
-
|
|
45
|
+
This server does not write code, merge pull requests, force-push, create releases, deploy software, or replace human security review.
|
|
42
46
|
|
|
43
|
-
|
|
47
|
+
## How it fits into a production agent workflow
|
|
44
48
|
|
|
45
|
-
|
|
46
|
-
|---|---|---|
|
|
47
|
-
| **💡 Planning & Context** | [`repo_context`](#repo_context)<br>[`plan_from_context`](#plan_from_context)<br>[`prepare_work_item`](#prepare_work_item) | Understand the codebase, structure phase-by-phase plans, and generate agent briefs. |
|
|
48
|
-
| **🚀 Execution** | [`create_issue_set`](#create_issue_set) | Batch-create GitHub issues mapping directly to the SDLC plan. |
|
|
49
|
-
| **🔍 Review & Verification** | [`quality_gate_status`](#quality_gate_status)<br>[`create_pr_summary`](#create_pr_summary)<br>[`review_pr_against_standard`](#review_pr_against_standard) | Audit CI checks, generate structured PR summaries, and review code against SDLC standard levels. |
|
|
50
|
-
| **🛡️ Governance & Security** | [`branch_protection_status`](#branch_protection_status)<br>[`workflow_permissions_audit`](#workflow_permissions_audit)<br>[`security_triage`](#security_triage)<br>[`release_readiness_check`](#release_readiness_check) | Query branch rule enforcement, audit Actions workflow permissions, triage vulnerabilities, and perform pre-release checks. |
|
|
51
|
-
| **🤝 Handoff & Continuity** | [`agent_handoff_packet`](#agent_handoff_packet) | Compile a packet so other agents can seamlessly take over the work. |
|
|
49
|
+
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.
|
|
52
50
|
|
|
53
|
-
---
|
|
54
|
-
|
|
55
|
-
## 🗺️ System Architecture
|
|
56
51
|
```mermaid
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
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)
|
|
52
|
+
flowchart LR
|
|
53
|
+
Policy["Engineering policy<br>and repository rules"] --> MCP["agentic-sdlc-mcp"]
|
|
54
|
+
Agent["AI coding agent<br>Claude Code · Cursor · MCP client"] --> MCP
|
|
55
|
+
MCP --> GitHub["GitHub API evidence"]
|
|
56
|
+
GitHub --> MCP
|
|
57
|
+
MCP --> Reports["Briefs · plans · gates<br>reviews · release reports"]
|
|
58
|
+
Reports --> Agent
|
|
59
|
+
Reports --> Human["Human review and approval"]
|
|
60
|
+
Agent -. "Code · commits · pull requests" .-> GitHub
|
|
61
|
+
Human -. "Merge · release · deploy" .-> GitHub
|
|
80
62
|
```
|
|
81
63
|
|
|
82
|
-
|
|
64
|
+
## Where it helps
|
|
83
65
|
|
|
84
|
-
|
|
66
|
+
Use the tools as decision support at the points where an autonomous agent would otherwise guess or rely on stale prose.
|
|
85
67
|
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
68
|
+
| Production scenario | Recommended tools | Decision artifact |
|
|
69
|
+
|---|---|---|
|
|
70
|
+
| Onboard an agent into an unfamiliar repository | `repo_context` | Repository briefing with scripts, workflows, policy, open work, and known gaps |
|
|
71
|
+
| 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 |
|
|
72
|
+
| Prepare auth, payment, migration, or infrastructure work | `prepare_work_item` | Risk-aware brief with defensive requirements, negative tests, rollback, and observability |
|
|
73
|
+
| Detect dynamic credential construction in a patch | `review_pr_against_standard` | Patch-local findings for concatenation, interpolation, decoding, aliases, and auth-header sinks |
|
|
74
|
+
| 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 |
|
|
75
|
+
| Audit repository governance | `branch_protection_status` → `workflow_permissions_audit` | Branch/ruleset evidence and GitHub Actions least-privilege findings |
|
|
76
|
+
| Assess release readiness | `security_triage` → `release_readiness_check` | Security-alert summary, CI evidence, release blockers, changelog status, and rollback requirements |
|
|
77
|
+
| Transfer work to another agent | `agent_handoff_packet` | Bounded continuation packet that labels caller assertions and evidence warnings |
|
|
78
|
+
| Archive a decision snapshot | `sdlc_evidence_packet` | Versioned Issue, PR, or release evidence with provenance, freshness, completeness, and a stable content digest |
|
|
94
79
|
|
|
95
|
-
|
|
80
|
+
## Install from npm
|
|
96
81
|
|
|
97
|
-
|
|
82
|
+
You need Node.js 22 or newer. Node 22 and 24 are tested in GitHub Actions. Run the published package directly from npm:
|
|
98
83
|
|
|
99
|
-
|
|
100
|
-
You do not need to download or clone the repository. Run the server directly inside your MCP client environment:
|
|
101
|
-
```bash
|
|
84
|
+
```powershell
|
|
102
85
|
npx -y agentic-sdlc-mcp
|
|
103
86
|
```
|
|
104
87
|
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
```
|
|
88
|
+
For a global CLI installation:
|
|
89
|
+
|
|
90
|
+
```powershell
|
|
108
91
|
npm install -g agentic-sdlc-mcp
|
|
109
|
-
# Start using the global command
|
|
110
92
|
agentic-sdlc-mcp
|
|
111
93
|
```
|
|
112
94
|
|
|
113
|
-
|
|
114
|
-
If you want to run or extend the server locally from the source code:
|
|
115
|
-
```bash
|
|
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
|
-
```
|
|
122
|
-
|
|
123
|
-
---
|
|
95
|
+
The default transport is stdio. Most MCP clients should start the package for you instead of running it in a separate terminal.
|
|
124
96
|
|
|
125
|
-
##
|
|
97
|
+
## Let a coding agent set it up
|
|
126
98
|
|
|
127
|
-
|
|
99
|
+
Paste this prompt into Codex, Claude Code, or another coding agent:
|
|
128
100
|
|
|
129
|
-
|
|
101
|
+
```text
|
|
102
|
+
Use npm install -g agentic-sdlc-mcp to install and configure this MCP globally. Repository: https://github.com/SakuraCianna/agentic-sdlc-mcp
|
|
103
|
+
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.
|
|
104
|
+
Then verify the connection with the read-only repo_context tool and summarize its capabilities, required GitHub permissions, and safety boundaries.
|
|
105
|
+
```
|
|
130
106
|
|
|
131
|
-
|
|
107
|
+
Review every command and configuration change before approving it. Node.js 22 or newer is required.
|
|
132
108
|
|
|
133
|
-
|
|
109
|
+
## Connect an MCP client
|
|
134
110
|
|
|
135
|
-
Add
|
|
111
|
+
Add the server to Claude Desktop, Cursor, Windsurf, or another MCP client. Inject the GitHub token through the client's secret or environment configuration.
|
|
136
112
|
|
|
137
|
-
### Claude Desktop / Cursor / Windsurf (Using npm package)
|
|
138
113
|
```json
|
|
139
114
|
{
|
|
140
115
|
"mcpServers": {
|
|
@@ -142,233 +117,257 @@ Add this server configuration to your MCP client setting files (e.g., `claude_de
|
|
|
142
117
|
"command": "npx",
|
|
143
118
|
"args": ["-y", "agentic-sdlc-mcp"],
|
|
144
119
|
"env": {
|
|
145
|
-
"GITHUB_TOKEN": "
|
|
146
|
-
"GITHUB_OWNER": "
|
|
147
|
-
"GITHUB_REPO": "
|
|
120
|
+
"GITHUB_TOKEN": "your_github_token_here",
|
|
121
|
+
"GITHUB_OWNER": "your_organization",
|
|
122
|
+
"GITHUB_REPO": "your_repository"
|
|
148
123
|
}
|
|
149
124
|
}
|
|
150
125
|
}
|
|
151
126
|
}
|
|
152
127
|
```
|
|
153
128
|
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
In addition to specifying environment variables in your MCP client configurations, you can configure your GitHub credentials globally using an interactive terminal questionnaire. The settings will be saved to `~/.agentic-sdlc-mcp.json` under your home directory and automatically loaded in subsequent runs.
|
|
129
|
+
Some Windows MCP clients require `npx` through `cmd`:
|
|
157
130
|
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
npx agentic-sdlc-mcp
|
|
131
|
+
```json
|
|
132
|
+
{
|
|
133
|
+
"command": "cmd",
|
|
134
|
+
"args": ["/c", "npx", "-y", "agentic-sdlc-mcp"]
|
|
135
|
+
}
|
|
162
136
|
```
|
|
163
|
-
This guides you through configuring:
|
|
164
|
-
* `GITHUB_TOKEN` (Primary token; [generate one here](https://github.com/settings/tokens) and follow the least-privilege matrix in [Prerequisites](#-prerequisites))
|
|
165
|
-
* `GITHUB_OWNER` (Default repository owner name, optional)
|
|
166
|
-
* `GITHUB_REPO` (Default repository name, optional)
|
|
167
137
|
|
|
168
|
-
|
|
169
|
-
|
|
138
|
+
`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.
|
|
139
|
+
|
|
140
|
+
<details>
|
|
141
|
+
<summary>Local interactive configuration</summary>
|
|
170
142
|
|
|
171
|
-
#### 3. Global Environment Variables (Fallback)
|
|
172
|
-
You can still define environment variables directly in your terminal shell (`PowerShell` for Windows or `bash` for macOS/Linux):
|
|
173
143
|
```powershell
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
144
|
+
npx -y agentic-sdlc-mcp configure
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
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.
|
|
148
|
+
|
|
149
|
+
</details>
|
|
150
|
+
|
|
151
|
+
## Verify the connection
|
|
152
|
+
|
|
153
|
+
Start with a read-only call so you can inspect the repository boundary before granting write access:
|
|
154
|
+
|
|
155
|
+
```text
|
|
156
|
+
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.
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
Then validate the write boundary without creating anything:
|
|
160
|
+
|
|
161
|
+
```text
|
|
162
|
+
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.
|
|
163
|
+
```
|
|
164
|
+
|
|
165
|
+
See the [client-neutral smoke test](docs/ai-coding-agent-smoke-test.md) for a five-minute verification path.
|
|
166
|
+
|
|
167
|
+
## Tools
|
|
168
|
+
|
|
169
|
+
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.
|
|
170
|
+
|
|
171
|
+
| Tool | Use it when | Main result | Access |
|
|
172
|
+
|---|---|---|---|
|
|
173
|
+
| `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 |
|
|
174
|
+
| `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 |
|
|
175
|
+
| `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 |
|
|
176
|
+
| `create_issue_set` | A reviewed plan should become GitHub Issues | Exact dry-run preview or partial-success-aware live creation result | Preview-first write |
|
|
177
|
+
| `create_pr_summary` | A pull request needs a reviewable overview | Change summary, affected files, test signals, risks, checklist, and release-note draft | Read-only |
|
|
178
|
+
| `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 |
|
|
179
|
+
| `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 |
|
|
180
|
+
| `branch_protection_status` | A team needs branch and ruleset visibility | Required reviews, status checks, force-push and deletion settings, and verification gaps | Read-only |
|
|
181
|
+
| `workflow_permissions_audit` | GitHub Actions token permissions need review | Top-level and job-level permission findings with least-privilege guidance | Read-only |
|
|
182
|
+
| `security_triage` | Release or incident work needs GitHub security alerts | Code scanning, Dependabot, and secret scanning triage | Read-only |
|
|
183
|
+
| `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 |
|
|
184
|
+
| `agent_handoff_packet` | Another agent must continue the work | Compact issue/PR context, policy obligations, caller assertions, warnings, and ordered next steps | Read-only |
|
|
185
|
+
| `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 |
|
|
186
|
+
|
|
187
|
+
<details>
|
|
188
|
+
<summary>Context and planning details</summary>
|
|
189
|
+
|
|
190
|
+
- **`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.
|
|
191
|
+
- **`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.
|
|
192
|
+
- **`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.
|
|
193
|
+
|
|
194
|
+
</details>
|
|
195
|
+
|
|
196
|
+
<details>
|
|
197
|
+
<summary>Work tracking details</summary>
|
|
198
|
+
|
|
199
|
+
- **`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.
|
|
200
|
+
|
|
201
|
+
</details>
|
|
202
|
+
|
|
203
|
+
<details>
|
|
204
|
+
<summary>Pull request evidence details</summary>
|
|
205
|
+
|
|
206
|
+
- **`create_pr_summary`**: Caps file evidence and reports truncation. Documentation-only changes receive document validation guidance instead of a false missing-code-tests warning.
|
|
207
|
+
- **`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.
|
|
208
|
+
- **`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. Its dynamic secret construction scanner is bounded, patch-local analysis, not whole-program data flow or proof that a repository is secret-free.
|
|
209
|
+
|
|
210
|
+
</details>
|
|
211
|
+
|
|
212
|
+
<details>
|
|
213
|
+
<summary>Governance and release details</summary>
|
|
214
|
+
|
|
215
|
+
- **`branch_protection_status`**: Reads classic protection and repository rulesets. Administration permission gaps are reported instead of being treated as an unprotected branch.
|
|
216
|
+
- **`workflow_permissions_audit`**: Reads `.github/workflows/*.yml` and evaluates repository and job-level `permissions` declarations. It does not edit workflow files or repository settings.
|
|
217
|
+
- **`security_triage`**: Reads Code Scanning, Dependabot, and Secret Scanning alerts. Availability depends on repository features and token permissions.
|
|
218
|
+
- **`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.
|
|
219
|
+
|
|
220
|
+
</details>
|
|
221
|
+
|
|
222
|
+
<details>
|
|
223
|
+
<summary>Handoff details</summary>
|
|
224
|
+
|
|
225
|
+
- **`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.
|
|
226
|
+
- **`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.
|
|
227
|
+
- 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.
|
|
228
|
+
|
|
229
|
+
</details>
|
|
230
|
+
|
|
231
|
+
The server also exposes five read-only `sdlc://` resources for the SDLC standard and Issue, PR summary, release-readiness, and handoff templates.
|
|
232
|
+
|
|
233
|
+
## Common workflows
|
|
234
|
+
|
|
235
|
+
These sequences reduce tool-selection ambiguity. Each sequence ends with a human decision.
|
|
236
|
+
|
|
237
|
+
```text
|
|
238
|
+
Start work
|
|
239
|
+
repo_context → plan_from_context → create_issue_set (dryRun: true)
|
|
240
|
+
→ human confirms the work items → create_issue_set (dryRun: false)
|
|
241
|
+
→ prepare_work_item
|
|
242
|
+
|
|
243
|
+
Review a pull request
|
|
244
|
+
create_pr_summary → quality_gate_status → review_pr_against_standard
|
|
245
|
+
→ human reviews findings and decides whether to merge
|
|
246
|
+
|
|
247
|
+
Review governance
|
|
248
|
+
branch_protection_status → workflow_permissions_audit → security_triage
|
|
249
|
+
→ repository owners decide which settings or workflows to change
|
|
250
|
+
|
|
251
|
+
Prepare a release
|
|
252
|
+
security_triage → release_readiness_check → sdlc_evidence_packet
|
|
253
|
+
→ human approves the tag, release, and deployment
|
|
254
|
+
|
|
255
|
+
Transfer work
|
|
256
|
+
relevant evidence tools → sdlc_evidence_packet → agent_handoff_packet
|
|
257
|
+
→ the next agent validates stale or caller-asserted state before continuing
|
|
178
258
|
```
|
|
179
259
|
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
* `includePolicy` (boolean, default: `false`): Include validated repository policy, digest, stable rule IDs, and source ref/blob SHA.
|
|
223
|
-
* `includeOpenIssues` / `includeOpenPRs` (boolean, default: `false`): Include recent open issues/PRs.
|
|
224
|
-
* `issueLimit` / `prLimit` (number, default: `20`, max: `100`): Cap how many issues/PRs are fetched.
|
|
225
|
-
* `maxReadmeChars` (number, default: `3000`): Max README characters before truncation.
|
|
226
|
-
* `maxInstructionChars` (number, default: `1000`): Max characters per agent instruction file summary before truncation.
|
|
227
|
-
|
|
228
|
-
### `plan_from_context`
|
|
229
|
-
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.
|
|
230
|
-
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`.
|
|
231
|
-
Repository policy can add a default work type, required checks, protected-path constraints, and review/release tasks. An explicit caller `workType` always wins.
|
|
232
|
-
* **Arguments:**
|
|
233
|
-
* `owner` / `repo` (string, optional): Repo coordinates.
|
|
234
|
-
* `goal` (string, required): The target feature or fix description.
|
|
235
|
-
* `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.
|
|
236
|
-
* `constraints` (string[], optional): Technical or business constraints.
|
|
237
|
-
* `acceptanceCriteria` (string[], optional): Explicit acceptance criteria (also used for workType inference).
|
|
238
|
-
|
|
239
|
-
### `create_issue_set`
|
|
240
|
-
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.
|
|
241
|
-
* **Arguments:**
|
|
242
|
-
* `owner` / `repo` (string, optional): Repo coordinates.
|
|
243
|
-
* `issues` (array of objects, required): Structured list of issues to create (title, body, labels, and optional assignees). Accepts `plan_from_context.issueDrafts` directly.
|
|
244
|
-
* `dryRun` (boolean, default: `true`): If `true`, previews the list without writing to GitHub.
|
|
245
|
-
|
|
246
|
-
### `prepare_work_item`
|
|
247
|
-
Generates an agent-ready brief for a specific issue containing goals, non-goals, and technical risks.
|
|
248
|
-
* **Arguments:**
|
|
249
|
-
* `owner` / `repo` (string, optional): Repo coordinates.
|
|
250
|
-
* `issueNumber` (number, required): The target issue ID.
|
|
251
|
-
* `includeRelatedFiles` (boolean, default: `false`): Heuristically extract mentioned file paths.
|
|
252
|
-
* `includeRecentPRs` (boolean, default: `false`): Scan up to 5 merged PRs that touched these paths.
|
|
253
|
-
|
|
254
|
-
### `quality_gate_status`
|
|
255
|
-
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.
|
|
256
|
-
* **Arguments:**
|
|
257
|
-
* `owner` / `repo` (string, optional): Repo coordinates.
|
|
258
|
-
* `pullNumber` (number, optional): Query checks by PR number.
|
|
259
|
-
* `ref` (string, optional): Query checks by branch, tag, or SHA.
|
|
260
|
-
* `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.
|
|
261
|
-
|
|
262
|
-
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.
|
|
263
|
-
|
|
264
|
-
### `create_pr_summary`
|
|
265
|
-
Generates a structured pull request description and changelog draft.
|
|
266
|
-
* **Arguments:**
|
|
267
|
-
* `owner` / `repo` (string, optional): Repo coordinates.
|
|
268
|
-
* `pullNumber` (number, required): The pull request ID.
|
|
269
|
-
|
|
270
|
-
### `review_pr_against_standard`
|
|
271
|
-
Reviews pull request code changes against SDLC governance levels (`basic` / `strict` / `security-focused`).
|
|
272
|
-
|
|
273
|
-
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.
|
|
274
|
-
|
|
275
|
-
`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.
|
|
276
|
-
|
|
277
|
-
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.
|
|
278
|
-
|
|
279
|
-
* **Arguments:**
|
|
280
|
-
* `owner` / `repo` (string, optional): Repo coordinates.
|
|
281
|
-
* `pullNumber` (number, required): The pull request ID.
|
|
282
|
-
* `standard` (string, default: `"basic"`): Standard level.
|
|
283
|
-
* `workType` (string, optional): Explicit work type; omit to infer it from PR metadata and paths.
|
|
284
|
-
* `checkOwnership` (boolean, default: `true`): Validates file ownership changes against `.github/CODEOWNERS` and flags unassigned reviewers.
|
|
285
|
-
|
|
286
|
-
### `security_triage`
|
|
287
|
-
Retrieves and triages Code Scanning, Dependabot, and Secret Scanning alerts.
|
|
288
|
-
* **Arguments:**
|
|
289
|
-
* `owner` / `repo` (string, optional): Repo coordinates.
|
|
290
|
-
|
|
291
|
-
### `release_readiness_check`
|
|
292
|
-
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.
|
|
293
|
-
* **Arguments:**
|
|
294
|
-
* `owner` / `repo` (string, optional): Repo coordinates.
|
|
295
|
-
* `headRef` (string, optional): Target release branch/tag.
|
|
296
|
-
* `pullNumber` (number, optional): Evaluate the PR head and its real blocking labels.
|
|
297
|
-
* `rollbackPlanEvidence` (object, optional): Caller-sourced `{ reference, tested }`, required when repository policy requires a tested rollback plan.
|
|
298
|
-
|
|
299
|
-
### Repository policy
|
|
300
|
-
|
|
301
|
-
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.
|
|
302
|
-
|
|
303
|
-
### `branch_protection_status`
|
|
304
|
-
Queries classic branch protection and repository rulesets for required reviews, status checks, and push limits.
|
|
305
|
-
* **Arguments:**
|
|
306
|
-
* `owner` / `repo` (string, optional): Repo coordinates.
|
|
307
|
-
* `branch` (string, optional): Target branch. Defaults to default branch.
|
|
308
|
-
|
|
309
|
-
### `workflow_permissions_audit`
|
|
310
|
-
Scans `.github/workflows/*.yml` files for `permissions` blocks and flags over-permissioned tokens.
|
|
311
|
-
* **Arguments:**
|
|
312
|
-
* `owner` / `repo` (string, optional): Repo coordinates.
|
|
313
|
-
* `ref` (string, optional): Git ref. Defaults to default branch.
|
|
314
|
-
|
|
315
|
-
### `agent_handoff_packet`
|
|
316
|
-
Compiles current issue context, completed work, and remaining tasks into a compact prompt packet for the next agent.
|
|
317
|
-
* **Arguments:**
|
|
318
|
-
* `owner` / `repo` (string, optional): Repo coordinates.
|
|
319
|
-
* `issueNumber` (number, required): Active issue ID.
|
|
320
|
-
|
|
321
|
-
---
|
|
322
|
-
|
|
323
|
-
## 📚 Resources Reference
|
|
324
|
-
|
|
325
|
-
The server exposes read-only static resources under the `sdlc://` schema for quick agent guidance:
|
|
326
|
-
|
|
327
|
-
| Resource URI | Description |
|
|
260
|
+
## GitHub permissions
|
|
261
|
+
|
|
262
|
+
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.
|
|
263
|
+
|
|
264
|
+
| Capability | Fine-grained repository permission | Classic PAT scope | Used by |
|
|
265
|
+
|---|---|---|---|
|
|
266
|
+
| Repository metadata and files | Metadata read, Contents read | `repo` or `public_repo` | Context, policy, workflow, review, changelog, and CODEOWNERS evidence |
|
|
267
|
+
| Issues | Issues read | `repo` or `public_repo` | Context, planning, work-item briefs, gates, releases, and handoffs |
|
|
268
|
+
| Pull requests and reviews | Pull requests read | `repo` or `public_repo` | PR summaries, gates, reviews, and handoffs |
|
|
269
|
+
| Checks and statuses | Checks read, Commit statuses read | `repo` or `public_repo` | Quality gates, release readiness, and trusted scanner evidence |
|
|
270
|
+
| Actions provenance | Actions read | `repo` or `public_repo` | Workflow run, job, and workflow identity behind trusted scanner evidence |
|
|
271
|
+
| Branch protection | Administration read | `repo` or `public_repo` | Classic branch protection; repository rulesets use Metadata read |
|
|
272
|
+
| Code scanning alerts | Code scanning alerts read | `security_events` | `security_triage` |
|
|
273
|
+
| Dependabot alerts | Dependabot alerts read | `security_events` | `security_triage` |
|
|
274
|
+
| Secret scanning alerts | Secret scanning alerts read | `security_events` | `security_triage` |
|
|
275
|
+
| Create Issues | Issues write | `repo` or `public_repo` | Only `create_issue_set` with `dryRun: false` |
|
|
276
|
+
|
|
277
|
+
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.
|
|
278
|
+
|
|
279
|
+
## Safety and trust boundaries
|
|
280
|
+
|
|
281
|
+
The server constrains its own tools. It cannot control every action available to the surrounding AI agent or MCP client.
|
|
282
|
+
|
|
283
|
+
- **One preview-first write tool**: `create_issue_set` is the only GitHub write tool and defaults to `dryRun: true`
|
|
284
|
+
- **No privileged repository mutations**: no merge, approval, force-push, branch deletion, branch-rule mutation, release creation, or deployment tools
|
|
285
|
+
- **Human gates remain external**: the server reports CODEOWNERS, review, policy, CI, security, and release evidence; GitHub and your team enforce the final decision
|
|
286
|
+
- **Evidence stays qualified**: missing, stale, truncated, malformed, or permission-limited sources remain visible as gaps
|
|
287
|
+
- **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
|
|
288
|
+
- **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
|
|
289
|
+
- **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
|
|
290
|
+
- **Credentials remain your responsibility**: prefer client secret injection or environment variables; never commit tokens or paste them into Issue, PR, or log content
|
|
291
|
+
- **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
|
|
292
|
+
|
|
293
|
+
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.
|
|
294
|
+
|
|
295
|
+
## Repository policy and resources
|
|
296
|
+
|
|
297
|
+
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.
|
|
298
|
+
|
|
299
|
+
Static resources are available under the `sdlc://` scheme:
|
|
300
|
+
|
|
301
|
+
| Resource | Purpose |
|
|
328
302
|
|---|---|
|
|
329
|
-
| `sdlc://standards/agentic-sdlc` |
|
|
330
|
-
| `sdlc://templates/issue` |
|
|
331
|
-
| `sdlc://templates/pr-summary` |
|
|
332
|
-
| `sdlc://templates/release-readiness` |
|
|
333
|
-
| `sdlc://templates/handoff` |
|
|
303
|
+
| `sdlc://standards/agentic-sdlc` | Agentic SDLC reference standard |
|
|
304
|
+
| `sdlc://templates/issue` | Structured GitHub Issue template |
|
|
305
|
+
| `sdlc://templates/pr-summary` | Pull request summary template |
|
|
306
|
+
| `sdlc://templates/release-readiness` | Pre-release checklist |
|
|
307
|
+
| `sdlc://templates/handoff` | Agent continuation template |
|
|
334
308
|
|
|
335
|
-
|
|
309
|
+
## Local HTTP profile
|
|
336
310
|
|
|
337
|
-
|
|
311
|
+
Stdio is the default and recommended local transport. A local client that requires Streamable HTTP can opt in after building from source:
|
|
338
312
|
|
|
339
|
-
|
|
313
|
+
```powershell
|
|
314
|
+
$env:TRANSPORT = "http"
|
|
315
|
+
$env:PORT = "3000"
|
|
316
|
+
node dist/index.js
|
|
317
|
+
```
|
|
340
318
|
|
|
341
|
-
|
|
342
|
-
* **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.
|
|
343
|
-
* **Zero Self-Merge Policy**: No tools exist to auto-merge pull requests. Human approval is required on all merge gates.
|
|
344
|
-
* **Access Restraints**: The server does not support force-pushing or deleting branch rules.
|
|
345
|
-
* **CODEOWNERS Enforced Review**: Special paths (such as workflows under `.github/` and core files under `src/`) require owner approvals.
|
|
346
|
-
* **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.
|
|
319
|
+
The endpoint is `http://127.0.0.1:3000/mcp`. It binds only to loopback, validates `Host` and supplied `Origin`, creates an isolated stateless server and transport for each POST, rejects unsupported GET/DELETE session operations, bounds error details, and handles shutdown signals.
|
|
347
320
|
|
|
348
|
-
|
|
321
|
+
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.
|
|
349
322
|
|
|
350
|
-
##
|
|
323
|
+
## Development and project links
|
|
351
324
|
|
|
352
|
-
|
|
353
|
-
* `npm run typecheck`: Runs TypeScript compiler type checking.
|
|
354
|
-
* `npm run build`: Compiles TS files to the `dist/` directory.
|
|
355
|
-
* `npm run test`: Executes the full unit test suite.
|
|
356
|
-
* `npm run smoke`: Verifies registration and loading without external credentials.
|
|
325
|
+
Clone the repository only when you want to contribute or inspect the implementation:
|
|
357
326
|
|
|
358
|
-
|
|
359
|
-
|
|
327
|
+
```powershell
|
|
328
|
+
git clone https://github.com/SakuraCianna/agentic-sdlc-mcp.git
|
|
329
|
+
Set-Location agentic-sdlc-mcp
|
|
330
|
+
npm install
|
|
331
|
+
npm run build
|
|
332
|
+
npm run test
|
|
333
|
+
```
|
|
360
334
|
|
|
361
|
-
|
|
335
|
+
| Command | Purpose |
|
|
336
|
+
|---|---|
|
|
337
|
+
| `npm run typecheck` | Check TypeScript types |
|
|
338
|
+
| `npm run build` | Build `dist/` |
|
|
339
|
+
| `npm run test` | Run the full Vitest suite |
|
|
340
|
+
| `npm run test:integration` | Run configuration and MCP runtime integration tests |
|
|
341
|
+
| `npm run test:coverage` | Enforce coverage floors and write reports |
|
|
342
|
+
| `npm run smoke` | Verify registration without GitHub credentials |
|
|
343
|
+
| `npm run check:line-endings` | Reject CRLF and mixed line endings |
|
|
362
344
|
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
345
|
+
CI runs the full suite on Node 22 and Node 24. 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.
|
|
346
|
+
|
|
347
|
+
## Contribute through issues and pull requests
|
|
348
|
+
|
|
349
|
+
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.
|
|
350
|
+
|
|
351
|
+
1. Fork the repository and create a focused branch from the latest `main`.
|
|
352
|
+
2. Run `npm ci`, then make only the changes required for the contribution.
|
|
353
|
+
3. Add or update tests and documentation when behavior changes.
|
|
354
|
+
4. Run the checks relevant to your change. The full CI suite runs `npm run check:line-endings`, `npm run typecheck`, `npm run build`, `npm run test`, `npm run smoke`, and `npm run test:coverage`.
|
|
355
|
+
5. Open a pull request against `main`. Describe the problem, solution, risks, validation results, and linked Issues.
|
|
356
|
+
|
|
357
|
+
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.
|
|
358
|
+
|
|
359
|
+
- [Roadmap](docs/ROADMAP.md)
|
|
360
|
+
- [Repository policy guide](docs/repository-policy.md)
|
|
361
|
+
- [Testing strategy](docs/testing-strategy.md)
|
|
362
|
+
- [Remote deployment re-entry criteria](docs/remote-deployment-considerations.md)
|
|
363
|
+
- [v1.9.0 release notes](docs/releases/v1.9.0.md)
|
|
364
|
+
- [AI coding agent smoke test](docs/ai-coding-agent-smoke-test.md)
|
|
365
|
+
- [Changelog](CHANGELOG.md)
|
|
366
|
+
- [Releases](https://github.com/SakuraCianna/agentic-sdlc-mcp/releases)
|
|
367
|
+
- [Open issues](https://github.com/SakuraCianna/agentic-sdlc-mcp/issues)
|
|
369
368
|
|
|
370
|
-
|
|
369
|
+
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.
|
|
371
370
|
|
|
372
|
-
##
|
|
371
|
+
## License
|
|
373
372
|
|
|
374
|
-
|
|
373
|
+
[MIT](LICENSE)
|