agentic-sdlc-mcp 1.9.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.
Files changed (187) hide show
  1. package/README.md +74 -6
  2. package/README_zh.md +441 -0
  3. package/dist/assessment/acceptance.d.ts +155 -0
  4. package/dist/assessment/acceptance.d.ts.map +1 -0
  5. package/dist/assessment/acceptance.js +278 -0
  6. package/dist/assessment/acceptance.js.map +1 -0
  7. package/dist/assessment/continuity.d.ts +266 -0
  8. package/dist/assessment/continuity.d.ts.map +1 -0
  9. package/dist/assessment/continuity.js +246 -0
  10. package/dist/assessment/continuity.js.map +1 -0
  11. package/dist/assessment/current-check.d.ts +36 -0
  12. package/dist/assessment/current-check.d.ts.map +1 -0
  13. package/dist/assessment/current-check.js +303 -0
  14. package/dist/assessment/current-check.js.map +1 -0
  15. package/dist/assessment/github-session.d.ts +15 -0
  16. package/dist/assessment/github-session.d.ts.map +1 -0
  17. package/dist/assessment/github-session.js +157 -0
  18. package/dist/assessment/github-session.js.map +1 -0
  19. package/dist/assessment/pr-assessment.d.ts +168 -0
  20. package/dist/assessment/pr-assessment.d.ts.map +1 -0
  21. package/dist/assessment/pr-assessment.js +139 -0
  22. package/dist/assessment/pr-assessment.js.map +1 -0
  23. package/dist/briefing/work-item-brief.d.ts.map +1 -1
  24. package/dist/briefing/work-item-brief.js +58 -12
  25. package/dist/briefing/work-item-brief.js.map +1 -1
  26. package/dist/cli/arguments.d.ts +14 -0
  27. package/dist/cli/arguments.d.ts.map +1 -0
  28. package/dist/cli/arguments.js +62 -0
  29. package/dist/cli/arguments.js.map +1 -0
  30. package/dist/cli/doctor.d.ts +28 -0
  31. package/dist/cli/doctor.d.ts.map +1 -0
  32. package/dist/cli/doctor.js +56 -0
  33. package/dist/cli/doctor.js.map +1 -0
  34. package/dist/cli/github-client.d.ts +4 -0
  35. package/dist/cli/github-client.d.ts.map +1 -0
  36. package/dist/cli/github-client.js +11 -0
  37. package/dist/cli/github-client.js.map +1 -0
  38. package/dist/cli/run.d.ts +12 -0
  39. package/dist/cli/run.d.ts.map +1 -0
  40. package/dist/cli/run.js +204 -0
  41. package/dist/cli/run.js.map +1 -0
  42. package/dist/cli.d.ts +3 -0
  43. package/dist/cli.d.ts.map +1 -0
  44. package/dist/cli.js +14 -0
  45. package/dist/cli.js.map +1 -0
  46. package/dist/config.d.ts.map +1 -1
  47. package/dist/config.js +15 -3
  48. package/dist/config.js.map +1 -1
  49. package/dist/contracts/mcp-manifest.d.ts +70 -0
  50. package/dist/contracts/mcp-manifest.d.ts.map +1 -0
  51. package/dist/contracts/mcp-manifest.js +571 -0
  52. package/dist/contracts/mcp-manifest.js.map +1 -0
  53. package/dist/evaluation/budgets.d.ts +89 -0
  54. package/dist/evaluation/budgets.d.ts.map +1 -0
  55. package/dist/evaluation/budgets.js +234 -0
  56. package/dist/evaluation/budgets.js.map +1 -0
  57. package/dist/evaluation/faults.d.ts +153 -0
  58. package/dist/evaluation/faults.d.ts.map +1 -0
  59. package/dist/evaluation/faults.js +95 -0
  60. package/dist/evaluation/faults.js.map +1 -0
  61. package/dist/evaluation/model.d.ts +115 -0
  62. package/dist/evaluation/model.d.ts.map +1 -0
  63. package/dist/evaluation/model.js +242 -0
  64. package/dist/evaluation/model.js.map +1 -0
  65. package/dist/evaluation/scorer.d.ts +46 -0
  66. package/dist/evaluation/scorer.d.ts.map +1 -0
  67. package/dist/evaluation/scorer.js +126 -0
  68. package/dist/evaluation/scorer.js.map +1 -0
  69. package/dist/evidence/model.d.ts +1 -0
  70. package/dist/evidence/model.d.ts.map +1 -1
  71. package/dist/evidence/model.js +3 -2
  72. package/dist/evidence/model.js.map +1 -1
  73. package/dist/evidence/render.d.ts.map +1 -1
  74. package/dist/evidence/render.js +2 -1
  75. package/dist/evidence/render.js.map +1 -1
  76. package/dist/evidence/timeout.d.ts +11 -0
  77. package/dist/evidence/timeout.d.ts.map +1 -1
  78. package/dist/evidence/timeout.js +31 -4
  79. package/dist/evidence/timeout.js.map +1 -1
  80. package/dist/github/client.d.ts +6 -0
  81. package/dist/github/client.d.ts.map +1 -1
  82. package/dist/github/client.js +44 -15
  83. package/dist/github/client.js.map +1 -1
  84. package/dist/github/context.d.ts.map +1 -1
  85. package/dist/github/context.js +5 -0
  86. package/dist/github/context.js.map +1 -1
  87. package/dist/github/pull-request-evidence.d.ts +7 -1
  88. package/dist/github/pull-request-evidence.d.ts.map +1 -1
  89. package/dist/github/pull-request-evidence.js +47 -8
  90. package/dist/github/pull-request-evidence.js.map +1 -1
  91. package/dist/http-server.d.ts +6 -4
  92. package/dist/http-server.d.ts.map +1 -1
  93. package/dist/http-server.js +249 -31
  94. package/dist/http-server.js.map +1 -1
  95. package/dist/index.d.ts +1 -11
  96. package/dist/index.d.ts.map +1 -1
  97. package/dist/index.js +18 -9
  98. package/dist/index.js.map +1 -1
  99. package/dist/operations/issue-creation.d.ts +44 -0
  100. package/dist/operations/issue-creation.d.ts.map +1 -0
  101. package/dist/operations/issue-creation.js +237 -0
  102. package/dist/operations/issue-creation.js.map +1 -0
  103. package/dist/resources/index.d.ts +1 -1
  104. package/dist/resources/index.d.ts.map +1 -1
  105. package/dist/review/pull-request-review.d.ts +3 -1
  106. package/dist/review/pull-request-review.d.ts.map +1 -1
  107. package/dist/review/pull-request-review.js +911 -108
  108. package/dist/review/pull-request-review.js.map +1 -1
  109. package/dist/security/prompt-injection-patterns.d.ts.map +1 -1
  110. package/dist/security/prompt-injection-patterns.js +54 -6
  111. package/dist/security/prompt-injection-patterns.js.map +1 -1
  112. package/dist/security/secret-scanner-evidence.d.ts +23 -1
  113. package/dist/security/secret-scanner-evidence.d.ts.map +1 -1
  114. package/dist/security/secret-scanner-evidence.js +380 -40
  115. package/dist/security/secret-scanner-evidence.js.map +1 -1
  116. package/dist/server.d.ts +1 -1
  117. package/dist/server.d.ts.map +1 -1
  118. package/dist/server.js +1 -1
  119. package/dist/server.js.map +1 -1
  120. package/dist/stdio-server.d.ts +5 -0
  121. package/dist/stdio-server.d.ts.map +1 -0
  122. package/dist/stdio-server.js +7 -0
  123. package/dist/stdio-server.js.map +1 -0
  124. package/dist/tools/agent-handoff.d.ts +1 -1
  125. package/dist/tools/agent-handoff.d.ts.map +1 -1
  126. package/dist/tools/agent-handoff.js +1 -1
  127. package/dist/tools/agent-handoff.js.map +1 -1
  128. package/dist/tools/branch-protection-status.d.ts +1 -1
  129. package/dist/tools/branch-protection-status.d.ts.map +1 -1
  130. package/dist/tools/branch-protection-status.js +1 -1
  131. package/dist/tools/branch-protection-status.js.map +1 -1
  132. package/dist/tools/create-issue-set.d.ts +66 -3
  133. package/dist/tools/create-issue-set.d.ts.map +1 -1
  134. package/dist/tools/create-issue-set.js +75 -71
  135. package/dist/tools/create-issue-set.js.map +1 -1
  136. package/dist/tools/create-pr-summary.d.ts +2 -2
  137. package/dist/tools/create-pr-summary.d.ts.map +1 -1
  138. package/dist/tools/create-pr-summary.js +14 -5
  139. package/dist/tools/create-pr-summary.js.map +1 -1
  140. package/dist/tools/plan-from-context.d.ts +1 -1
  141. package/dist/tools/plan-from-context.d.ts.map +1 -1
  142. package/dist/tools/plan-from-context.js +1 -1
  143. package/dist/tools/plan-from-context.js.map +1 -1
  144. package/dist/tools/prepare-work-item.d.ts +1 -1
  145. package/dist/tools/prepare-work-item.d.ts.map +1 -1
  146. package/dist/tools/prepare-work-item.js +1 -1
  147. package/dist/tools/prepare-work-item.js.map +1 -1
  148. package/dist/tools/quality-gate-status.d.ts +1 -1
  149. package/dist/tools/quality-gate-status.d.ts.map +1 -1
  150. package/dist/tools/quality-gate-status.js +65 -5
  151. package/dist/tools/quality-gate-status.js.map +1 -1
  152. package/dist/tools/release-readiness.d.ts +1 -1
  153. package/dist/tools/release-readiness.d.ts.map +1 -1
  154. package/dist/tools/release-readiness.js +1 -1
  155. package/dist/tools/release-readiness.js.map +1 -1
  156. package/dist/tools/repo-context.d.ts +1 -1
  157. package/dist/tools/repo-context.d.ts.map +1 -1
  158. package/dist/tools/repo-context.js +1 -1
  159. package/dist/tools/repo-context.js.map +1 -1
  160. package/dist/tools/review-pr.d.ts +1 -1
  161. package/dist/tools/review-pr.d.ts.map +1 -1
  162. package/dist/tools/review-pr.js +5 -5
  163. package/dist/tools/review-pr.js.map +1 -1
  164. package/dist/tools/sdlc-evidence-packet.d.ts +1 -1
  165. package/dist/tools/sdlc-evidence-packet.d.ts.map +1 -1
  166. package/dist/tools/sdlc-evidence-packet.js +2 -2
  167. package/dist/tools/sdlc-evidence-packet.js.map +1 -1
  168. package/dist/tools/security-triage.d.ts +1 -1
  169. package/dist/tools/security-triage.d.ts.map +1 -1
  170. package/dist/tools/security-triage.js +27 -3
  171. package/dist/tools/security-triage.js.map +1 -1
  172. package/dist/tools/workflow-permissions-audit.d.ts +1 -1
  173. package/dist/tools/workflow-permissions-audit.d.ts.map +1 -1
  174. package/dist/tools/workflow-permissions-audit.js +1 -1
  175. package/dist/tools/workflow-permissions-audit.js.map +1 -1
  176. package/dist/version.d.ts +1 -1
  177. package/dist/version.d.ts.map +1 -1
  178. package/dist/version.js +1 -1
  179. package/dist/version.js.map +1 -1
  180. package/docs/client-recipes.md +153 -0
  181. package/docs/evidence-continuity.md +100 -0
  182. package/docs/pr-workflows.md +136 -0
  183. package/docs/user-pilot.md +80 -0
  184. package/evaluation/schema.json +224 -0
  185. package/package.json +39 -6
  186. package/server.json +2 -2
  187. package/skills/pr-evidence-review/SKILL.md +24 -0
