@@ -12,7 +12,7 @@ installed in any Node.js repository. It indexes local files from the target repo
1212vectors locally with LanceDB, and can use either built-in local-hash retrieval or optional
1313Transformers.js semantic embeddings.
1414
15- Mimir core returns cited retrieval context. Answer synthesis belongs to the AI agent, LLM, or local
15+ Mimir Core returns cited retrieval context. Answer synthesis belongs to the AI agent, LLM, or local
1616model runtime you choose around it.
1717
1818Created by Jean-Baptiste Thery and published under the JCode Labs npm scope.
@@ -25,8 +25,8 @@ This root README is the canonical product documentation for the public npm packa
2525
2626| Package | Role |
2727| --- | --- |
28- | ` @jcode.labs/mimir ` | Core CLI, library, MCP server, bundled agent skills, and synthetic examples. |
29- | ` @jcode.labs/mimir-tts ` | Plug-and-play Edge-quality MP3 and offline Transformers.js WAV renderer used by ` kb audio ` . |
28+ | ` @jcode.labs/mimir ` | Mimir Core: CLI, library, MCP server, bundled agent skills, and synthetic examples. |
29+ | ` @jcode.labs/mimir-tts ` | Mimir add-on for Edge-quality MP3 and offline Transformers.js WAV rendering through ` kb audio ` . |
3030
3131The package README files are intentionally short because npm displays each package README
3232separately. They point npm readers back to this GitHub documentation.
@@ -150,7 +150,11 @@ private/ # raw documents to ingest
150150.mimir/skills/mimir-markdown-report/SKILL.md
151151.mimir/mcp.json # generic MCP server config snippet
152152.mimir/claude-mcp-server.json # Claude Code add-json payload
153- .mimir/codex-mcp.toml # Codex config.toml snippet
153+ .mimir/codex-mcp.toml # Codex config.toml snippet with MCP and skills.config
154+ .mimir/kimi-mcp.json # Kimi Code CLI MCP config
155+ .mimir/opencode.jsonc # OpenCode config snippet
156+ .mimir/cline-mcp.json # Cline MCP config
157+ .mimir/agent-setup.md # agent-specific setup guide
154158.gitignore # ignores private/**, .kb/, and .mimir/
155159```
156160
@@ -303,6 +307,10 @@ This creates:
303307.mimir/mcp.json
304308.mimir/claude-mcp-server.json
305309.mimir/codex-mcp.toml
310+ .mimir/kimi-mcp.json
311+ .mimir/opencode.jsonc
312+ .mimir/cline-mcp.json
313+ .mimir/agent-setup.md
306314.mimir/README.md
307315```
308316
@@ -312,6 +320,25 @@ Agents that support skill folders can load `.mimir/skills/mimir/` for deep local
312320audit memo, or planning note. Other agents can read the generated ` .mimir/README.md ` and use the MCP
313321config snippet.
314322
323+ For native discovery in a specific agent, install only the agent you use:
324+
325+ ``` bash
326+ pnpm exec kb install-agent --agents claude
327+ pnpm exec kb install-agent --agents kimi
328+ pnpm exec kb install-agent --agents claude,codex,kimi,opencode,cline
329+ ```
330+
331+ By default, ` install-agent ` writes project-scope skill folders. Add ` --scope user ` for global
332+ installations.
333+
334+ | Agent | Project skill directory | Main MCP helper |
335+ | --- | --- | --- |
336+ | Claude Code | ` .claude/skills/ ` | ` .mimir/claude-mcp-server.json ` |
337+ | Codex | ` .codex/skills/ ` plus ` skills.config ` | ` .mimir/codex-mcp.toml ` |
338+ | Kimi Code CLI | ` .kimi/skills/ ` | ` .mimir/kimi-mcp.json ` |
339+ | OpenCode | ` .opencode/skills/ ` | ` .mimir/opencode.jsonc ` |
340+ | Cline | ` .cline/skills/ ` | ` .mimir/cline-mcp.json ` |
341+
315342Start the MCP server from the repository root:
316343
317344``` bash
@@ -336,6 +363,7 @@ From the target repository root:
336363
337364``` bash
338365pnpm exec kb setup
366+ pnpm exec kb install-agent --agents claude
339367claude mcp add-json --scope local mimir " $( cat .mimir/claude-mcp-server.json) "
340368```
341369
@@ -350,11 +378,51 @@ From the target repository root:
350378
351379``` bash
352380pnpm exec kb setup
381+ pnpm exec kb install-agent --agents codex
353382cat .mimir/codex-mcp.toml
354383```
355384
356385Copy the printed TOML into ` ~/.codex/config.toml ` or another trusted Codex config layer. The snippet
357- contains the repository ` cwd ` , so Codex can launch the Mimir MCP server from the right project.
386+ contains the repository ` cwd ` , the Mimir MCP server, and ` skills.config ` entries for the bundled
387+ skills.
388+
389+ ### Kimi Code CLI
390+
391+ From the target repository root:
392+
393+ ``` bash
394+ pnpm exec kb setup
395+ pnpm exec kb install-agent --agents kimi
396+ kimi --mcp-config-file .mimir/kimi-mcp.json
397+ ```
398+
399+ Kimi can discover project skills from ` .kimi/skills/ ` . The MCP config can also be installed in
400+ Kimi's global MCP file if you intentionally want a global setup.
401+
402+ ### OpenCode
403+
404+ From the target repository root:
405+
406+ ``` bash
407+ pnpm exec kb setup
408+ pnpm exec kb install-agent --agents opencode
409+ cat .mimir/opencode.jsonc
410+ ```
411+
412+ Copy or merge the generated snippet into the OpenCode config layer you use for the project.
413+
414+ ### Cline
415+
416+ From the target repository root:
417+
418+ ``` bash
419+ pnpm exec kb setup
420+ pnpm exec kb install-agent --agents cline
421+ cat .mimir/cline-mcp.json
422+ ```
423+
424+ Cline can discover project skills from ` .cline/skills/ ` . Add the generated MCP JSON under
425+ ` mcpServers ` in Cline's MCP configuration when tool access is needed.
358426
359427For other MCP clients that cannot set ` cwd ` , set ` MIMIR_PROJECT_ROOT=/absolute/path/to/repository `
360428when launching ` kb serve-mcp ` .
0 commit comments