agentic-sdlc-mcp 1.3.1 → 1.5.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 +27 -7
- package/dist/github/context.d.ts +48 -1
- package/dist/github/context.d.ts.map +1 -1
- package/dist/github/context.js +255 -7
- package/dist/github/context.js.map +1 -1
- package/dist/index.js +2 -4
- package/dist/index.js.map +1 -1
- package/dist/tools/create-issue-set.d.ts +46 -0
- package/dist/tools/create-issue-set.d.ts.map +1 -1
- package/dist/tools/create-issue-set.js +175 -22
- package/dist/tools/create-issue-set.js.map +1 -1
- package/dist/tools/plan-from-context.d.ts +79 -4
- package/dist/tools/plan-from-context.d.ts.map +1 -1
- package/dist/tools/plan-from-context.js +689 -66
- package/dist/tools/plan-from-context.js.map +1 -1
- package/dist/tools/repo-context.d.ts +19 -0
- package/dist/tools/repo-context.d.ts.map +1 -1
- package/dist/tools/repo-context.js +101 -6
- package/dist/tools/repo-context.js.map +1 -1
- package/dist/types.d.ts +26 -0
- package/dist/types.d.ts.map +1 -1
- package/dist/version.d.ts +5 -0
- package/dist/version.d.ts.map +1 -0
- package/dist/version.js +5 -0
- package/dist/version.js.map +1 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -121,6 +121,12 @@ node dist/index.js
|
|
|
121
121
|
|
|
122
122
|
---
|
|
123
123
|
|
|
124
|
+
## ✅ Generic AI Coding Agent Smoke Test
|
|
125
|
+
|
|
126
|
+
If you need to verify this MCP server in any MCP-capable AI coding agent, follow the client-neutral guide in [`docs/ai-coding-agent-smoke-test.md`](docs/ai-coding-agent-smoke-test.md). It covers the minimum configuration, repository fallback behavior, `repo_context` read-only validation, and `create_issue_set` dry-run preview without creating GitHub issues.
|
|
127
|
+
|
|
128
|
+
---
|
|
129
|
+
|
|
124
130
|
## ⚙️ MCP Client Configuration
|
|
125
131
|
|
|
126
132
|
Add this server configuration to your MCP client setting files (e.g., `claude_desktop_config.json`, Cursor, or Windsurf settings):
|
|
@@ -133,7 +139,7 @@ Add this server configuration to your MCP client setting files (e.g., `claude_de
|
|
|
133
139
|
"command": "npx",
|
|
134
140
|
"args": ["-y", "agentic-sdlc-mcp"],
|
|
135
141
|
"env": {
|
|
136
|
-
"GITHUB_TOKEN": "
|
|
142
|
+
"GITHUB_TOKEN": "REPLACE_WITH_GITHUB_TOKEN",
|
|
137
143
|
"GITHUB_OWNER": "your-github-username-or-org",
|
|
138
144
|
"GITHUB_REPO": "your-target-repository"
|
|
139
145
|
}
|
|
@@ -163,7 +169,7 @@ If you run `npx -y agentic-sdlc-mcp` directly without a configured `GITHUB_TOKEN
|
|
|
163
169
|
You can still define environment variables directly in your terminal shell (`PowerShell` for Windows or `bash` for macOS/Linux):
|
|
164
170
|
```powershell
|
|
165
171
|
# Windows PowerShell
|
|
166
|
-
$env:GITHUB_TOKEN = "
|
|
172
|
+
$env:GITHUB_TOKEN = "REPLACE_WITH_GITHUB_TOKEN"
|
|
167
173
|
$env:GITHUB_OWNER = "your-org"
|
|
168
174
|
$env:GITHUB_REPO = "your-repo"
|
|
169
175
|
```
|
|
@@ -200,23 +206,36 @@ When preparation is complete and a release is requested:
|
|
|
200
206
|
Detailed specifications of the exposed MCP tools.
|
|
201
207
|
|
|
202
208
|
### `repo_context`
|
|
203
|
-
Reads repository metadata, README, package.json, open issues, and open PRs. Use this at the start of any workflow to orient the agent.
|
|
209
|
+
Reads repository metadata, README, package.json, open issues, and open PRs. Optionally acts as a fuller "repository briefing packet" -- detected package manager, tech stack, common verification scripts, workflow file names, lightweight governance signals, and agent instruction file summaries (e.g. `AGENTS.md`, `CLAUDE.md`). Use this at the start of any workflow to orient the agent.
|
|
210
|
+
When requested, the bounded `readmeSummary` and `packageJsonSummary` values are also returned in `structuredContent`, so agents do not need to recover them from the Markdown response.
|
|
204
211
|
* **Arguments:**
|
|
205
212
|
* `owner` (string, optional): GitHub owner.
|
|
206
213
|
* `repo` (string, optional): GitHub repo.
|
|
214
|
+
* `includeReadme` (boolean, default: `true`): Include a truncated README summary.
|
|
215
|
+
* `includePackageJson` (boolean, default: `false`): Include package.json summary, detected package manager (npm/pnpm/yarn/bun), tech stack, and common scripts (build/test/typecheck/lint/smoke/...).
|
|
216
|
+
* `includeWorkflows` (boolean, default: `false`): Include `.github/workflows/*.yml` file names (names only -- use `workflow_permissions_audit` for permission contents).
|
|
217
|
+
* `includeAgentInstructions` (boolean, default: `false`): Include summaries of agent instruction files found at the repo root (`AGENTS.md`, `CLAUDE.md`).
|
|
218
|
+
* `includeGovernance` (boolean, default: `false`): Include whether a CODEOWNERS file exists (for full branch protection details, use `branch_protection_status`).
|
|
219
|
+
* `includeOpenIssues` / `includeOpenPRs` (boolean, default: `false`): Include recent open issues/PRs.
|
|
207
220
|
* `issueLimit` / `prLimit` (number, default: `20`, max: `100`): Cap how many issues/PRs are fetched.
|
|
221
|
+
* `maxReadmeChars` (number, default: `3000`): Max README characters before truncation.
|
|
222
|
+
* `maxInstructionChars` (number, default: `1000`): Max characters per agent instruction file summary before truncation.
|
|
208
223
|
|
|
209
224
|
### `plan_from_context`
|
|
210
|
-
Generates a structured, phase-by-phase SDLC plan matching the standard milestones.
|
|
225
|
+
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.
|
|
226
|
+
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`.
|
|
211
227
|
* **Arguments:**
|
|
212
228
|
* `owner` / `repo` (string, optional): Repo coordinates.
|
|
213
229
|
* `goal` (string, required): The target feature or fix description.
|
|
230
|
+
* `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.
|
|
231
|
+
* `constraints` (string[], optional): Technical or business constraints.
|
|
232
|
+
* `acceptanceCriteria` (string[], optional): Explicit acceptance criteria (also used for workType inference).
|
|
214
233
|
|
|
215
234
|
### `create_issue_set`
|
|
216
|
-
|
|
235
|
+
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.
|
|
217
236
|
* **Arguments:**
|
|
218
237
|
* `owner` / `repo` (string, optional): Repo coordinates.
|
|
219
|
-
* `issues` (array of objects, required): Structured list of issues to create (title, body, labels).
|
|
238
|
+
* `issues` (array of objects, required): Structured list of issues to create (title, body, labels, and optional assignees). Accepts `plan_from_context.issueDrafts` directly.
|
|
220
239
|
* `dryRun` (boolean, default: `true`): If `true`, previews the list without writing to GitHub.
|
|
221
240
|
|
|
222
241
|
### `prepare_work_item`
|
|
@@ -298,6 +317,7 @@ The server exposes read-only static resources under the `sdlc://` schema for qui
|
|
|
298
317
|
To prevent AI coding agents from performing destructive or unintended actions on production repositories, this control plane enforces:
|
|
299
318
|
|
|
300
319
|
* **Preview by Default (`dryRun: true`)**: All tools that write data (like `create_issue_set`) run in preview mode by default. Writing requires explicitly passing `dryRun: false`.
|
|
320
|
+
* **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.
|
|
301
321
|
* **Zero Self-Merge Policy**: No tools exist to auto-merge pull requests. Human approval is required on all merge gates.
|
|
302
322
|
* **Access Restraints**: The server does not support force-pushing or deleting branch rules.
|
|
303
323
|
* **CODEOWNERS Enforced Review**: Special paths (such as workflows under `.github/` and core files under `src/`) require owner approvals.
|
|
@@ -309,7 +329,7 @@ To prevent AI coding agents from performing destructive or unintended actions on
|
|
|
309
329
|
### Development Scripts
|
|
310
330
|
* `npm run typecheck`: Runs TypeScript compiler type checking.
|
|
311
331
|
* `npm run build`: Compiles TS files to the `dist/` directory.
|
|
312
|
-
* `npm run test`: Executes the unit test suite
|
|
332
|
+
* `npm run test`: Executes the full unit test suite.
|
|
313
333
|
* `npm run smoke`: Verifies registration and loading without external credentials.
|
|
314
334
|
|
|
315
335
|
### OIDC Trusted Publishing (For Maintainers)
|
package/dist/github/context.d.ts
CHANGED
|
@@ -7,11 +7,24 @@ export interface RepoContextOptions extends RepoRef {
|
|
|
7
7
|
includePackageJson?: boolean;
|
|
8
8
|
includeOpenIssues?: boolean;
|
|
9
9
|
includeOpenPRs?: boolean;
|
|
10
|
+
/** Include `.github/workflows/*.yml` file names (not contents/permissions -- see workflow_permissions_audit for that). */
|
|
11
|
+
includeWorkflows?: boolean;
|
|
12
|
+
/** Include summaries of agent instruction files (AGENTS.md, CLAUDE.md) if present. */
|
|
13
|
+
includeAgentInstructions?: boolean;
|
|
14
|
+
/** Include lightweight governance signals, e.g. whether a CODEOWNERS file exists. */
|
|
15
|
+
includeGovernance?: boolean;
|
|
10
16
|
/** Max number of open issues to fetch. Default: 20. */
|
|
11
17
|
issueLimit?: number;
|
|
12
18
|
/** Max number of open PRs to fetch. Default: 20. */
|
|
13
19
|
prLimit?: number;
|
|
20
|
+
/** Max README characters before truncation. Default: 3000. */
|
|
21
|
+
maxReadmeChars?: number;
|
|
22
|
+
/** Max characters per agent instruction file summary before truncation. Default: 1000. */
|
|
23
|
+
maxInstructionChars?: number;
|
|
14
24
|
}
|
|
25
|
+
/** Package managers this module can positively identify. */
|
|
26
|
+
declare const KNOWN_PACKAGE_MANAGERS: readonly ["npm", "pnpm", "yarn", "bun"];
|
|
27
|
+
export type PackageManager = (typeof KNOWN_PACKAGE_MANAGERS)[number] | "unknown";
|
|
15
28
|
export interface RepoContextResult {
|
|
16
29
|
name: string;
|
|
17
30
|
fullName: string;
|
|
@@ -25,6 +38,23 @@ export interface RepoContextResult {
|
|
|
25
38
|
pushedAt: string | null;
|
|
26
39
|
readme?: string;
|
|
27
40
|
packageJson?: Record<string, unknown>;
|
|
41
|
+
/** Detected package manager. Only populated when includePackageJson is true. */
|
|
42
|
+
packageManager?: PackageManager;
|
|
43
|
+
/** Detected technologies from package.json dependencies (e.g. "TypeScript", "Vitest"). Capped, not exhaustive. */
|
|
44
|
+
techStack?: string[];
|
|
45
|
+
/** Common verification scripts (build/test/typecheck/lint/smoke/...) found in package.json, keyed by script name. */
|
|
46
|
+
scripts?: Record<string, string>;
|
|
47
|
+
/** `.github/workflows/*.yml` file names. Names only -- see workflow_permissions_audit for permission contents. */
|
|
48
|
+
workflows?: string[];
|
|
49
|
+
/** Lightweight governance signals. Does not duplicate branch_protection_status -- call that tool for protection details. */
|
|
50
|
+
governance?: {
|
|
51
|
+
codeownersFound: boolean;
|
|
52
|
+
};
|
|
53
|
+
/** Summaries of agent instruction files found at the repo root (e.g. AGENTS.md, CLAUDE.md). */
|
|
54
|
+
agentInstructions?: Array<{
|
|
55
|
+
path: string;
|
|
56
|
+
summary: string;
|
|
57
|
+
}>;
|
|
28
58
|
openIssues?: Array<{
|
|
29
59
|
number: number;
|
|
30
60
|
title: string;
|
|
@@ -41,7 +71,24 @@ export interface RepoContextResult {
|
|
|
41
71
|
url: string;
|
|
42
72
|
}>;
|
|
43
73
|
}
|
|
74
|
+
/**
|
|
75
|
+
* Read a corepack-style `"packageManager"` field (e.g. `"npm@10.1.0"`) from a
|
|
76
|
+
* package.json object. Returns null when the field is absent or unrecognised
|
|
77
|
+
* so the caller can fall back to lock-file probing.
|
|
78
|
+
*/
|
|
79
|
+
export declare function identifyPackageManagerFromField(pkg: Record<string, unknown> | undefined): PackageManager | null;
|
|
80
|
+
/** Detect technologies from a package.json's dependencies/devDependencies. Pure -- no I/O. Capped to 15 entries. */
|
|
81
|
+
export declare function detectTechStack(pkg: Record<string, unknown> | undefined): string[];
|
|
82
|
+
/** Maximum command characters retained for one common package script. */
|
|
83
|
+
export declare const SCRIPT_COMMAND_MAX_CHARS = 300;
|
|
84
|
+
/** Maximum combined command characters retained across all common package scripts. */
|
|
85
|
+
export declare const COMMON_SCRIPTS_TOTAL_MAX_CHARS = 1200;
|
|
86
|
+
/** Extract known, commonly-useful scripts from package.json. Pure -- no I/O. */
|
|
87
|
+
export declare function extractCommonScripts(pkg: Record<string, unknown> | undefined): Record<string, string>;
|
|
44
88
|
export declare function fetchRepoContext(opts: RepoContextOptions): Promise<RepoContextResult>;
|
|
45
|
-
/**
|
|
89
|
+
/** Hard cap for package.json summaries returned to an agent context. */
|
|
90
|
+
export declare const PACKAGE_JSON_SUMMARY_MAX_CHARS = 2000;
|
|
91
|
+
/** Summarise a package.json into a concise, bounded string for context. */
|
|
46
92
|
export declare function summarizePackageJson(pkg: Record<string, unknown>): string;
|
|
93
|
+
export {};
|
|
47
94
|
//# sourceMappingURL=context.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../src/github/context.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../src/github/context.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAG3C,MAAM,WAAW,kBAAmB,SAAQ,OAAO;IACjD,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,0HAA0H;IAC1H,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,sFAAsF;IACtF,wBAAwB,CAAC,EAAE,OAAO,CAAC;IACnC,qFAAqF;IACrF,iBAAiB,CAAC,EAAE,OAAO,CAAC;IA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MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CA2BzE"}
|
package/dist/github/context.js
CHANGED
|
@@ -2,6 +2,220 @@
|
|
|
2
2
|
* Helpers for reading repository context from the GitHub API.
|
|
3
3
|
*/
|
|
4
4
|
import { getOctokit } from "./client.js";
|
|
5
|
+
/** Package managers this module can positively identify. */
|
|
6
|
+
const KNOWN_PACKAGE_MANAGERS = ["npm", "pnpm", "yarn", "bun"];
|
|
7
|
+
const PACKAGE_JSON_PARSE_FAILURE = Symbol("packageJsonParseFailure");
|
|
8
|
+
function createPackageJsonParseFailure(raw) {
|
|
9
|
+
const failure = { _raw: raw };
|
|
10
|
+
Object.defineProperty(failure, PACKAGE_JSON_PARSE_FAILURE, { value: true });
|
|
11
|
+
return failure;
|
|
12
|
+
}
|
|
13
|
+
function isPackageJsonParseFailure(pkg) {
|
|
14
|
+
return Reflect.get(pkg, PACKAGE_JSON_PARSE_FAILURE) === true;
|
|
15
|
+
}
|
|
16
|
+
// ---------------------------------------------------------------------------
|
|
17
|
+
// Pure helpers (exported for testing)
|
|
18
|
+
// ---------------------------------------------------------------------------
|
|
19
|
+
/**
|
|
20
|
+
* Read a corepack-style `"packageManager"` field (e.g. `"npm@10.1.0"`) from a
|
|
21
|
+
* package.json object. Returns null when the field is absent or unrecognised
|
|
22
|
+
* so the caller can fall back to lock-file probing.
|
|
23
|
+
*/
|
|
24
|
+
export function identifyPackageManagerFromField(pkg) {
|
|
25
|
+
const value = pkg?.["packageManager"];
|
|
26
|
+
if (typeof value !== "string")
|
|
27
|
+
return null;
|
|
28
|
+
const name = value.split("@")[0]?.trim().toLowerCase();
|
|
29
|
+
if (name && KNOWN_PACKAGE_MANAGERS.includes(name)) {
|
|
30
|
+
return name;
|
|
31
|
+
}
|
|
32
|
+
return null;
|
|
33
|
+
}
|
|
34
|
+
/** Dependency name -> human-readable technology label, checked across dependencies + devDependencies. */
|
|
35
|
+
const TECH_DEPENDENCY_MAP = {
|
|
36
|
+
typescript: "TypeScript",
|
|
37
|
+
vite: "Vite",
|
|
38
|
+
next: "Next.js",
|
|
39
|
+
vitest: "Vitest",
|
|
40
|
+
jest: "Jest",
|
|
41
|
+
mocha: "Mocha",
|
|
42
|
+
express: "Express",
|
|
43
|
+
fastify: "Fastify",
|
|
44
|
+
koa: "Koa",
|
|
45
|
+
react: "React",
|
|
46
|
+
"react-dom": "React",
|
|
47
|
+
vue: "Vue",
|
|
48
|
+
"@angular/core": "Angular",
|
|
49
|
+
"@nestjs/core": "NestJS",
|
|
50
|
+
svelte: "Svelte",
|
|
51
|
+
nuxt: "Nuxt",
|
|
52
|
+
tailwindcss: "Tailwind CSS",
|
|
53
|
+
prisma: "Prisma",
|
|
54
|
+
"@prisma/client": "Prisma",
|
|
55
|
+
playwright: "Playwright",
|
|
56
|
+
"@playwright/test": "Playwright",
|
|
57
|
+
electron: "Electron",
|
|
58
|
+
eslint: "ESLint",
|
|
59
|
+
webpack: "Webpack",
|
|
60
|
+
rollup: "Rollup",
|
|
61
|
+
esbuild: "esbuild",
|
|
62
|
+
"@modelcontextprotocol/sdk": "MCP SDK",
|
|
63
|
+
zod: "Zod",
|
|
64
|
+
};
|
|
65
|
+
/** Detect technologies from a package.json's dependencies/devDependencies. Pure -- no I/O. Capped to 15 entries. */
|
|
66
|
+
export function detectTechStack(pkg) {
|
|
67
|
+
if (!pkg)
|
|
68
|
+
return [];
|
|
69
|
+
const names = new Set();
|
|
70
|
+
for (const section of ["dependencies", "devDependencies"]) {
|
|
71
|
+
const deps = pkg[section];
|
|
72
|
+
if (deps && typeof deps === "object" && !Array.isArray(deps)) {
|
|
73
|
+
for (const depName of Object.keys(deps)) {
|
|
74
|
+
const label = TECH_DEPENDENCY_MAP[depName];
|
|
75
|
+
if (label)
|
|
76
|
+
names.add(label);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
return Array.from(names).slice(0, 15);
|
|
81
|
+
}
|
|
82
|
+
/** Verification-relevant script names worth surfacing to an agent before it starts work. */
|
|
83
|
+
const COMMON_SCRIPT_KEYS = [
|
|
84
|
+
"build",
|
|
85
|
+
"dev",
|
|
86
|
+
"start",
|
|
87
|
+
"test",
|
|
88
|
+
"test:watch",
|
|
89
|
+
"test:coverage",
|
|
90
|
+
"typecheck",
|
|
91
|
+
"lint",
|
|
92
|
+
"smoke",
|
|
93
|
+
"format",
|
|
94
|
+
];
|
|
95
|
+
/** Maximum command characters retained for one common package script. */
|
|
96
|
+
export const SCRIPT_COMMAND_MAX_CHARS = 300;
|
|
97
|
+
/** Maximum combined command characters retained across all common package scripts. */
|
|
98
|
+
export const COMMON_SCRIPTS_TOTAL_MAX_CHARS = 1_200;
|
|
99
|
+
const SCRIPT_TRUNCATION_MARKER = "...(truncated)";
|
|
100
|
+
function boundScriptCommand(command, maxChars) {
|
|
101
|
+
if (command.length <= maxChars)
|
|
102
|
+
return command;
|
|
103
|
+
const prefixChars = Math.max(0, maxChars - SCRIPT_TRUNCATION_MARKER.length);
|
|
104
|
+
return command.slice(0, prefixChars) + SCRIPT_TRUNCATION_MARKER;
|
|
105
|
+
}
|
|
106
|
+
function resolveScriptCommandCap(entries) {
|
|
107
|
+
const totalAtPerCommandCap = entries.reduce((total, [, command]) => total + Math.min(command.length, SCRIPT_COMMAND_MAX_CHARS), 0);
|
|
108
|
+
if (totalAtPerCommandCap <= COMMON_SCRIPTS_TOTAL_MAX_CHARS) {
|
|
109
|
+
return SCRIPT_COMMAND_MAX_CHARS;
|
|
110
|
+
}
|
|
111
|
+
let low = SCRIPT_TRUNCATION_MARKER.length;
|
|
112
|
+
let high = SCRIPT_COMMAND_MAX_CHARS;
|
|
113
|
+
while (low < high) {
|
|
114
|
+
const candidate = Math.ceil((low + high) / 2);
|
|
115
|
+
const totalAtCandidate = entries.reduce((total, [, command]) => total + Math.min(command.length, candidate), 0);
|
|
116
|
+
if (totalAtCandidate <= COMMON_SCRIPTS_TOTAL_MAX_CHARS) {
|
|
117
|
+
low = candidate;
|
|
118
|
+
}
|
|
119
|
+
else {
|
|
120
|
+
high = candidate - 1;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
return low;
|
|
124
|
+
}
|
|
125
|
+
/** Extract known, commonly-useful scripts from package.json. Pure -- no I/O. */
|
|
126
|
+
export function extractCommonScripts(pkg) {
|
|
127
|
+
const scripts = pkg?.["scripts"];
|
|
128
|
+
if (!scripts || typeof scripts !== "object" || Array.isArray(scripts))
|
|
129
|
+
return {};
|
|
130
|
+
const entries = COMMON_SCRIPT_KEYS.flatMap((key) => {
|
|
131
|
+
const value = scripts[key];
|
|
132
|
+
return typeof value === "string" ? [[key, value]] : [];
|
|
133
|
+
});
|
|
134
|
+
const commandCap = resolveScriptCommandCap(entries);
|
|
135
|
+
const result = {};
|
|
136
|
+
entries.forEach(([key, value]) => {
|
|
137
|
+
result[key] = boundScriptCommand(value, commandCap);
|
|
138
|
+
});
|
|
139
|
+
return result;
|
|
140
|
+
}
|
|
141
|
+
// ---------------------------------------------------------------------------
|
|
142
|
+
// I/O helpers (exported for testing)
|
|
143
|
+
// ---------------------------------------------------------------------------
|
|
144
|
+
/** Lock files checked in order; the first one found determines the package manager. */
|
|
145
|
+
const LOCK_FILE_CANDIDATES = [
|
|
146
|
+
{ file: "package-lock.json", manager: "npm" },
|
|
147
|
+
{ file: "pnpm-lock.yaml", manager: "pnpm" },
|
|
148
|
+
{ file: "yarn.lock", manager: "yarn" },
|
|
149
|
+
{ file: "bun.lockb", manager: "bun" },
|
|
150
|
+
];
|
|
151
|
+
/**
|
|
152
|
+
* Probe for a lock file to identify the package manager when package.json
|
|
153
|
+
* did not declare a `packageManager` field. Stops at the first match --
|
|
154
|
+
* at most 4 extra API calls, only incurred when includePackageJson is true
|
|
155
|
+
* and the field-based check above came back empty.
|
|
156
|
+
*/
|
|
157
|
+
async function probePackageManagerByLockFile(octokit, owner, repo) {
|
|
158
|
+
for (const { file, manager } of LOCK_FILE_CANDIDATES) {
|
|
159
|
+
try {
|
|
160
|
+
await octokit.repos.getContent({ owner, repo, path: file });
|
|
161
|
+
return manager;
|
|
162
|
+
}
|
|
163
|
+
catch {
|
|
164
|
+
// Not found at this path -- try the next candidate.
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
return "unknown";
|
|
168
|
+
}
|
|
169
|
+
/** List `.github/workflows/*.yml`|`.yaml` file names. Names only -- no content parsing (see workflow_permissions_audit). */
|
|
170
|
+
async function listWorkflowFileNames(octokit, owner, repo) {
|
|
171
|
+
try {
|
|
172
|
+
const { data } = await octokit.repos.getContent({ owner, repo, path: ".github/workflows" });
|
|
173
|
+
if (!Array.isArray(data))
|
|
174
|
+
return [];
|
|
175
|
+
return data.filter((entry) => entry.type === "file" && /\.ya?ml$/i.test(entry.name)).map((entry) => entry.name);
|
|
176
|
+
}
|
|
177
|
+
catch {
|
|
178
|
+
return [];
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
/** Conventional CODEOWNERS candidate paths, same set used by review_pr_against_standard. */
|
|
182
|
+
const CODEOWNERS_CANDIDATE_PATHS = [".github/CODEOWNERS", "CODEOWNERS", "docs/CODEOWNERS"];
|
|
183
|
+
/** Whether a CODEOWNERS file exists at any conventional path. Existence only -- ownership routing lives in review_pr_against_standard. */
|
|
184
|
+
async function checkCodeownersExists(octokit, owner, repo) {
|
|
185
|
+
for (const path of CODEOWNERS_CANDIDATE_PATHS) {
|
|
186
|
+
try {
|
|
187
|
+
await octokit.repos.getContent({ owner, repo, path });
|
|
188
|
+
return true;
|
|
189
|
+
}
|
|
190
|
+
catch {
|
|
191
|
+
// Not found at this path -- try the next candidate.
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
return false;
|
|
195
|
+
}
|
|
196
|
+
/** Agent instruction files this module looks for at the repo root, checked in order. */
|
|
197
|
+
const AGENT_INSTRUCTION_CANDIDATE_PATHS = ["AGENTS.md", "CLAUDE.md"];
|
|
198
|
+
/** Fetch and truncate any agent instruction files found at the repo root. */
|
|
199
|
+
async function fetchAgentInstructionSummaries(octokit, owner, repo, maxChars) {
|
|
200
|
+
const results = [];
|
|
201
|
+
for (const path of AGENT_INSTRUCTION_CANDIDATE_PATHS) {
|
|
202
|
+
try {
|
|
203
|
+
const { data } = await octokit.repos.getContent({
|
|
204
|
+
owner,
|
|
205
|
+
repo,
|
|
206
|
+
path,
|
|
207
|
+
mediaType: { format: "raw" },
|
|
208
|
+
});
|
|
209
|
+
const raw = typeof data === "string" ? data : JSON.stringify(data);
|
|
210
|
+
const summary = raw.length > maxChars ? raw.slice(0, maxChars) + "\n...(truncated)" : raw;
|
|
211
|
+
results.push({ path, summary });
|
|
212
|
+
}
|
|
213
|
+
catch {
|
|
214
|
+
// Not found at this path -- try the next candidate.
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
return results;
|
|
218
|
+
}
|
|
5
219
|
export async function fetchRepoContext(opts) {
|
|
6
220
|
const octokit = getOctokit();
|
|
7
221
|
const { owner, repo } = opts;
|
|
@@ -27,17 +241,17 @@ export async function fetchRepoContext(opts) {
|
|
|
27
241
|
repo,
|
|
28
242
|
mediaType: { format: "raw" },
|
|
29
243
|
});
|
|
30
|
-
|
|
244
|
+
const maxChars = opts.maxReadmeChars ?? 3000;
|
|
31
245
|
const raw = typeof readmeData === "string"
|
|
32
246
|
? readmeData
|
|
33
247
|
: JSON.stringify(readmeData);
|
|
34
|
-
result.readme = raw.length >
|
|
248
|
+
result.readme = raw.length > maxChars ? raw.slice(0, maxChars) + "\n...(truncated)" : raw;
|
|
35
249
|
}
|
|
36
250
|
catch {
|
|
37
251
|
result.readme = "(README not found or inaccessible)";
|
|
38
252
|
}
|
|
39
253
|
}
|
|
40
|
-
// Optional: package.json
|
|
254
|
+
// Optional: package.json + derived packageManager/techStack/scripts
|
|
41
255
|
if (opts.includePackageJson) {
|
|
42
256
|
try {
|
|
43
257
|
const { data: fileData } = await octokit.repos.getContent({
|
|
@@ -48,15 +262,35 @@ export async function fetchRepoContext(opts) {
|
|
|
48
262
|
});
|
|
49
263
|
const raw = typeof fileData === "string" ? fileData : JSON.stringify(fileData);
|
|
50
264
|
try {
|
|
51
|
-
|
|
265
|
+
const parsed = JSON.parse(raw);
|
|
266
|
+
result.packageJson =
|
|
267
|
+
typeof parsed === "object" && parsed !== null && !Array.isArray(parsed)
|
|
268
|
+
? parsed
|
|
269
|
+
: createPackageJsonParseFailure(raw);
|
|
52
270
|
}
|
|
53
271
|
catch {
|
|
54
|
-
result.packageJson =
|
|
272
|
+
result.packageJson = createPackageJsonParseFailure(raw);
|
|
55
273
|
}
|
|
56
274
|
}
|
|
57
275
|
catch {
|
|
58
276
|
result.packageJson = undefined;
|
|
59
277
|
}
|
|
278
|
+
result.techStack = detectTechStack(result.packageJson);
|
|
279
|
+
result.scripts = extractCommonScripts(result.packageJson);
|
|
280
|
+
const fieldPackageManager = identifyPackageManagerFromField(result.packageJson);
|
|
281
|
+
result.packageManager = fieldPackageManager ?? (await probePackageManagerByLockFile(octokit, owner, repo));
|
|
282
|
+
}
|
|
283
|
+
// Optional: workflow file names
|
|
284
|
+
if (opts.includeWorkflows) {
|
|
285
|
+
result.workflows = await listWorkflowFileNames(octokit, owner, repo);
|
|
286
|
+
}
|
|
287
|
+
// Optional: lightweight governance signals
|
|
288
|
+
if (opts.includeGovernance) {
|
|
289
|
+
result.governance = { codeownersFound: await checkCodeownersExists(octokit, owner, repo) };
|
|
290
|
+
}
|
|
291
|
+
// Optional: agent instruction file summaries
|
|
292
|
+
if (opts.includeAgentInstructions) {
|
|
293
|
+
result.agentInstructions = await fetchAgentInstructionSummaries(octokit, owner, repo, opts.maxInstructionChars ?? 1000);
|
|
60
294
|
}
|
|
61
295
|
// Optional: open issues
|
|
62
296
|
if (opts.includeOpenIssues) {
|
|
@@ -97,8 +331,19 @@ export async function fetchRepoContext(opts) {
|
|
|
97
331
|
}
|
|
98
332
|
return result;
|
|
99
333
|
}
|
|
100
|
-
/**
|
|
334
|
+
/** Hard cap for package.json summaries returned to an agent context. */
|
|
335
|
+
export const PACKAGE_JSON_SUMMARY_MAX_CHARS = 2_000;
|
|
336
|
+
const PACKAGE_JSON_TRUNCATION_MARKER = "\n...(truncated)";
|
|
337
|
+
function boundPackageJsonSummary(summary) {
|
|
338
|
+
if (summary.length <= PACKAGE_JSON_SUMMARY_MAX_CHARS)
|
|
339
|
+
return summary;
|
|
340
|
+
return (summary.slice(0, PACKAGE_JSON_SUMMARY_MAX_CHARS - PACKAGE_JSON_TRUNCATION_MARKER.length) + PACKAGE_JSON_TRUNCATION_MARKER);
|
|
341
|
+
}
|
|
342
|
+
/** Summarise a package.json into a concise, bounded string for context. */
|
|
101
343
|
export function summarizePackageJson(pkg) {
|
|
344
|
+
if (isPackageJsonParseFailure(pkg)) {
|
|
345
|
+
return "(package.json could not be parsed as a JSON object)";
|
|
346
|
+
}
|
|
102
347
|
const lines = [];
|
|
103
348
|
if (pkg["name"])
|
|
104
349
|
lines.push(`name: ${pkg["name"]}`);
|
|
@@ -118,6 +363,9 @@ export function summarizePackageJson(pkg) {
|
|
|
118
363
|
const keys = Object.keys(devDeps).slice(0, 5);
|
|
119
364
|
lines.push(`devDependencies (${Object.keys(devDeps).length}): ${keys.join(", ")}${Object.keys(devDeps).length > 5 ? "..." : ""}`);
|
|
120
365
|
}
|
|
121
|
-
|
|
366
|
+
const summary = lines.length > 0
|
|
367
|
+
? lines.join("\n")
|
|
368
|
+
: "(package.json contains no standard summary fields)";
|
|
369
|
+
return boundPackageJsonSummary(summary);
|
|
122
370
|
}
|
|
123
371
|
//# sourceMappingURL=context.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.js","sourceRoot":"","sources":["../../src/github/context.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AA4CzC,MAAM,CAAC,KAAK,UAAU,gBAAgB,CACpC,IAAwB;IAExB,MAAM,OAAO,GAAG,UAAU,EAAE,CAAC;IAC7B,MAAM,EAAE,KAAK,E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C,oBAAoB,MAAM,CAAC,IAAI,CAAC,OAAiB,CAAC,CAAC,MAAM,MAAM,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,MAAM,CAAC,IAAI,CAAC,OAAiB,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;IACxJ,CAAC;IACD,MAAM,OAAO,GACX,KAAK,CAAC,MAAM,GAAG,CAAC;QACd,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC;QAClB,CAAC,CAAC,oDAAoD,CAAC;IAC3D,OAAO,uBAAuB,CAAC,OAAO,CAAC,CAAC;AAC1C,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
import "dotenv/config";
|
|
13
13
|
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
14
14
|
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
|
|
15
|
+
import { SERVER_INFO } from "./version.js";
|
|
15
16
|
// Tools
|
|
16
17
|
import { registerRepoContextTool } from "./tools/repo-context.js";
|
|
17
18
|
import { registerPlanFromContextTool } from "./tools/plan-from-context.js";
|
|
@@ -34,10 +35,7 @@ await initializeConfig();
|
|
|
34
35
|
// ---------------------------------------------------------------------------
|
|
35
36
|
// Server initialisation
|
|
36
37
|
// ---------------------------------------------------------------------------
|
|
37
|
-
const server = new McpServer(
|
|
38
|
-
name: "agentic-sdlc-mcp",
|
|
39
|
-
version: "1.3.1",
|
|
40
|
-
});
|
|
38
|
+
const server = new McpServer(SERVER_INFO);
|
|
41
39
|
// Register all tools
|
|
42
40
|
registerRepoContextTool(server);
|
|
43
41
|
registerPlanFromContextTool(server);
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AACA;;;;;;;;;GASG;AACH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D,CAAC;IAEF,MAAM,GAAG,GAAG,OAAO,EAAE,CAAC;IACtB,GAAG,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC,CAAC;IAExB,GAAG,CAAC,IAAI,CAAC,MAAM,EAAE,KAAK,EAAE,GAA8B,EAAE,GAA+B,EAAE,EAAE;QACzF,MAAM,aAAa,GAAG,IAAI,6BAA6B,CAAC;YACtD,kBAAkB,EAAE,SAAS;YAC7B,kBAAkB,EAAE,IAAI;SACzB,CAAC,CAAC;QACH,GAAG,CAAC,EAAE,CAAC,OAAO,EAAE,GAAG,EAAE,CAAC,aAAa,CAAC,KAAK,EAAE,CAAC,CAAC;QAC7C,MAAM,MAAM,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC;QACpC,MAAM,aAAa,CAAC,aAAa,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,IAAI,CAAC,CAAC;IACxD,CAAC,CAAC,CAAC;IAEH,MAAM,IAAI,GAAG,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,MAAM,EAAE,EAAE,CAAC,CAAC;IACzD,GAAG,CAAC,MAAM,CAAC,IAAI,EAAE,GAAG,EAAE;QACpB,OAAO,CAAC,KAAK,CAAC,gEAAgE,IAAI,MAAM,CAAC,CAAC;IAC5F,CAAC,CAAC,CAAC;AACL,CAAC;KAAM,CAAC;IACN,iBAAiB;IACjB,MAAM,cAAc,GAAG,IAAI,oBAAoB,EAAE,CAAC;IAClD,MAAM,MAAM,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC;IACrC,OAAO,CAAC,KAAK,CAAC,uDAAuD,CAAC,CAAC;AACzE,CAAC"}
|
|
@@ -17,6 +17,14 @@ export declare const CreateIssueSetInputSchema: z.ZodObject<{
|
|
|
17
17
|
body: z.ZodString;
|
|
18
18
|
labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
19
19
|
assignees: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
20
|
+
phase: z.ZodOptional<z.ZodString>;
|
|
21
|
+
acceptanceCriteria: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
22
|
+
riskLevel: z.ZodOptional<z.ZodEnum<{
|
|
23
|
+
high: "high";
|
|
24
|
+
medium: "medium";
|
|
25
|
+
low: "low";
|
|
26
|
+
}>>;
|
|
27
|
+
goal: z.ZodOptional<z.ZodString>;
|
|
20
28
|
}, z.core.$strip>>;
|
|
21
29
|
dryRun: z.ZodDefault<z.ZodBoolean>;
|
|
22
30
|
}, z.core.$strip>;
|
|
@@ -24,24 +32,62 @@ export type CreateIssueSetInput = z.infer<typeof CreateIssueSetInputSchema>;
|
|
|
24
32
|
export declare const CreateIssueSetOutputSchema: {
|
|
25
33
|
dryRun: z.ZodBoolean;
|
|
26
34
|
count: z.ZodNumber;
|
|
35
|
+
targetRepo: z.ZodString;
|
|
27
36
|
issues: z.ZodArray<z.ZodObject<{
|
|
28
37
|
number: z.ZodNumber;
|
|
29
38
|
title: z.ZodString;
|
|
30
39
|
url: z.ZodString;
|
|
40
|
+
labels: z.ZodArray<z.ZodString>;
|
|
41
|
+
}, z.core.$strip>>;
|
|
42
|
+
failures: z.ZodArray<z.ZodObject<{
|
|
43
|
+
inputIndex: z.ZodNumber;
|
|
44
|
+
title: z.ZodString;
|
|
45
|
+
reason: z.ZodString;
|
|
31
46
|
}, z.core.$strip>>;
|
|
32
47
|
previewTitles: z.ZodArray<z.ZodString>;
|
|
48
|
+
preview: z.ZodArray<z.ZodObject<{
|
|
49
|
+
title: z.ZodString;
|
|
50
|
+
labels: z.ZodArray<z.ZodString>;
|
|
51
|
+
bodySummary: z.ZodString;
|
|
52
|
+
}, z.core.$strip>>;
|
|
53
|
+
warnings: z.ZodArray<z.ZodString>;
|
|
33
54
|
};
|
|
34
55
|
export interface CreatedIssue {
|
|
35
56
|
number: number;
|
|
36
57
|
title: string;
|
|
37
58
|
url: string;
|
|
59
|
+
labels: string[];
|
|
60
|
+
}
|
|
61
|
+
export interface IssuePreview {
|
|
62
|
+
title: string;
|
|
63
|
+
labels: string[];
|
|
64
|
+
bodySummary: string;
|
|
65
|
+
}
|
|
66
|
+
export interface IssueCreationFailure {
|
|
67
|
+
/** Zero-based index in the original input array, allowing duplicate titles to be retried safely. */
|
|
68
|
+
inputIndex: number;
|
|
69
|
+
title: string;
|
|
70
|
+
reason: string;
|
|
38
71
|
}
|
|
39
72
|
export interface CreateIssueSetResult {
|
|
40
73
|
dryRun: boolean;
|
|
41
74
|
count: number;
|
|
75
|
+
targetRepo: string;
|
|
42
76
|
issues: CreatedIssue[];
|
|
77
|
+
failures: IssueCreationFailure[];
|
|
43
78
|
previewTitles: string[];
|
|
79
|
+
preview: IssuePreview[];
|
|
80
|
+
warnings: string[];
|
|
44
81
|
}
|
|
82
|
+
/** Truncate a body for the dry-run preview list. Pure -- no I/O. */
|
|
83
|
+
export declare function summarizeBody(body: string): string;
|
|
84
|
+
/**
|
|
85
|
+
* Flag issues worth a human's attention before a live (dryRun: false) write:
|
|
86
|
+
* no labels, a title GitHub will reject outright, or a body too short to be
|
|
87
|
+
* a real description. Pure -- no I/O. One warning line per (issue, problem)
|
|
88
|
+
* pair, 1-indexed to match the preview's numbered list.
|
|
89
|
+
*/
|
|
90
|
+
export declare function generateIssueWarnings(issues: CreateIssueSetInput["issues"], prefix: string): string[];
|
|
45
91
|
export declare function handleCreateIssueSet(params: CreateIssueSetInput, ref: RepoRef, octokit: Octokit): Promise<{
|
|
46
92
|
text: string;
|
|
47
93
|
structured: CreateIssueSetResult;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-issue-set.d.ts","sourceRoot":"","sources":["../../src/tools/create-issue-set.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AACpE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;A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