package/README.md CHANGED
@@ -29,6 +29,8 @@
29
29
 
30
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.
31
31
 
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.
33
+
32
34
  ## What changes with this MCP
33
35
 
34
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.
@@ -77,6 +79,39 @@ Use the tools as decision support at the points where an autonomous agent would
77
79
  | Transfer work to another agent | `agent_handoff_packet` | Bounded continuation packet that labels caller assertions and evidence warnings |
78
80
  | Archive a decision snapshot | `sdlc_evidence_packet` | Versioned Issue, PR, or release evidence with provenance, freshness, completeness, and a stable content digest |
79
81
 
82
+ ## Review a PR without an agent
83
+
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.
85
+
86
+ Build from a reviewed checkout with Node.js 22 or newer:
87
+
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
+ ```
94
+
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`.
96
+
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 |
104
+
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.
106
+
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.
108
+
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.
110
+
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).
114
+
80
115
  ## Install from npm
81
116
 
82
117
  You need Node.js 22 or newer. Node 22 and 24 are tested in GitHub Actions. Run the published package directly from npm:
@@ -94,6 +129,8 @@ agentic-sdlc-mcp
94
129
 
95
130
  The default transport is stdio. Most MCP clients should start the package for you instead of running it in a separate terminal.
96
131
 
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.
133
+
97
134
  ## Let a coding agent set it up
98
135
 
99
136
  Paste this prompt into Codex, Claude Code, or another coding agent:
@@ -189,7 +226,7 @@ The server registers 13 workflow-level tools. MCP clients receive the full input
189
226
 
190
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.
191
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.
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.
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.
193
230
 
194
231
  </details>
195
232
 
@@ -198,6 +235,8 @@ The server registers 13 workflow-level tools. MCP clients receive the full input
198
235
 
199
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.
200
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
+
201
240
  </details>
202
241
 
203
242
  <details>
@@ -205,7 +244,7 @@ The server registers 13 workflow-level tools. MCP clients receive the full input
205
244
 
206
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.
207
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.
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.
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.
209
248
 
210
249
  </details>
211
250
 
@@ -308,7 +347,9 @@ Static resources are available under the `sdlc://` scheme:
308
347
 
309
348
  ## Local HTTP profile
310
349
 
311
- Stdio is the default and recommended local transport. A local client that requires Streamable HTTP can opt in after building from source:
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:
312
353
 
313
354
  ```powershell
314
355
  $env:TRANSPORT = "http"
@@ -316,7 +357,9 @@ $env:PORT = "3000"
316
357
  node dist/index.js
317
358
  ```
318
359
 
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.
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.
320
363
 
