@kaddo/mcp 3.19.0 → 3.21.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 (3) hide show
  1. package/README.md +33 -5
  2. package/dist/index.js +2732 -110
  3. package/package.json +2 -2
package/README.md CHANGED
@@ -49,7 +49,8 @@ directory set via the `KADDO_PROJECT_DIR` environment variable).
49
49
  | `kaddo://roadmap` | `knowledge/delivery/roadmap.md` | delivery roadmap |
50
50
  | `kaddo://capsules` | `.kaddo/external.yml` + `external/` | external Knowledge Capsules |
51
51
  | `kaddo://agents` | `knowledge/agents/` | installed agent prompts |
52
- | `kaddo://skills` | `knowledge/skills/` | installed skills (empty if none) |
52
+ | `kaddo://skills` | `knowledge/skills/` | installed reusable skills (empty if none) |
53
+ | `kaddo://skills/<id>` | `knowledge/skills/<id>/skill.md` | one reusable skill |
53
54
 
54
55
  ## Tools (read-only)
55
56
 
@@ -58,8 +59,35 @@ directory set via the `KADDO_PROJECT_DIR` environment variable).
58
59
  - `kaddo_get_work_item` — a Work Item by `id` (summary + full markdown).
59
60
  - `kaddo_list_capsules` / `kaddo_get_capsule` — external Knowledge Capsules.
60
61
  - `kaddo_list_agents` / `kaddo_get_agent_prompt` — installed agent prompts.
62
+ - `kaddo_list_skills` / `kaddo_get_skill` — installed reusable skills.
61
63
  - `kaddo_list_graph_hints` — graph hints, filter by `artifact_type` / `severity` / `active_only`.
62
64
 
65
+ ## Derived tools (write only under `.kaddo/`)
66
+
67
+ When a derived artifact is missing or stale, these tools regenerate it in place using the same core
68
+ logic as the CLI — so the agent never has to leave the flow. They are deterministic (no LLM) and
69
+ **only write under `.kaddo/`**; they never touch `knowledge/`, `src/`, `external/`,
70
+ `.kaddo/external.yml` or git.
71
+
72
+ | Tool | Writes | CLI equivalent |
73
+ |---|---|---|
74
+ | `kaddo_generate_context` | `.kaddo/context-pack.md` + `.json` | `kaddo context` |
75
+ | `kaddo_generate_explain` | `.kaddo/explain.md` + `.json` | `kaddo explain` |
76
+ | `kaddo_generate_understand` | `.kaddo/understand.md` | `kaddo understand` |
77
+ | `kaddo_generate_graph` | `.kaddo/graph.json` + `.mmd` + `graph-hints.md` + `.json` | `kaddo graph export` |
78
+ | `kaddo_generate_capsule_draft` | `.kaddo/exports/<project>.capsule.md` + `.json` | `kaddo capsule export` |
79
+
80
+ `kaddo_generate_capsule_draft` writes a **draft only** — it never registers/imports a capsule
81
+ (`external/`, `.kaddo/external.yml` stay untouched; use the CLI `kaddo capsule add` for that).
82
+
83
+ Each tool returns `{ status, files_written, summary, warnings, next_suggested_resources }`. All
84
+ writes pass through a central allowlist (`assertMcpDerivedWritePath`) that blocks any path outside
85
+ the derived `.kaddo/` set — attempts return `Blocked unsafe MCP derived write path.`
86
+
87
+ **When to use:** after a resource reports a missing file (e.g. `Run kaddo context first`), call the
88
+ matching derived tool, then read the resource again. Whether a tool runs automatically or needs
89
+ confirmation is up to your MCP client.
90
+
63
91
  ## Prompts
64
92
 
65
93
  Every installed agent prompt (`knowledge/agents/**`) is exposed as an MCP prompt
@@ -68,10 +96,10 @@ content and recommended inputs.
68
96
 
69
97
  ## What it does NOT do
70
98
 
71
- No writes, no Work Item creation, no `kaddo scan`/`context`/`graph export`/`learn`/`owners suggest`,
72
- no git, no remote sync, no GitHub API, no HTTP server, no auth, no RAG, no vector database. If a
73
- derived file is missing, the server returns a clear instruction to run the matching CLI command
74
- it never generates files.
99
+ No writes outside `.kaddo/`, no knowledge/source edits, no Work Item creation, no `kaddo scan`/
100
+ `learn`/`owners suggest`/`capsule add`, no `kaddo add`, no git, no remote sync, no GitHub API, no
101
+ HTTP server, no auth, no RAG, no vector database, no LLM calls. The derived tools above may
102
+ regenerate artifacts **only under `.kaddo/`**; everything else is read-only.
75
103
 
76
104
  ## Security
77
105