@protonspy/csdd-mcp 0.2.3 → 0.2.5
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/dist/tools/spec.js +26 -0
- package/package.json +6 -6
package/dist/tools/spec.js
CHANGED
|
@@ -130,4 +130,30 @@ export const specTools = [
|
|
|
130
130
|
...rootArg(p),
|
|
131
131
|
],
|
|
132
132
|
},
|
|
133
|
+
{
|
|
134
|
+
name: "csdd_spec_diff_report",
|
|
135
|
+
title: "Spec diff report",
|
|
136
|
+
description: "Record a structured, auditable file diff for a spec into specs/<feature>/diff-report.json (surfaced by the dashboard's Changes view). It diffs the merge-base of HEAD and the base ref → the current working tree (committed-on-branch + uncommitted changes, plus untracked files), so it tracks development as it happens. base overrides the auto-detected ref (origin/main, main, origin/master, master); maxLines caps recorded lines per file (default 2000, 0 = unlimited). Requires a git repository; read-only (never touches the index or working tree).",
|
|
137
|
+
inputSchema: {
|
|
138
|
+
feature,
|
|
139
|
+
base: z
|
|
140
|
+
.string()
|
|
141
|
+
.optional()
|
|
142
|
+
.describe("Base ref to diff against (default: auto-detect origin/main, main, origin/master, master)."),
|
|
143
|
+
maxLines: z
|
|
144
|
+
.number()
|
|
145
|
+
.int()
|
|
146
|
+
.optional()
|
|
147
|
+
.describe("Per-file recorded-line cap (default 2000; 0 = unlimited)."),
|
|
148
|
+
root: rootField,
|
|
149
|
+
},
|
|
150
|
+
toArgs: (p) => [
|
|
151
|
+
"spec",
|
|
152
|
+
"diff-report",
|
|
153
|
+
p.feature,
|
|
154
|
+
...flag("--base", p.base),
|
|
155
|
+
...flag("--max-lines", p.maxLines),
|
|
156
|
+
...rootArg(p),
|
|
157
|
+
],
|
|
158
|
+
},
|
|
133
159
|
];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@protonspy/csdd-mcp",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.5",
|
|
4
4
|
"description": "MCP server exposing the csdd CLI over stdio (one tool per subcommand).",
|
|
5
5
|
"homepage": "https://github.com/protonspy/csdd/tree/main/mcp-server#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -36,10 +36,10 @@
|
|
|
36
36
|
"zod": "^3.23.8"
|
|
37
37
|
},
|
|
38
38
|
"optionalDependencies": {
|
|
39
|
-
"@protonspy/csdd-linux-x64": "0.2.
|
|
40
|
-
"@protonspy/csdd-linux-arm64": "0.2.
|
|
41
|
-
"@protonspy/csdd-darwin-x64": "0.2.
|
|
42
|
-
"@protonspy/csdd-darwin-arm64": "0.2.
|
|
43
|
-
"@protonspy/csdd-win32-x64": "0.2.
|
|
39
|
+
"@protonspy/csdd-linux-x64": "0.2.5",
|
|
40
|
+
"@protonspy/csdd-linux-arm64": "0.2.5",
|
|
41
|
+
"@protonspy/csdd-darwin-x64": "0.2.5",
|
|
42
|
+
"@protonspy/csdd-darwin-arm64": "0.2.5",
|
|
43
|
+
"@protonspy/csdd-win32-x64": "0.2.5"
|
|
44
44
|
}
|
|
45
45
|
}
|