mdkg 0.3.5 → 0.3.6

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.
@@ -173,7 +173,7 @@ mdkg graph import-template templates/website-template-mdkg --start-goal goal-1 -
173
173
  mdkg graph import-template templates/website-template-mdkg --start-goal goal-1 --select-goal --apply --json
174
174
  ```
175
175
 
176
- `graph clone` and `graph fork` preserve IDs because the target is a separate graph namespace. `graph import-template` rewrites canonical numeric IDs for same-repo imports and requires `--id-prefix` for colliding semantic IDs. Subgraphs remain read-only planning views; use `mdkg graph ...` when authored graph state should be created.
176
+ `graph clone` and `graph fork` preserve IDs because the target is a separate graph namespace. `graph import-template` rewrites canonical numeric IDs for same-repo imports and requires `--id-prefix` for colliding semantic IDs. With `--select-goal --apply`, import-template activates the rewritten imported start goal, pauses competing active root goals, validates the graph, and then writes selected-goal state. Subgraphs remain read-only planning views; use `mdkg graph ...` when authored graph state should be created.
177
177
 
178
178
  Register child bundle snapshots as read-only subgraphs with:
179
179
 
@@ -193,6 +193,14 @@ Use `mdkg subgraph materialize child_repo --target .mdkg/subgraphs --gitignore -
193
193
 
194
194
  Subgraph nodes use the subgraph alias as their qid prefix and can be inspected or packed, but mutations must happen in the owning child repo.
195
195
 
196
+ Launch a local read-only MCP server when an MCP-capable agent should inspect this graph without receiving mutation tools:
197
+
198
+ ```bash
199
+ mdkg mcp serve --stdio --root /path/to/repo
200
+ ```
201
+
202
+ The MCP server is stdio-only in this release. It exposes read-only tools for status, workspace/subgraph listing, search, show, in-memory pack generation, goal current/next, and validation. It does not expose task updates, goal activation, graph import, queue, event, archive, format, SQL, shell, arbitrary file reads, filesystem mutation, environment variables, or secret access. Future mutation allowlists remain design work.
203
+
196
204
  ## Archive and Work Mirrors
197
205
 
198
206
  Archive source/artifact files with:
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "schema_version": 1,
3
3
  "tool": "mdkg",
4
- "mdkg_version": "0.3.5",
4
+ "mdkg_version": "0.3.6",
5
5
  "files": [
6
6
  {
7
7
  "path": ".mdkg/config.json",
@@ -61,7 +61,7 @@
61
61
  {
62
62
  "path": ".mdkg/README.md",
63
63
  "category": "mdkg_doc",
64
- "sha256": "a3b059cb0ea5625f9888fbcee52ddf13491e033046d8c3f3846574d8667ad234"
64
+ "sha256": "cecb50528b70c0c4e32f8a052a668b5d87d6ac542818229efa848a6b1ac42d62"
65
65
  },
66
66
  {
67
67
  "path": ".mdkg/skills/build-pack-and-execute-task/SKILL.md",
@@ -261,7 +261,7 @@
261
261
  {
262
262
  "path": "CLI_COMMAND_MATRIX.md",
263
263
  "category": "startup_doc",
264
- "sha256": "220b461553310a8248d53f01fae132d4ca433659da679e401e3ce6abe2592cb7"
264
+ "sha256": "5321d82b594c1c0aa5574dcffbf21e5a1d3df89566b0f9acfc854fcaac3e13a7"
265
265
  },
266
266
  {
267
267
  "path": "llms.txt",
@@ -135,6 +135,7 @@ const BOOLEAN_FLAGS = new Set([
135
135
  "--clean",
136
136
  "--gitignore",
137
137
  "--select-goal",
138
+ "--stdio",
138
139
  ]);
139
140
  const FLAG_ALIASES = {
140
141
  "--o": "--out",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mdkg",
3
- "version": "0.3.5",
3
+ "version": "0.3.6",
4
4
  "description": "Markdown Knowledge Graph",
5
5
  "license": "MIT",
6
6
  "bin": {
@@ -34,6 +34,7 @@
34
34
  "smoke:goal-lifecycle": "npm run build && node scripts/smoke-goal-lifecycle.js",
35
35
  "smoke:bundle": "npm run build && node scripts/smoke-bundle.js",
36
36
  "smoke:graph-clone": "npm run build && node scripts/smoke-graph-clone.js",
37
+ "smoke:mcp": "npm run build && node scripts/smoke-mcp.js",
37
38
  "smoke:bundle-import": "npm run smoke:subgraph",
38
39
  "smoke:visibility": "npm run build && node scripts/smoke-visibility.js",
39
40
  "smoke:sqlite": "npm run build && node scripts/smoke-sqlite.js",
@@ -43,7 +44,7 @@
43
44
  "cli:check": "npm run build && node scripts/cli_help_snapshot.js --check",
44
45
  "cli:contract": "npm run build && node scripts/generate-command-contract.js --check",
45
46
  "prepack": "npm run build && node scripts/assert-publish-ready.js",
46
- "prepublishOnly": "npm run test && npm run cli:check && npm run cli:contract && node dist/cli.js validate && npm run smoke:consumer && npm run smoke:matrix && npm run smoke:upgrade && npm run smoke:init && npm run smoke:capabilities && npm run smoke:db && npm run smoke:db-queue && npm run smoke:db-queue-cli && npm run smoke:db-events && npm run smoke:db-materializer && npm run smoke:db-snapshot && npm run smoke:archive-work && npm run smoke:work-invocation && npm run smoke:cli-ux-polish && npm run smoke:operator-health && npm run smoke:fix-plan && npm run smoke:branch-conflicts && npm run smoke:id-repair && npm run smoke:command-docs && npm run smoke:spike && npm run smoke:goal-lifecycle && npm run smoke:bundle && npm run smoke:graph-clone && npm run smoke:subgraph && npm run smoke:visibility && npm run smoke:sqlite && npm run smoke:parallel && npm run smoke:goal && node scripts/assert-publish-ready.js",
47
+ "prepublishOnly": "npm run test && npm run cli:check && npm run cli:contract && node dist/cli.js validate && npm run smoke:consumer && npm run smoke:matrix && npm run smoke:upgrade && npm run smoke:init && npm run smoke:capabilities && npm run smoke:db && npm run smoke:db-queue && npm run smoke:db-queue-cli && npm run smoke:db-events && npm run smoke:db-materializer && npm run smoke:db-snapshot && npm run smoke:archive-work && npm run smoke:work-invocation && npm run smoke:cli-ux-polish && npm run smoke:operator-health && npm run smoke:fix-plan && npm run smoke:branch-conflicts && npm run smoke:id-repair && npm run smoke:command-docs && npm run smoke:spike && npm run smoke:goal-lifecycle && npm run smoke:bundle && npm run smoke:graph-clone && npm run smoke:mcp && npm run smoke:subgraph && npm run smoke:visibility && npm run smoke:sqlite && npm run smoke:parallel && npm run smoke:goal && node scripts/assert-publish-ready.js",
47
48
  "postinstall": "node scripts/postinstall.js",
48
49
  "smoke:subgraph": "npm run build && node scripts/smoke-subgraph.js"
49
50
  },