321
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.
322
365
 
@@ -339,10 +382,31 @@ npm run test
339
382
  | `npm run test` | Run the full Vitest suite |
340
383
  | `npm run test:integration` | Run configuration and MCP runtime integration tests |
341
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 |
342
394
  | `npm run smoke` | Verify registration without GitHub credentials |
343
395
  | `npm run check:line-endings` | Reject CRLF and mixed line endings |
344
396
 
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.
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.
398
+
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`.
400
+
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.
402
+
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.
404
+
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.
406
+
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).
408
+
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.
346
410
 
347
411
  ## Contribute through issues and pull requests
348
412
 
@@ -351,15 +415,19 @@ Issues and pull requests are welcome. Check the [open issues](https://github.com
351
415
  1. Fork the repository and create a focused branch from the latest `main`.
352
416
  2. Run `npm ci`, then make only the changes required for the contribution.
353
417
  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`.
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.
355
419
  5. Open a pull request against `main`. Describe the problem, solution, risks, validation results, and linked Issues.
356
420
 
357
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.
358
422
 
359
423
  - [Roadmap](docs/ROADMAP.md)
360
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)
361
428
  - [Testing strategy](docs/testing-strategy.md)
362
429
  - [Remote deployment re-entry criteria](docs/remote-deployment-considerations.md)
430
+ - [v1.10.0 release notes](docs/releases/v1.10.0.md)
363
431
  - [v1.9.0 release notes](docs/releases/v1.9.0.md)
364
432
  - [AI coding agent smoke test](docs/ai-coding-agent-smoke-test.md)
365
433
  - [Changelog](CHANGELOG.md)
