contract-driven-delivery 2.1.2 → 2.1.3
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/CHANGELOG.md +13 -0
- package/README.md +35 -22
- package/assets/CLAUDE.template.md +8 -9
- package/assets/CODEX.template.md +8 -9
- package/dist/cli/index.js +4 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [2.1.3] - 2026-05-29
|
|
4
|
+
|
|
5
|
+
Correct Claude Code MCP registration guidance.
|
|
6
|
+
|
|
7
|
+
### Changed
|
|
8
|
+
|
|
9
|
+
- Install and upgrade guidance now recommends
|
|
10
|
+
`claude mcp add --scope user cdd-kit -- cdd-kit mcp`, which writes the server
|
|
11
|
+
to `~/.claude.json`.
|
|
12
|
+
- Documentation now warns that adding `mcpServers` to
|
|
13
|
+
`~/.claude/settings.json` alone is not sufficient for Claude Code CLI MCP
|
|
14
|
+
discovery.
|
|
15
|
+
|
|
3
16
|
## [2.1.2] - 2026-05-29
|
|
4
17
|
|
|
5
18
|
Recommended MCP setup during install and upgrade.
|
package/README.md
CHANGED
|
@@ -275,11 +275,18 @@ Creates: `contracts/`, `specs/templates/`, provider guidance files (`CLAUDE.md`,
|
|
|
275
275
|
|
|
276
276
|
`.cdd/model-policy.json` stores role-to-model **classes** (`opus`, `sonnet`, `haiku`) instead of provider release IDs such as `claude-opus-4-7`. This keeps the policy stable across Claude and Codex adapters; provider-specific tooling can map the class to the concrete model available in that environment.
|
|
277
277
|
|
|
278
|
-
Recommended:
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
278
|
+
Recommended: register the cdd-kit MCP server with Claude Code after init:
|
|
279
|
+
|
|
280
|
+
```bash
|
|
281
|
+
claude mcp add --scope user cdd-kit -- cdd-kit mcp
|
|
282
|
+
claude mcp list
|
|
283
|
+
```
|
|
284
|
+
|
|
285
|
+
This writes the server to `~/.claude.json` and exposes graph/code-map tools
|
|
286
|
+
directly to the agent (`cdd_graph_context`, `cdd_graph_query`,
|
|
287
|
+
`cdd_graph_impact`, `cdd_index_query`, `cdd_index_impact`). Do not rely on
|
|
288
|
+
manually adding `mcpServers` to `~/.claude/settings.json`; that file is a Claude
|
|
289
|
+
Code UI settings format and is not the MCP registry read by the CLI.
|
|
283
290
|
|
|
284
291
|
---
|
|
285
292
|
|
|
@@ -313,9 +320,10 @@ cdd-kit migrate --all # add new per-change scaffolds such as implementation-p
|
|
|
313
320
|
cdd-kit doctor --strict
|
|
314
321
|
```
|
|
315
322
|
|
|
316
|
-
After syncing,
|
|
317
|
-
`
|
|
318
|
-
code graph and code-map; shell commands
|
|
323
|
+
After syncing, register MCP-capable agents with
|
|
324
|
+
`claude mcp add --scope user cdd-kit -- cdd-kit mcp`. This is the recommended
|
|
325
|
+
way for agents to use the regenerated code graph and code-map; shell commands
|
|
326
|
+
remain the fallback.
|
|
319
327
|
|
|
320
328
|
What gets updated:
|
|
321
329
|
|
|
@@ -399,10 +407,17 @@ cdd-kit refresh --yes --no-templates
|
|
|
399
407
|
5. Resyncs `.cdd/model-policy.json` roles from installed agent frontmatter.
|
|
400
408
|
6. Regenerates `.cdd/code-map.yml`.
|
|
401
409
|
|
|
402
|
-
After `refresh --yes`,
|
|
410
|
+
After `refresh --yes`, register the MCP server:
|
|
411
|
+
|
|
412
|
+
```bash
|
|
413
|
+
claude mcp add --scope user cdd-kit -- cdd-kit mcp
|
|
414
|
+
```
|
|
415
|
+
|
|
403
416
|
The MCP tools are the recommended graph/code-map exploration interface for AI
|
|
404
|
-
agents
|
|
405
|
-
is not
|
|
417
|
+
agents. Claude Code CLI stores user-scope MCP servers in `~/.claude.json`; a
|
|
418
|
+
manual `mcpServers` entry in `~/.claude/settings.json` is not sufficient.
|
|
419
|
+
`cdd-kit graph ...` and `cdd-kit index ...` remain the fallback when MCP is not
|
|
420
|
+
available.
|
|
406
421
|
|
|
407
422
|
Run `cdd-kit migrate --all` separately when you need existing
|
|
408
423
|
`specs/changes/*` directories to gain new required artifacts.
|
|
@@ -731,19 +746,17 @@ code-map-only fallback, `--engine codegraph` to require external CodeGraph, or
|
|
|
731
746
|
### `cdd-kit mcp`
|
|
732
747
|
|
|
733
748
|
`cdd-kit mcp` runs a stdio MCP server so agents can call the graph/index layer
|
|
734
|
-
as tools instead of shelling out manually.
|
|
749
|
+
as tools instead of shelling out manually. Register it with Claude Code:
|
|
735
750
|
|
|
736
|
-
```
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
"cdd-kit": {
|
|
740
|
-
"command": "cdd-kit",
|
|
741
|
-
"args": ["mcp"]
|
|
742
|
-
}
|
|
743
|
-
}
|
|
744
|
-
}
|
|
751
|
+
```bash
|
|
752
|
+
claude mcp add --scope user cdd-kit -- cdd-kit mcp
|
|
753
|
+
claude mcp list
|
|
745
754
|
```
|
|
746
755
|
|
|
756
|
+
Use the CLI command above so Claude Code writes the server to `~/.claude.json`.
|
|
757
|
+
Do not rely on manually editing `~/.claude/settings.json`; that file is not the
|
|
758
|
+
MCP registry read by the CLI.
|
|
759
|
+
|
|
747
760
|
Exposed tools:
|
|
748
761
|
|
|
749
762
|
- `cdd_graph_status`
|
|
@@ -819,7 +832,7 @@ Then choose one path per active change:
|
|
|
819
832
|
### Recommended rollout for production repos already burned by token overuse
|
|
820
833
|
|
|
821
834
|
1. Run `cdd-kit refresh --yes` once per repo after updating the npm package.
|
|
822
|
-
2.
|
|
835
|
+
2. Register MCP-capable agents with `claude mcp add --scope user cdd-kit -- cdd-kit mcp`.
|
|
823
836
|
3. Run `cdd-kit migrate --all` so existing active changes receive the current required artifact set.
|
|
824
837
|
4. Review and fill `implementation-plan.md` before resuming implementation agents on active changes.
|
|
825
838
|
5. Run `cdd-kit doctor --strict` in CI.
|
|
@@ -46,17 +46,16 @@ Run `cdd-kit detect-stack` to verify the detected tech stack.
|
|
|
46
46
|
|
|
47
47
|
Configure MCP-capable agents to use the cdd-kit server:
|
|
48
48
|
|
|
49
|
-
```
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
"cdd-kit": {
|
|
53
|
-
"command": "cdd-kit",
|
|
54
|
-
"args": ["mcp"]
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
}
|
|
49
|
+
```bash
|
|
50
|
+
claude mcp add --scope user cdd-kit -- cdd-kit mcp
|
|
51
|
+
claude mcp list
|
|
58
52
|
```
|
|
59
53
|
|
|
54
|
+
For Claude Code, use `claude mcp add` so the server is written to
|
|
55
|
+
`~/.claude.json`. Do not rely on manually adding `mcpServers` to
|
|
56
|
+
`~/.claude/settings.json`; that is a Claude Code UI settings format and is not
|
|
57
|
+
the MCP registry read by the CLI.
|
|
58
|
+
|
|
60
59
|
Prefer these MCP tools before reading source files: `cdd_graph_context`,
|
|
61
60
|
`cdd_graph_query`, `cdd_graph_impact`, `cdd_index_query`, and
|
|
62
61
|
`cdd_index_impact`. They use `.cdd/code-map.yml` and
|
package/assets/CODEX.template.md
CHANGED
|
@@ -15,17 +15,16 @@ This project uses Contract-Driven Delivery (CDD).
|
|
|
15
15
|
|
|
16
16
|
Configure MCP-capable agents to use the cdd-kit server:
|
|
17
17
|
|
|
18
|
-
```
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
"cdd-kit": {
|
|
22
|
-
"command": "cdd-kit",
|
|
23
|
-
"args": ["mcp"]
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
}
|
|
18
|
+
```bash
|
|
19
|
+
claude mcp add --scope user cdd-kit -- cdd-kit mcp
|
|
20
|
+
claude mcp list
|
|
27
21
|
```
|
|
28
22
|
|
|
23
|
+
For Claude Code, use `claude mcp add` so the server is written to
|
|
24
|
+
`~/.claude.json`. Do not rely on manually adding `mcpServers` to
|
|
25
|
+
`~/.claude/settings.json`; that is a Claude Code UI settings format and is not
|
|
26
|
+
the MCP registry read by the CLI.
|
|
27
|
+
|
|
29
28
|
Prefer these MCP tools before reading source files: `cdd_graph_context`,
|
|
30
29
|
`cdd_graph_query`, `cdd_graph_impact`, `cdd_index_query`, and
|
|
31
30
|
`cdd_index_impact`. They use `.cdd/code-map.yml` and
|
package/dist/cli/index.js
CHANGED
|
@@ -101,8 +101,9 @@ var init_logger = __esm({
|
|
|
101
101
|
// src/utils/mcp-hint.ts
|
|
102
102
|
function logRecommendedMcpSetup() {
|
|
103
103
|
log.info("Recommended for AI agents: enable the cdd-kit MCP server.");
|
|
104
|
-
log.dim("
|
|
105
|
-
log.dim(
|
|
104
|
+
log.dim(" Claude Code user-scope setup: claude mcp add --scope user cdd-kit -- cdd-kit mcp");
|
|
105
|
+
log.dim(" Verify in Claude Code: /mcp or `claude mcp list`");
|
|
106
|
+
log.dim(" Note: Claude Code CLI reads MCP servers from ~/.claude.json; ~/.claude/settings.json is not enough.");
|
|
106
107
|
log.dim(" Tools exposed: cdd_graph_context, cdd_graph_query, cdd_graph_impact, cdd_index_query, cdd_index_impact");
|
|
107
108
|
log.dim(" Use MCP graph tools before source reads; CLI fallback: cdd-kit graph/index.");
|
|
108
109
|
}
|
|
@@ -10301,7 +10302,7 @@ async function refresh(opts) {
|
|
|
10301
10302
|
logRecommendedMcpSetup();
|
|
10302
10303
|
} else {
|
|
10303
10304
|
log.info("Dry-run finished. Re-run with `--yes` to apply.");
|
|
10304
|
-
log.info(
|
|
10305
|
+
log.info("After applying, register MCP with `claude mcp add --scope user cdd-kit -- cdd-kit mcp` so agents use graph/code-map tools directly.");
|
|
10305
10306
|
}
|
|
10306
10307
|
log.blank();
|
|
10307
10308
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "contract-driven-delivery",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.3",
|
|
4
4
|
"description": "Contract-driven delivery kit for AI coding agents with deterministic context indexes, manifest-backed read-scope governance, and orchestrated contracts-first delivery.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"contract-driven",
|