@cntxt-labs/medha-cli 0.7.3 → 0.7.4
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/README.md +20 -1
- package/SKILL.md +4 -1
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -228,6 +228,12 @@ Register the server in your project's `.mcp.json`:
|
|
|
228
228
|
{ "mcpServers": { "medha": { "command": "medha", "args": ["mcp", "serve"] } } }
|
|
229
229
|
```
|
|
230
230
|
|
|
231
|
+
Or let medha write it for your client: `medha mcp config --list` shows the clients it knows
|
|
232
|
+
(Claude Code, Cursor, GitHub Copilot / VS Code, opencode, Claude Desktop) with their scopes, and
|
|
233
|
+
`medha mcp config <client> --write` merges the entry into that client's file without touching the
|
|
234
|
+
other servers there. Without `--write` it prints the snippet; `--scope user`, `--launcher npx` and
|
|
235
|
+
`--all` change what it renders.
|
|
236
|
+
|
|
231
237
|
Then copy [`SKILL.md`](SKILL.md) to
|
|
232
238
|
`.claude/skills/medha/SKILL.md` so the agent knows when and how to use it.
|
|
233
239
|
|
|
@@ -244,6 +250,17 @@ Then copy [`SKILL.md`](SKILL.md) to
|
|
|
244
250
|
| `simulate` | Preview a signal's effect; persists nothing. |
|
|
245
251
|
| `status` | Engine health and preflight. |
|
|
246
252
|
|
|
253
|
+
### Claude Code plugin
|
|
254
|
+
|
|
255
|
+
In Claude Code, the plugin brings the MCP server (pinned to this version, through `npx`), the agent
|
|
256
|
+
skill and four read-side slash commands (`/medha:hints`, `/medha:status`, `/medha:drift`,
|
|
257
|
+
`/medha:pack`) in one install:
|
|
258
|
+
|
|
259
|
+
```text
|
|
260
|
+
/plugin marketplace add nimishph/cntxt-labs
|
|
261
|
+
/plugin install medha@cntxt-labs
|
|
262
|
+
```
|
|
263
|
+
|
|
247
264
|
### Fitting trust into a prompt
|
|
248
265
|
|
|
249
266
|
`medha pack --budget 2000` selects the active and probation rules that fit a token budget, so a
|
|
@@ -324,7 +341,9 @@ medha maintain restore snapshot.json
|
|
|
324
341
|
```
|
|
325
342
|
|
|
326
343
|
Everything lives under `.medha/`. `medha init` scaffolds a `.medha/.gitignore` and a
|
|
327
|
-
`.medha/README.md` for you
|
|
344
|
+
`.medha/README.md` for you, and keeps a short medha section in the project's `AGENTS.md` /
|
|
345
|
+
`CLAUDE.md` (or `--agents-file <path>`; `--no-agents-file` for none) so coding agents know to use
|
|
346
|
+
it. Re-run `medha init` after an upgrade: the store is left alone and that section is refreshed. `config.json` (the registries) is meant to be committed, while the
|
|
328
347
|
store data itself is gitignored by default — share it with `medha sync` instead, since it has its
|
|
329
348
|
own conflict-resolving merge, not git's. Delete or edit `.medha/.gitignore` if you'd rather commit
|
|
330
349
|
the store file directly as a simpler, manual sync.
|
package/SKILL.md
CHANGED
|
@@ -47,7 +47,10 @@ You record evidence; **you** decide what to do with it.
|
|
|
47
47
|
|
|
48
48
|
## Setup
|
|
49
49
|
|
|
50
|
-
Run once per project (creates `.medha/`; add it to `.gitignore` or commit it deliberately)
|
|
50
|
+
Run once per project (creates `.medha/`; add it to `.gitignore` or commit it deliberately). It also
|
|
51
|
+
keeps a short medha section in the project's `AGENTS.md` / `CLAUDE.md` (`--agents-file <path>` to
|
|
52
|
+
name another file, `--no-agents-file` for none). Running it again after an upgrade is safe: the store
|
|
53
|
+
is left alone and the section is refreshed to the new version.
|
|
51
54
|
|
|
52
55
|
```sh
|
|
53
56
|
medha init
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cntxt-labs/medha-cli",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.4",
|
|
4
4
|
"description": "Evidential memory for rules, recipes and tools: records what happened and returns trust hints. CLI and MCP server.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"mcp",
|
|
@@ -40,11 +40,11 @@
|
|
|
40
40
|
"node": ">=18"
|
|
41
41
|
},
|
|
42
42
|
"optionalDependencies": {
|
|
43
|
-
"@cntxt-labs/medha-linux-x64": "0.7.
|
|
44
|
-
"@cntxt-labs/medha-linux-arm64": "0.7.
|
|
45
|
-
"@cntxt-labs/medha-darwin-arm64": "0.7.
|
|
46
|
-
"@cntxt-labs/medha-darwin-x64": "0.7.
|
|
47
|
-
"@cntxt-labs/medha-win32-x64": "0.7.
|
|
43
|
+
"@cntxt-labs/medha-linux-x64": "0.7.4",
|
|
44
|
+
"@cntxt-labs/medha-linux-arm64": "0.7.4",
|
|
45
|
+
"@cntxt-labs/medha-darwin-arm64": "0.7.4",
|
|
46
|
+
"@cntxt-labs/medha-darwin-x64": "0.7.4",
|
|
47
|
+
"@cntxt-labs/medha-win32-x64": "0.7.4"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"@modelcontextprotocol/sdk": "^1.30.0",
|