package/README_zh.md ADDED
@@ -0,0 +1,441 @@
1
+ <p align="center">
2
+ <img src="assets/logo.svg" alt="agentic-sdlc-mcp 标志" width="120">
3
+ </p>
4
+
5
+ <h1 align="center">agentic-sdlc-mcp</h1>
6
+
7
+ <p align="center">
8
+ <strong>为在真实 GitHub 仓库中工作的 AI 编码智能体提供治理与证据控制。</strong>
9
+ </p>
10
+
11
+ <p align="center">
12
+ 让 Claude Code、Cursor 和其他模型上下文协议(MCP)客户端在仓库上下文、评审门禁、安全证据与人工审批点的约束下工作。
13
+ </p>
14
+
15
+ <p align="center">
16
+ <a href="README.md">English</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">路线图</a>
20
+ </p>
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 版本"></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 下载量"></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 状态"></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 或更高版本">
27
+ <a href="LICENSE"><img src="https://img.shields.io/npm/l/agentic-sdlc-mcp.svg?style=flat-square&color=orange" alt="MIT 协议"></a>
28
+ </p>
29
+
30
+ `agentic-sdlc-mcp` 是面向已经允许 AI 编码智能体修改生产仓库团队的软件开发生命周期(SDLC)治理层。它把 GitHub 上下文、仓库策略、检查、评审、安全告警和发布信号组织成 13 个工作流级 MCP 工具。其中 12 个工具只读,唯一的 GitHub 写入工具默认先预览。
31
+
32
+ **1.11.0** 新增只读 CLI `agentic-sdlc`,用于 PR 评估、可携带证据、快照差量和验收追溯;`agentic-sdlc-mcp` 继续作为 MCP server 入口。安装时请核验精确包版本与[发布记录](https://github.com/SakuraCianna/agentic-sdlc-mcp/releases/tag/v1.11.0)。
33
+
34
+ ## 接入这个 MCP 后有什么变化
35
+
36
+ AI 编码智能体可以生成代码和 Pull Request,但它未必理解仓库的全部规则。这个 MCP 为智能体提供有界上下文,也让评审者看到明确的证据缺口,而不是再收到一份无法验证的自由文本总结。
37
+
38
+ | 关注点 | 未接入这个 MCP | 接入 `agentic-sdlc-mcp` 后 |
39
+ |---|---|---|
40
+ | 仓库上下文 | 智能体从用户提示词出发,自行猜测项目约定 | `repo_context` 读取有界的元数据、脚本、策略、Issues、Pull Requests 和智能体规则 |
41
+ | 高风险业务 | 认证、支付、迁移和 Workflow 变更使用通用计划 | `prepare_work_item` 补充风险理由、防御性要求、负向场景、回滚和可观测性 |
42
+ | Issue 规划 | 人工把计划重新整理成 GitHub 工作项 | `plan_from_context` 生成结构化草稿,`create_issue_set` 先展示精确写入内容 |
43
+ | Pull Request 门禁 | 智能体可能把持续集成(CI)绿灯当成充分证据 | `quality_gate_status` 分离 checks、reviews、ownership、保护规则、标签和缺失证据 |
44
+ | 密钥风险 | 只根据扫描器名称或关键词判断是否安全 | PR 审查区分可信扫描证据、有界补丁启发式和未验证缺口 |
45
+ | 发布与交接 | 就绪度依赖自由文本状态总结 | 发布和交接工具保留阻塞项、策略义务、证据警告和人工审批点 |
46
+
47
+ 这个 MCP 不编写代码、不合并 Pull Request、不强制推送、不创建 Release、不部署软件,也不能替代人工安全评审。
48
+
49
+ ## 它如何进入生产级智能体工作流
50
+
51
+ 这个 MCP 位于 AI 编码智能体与 GitHub 证据之间。仓库变更仍由智能体通过原有开发环境完成,高影响决策仍由团队负责。
52
+
53
+ ```mermaid
54
+ flowchart LR
55
+ Policy["工程策略<br>与仓库规则"] --> MCP["agentic-sdlc-mcp"]
56
+ Agent["AI 编码智能体<br>Claude Code · Cursor · MCP 客户端"] --> MCP
57
+ MCP --> GitHub["GitHub API 证据"]
58
+ GitHub --> MCP
59
+ MCP --> Reports["简报 · 计划 · 门禁<br>评审 · 发布报告"]
60
+ Reports --> Agent
61
+ Reports --> Human["人工评审与审批"]
62
+ Agent -. "代码 · 提交 · Pull Request" .-> GitHub
63
+ Human -. "合并 · 发布 · 部署" .-> GitHub
64
+ ```
65
+
66
+ ## 适用场景
67
+
68
+ 当自主智能体可能猜测仓库状态或依赖过期文字说明时,使用这些工具生成可审查的决策材料。
69
+
70
+ | 生产场景 | 推荐工具 | 产生的决策材料 |
71
+ |---|---|---|
72
+ | 让智能体接手陌生的生产仓库 | `repo_context` | 包含脚本、Workflows、策略、待办工作和已知缺口的仓库简报 |
73
+ | 把功能、Bug 或安全目标转换为可评审工作项 | `plan_from_context` → `create_issue_set` | 按任务类型生成的计划、Issue 草稿和预览优先的 GitHub Issues |
74
+ | 准备认证、支付、迁移或基础设施工作 | `prepare_work_item` | 包含防御性要求、负向测试、回滚和可观测性的风险简报 |
75
+ | 检测补丁中的动态凭据构造 | `review_pr_against_standard` | 针对拼接、插值、解码、别名和认证头 sink 的补丁内风险发现 |
76
+ | 判断 Pull Request 是否具备人工评审条件 | `create_pr_summary` → `quality_gate_status` → `review_pr_against_standard` | Diff 摘要、合并门禁证据、问题、阻塞项和下一步动作 |
77
+ | 审计仓库治理 | `branch_protection_status` → `workflow_permissions_audit` | 分支/Ruleset 证据和 GitHub Actions 最小权限问题 |
78
+ | 判断版本是否可以进入人工发布审批 | `security_triage` → `release_readiness_check` | 安全告警摘要、CI 证据、发布阻塞项、CHANGELOG 和回滚要求 |
79
+ | 把工作移交给另一个智能体 | `agent_handoff_packet` | 标注调用方断言与证据警告的有界续接包 |
80
+ | 归档一次决策快照 | `sdlc_evidence_packet` | 带 provenance、freshness、completeness 和稳定内容 digest 的 Issue、PR 或 release 证据包 |
81
+
82
+ ## 不经过智能体,直接评估 PR
83
+
84
+ 一个命令同时生成可供人工阅读的结论和 JSON 快照。评估复用现有门禁与规则审查,将结果绑定到 PR head/base 和策略 digest,并保留阻塞项、证据缺口、请求次数和采集耗时。
85
+
86
+ 在已审阅的源码目录中,使用 Node.js 22 或更高版本构建:
87
+
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
+ ```
94
+
95
+ 在线采集前,通过进程环境或 secret manager 注入 `GITHUB_TOKEN`。CLI 只读取环境变量,不加载 home 配置或 `.env`。`doctor` 默认离线,显式 `--online` 才探测远端;缺少配置时退出码为 2。安装包后,`agentic-sdlc` 与 `node dist/cli.js` 是同一 CLI 入口。
96
+
97
+ | 命令 | 结果 |
98
+ |---|---|
99
+ | `doctor --repo acme/widget --online --json` | 只读端点诊断;报告不包含凭据值 |
100
+ | `assess-pr --repo acme/widget --pr 42 --standard strict --json` | `ready_for_review`、`blocked` 或 `needs_evidence`,附版本化 packet |
101
+ | `evidence --repo acme/widget --subject pr --number 42 --output artifacts/pr-42-evidence.json` | 现有 Issue、PR 或 release evidence packet;其他 subject 使用 `--subject issue --number N` 或 `--subject release --ref REF` |
102
+ | `diff --previous artifacts/pr-42-first.json --current artifacts/pr-42-next.json --json` | 新增、移除、变化、未变化及失效证据;两份输入均需已经存在 |
103
+ | `trace --packet artifacts/pr-42-evidence.json --acceptance acceptance.md --source openspec --json` | 将显式 checkbox/编号条件与所提供证据关联 |
104
+
105
+ `assess-pr` 和 `evidence` 还支持 `--previous`、`--acceptance` 及可选 `--mappings`,可在一次采集后完成本地分析。mapping 文件采用[证据连续性指南](docs/evidence-continuity.md)中的严格数组 schema。`--json` 控制 stdout;`--output` 始终新建 JSON 文件,已有文件不会覆盖。`--summary` 新建 Markdown 文件;只有目标为 GitHub Actions 精确的 `GITHUB_STEP_SUMMARY` 路径时才追加。
106
+
107
+ 评估默认仅提供建议:报告完成即返回 0,即使结论为阻塞或缺证据。`assess-pr --enforce` 在 `blocked` 时返回 1、`needs_evidence` 时返回 2、`ready_for_review` 时返回 0。配置、输入或来源不可用错误返回 2,取消返回 130。`diff` 或 `trace` 返回成功只说明分析完成,不表示证据或验收已通过。
108
+
109
+ 在线采集默认总超时 30 秒、请求预算 120 次;`--timeout-ms` 范围为 1–120000,`--max-requests` 为 2–500。`doctor` 使用自身有界探测并支持超时参数。文件输入与序列化输出限制为 1 MiB。
110
+
111
+ 快照未变化也不会继承此前验证;head/base、策略、生产工具版本、时效性和完整性变化都可能要求重新采集。勾选、智能体自述与普通 CI 绿灯不能证明业务验收;CLI 默认没有可信验收 producer。就绪报告和 `--enforce` 都不会批准、合并或部署 PR。
112
+
113
+ MCP 评审连接可设置 `SDLC_CONFIG_MODE=envonly` 跳过 home/`.env` 配置,设置 `SDLC_READ_ONLY=true` 拒绝真实 Issue 创建并保留预览。Token 应限定授权仓库和读取权限。[客户端配方](docs/client-recipes.md)提供安装与轻量审查 skill;[用户试点方案](docs/user-pilot.md)是尚未执行的小样本验证计划。
114
+
115
+ ## 从 npm 安装
116
+
117
+ 你需要 Node.js 22 或更高版本。Node 22 与 24 由 GitHub Actions 验证。优先直接运行 npm 上已经发布的包:
118
+
119
+ ```powershell
120
+ npx -y agentic-sdlc-mcp
121
+ ```
122
+
123
+ 如果需要全局 CLI:
124
+
125
+ ```powershell
126
+ npm install -g agentic-sdlc-mcp
127
+ agentic-sdlc-mcp
128
+ ```
129
+
130
+ 默认传输方式是 stdio。多数 MCP 客户端会自动启动这个包,不需要提前在另一个终端中运行。
131
+
132
+ 上面的 npm 命令解析已发布版本。复现本版本时请固定 `agentic-sdlc-mcp@1.11.0`、核验对应 Release 与包元数据,并在升级后重启已有 MCP 连接。
133
+
134
+ ## 让编码智能体帮你安装
135
+
136
+ 把下面的提示词复制到 Codex、Claude Code 或其他编码智能体:
137
+
138
+ ```text
139
+ 请使用 npm install -g agentic-sdlc-mcp 全局安装并配置这个 MCP。项目地址:https://github.com/SakuraCianna/agentic-sdlc-mcp
140
+ 请通过 MCP 客户端的 secret 或环境变量配置 GITHUB_TOKEN 和可选仓库默认值;在可信的单用户设备上,也可以运行 agentic-sdlc-mcp configure,或写入 ~/.agentic-sdlc-mcp.json。不要在对话、日志或仓库文件中暴露 Token;缺少非敏感信息时向我询问。
141
+ 完成后调用只读的 repo_context 工具验证连接,并说明主要能力、所需 GitHub 权限和安全边界。
142
+ ```
143
+
144
+ 批准前请检查智能体准备执行的命令和配置变更。安装需要 Node.js 22 或更高版本。
145
+
146
+ ## 连接 MCP 客户端
147
+
148
+ 把服务器添加到 Claude Desktop、Cursor、Windsurf 或其他 MCP 客户端。通过客户端的 secret 或环境变量配置注入 GitHub token。
149
+
150
+ ```json
151
+ {
152
+ "mcpServers": {
153
+ "agentic-sdlc": {
154
+ "command": "npx",
155
+ "args": ["-y", "agentic-sdlc-mcp"],
156
+ "env": {
157
+ "GITHUB_TOKEN": "your_github_token_here",
158
+ "GITHUB_OWNER": "your_organization",
159
+ "GITHUB_REPO": "your_repository"
160
+ }
161
+ }
162
+ }
163
+ }
164
+ ```
165
+
166
+ 部分 Windows MCP 客户端需要通过 `cmd` 调用 `npx`:
167
+
168
+ ```json
169
+ {
170
+ "command": "cmd",
171
+ "args": ["/c", "npx", "-y", "agentic-sdlc-mcp"]
172
+ }
173
+ ```
174
+
175
+ `GITHUB_OWNER` 和 `GITHUB_REPO` 是可选默认值,工具调用也可以显式传入仓库坐标。请根据 [GitHub 权限矩阵](#github-权限) 只授予已启用能力所需的权限。
176
+
177
+ <details>
178
+ <summary>本地交互式配置</summary>
179
+
180
+ ```powershell
181
+ npx -y agentic-sdlc-mcp configure
182
+ ```
183
+
184
+ 这个兼容路径会把配置写入 `~/.agentic-sdlc-mcp.json`,其中包括 GitHub token。它只适合可信的单用户工作站。面向生产的接入应优先使用 MCP 客户端 secret 注入或进程环境变量。
185
+
186
+ </details>
187
+
188
+ ## 验证连接
189
+
190
+ 先执行一次只读调用,在授予写权限前确认仓库边界:
191
+
192
+ ```text
193
+ 使用 agentic-sdlc-mcp 对当前配置仓库执行 repo_context,包含 package scripts、workflows、governance 和 repository policy。不要创建 Issue,也不要修改 GitHub。
194
+ ```
195
+
196
+ 再通过 dry-run 验证写入边界,不创建任何内容:
197
+
198
+ ```text
199
+ 生成一个 feature 计划,把 issue drafts 传给 create_issue_set,并设置 dryRun: true。显示目标仓库、标题、标签、body 摘要和警告。不要写入 GitHub。
200
+ ```
201
+
202
+ 完整的五分钟验证路径见[通用 AI 编码智能体冒烟测试](docs/ai-coding-agent-smoke-test.md)。
203
+
204
+ ## Tools 工具目录
205
+
206
+ 服务器注册了 13 个工作流级工具。MCP 客户端会在运行时获得完整输入输出 schema;下面的目录说明何时调用工具,以及如何理解结果。
207
+
208
+ | 工具 | 适用时机 | 主要结果 | 访问模式 |
209
+ |---|---|---|---|
210
+ | `repo_context` | 智能体在规划前需要仓库事实 | 包含元数据、README/package 摘要、脚本、Workflows、治理、策略、Issues 和 PRs 的有界简报 | 只读 |
211
+ | `plan_from_context` | 一个目标需要 SDLC 计划和 Issue 草稿 | 按任务类型生成的计划、置信度、澄清信号和 3 至 5 个结构化 Issue 草稿 | 只读 |
212
+ | `prepare_work_item` | 智能体准备实现某个 GitHub Issue | 风险画像、分来源验收标准、防御性要求、关联证据、回滚和交接提示词 | 只读 |
213
+ | `create_issue_set` | 已评审计划需要转换为 GitHub Issues | 精确 dry-run 预览,或保留部分成功信息的真实创建结果 | 预览优先写入 |
214
+ | `create_pr_summary` | Pull Request 需要可评审概览 | 变更摘要、影响文件、测试信号、风险、清单和 Release Notes 草稿 | 只读 |
215
+ | `quality_gate_status` | 团队需要真实合并门禁证据 | `passing`、`failing`、`pending`、`needs_review`、`policy_gap` 或 `no_evidence`,以及阻塞项和缺口 | 只读 |
216
+ | `review_pr_against_standard` | Pull Request 需要 SDLC 与安全评审 | 结构化 findings、发布风险、测试证据、ownership 缺口和扫描器 provenance | 只读 |
217
+ | `branch_protection_status` | 团队需要分支和 Ruleset 可见性 | 必需评审、状态检查、强推与删除设置和验证缺口 | 只读 |
218
+ | `workflow_permissions_audit` | 需要评审 GitHub Actions token 权限 | 顶层与 job 级权限问题和最小权限建议 | 只读 |
219
+ | `security_triage` | 发布或事故处理需要 GitHub 安全告警 | Code Scanning、Dependabot 和 Secret Scanning 分诊 | 只读 |
220
+ | `release_readiness_check` | 人工正在决定是否发布 | CI 状态、阻塞 Issue/标签、CHANGELOG 与回滚证据、阻塞项和下一步 | 只读 |
221
+ | `agent_handoff_packet` | 另一个智能体需要继续当前工作 | 紧凑的 Issue/PR 上下文、策略义务、调用方断言、警告和有序下一步 | 只读 |
222
+ | `sdlc_evidence_packet` | 工作流决策需要可携带的证据快照 | 带 verified/unverified、freshness、completeness、provenance、limitations 和 digest 的版本化 Issue、PR 或 release 包 | 只读 |
223
+
224
+ <details>
225
+ <summary>上下文与规划细节</summary>
226
+
227
+ - **`repo_context`**:默认返回有界 README 摘要。可以选择读取 package scripts、Workflow 文件名、智能体规则、governance、经过验证的 `.agentic-sdlc.yml` 和最近待办工作。所有条目和字符数量都有明确上限,来源缺失时返回降级上下文,不编造事实。
228
+ - **`plan_from_context`**:支持 `docs`、`feature`、`bugfix`、`refactor`、`security`、`release` 和 `infra`。省略类型时,工具会返回推断结果、置信度、理由和 `needsClarification`。仓库策略可以添加 required checks 和 protected-path 义务,调用方显式传入的 work type 优先。
229
+ - **`prepare_work_item`**:读取有界 Issue/评论证据、确认存在的根目录脚本、仓库策略、Milestone 上下文,以及可选的关联文件、GitHub 官方 Issue 关系和近期 PR 历史。它会分离 Issue 原始验收标准与派生要求,深度证据路径会暴露请求预算和不完整来源警告。`riskProfile` 估算的是实施规划所需控制,不是漏洞或凭据泄露证明;LLM token 预算和非凭据含义的 “secret” 等多义表述必须具有明确凭据语境,才进入 secrets 风险域。
230
+
231
+ </details>
232
+
233
+ <details>
234
+ <summary>工作项写入细节</summary>
235
+
236
+ - **`create_issue_set`**:可以直接接收 `plan_from_context.issueDrafts`。`dryRun` 默认为 `true`,不会调用 GitHub 写接口。真实批次必须显式设置 `dryRun: false`,会保留成功创建的 Issue URL,并返回安全化的逐项失败信息,不隐藏部分完成状态。
237
+
238
+ 高级预览匹配与有界恢复使用请求级 `params._meta["io.github.SakuraCianna/agentic-sdlc-mcp/issue-recovery"]`,其中可包含 `idempotencyKey` 和/或 `previewDigest`。它们不是工具 arguments;原参数 schema 保持不变,把同名额外字段放进 arguments 不会启用恢复。不能附加请求 metadata 的客户端应使用默认预览和基础报告,不能假设自动幂等重试。[JSON-RPC 示例与恢复限制](docs/pr-workflows.md#issue-preview-and-recovery-through-mcp)说明具体位置;metadata 和匹配的 digest 都不代表写入授权。
239
+
240
+ </details>
241
+
242
+ <details>
243
+ <summary>Pull Request 证据细节</summary>
244
+
245
+ - **`create_pr_summary`**:限制文件证据数量并报告截断。纯文档 PR 会收到文档验证建议,而不是错误的“缺少代码单元测试”警告。
246
+ - **`quality_gate_status`**:PR 模式会组合 checks、commit statuses、reviews、CODEOWNERS 路由、draft/merge 状态、classic branch protection、Rulesets、阻塞标签、关联 Issues 和 base-SHA 仓库策略。权限失败会继续以 degraded 或 unverified evidence 显示。
247
+ - **`review_pr_against_standard`**:支持 `basic`、`strict` 和 `security-focused`。只有当 check、Workflow、PR head SHA、base Workflow job、扫描器 action 和不可变 action SHA 可以关联时,才把 Gitleaks 或 TruffleHog 作为主要通过证据。内部 provenance 会把每个 signal 绑定到精确的 base Workflow 与静态配置依赖,但不会改变公开 MCP 输出 schema。无关 Workflow 变更不会使 signal 失效;其 Workflow(包括重命名前路径)、Gitleaks 根目录默认配置或 `GITLEAKS_CONFIG` 路径、TruffleHog `extra_args --config` 路径发生变化时,只使受影响的扫描器失效;动态、歧义、绝对、穿越或其他无法限定的配置继续 fail-closed。动态密钥构造扫描器是有界的补丁内分析,不是全程序数据流分析,也不能证明仓库不存在密钥泄漏;仅出现在凭据检测正则字面量内部的运算符和量词不会被当成运行时凭据构造,动态拼装的模式和规则则不因名称而豁免。
248
+
249
+ </details>
250
+
251
+ <details>
252
+ <summary>治理与发布细节</summary>
253
+
254
+ - **`branch_protection_status`**:读取 classic branch protection 和 repository Rulesets。缺少 Administration 权限时会报告验证缺口,不会直接声称分支没有保护。
255
+ - **`workflow_permissions_audit`**:读取 `.github/workflows/*.yml`,评估仓库级和 job 级 `permissions` 声明。它不会修改 Workflow 文件或仓库设置。
256
+ - **`security_triage`**:读取 Code Scanning、Dependabot 和 Secret Scanning 告警。可用结果取决于仓库功能和 token 权限。
257
+ - **`release_readiness_check`**:要求 CI 存在明确的 passing 证据。pending、unknown、失败或零信号都会阻塞就绪结论。仓库策略还可以要求 CHANGELOG 和已测试回滚证据。
258
+
259
+ </details>
260
+
261
+ <details>
262
+ <summary>交接细节</summary>
263
+
264
+ - **`agent_handoff_packet`**:默认从系统证据派生 current status,支持 Issue、PR 或 release subject,以及可选 goal、non-goals、completed actions、decisions 和 next steps。调用方字段始终是 unverified;PR 交接会聚合 CI、评审、策略和 head freshness,release 交接会聚合 readiness 与仓库级安全证据。仓库、Issue、PR、policy 与深度 evidence 共用一个 30 秒可中止总采集预算。
265
+ - **`sdlc_evidence_packet`**:一次采集一个 Issue、Pull Request 或 release ref。调用方断言始终是 unverified;PR 证据绑定 head SHA,采集期间换头会标记 stale;API 部分失败、超时、限流和有界分页都会明确降级,不产生虚假的 clean 结论。packet 公开并强制 GitHub request、源文本、文件/单源项目、Markdown、evidence item 与 timeout 预算;省略内容进入 `omittedEvidence`,超时会中止支持 AbortSignal 的 Octokit 请求。Issue/PR 文本或 PR changed-file 文件名超出采集预算时,prompt-injection evidence 保持 unverified/partial,不会把未读取内容声明为安全。
266
+ - 每个成功工具响应都同时包含 MCP `_meta` 和 `structuredContent.trustBoundary`。即使没有命中 prompt-injection 模式,仓库与调用方字段仍是不可信数据,不能据此执行内嵌指令、泄露秘密或扩大权限。
267
+
268
+ </details>
269
+
270
+ 服务器还通过 `sdlc://` 暴露五个只读资源,分别提供 SDLC 标准以及 Issue、PR 摘要、发布就绪和交接模板。
271
+
272
+ ## 常用工作流
273
+
274
+ 这些顺序可以降低工具选择歧义,每条流程最终都保留人工决策。
275
+
276
+ ```text
277
+ 开始工作
278
+ repo_context → plan_from_context → create_issue_set (dryRun: true)
279
+ → 人工确认工作项 → create_issue_set (dryRun: false)
280
+ → prepare_work_item
281
+
282
+ 评审 Pull Request
283
+ create_pr_summary → quality_gate_status → review_pr_against_standard
284
+ → 人工评审 findings 并决定是否合并
285
+
286
+ 评审仓库治理
287
+ branch_protection_status → workflow_permissions_audit → security_triage
288
+ → 仓库负责人决定修改哪些设置或 Workflows
289
+
290
+ 准备发布
291
+ security_triage → release_readiness_check → sdlc_evidence_packet
292
+ → 人工批准 Tag、Release 和部署
293
+
294
+ 移交工作
295
+ 相关证据工具 → sdlc_evidence_packet → agent_handoff_packet
296
+ → 下一位智能体先验证过期状态和调用方断言,再继续执行
297
+ ```
298
+
299
+ ## GitHub 权限
300
+
301
+ 不要默认授予所有权限。请根据团队启用的工具选择所需权限,并先在非生产仓库验证。
302
+
303
+ | 能力 | Fine-grained 仓库权限 | Classic PAT scope | 使用方 |
304
+ |---|---|---|---|
305
+ | 仓库元数据与文件 | Metadata read、Contents read | `repo` 或 `public_repo` | 上下文、策略、Workflow、评审、CHANGELOG 和 CODEOWNERS 证据 |
306
+ | Issues | Issues read | `repo` 或 `public_repo` | 上下文、规划、工作项简报、门禁、发布和交接 |
307
+ | Pull Requests 与评审 | Pull requests read | `repo` 或 `public_repo` | PR 摘要、门禁、评审和交接 |
308
+ | Checks 与 statuses | Checks read、Commit statuses read | `repo` 或 `public_repo` | 质量门禁、发布就绪和可信扫描证据 |
309
+ | Actions provenance | Actions read | `repo` 或 `public_repo` | 读取可信扫描证据背后的 workflow run、job 和 workflow 身份 |
310
+ | 分支保护 | Administration read | `repo` 或 `public_repo` | Classic branch protection;repository Rulesets 使用 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
+ | 创建 Issues | Issues write | `repo` 或 `public_repo` | 仅 `create_issue_set` 且 `dryRun: false` |
315
+
316
+ GitHub 权限和端点要求可能变化。出现权限错误时,请核对 [GitHub REST API fine-grained PAT 权限文档](https://docs.github.com/en/rest/authentication/permissions-required-for-fine-grained-personal-access-tokens)。缺少可选权限可能产生 degraded 或 unverified evidence,这并不意味着需要授予无关权限。
317
+
318
+ ## 安全模型与信任边界
319
+
320
+ 这个服务器约束的是自身工具,不能控制外围 AI 智能体或 MCP 客户端拥有的其他能力。
321
+
322
+ - **一个预览优先的写入工具**:`create_issue_set` 是唯一的 GitHub 写入工具,默认 `dryRun: true`
323
+ - **不提供高权限仓库变更**:没有 merge、approval、force-push、分支删除、分支规则修改、Release 创建或部署工具
324
+ - **人工门禁位于系统之外**:服务器报告 CODEOWNERS、评审、策略、CI、安全和发布证据,最终决定由 GitHub 与团队执行
325
+ - **证据始终保留限定条件**:缺失、过期、截断、格式异常或受权限限制的来源会继续显示为缺口
326
+ - **仓库策略绑定 base SHA**:可用时,PR 策略从 base SHA 读取,Pull Request 不能静默降低自身门禁
327
+ - **外部文本不受信任**:仓库与调用方文本会限制长度并转义;任何已检测到的指令覆盖、密钥/数据外传、编码命令或工具胁迫模式都不会进入面向智能体的 Markdown,原始 structured evidence 仍保留用于审查
328
+ - **密钥检测存在边界**:可信扫描器 provenance 与补丁启发式可以降低风险,但跨文件或运行时数据流仍需 CodeQL 或其他静态应用安全测试(SAST)、密钥扫描器、测试和人工评审
329
+ - **凭据仍由接入方负责**:优先使用客户端 secret 注入或环境变量,不要把 token 提交到仓库,也不要粘贴到 Issue、PR 或日志内容中
330
+ - **只支持本地传输边界**:stdio 与 loopback HTTP 面向可信本机;远程 OAuth 和多租户托管不在当前产品路线图中
331
+
332
+ `.agentic-sdlc.yml` 的 schema、provenance、限制和 base-SHA 自修改防护见[仓库策略指南](docs/repository-policy.md)。对抗测试矩阵和覆盖率规则见[测试策略](docs/testing-strategy.md)。
333
+
334
+ ## 仓库策略与 Resources
335
+
336
+ 当仓库专属 checks、protected paths、reviewers、阻塞标签、CHANGELOG 和回滚要求需要影响工具结论时,添加 `.agentic-sdlc.yml`。策略输出包含来源 ref、blob SHA、digest、稳定 rule IDs 和警告。
337
+
338
+ 静态资源使用 `sdlc://` scheme:
339
+
340
+ | Resource | 用途 |
341
+ |---|---|
342
+ | `sdlc://standards/agentic-sdlc` | Agentic SDLC 参考标准 |
343
+ | `sdlc://templates/issue` | 结构化 GitHub Issue 模板 |
344
+ | `sdlc://templates/pr-summary` | Pull Request 摘要模板 |
345
+ | `sdlc://templates/release-readiness` | 发布前检查清单 |
346
+ | `sdlc://templates/handoff` | 智能体续接模板 |
347
+
348
+ ## 本地 HTTP profile
349
+
350
+ stdio 是默认且推荐的本地传输方式。两个本地入口均使用官方 SDK v2 的时代路由:2025 客户端继续通过 `initialize` 握手,显式协商 `2026-07-28` 的客户端则使用 `server/discover`。两个时代均暴露相同的 13 个工具和 5 个资源。
351
+
352
+ 需要 Streamable HTTP 的本机客户端可以在源码构建后显式启用:
353
+
354
+ ```powershell
355
+ $env:TRANSPORT = "http"
356
+ $env:PORT = "3000"
357
+ node dist/index.js
358
+ ```
359
+
360
+ 服务端点为 `http://127.0.0.1:3000/mcp`。它只监听 loopback,在解析不超过 100 KiB 的请求体前校验 `Host` 和调用方提供的 `Origin`;每个 POST 使用隔离的无状态 server/transport;不支持的 GET/DELETE session 操作会被拒绝;错误细节受到限制,关闭时会中止仍在执行的请求。
361
+
362
+ 2025 无状态 HTTP profile 没有 session 或客户端身份,无法把单独发送的 `notifications/cancelled` POST 与之前的请求可靠关联。客户端仍会观察到本地取消,但原服务端操作可能自然执行完成。两个 stdio 时代和 2026 HTTP 都会把取消传递到服务端请求。如果 legacy 调用必须支持服务端取消,请优先使用 stdio。
363
+
364
+ 不要把该端点暴露到其他机器,也不要直接通过反向代理对外提供。当前不计划远程 OAuth 或多租户托管。如果未来重新立项,必须先满足单独的[远程部署重新立项准入条件](docs/remote-deployment-considerations.md);当前本地服务不能直接作为安全远程部署基础。
365
+
366
+ ## 本地开发与项目链接
367
+
368
+ 只有需要贡献代码或检查实现时才需要克隆仓库:
369
+
370
+ ```powershell
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
376
+ ```
377
+
378
+ | 命令 | 用途 |
379
+ |---|---|
380
+ | `npm run typecheck` | 检查 TypeScript 类型 |
381
+ | `npm run build` | 构建 `dist/` |
382
+ | `npm run test` | 运行完整 Vitest 测试套件 |
383
+ | `npm run test:integration` | 运行配置与 MCP runtime 集成测试 |
384
+ | `npm run test:coverage` | 执行覆盖率门槛并生成报告 |
385
+ | `npm run contracts:check` | 将当前真实 MCP discovery 与 tracked v1.9.0 契约比较,并验证本地 tag/SHA |
386
+ | `npm run contracts:verify-baseline` | 只读重放固定 v1.9.0 checkout,证明 tracked 基线可重复生成 |
387
+ | `npm run contracts:generate` | 从隔离的 v1.9.0 detached worktree 显式重新生成固定基线 |
388
+ | `npm run contracts:inspector:install` | 从隔离 lockfile 安装精确固定的 Inspector 2.0.0 测试依赖 |
389
+ | `npm run contracts:inspector:stdio` | 通过官方 Inspector CLI 验证构建后的 stdio server |
390
+ | `npm run contracts:inspector:http` | 让 Inspector 在随机 IPv4 loopback 端口验证构建后的本地 HTTP adapter |
391
+ | `npm run contracts:conformance:install` | 从隔离 lockfile 安装精确固定的 Conformance 0.1.16 pilot 依赖 |
392
+ | `npm run contracts:conformance:pilot` | 运行 legacy 2025-11-25 active suite 并生成净化的 `checks.json` artifact |
393
+ | `npm run eval:ci` | 运行离线 12 场景发布门禁,以及全部 13 项预算和 11 项故障报告 |
394
+ | `npm run smoke` | 在没有 GitHub 凭据时验证注册与加载 |
395
+ | `npm run check:line-endings` | 拒绝 CRLF 和混合行尾 |
396
+
397
+ integration 门禁会让全部 13 个公开工具在两个时代都通过真实 SDK `Client.callTool`:legacy 经过项目 stdio wrapper,modern 经过显式 pin `2026-07-28` 的生产 direct-fetch HTTP handler。它会验证注册 output schema、关键 Markdown/structured 结果、trust boundary、错误/降级语义、modern wire headers,以及 `create_issue_set` 的默认 dry-run 行为。fixture 对任何真实 Issue 写入立即失败,并阻断外部 fetch/socket。
398
+
399
+ 独立的 Inspector stdio 门禁通过自己的 lockfile 精确固定 Inspector 2.0.0,并从进程外调用真实 `dist/index.js`。它验证 legacy initialize、13 个工具声明、5 个 resource 的逐项读取、一次显式零写入的 `create_issue_set` 预览,以及无效输入和未知 resource URI 的稳定 JSON/退出契约。所有 `tools/call` 都只调用显式 `dryRun:true` 的 `create_issue_set`。Inspector 使用官方 `-e` 选项向目标传递固定环境 allowlist,且真实 server 未写入临时的 harness-loaded 标记时整项失败。护栏保留用户 HOME 的值,但屏蔽产品全局配置文件探测,清除继承的 GitHub 凭据并设置非秘密测试占位值,隔离 Inspector storage/OAuth state,并在这个纯 stdio 检查中禁用全部 fetch/TCP。这个结果只是黑盒兼容证据,不是 MCP 官方认证,也不能证明 modern `server/discover`。
400
+
401
+ HTTP 门禁在 `127.0.0.1:0` 启动生产 adapter,以 Inspector 的非交互 `--stored-auth-only` 模式访问 canonical `/mcp`,并把完整 tools/resources JSON 与独立 stdio Inspector discovery 比较。另一个空 OAuth store 的 401 loopback fixture 会故意允许 auto-open,但仍必须立即返回 `3/auth_required`;任何浏览器进程尝试都会写 marker 并使门禁失败。护栏只允许精确 IPv4 loopback,拒绝 DNS 别名、欺骗 hostname、公网访问和继承凭据,成功/失败都会关闭 child/listener。Windows 上 Inspector 2.0.0 可能在正确错误 JSON 后触发一个上游 libuv closing assertion;runner 只接受精确平台/status/两行 stderr 签名并保留 raw exit class,其他变体和 Linux 始终 fail-closed。
402
+
403
+ Conformance pilot 精确固定官方 0.1.16 及其 legacy `2025-11-25` active suite。目前记录 30 个场景:5 个直接通过、25 个有治理信息的预期缺口;后者主要来自 upstream everything-server 的 prompts、fixture URI/tool、subscription、media/callback 能力和 stateful SSE 假设并不属于本产品公开契约。每项都包含原因、owner 和移除条件;新增失败或 stale 条目都会让运行失败。上传的 `checks.json` 不含 raw response details、凭据、Issue 正文或私有仓库数据。这是非阻断兼容 pilot,不是官方认证,也不能成为添加测试专用生产能力的理由。
404
+
405
+ CI 会在 Node 22 和 Node 24 上执行完整产品检查与当前契约比较。独立 Node 24 jobs 会重放不可变基线,并执行 required contract/evaluation gate:Inspector stdio/HTTP、Conformance、12 个固定场景、全部 13 项响应预算和 11-case GitHub 故障矩阵。门禁要求场景总正确率至少 90%,六个安全关键场景必须 100%,且只上传五个有界汇总 artifact。Node 20 已结束维护,因此不属于受支持运行时;本地贡献者只需安装一个受支持版本,兼容矩阵由 GitHub Actions 负责。
406
+
407
+ 评测结果始终保留 provenance:`scripted` 表示确定性 fixture,`recorded-agent` 表示对脱敏历史执行进行固定输入重放,`live-model` 表示可选的当前模型运行。required CI 包含六个 scripted 和六个 recorded-agent 场景,不运行 live-model。重放通过只能证明 checked-in 工作流保持确定性,不能代表所有模型、供应商、未来提示词或 MCP 官方认证。详见[评测指南](docs/evaluation.md)。
408
+
409
+ 普通测试、`contracts:check` 与 `contracts:verify-baseline` 永远不会改写基线。重放命令和仅供维护者使用的 `contracts:generate` 都会验证固定 tag/commit,在系统临时目录按历史 lockfile 安装并构建 checkout;安装会关闭 lifecycle scripts、audit 与 funding 输出,再由 cwd 位于 checkout 外的有界短生命周期子进程通过真实 `tools/list` 和 `resources/list` 读取公开契约。该子进程只继承操作系统路径、临时目录、locale 与动态库 allowlist;凭据、业务配置、`NODE_OPTIONS` 和本地状态路径都不会进入。Windows 在历史句柄释放后以有界重试完成清理。命令需要访问 npm registry,但不会调用 GitHub API 或模型服务。只有 `contracts:generate` 会写 tracked JSON,并把差异留给 PR 审查。
410
+
411
+ ## 通过 Issue 和 Pull Request 参与贡献
412
+
413
+ 欢迎提交 Issue 和 Pull Request。开始前请查看[现有 Issues](https://github.com/SakuraCianna/agentic-sdlc-mcp/issues)与[路线图](docs/ROADMAP.md)。如果变更会影响公开行为、安全边界、工具 schema 或架构,请先创建 Issue 讨论。
414
+
415
+ 1. Fork 仓库,并基于最新 `main` 创建范围明确的分支。
416
+ 2. 运行 `npm ci`,然后只修改本次贡献所需内容。
417
+ 3. 行为发生变化时,同步补充或更新测试与文档。
418
+ 4. 运行与变更相关的检查。Node 22/24 矩阵会执行 `npm run check:line-endings`、`npm run typecheck`、`npm run build`、`npm run contracts:check` 的 built 形式、`npm run test`、`npm run smoke` 和 `npm run test:coverage`;独立 Node 24 jobs 会重放不可变基线并运行固定 Inspector stdio/HTTP 与 Conformance 契约。
419
+ 5. 创建目标为 `main` 的 Pull Request,并说明问题、解决方案、风险、验证结果和关联 Issues。
420
+
421
+ 不要把 token、凭据、私有仓库内容或本地生成的配置提交到 commit、Issue、Pull Request 或日志。CI 通过是评审证据,但不能替代维护者批准。
422
+
423
+ - [路线图](docs/ROADMAP.md)
424
+ - [仓库策略指南](docs/repository-policy.md)
425
+ - [客户端配方与 portable review skill](docs/client-recipes.md)
426
+ - [证据连续性与验收追溯](docs/evidence-continuity.md)
427
+ - [用户试点方案](docs/user-pilot.md)
428
+ - [测试策略](docs/testing-strategy.md)
429
+ - [远程部署重新立项准入条件](docs/remote-deployment-considerations.md)
430
+ - [v1.10.0 发布说明](docs/releases/v1.10.0.md)
431
+ - [v1.9.0 发布说明](docs/releases/v1.9.0.md)
432
+ - [AI 编码智能体冒烟测试](docs/ai-coding-agent-smoke-test.md)
433
+ - [更新日志](CHANGELOG.md)
434
+ - [Releases](https://github.com/SakuraCianna/agentic-sdlc-mcp/releases)
435
+ - [开放 Issues](https://github.com/SakuraCianna/agentic-sdlc-mcp/issues)
436
+
437
+ npm 与 MCP Registry 工作流使用 GitHub OpenID Connect(OIDC)可信发布。发布 GitHub Release 会同时触发两个工作流;Registry 工作流会等待该精确 npm 版本可用,再发布版本一致、不可变的 stdio metadata。
438
+
439
+ ## 开源协议
440
+
441
+ [MIT](LICENSE)