@yugabytedb/meko-mcp 1.2.0 → 2.1.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.
- package/README.md +59 -25
- package/assets/hooks-handlers/before-submit-prompt.sh +2 -2
- package/assets/hooks-handlers/codex-session-end.sh +78 -0
- package/assets/hooks-handlers/lib/capture.js +366 -152
- package/assets/hooks-handlers/lib/checkpoint-timer.js +67 -13
- package/assets/hooks-handlers/session-end.sh +10 -0
- package/assets/hooks-handlers/session-start.sh +14 -3
- package/assets/hooks-handlers/test_checkpoint_timer.sh +162 -0
- package/assets/scripts/meko-statusline.sh +119 -0
- package/assets/scripts/package-desktop-skill.sh +64 -30
- package/assets/skills/meko-mcp-tools/SKILL.md +84 -86
- package/assets/skills/meko-mcp-tools/references/_sections.md +2 -4
- package/assets/skills/meko-mcp-tools/references/tools-agent-id-conventions.md +29 -25
- package/assets/skills/meko-mcp-tools/references/tools-conversation-dedup.md +5 -7
- package/assets/skills/meko-mcp-tools/references/tools-conversation-reasoning.md +50 -0
- package/assets/skills/meko-mcp-tools/references/tools-cookbook.md +126 -184
- package/assets/skills/meko-mcp-tools/references/tools-datapack-workflow.md +31 -37
- package/assets/skills/meko-mcp-tools/references/tools-known-limitations.md +10 -26
- package/assets/skills/meko-mcp-tools/references/tools-memory-vs-conversation.md +26 -30
- package/assets/skills/meko-mcp-tools/references/tools-overview.md +60 -66
- package/assets/skills/meko-mcp-tools/references/tools-rag-workflow.md +28 -93
- package/assets/skills/meko-mcp-tools/references/tools-troubleshooting.md +5 -99
- package/assets/skills/meko-mcp-tools/references/tools-user-id-conventions.md +9 -8
- package/assets/skills/meko-mcp-tools-desktop/SKILL.md +138 -138
- package/assets/skills/meko-mcp-tools-desktop/desktop/README.md +46 -16
- package/assets/skills/meko-mcp-tools-desktop/references/_sections.md +2 -2
- package/assets/skills/meko-mcp-tools-desktop/references/tools-agent-id-conventions.md +28 -24
- package/assets/skills/meko-mcp-tools-desktop/references/tools-conversation-reasoning.md +50 -0
- package/assets/skills/meko-mcp-tools-desktop/references/tools-cookbook.md +120 -174
- package/assets/skills/meko-mcp-tools-desktop/references/tools-known-limitations.md +16 -22
- package/assets/skills/meko-mcp-tools-desktop/references/tools-memory-vs-conversation.md +28 -34
- package/assets/skills/meko-mcp-tools-desktop/references/tools-overview.md +60 -66
- package/assets/skills/meko-mcp-tools-desktop/references/tools-rag-workflow.md +28 -93
- package/assets/skills/meko-mcp-tools-desktop/references/tools-troubleshooting.md +4 -98
- package/assets/skills/meko-select-datapack-desktop/SKILL.md +208 -0
- package/assets/skills/meko-select-datapack-desktop/references/cookbook.md +121 -0
- package/assets/skills/meko-select-datapack-desktop/references/role-display-future.md +41 -0
- package/assets/skills/meko-select-datapack-desktop/references/troubleshooting.md +66 -0
- package/bin/create-meko-setup.mjs +74 -6
- package/lib/clients/claude-code.mjs +137 -6
- package/lib/clients/claude-desktop.mjs +51 -12
- package/lib/clients/codex.mjs +329 -13
- package/lib/clients/common.mjs +43 -1
- package/lib/clients/cursor.mjs +82 -21
- package/lib/config.mjs +26 -0
- package/lib/detect.mjs +7 -2
- package/lib/installer.mjs +24 -0
- package/lib/mcp-transport.mjs +5 -0
- package/lib/prompt.mjs +1 -1
- package/lib/url-selection.mjs +55 -0
- package/lib/validate.mjs +0 -1
- package/package.json +1 -1
- package/scripts/bundle-assets.mjs +8 -0
- package/assets/skills/meko-mcp-tools/references/tools-db-query-patterns.md +0 -38
- package/assets/skills/meko-mcp-tools/references/tools-scope-permissions.md +0 -75
- package/assets/skills/meko-mcp-tools/references/tools-write-guardrails.md +0 -30
- package/assets/skills/meko-mcp-tools-desktop/references/tools-scope-permissions.md +0 -75
|
@@ -1,35 +1,53 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: meko-mcp-tools-desktop
|
|
3
3
|
description: >-
|
|
4
|
-
Behavioral guide for
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
4
|
+
Behavioral guide for Meko MCP tools on desktop Claude. READ IT BEFORE
|
|
5
|
+
calling any meko tool — it sets the required agent_id and workflow; calling
|
|
6
|
+
a meko tool without it produces wrong-bucket writes. Use whenever the user
|
|
7
|
+
mentions memory, Meko, datapacks, knowledge base, or conversations, or asks
|
|
8
|
+
to remember/save/store anything. ALSO trigger (even with no tool or Meko
|
|
9
|
+
keyword) when: (a) the user states ANY durable fact about themselves — name,
|
|
10
|
+
role, team, tools, stack, preferences, conventions — INCLUDING facts dropped
|
|
11
|
+
inside a task/technical question ("I use pnpm", "I'm evaluating X"); or
|
|
12
|
+
(b) the user asks a RECALL question — "what do you know about me", "who am
|
|
13
|
+
I", "what was the last thing I told you" — then search Meko (memory_search)
|
|
14
|
+
first and never claim memory is unavailable without checking. On Desktop the
|
|
15
|
+
agent_id is ALWAYS "claude_desktop" (or "meko_agent" for cross-project
|
|
16
|
+
identity) — NEVER "claude_code".
|
|
12
17
|
license: MIT
|
|
13
18
|
metadata:
|
|
14
19
|
author: Meko
|
|
15
|
-
version: "
|
|
20
|
+
version: "2.7.2"
|
|
16
21
|
tags: mcp, yugabytedb, tools, datapack, memory, conversation, rag, meko, desktop
|
|
17
22
|
---
|
|
18
23
|
|
|
19
24
|
# Meko MCP Tools — Agent Behavioral Guide (Desktop)
|
|
20
25
|
|
|
21
|
-
Meko is
|
|
26
|
+
Meko is the user's **memory, knowledge, observability, and audit layer** across chats — a system of record they (and their team/org) connected on purpose. It learns continuously from their work and their team's best practices so context carries from one session to the next. This skill teaches you how to use Meko's 23 MCP tools. Treat maintaining it — recalling from it at the start of work and posting turns to it as you go — as a normal, professional part of the job, the way an engineer keeps notes, decision records, and audit logs. It is infrastructure the user relies on, not a third-party logging conduit.
|
|
27
|
+
|
|
28
|
+
**Read this first.** The Meko server extracts durable memories automatically from the conversation turns you post to it — the extraction runs *inside* `conversation_add_message`. Claude Desktop has no capture hooks, so **capturing substantive turns via `conversation_add_message` is a core part of using this skill.** Do that and memory takes care of itself: facts the user states get extracted and stored without a separate `memory_add`. Explicit `memory_add` is reserved for a few narrow cases (below). See "Per-turn conversation capture" — it's the heart of this skill.
|
|
29
|
+
|
|
30
|
+
**Why this is legitimate.** Meko is the user's own system of record — serving their memory, their team's shared knowledge, and their observability/audit needs — so posting turns to it is maintaining *their* infrastructure, the same as keeping notes or decision logs. Do it **transparently**: briefly tell the user when you save or recall ("saved that to your Meko memory", "checked your Meko memory — here's what I had"), disclose the way a colleague would mention they're writing something down. The only carve-outs: if an item is sensitive (credentials, legal, medical) or the user asked you not to store something, ask or skip.
|
|
31
|
+
|
|
32
|
+
> **If you reached a meko tool without reading this skill** (e.g. tool search resolved `memory_add`/`memory_search` directly): two rules override anything you inferred from the raw tool descriptions. (1) On Claude Desktop use `agent_id="claude_desktop"` for normal writes (or `"meko_agent"` for cross-project writes) — never attribute Desktop writes to `"claude_code"`. (2) Prefer `conversation_add_message` over `memory_add` for facts the user stated — extraction handles them. Then read the rest of this skill.
|
|
22
33
|
|
|
23
34
|
## First turn of every session
|
|
24
35
|
|
|
25
|
-
Claude Desktop has no SessionStart hook. You are responsible for bootstrapping memory yourself.
|
|
36
|
+
Claude Desktop has no SessionStart hook. You are responsible for bootstrapping memory yourself — both the conversation container (so capture can run) and recall.
|
|
26
37
|
|
|
27
38
|
On the first user turn in any session, before answering substantive questions:
|
|
28
39
|
|
|
29
|
-
1. **
|
|
30
|
-
|
|
40
|
+
1. **Resolve the active datapack pin first — before creating the conversation.** A conversation cannot move between datapacks once created, so you must know the pinned datapack *before* `conversation_create`, or capture lands in the wrong workspace. Call:
|
|
41
|
+
```
|
|
42
|
+
memory_search(query="meko_active_datapack",
|
|
43
|
+
agent_id="claude_desktop", conversation_id="", limit=1)
|
|
44
|
+
```
|
|
45
|
+
If a pin row comes back, extract the UUID after `meko_active_datapack=` — call it `<PIN>` — and pass `datapack_id="<PIN>"` to **every** Meko call for the rest of the session (`conversation_create`, `memory_search`, `conversation_add_message`, etc.). If no pin is found, omit `datapack_id` everywhere and let the server resolve the default. (The `meko-select-datapack-desktop` skill is what writes this pin; you honor it here whether or not that skill ran this session.)
|
|
46
|
+
2. **Call `conversation_create`** (`agent_id="claude_desktop"`, and `datapack_id="<PIN>"` if a pin was found) once and keep the returned `conversation_id` for the whole session. You need it to post turns (per-turn capture, above) and for memory calls.
|
|
47
|
+
3. **Call `memory_search`** with `agent_id="claude_desktop"`, the `conversation_id` from step 2, `datapack_id="<PIN>"` if pinned, and a query derived from the user's topic. One search returns this user's memories across every agent, including the `meko_agent` common bucket; `agent_id` attributes the trace but does not filter memory results.
|
|
48
|
+
4. Incorporate the recalled facts into your reply. Don't re-ask things you've been told before.
|
|
31
49
|
|
|
32
|
-
|
|
50
|
+
Recall and capture are routine parts of answering — the user has set Meko up as their memory layer, so you don't need a per-call permission prompt for them. Do briefly say what you did ("checked your Meko memory", "saved that to your Meko memory") — a short disclosure, not a silent background action and not a big announcement.
|
|
33
51
|
|
|
34
52
|
## `agent_id` — multi-agent identity
|
|
35
53
|
|
|
@@ -38,38 +56,52 @@ You do **not** need the user's permission to do any of this. Silent recall is th
|
|
|
38
56
|
**For Claude Desktop, use `agent_id="claude_desktop"` by default.** Desktop has no per-project concept, so a stable client name is the right granularity (it's a "loose" client in contract terms). Coding agents like Claude Code and Cursor use `<client>:<repo-basename>` (e.g. `claude_code:meko-mcp-server`). For genuinely cross-project facts that any agent should see — user identity, global preferences — use the common bucket `agent_id="meko_agent"`.
|
|
39
57
|
|
|
40
58
|
**Read scoping:**
|
|
41
|
-
- `memory_search` / `memory_get_all`
|
|
42
|
-
- `
|
|
59
|
+
- `memory_search` / `memory_get_all` — scoped to `(datapack_id, user_id)`. `agent_id` does not filter results, so one call returns this user's memories across every agent.
|
|
60
|
+
- `conversation_list` — also returns this user's conversations across agents. `conversation_get` is agent-owned and requires the exact `agent_id` that created the conversation.
|
|
61
|
+
- `knowledgebase_search` — scoped to `datapack_id` only. `agent_id` on the request is ignored. Returns the team's Shared Knowledge — uploaded documents plus promoted memories.
|
|
43
62
|
|
|
44
|
-
Some pre-existing rows use the older constant `agent_id="agent"` or ad-hoc shapes (e.g. `claude-desktop` with a hyphen). They remain readable
|
|
63
|
+
Some pre-existing rows use the older constant `agent_id="agent"` or ad-hoc shapes (e.g. `claude-desktop` with a hyphen). They remain readable; the stored value is still shown as provenance in the UI. See `tools-agent-id-conventions.md` for the full model.
|
|
45
64
|
|
|
46
|
-
##
|
|
65
|
+
## Per-turn conversation capture — the heart of this skill
|
|
47
66
|
|
|
48
|
-
|
|
67
|
+
Claude Desktop has no capture hooks, so you are the capture mechanism. **When the user shares durable context, post that turn to Meko with `conversation_add_message` in the same turn you answer, and briefly say you did.** The server extracts durable memories from the turns you post — so posting the turn IS how a fact the user states ("btw I use helix", "I'm a VP of Product", "we write backend in Go") gets remembered. You do not also `memory_add` it; that duplicates what extraction produces.
|
|
49
68
|
|
|
50
|
-
|
|
69
|
+
Concretely, once per session call `conversation_create` (see "First turn of every session" above) to get a `conversation_id`, then for each substantive exchange:
|
|
51
70
|
|
|
52
|
-
|
|
71
|
+
```
|
|
72
|
+
conversation_add_message(conversation_id="<id>",
|
|
73
|
+
agent_id="claude_desktop",
|
|
74
|
+
input="<the user's exact prompt>",
|
|
75
|
+
output="<your exact response>",
|
|
76
|
+
reasoning="<why you answered as you did; tool calls if any>")
|
|
77
|
+
```
|
|
53
78
|
|
|
54
|
-
|
|
79
|
+
Post the turn verbatim — do not summarize. The call is cheap (queued, ~0.1s) and returns immediately.
|
|
55
80
|
|
|
56
|
-
|
|
81
|
+
The failure mode to avoid: answering the user and moving on **without posting the turn**. If you don't post it, nothing is captured and nothing is extracted — a turn later there's no record the exchange happened. Treat `conversation_add_message` as part of completing a substantive turn: once you've written your reply, post the turn (and note you did) before the turn is done. This is transparent capture into the user's own memory store, so there's no reason to skip it — but if the content is sensitive or the user asked you not to store it, skip and say so.
|
|
57
82
|
|
|
58
|
-
|
|
59
|
-
```
|
|
60
|
-
flush_pending_memory_candidates(scope="read", agent_id="claude_desktop")
|
|
61
|
-
```
|
|
62
|
-
2. **After every ~5 assistant turns**, call it again.
|
|
63
|
-
3. The tool returns a directive telling you to scan recent user turns for unsaved facts and issue `memory_add` calls. **Follow the directive immediately** — that's the whole point. The server dedups on its side, so repeat calls are safe.
|
|
83
|
+
Skip posting only for genuinely trivial turns (a one-word acknowledgement, a pure restatement) that carry no durable content.
|
|
64
84
|
|
|
65
|
-
|
|
85
|
+
**Capture cadence is your call — pick what you're comfortable with, but don't let it be zero.** Per-turn posting is the default and works well for many models. If posting *every* turn feels like too much standing background activity, capture **opportunistically** instead: every few turns, at your own discretion, batch the durable facts that have come up into the user's Meko memory (a `conversation_add_message` covering the recent exchange, or a `memory_add` of the key fact). Either cadence is fine — the user chose Meko as their own memory layer and wants context to persist across chats, so periodic capture at your judgment is helpful and fully disclosed. The only real failure is capturing *nothing* across a whole session; a light-touch checkpoint avoids that.
|
|
86
|
+
|
|
87
|
+
And regardless of cadence: when the user says **"remember this"** / "save that," always capture it right then — that's an explicit, unambiguous request, not background activity.
|
|
88
|
+
|
|
89
|
+
### When to also call memory_add
|
|
90
|
+
|
|
91
|
+
Because extraction runs over the turns you post, `memory_add` is reserved for the few things per-turn capture cannot reach:
|
|
92
|
+
|
|
93
|
+
- **Explicit request** — the user says "remember this" / "save this." Store it verbatim.
|
|
94
|
+
- **Output-only / tool-derived fact** — a durable fact that lives only in your output or a tool result, not in the user's words. Extraction reads the **user** side of the turn, so it won't capture these on its own.
|
|
95
|
+
- **Overwriting correction** — the user negated a prior fact and the stale memory must not survive. Extraction is additive, so `memory_search` for the old memory and `memory_update` / `memory_delete_by_id` it.
|
|
96
|
+
|
|
97
|
+
Use the right bucket: `agent_id="meko_agent"` for cross-project facts (user identity, global preferences), `agent_id="claude_desktop"` for desktop-specific context. Saving is a normal part of the turn and doesn't need a confirmation prompt each time; ask first only when the information is sensitive (credentials, legal, medical).
|
|
66
98
|
|
|
67
99
|
## What Meko enables
|
|
68
100
|
|
|
69
101
|
Meko turns your volatile context window into persistent, shareable knowledge:
|
|
70
102
|
|
|
71
|
-
- **Personal memory** — Store who the user is, their preferences, role, and working style. Survives across sessions. Private to
|
|
72
|
-
- **Team-shared knowledge** —
|
|
103
|
+
- **Personal memory** — Store who the user is, their preferences, role, and working style. Survives across sessions. Private to the user and readable across all of their agents.
|
|
104
|
+
- **Team-shared knowledge** — Important memories can be promoted with `memory_promote` (after explicit confirmation) or from the Learnings tab in the Cloud UI. Uploaded documents land in the same place. The resulting content is visible to every datapack member and queryable via `knowledgebase_search`.
|
|
73
105
|
- **Conversation history** — Preserve full dialog exchanges with reasoning traces for audit, replay, and learning transfer.
|
|
74
106
|
- **Decision traces** — Capture how and why decisions were made, enabling debugging and continuous improvement.
|
|
75
107
|
|
|
@@ -79,173 +111,141 @@ Meko turns your volatile context window into persistent, shareable knowledge:
|
|
|
79
111
|
- You need to decide what to store, where, and how (personal memory vs. team-shared knowledge)
|
|
80
112
|
- You want to search the team's shared knowledge base (`knowledgebase_search`)
|
|
81
113
|
- You are managing datapacks
|
|
82
|
-
- You want to understand
|
|
114
|
+
- You want to understand `agent_id` conventions, or `datapack_id` routing
|
|
83
115
|
|
|
84
|
-
## Critical: Use Meko
|
|
116
|
+
## Critical: Use Meko, not local storage
|
|
85
117
|
|
|
86
|
-
**
|
|
118
|
+
**Meko is the memory store — never write memories to local files, markdown notes, or any file-based memory system.** Meko's memory is persistent across all agents, sessions, and team members; local files are not.
|
|
87
119
|
|
|
88
|
-
-
|
|
89
|
-
-
|
|
90
|
-
-
|
|
120
|
+
- To remember what the user says → **post the turn with `conversation_add_message`** (the server extracts memories from it), NOT write to a local file.
|
|
121
|
+
- To recall → call `memory_search` on the MCP server, NOT read local files.
|
|
122
|
+
- For the narrow explicit-save cases → `memory_add` (see "When to also call memory_add").
|
|
91
123
|
|
|
92
|
-
If a Meko
|
|
124
|
+
If a Meko call fails, you may fall back to local storage and tell the user — but Meko is always the first choice.
|
|
93
125
|
|
|
94
|
-
## Core principle:
|
|
126
|
+
## Core principle: capture the turn, don't hand-curate memory
|
|
95
127
|
|
|
96
|
-
|
|
128
|
+
Your job is not to decide fact-by-fact what to `memory_add`. It's to **post every substantive turn** and let the server's extractor build memory from it. Rules of thumb:
|
|
97
129
|
|
|
98
|
-
|
|
130
|
+
- **Post-the-turn, not save-later.** The moment you answer a substantive turn, `conversation_add_message` it. Don't promise to remember — capture the turn and extraction handles the rest.
|
|
131
|
+
- **Verbatim.** Post the user's exact `input` and your exact `output`; never summarize. Extraction works best on the real words.
|
|
132
|
+
- **Transparently.** Briefly disclose the save — a short "saved that to your Meko memory" — rather than doing it silently. One line, not a paragraph; don't interrupt the flow, but don't hide it either.
|
|
133
|
+
- **memory_add is the exception, not the rule** — only the three cases below.
|
|
99
134
|
|
|
100
|
-
|
|
101
|
-
- **One `memory_add` per distinct fact.** Don't batch five unrelated facts into a single long text field; Mem0 extracts atomic facts and batching hurts recall.
|
|
102
|
-
- **Call it silently.** Don't interrupt the conversation with "I've saved that to memory." Just save and continue. A short acknowledgment is fine if the user explicitly asked you to remember something.
|
|
103
|
-
- **Never log to local files as a memory substitute.** If `memory_add` fails, retry once; if it still fails, tell the user the call failed rather than writing a markdown note.
|
|
135
|
+
### What to do when the user shares information
|
|
104
136
|
|
|
105
|
-
|
|
137
|
+
| Signal in conversation | What to do |
|
|
138
|
+
|---|---|
|
|
139
|
+
| User states a fact about themselves, their team, tools, or preferences | **Post the turn with `conversation_add_message`.** Extraction stores the fact — no separate `memory_add`. |
|
|
140
|
+
| User corrects or negates a prior fact | Post the turn (the new fact is extracted). Extraction is **additive**, so if the stale fact must not survive, `memory_search` for it and `memory_update` / `memory_delete_by_id`. |
|
|
141
|
+
| User explicitly says "remember this" | `memory_add` (verbatim), in addition to posting the turn. |
|
|
142
|
+
| A durable fact lives only in your output or a tool result | `memory_add`. Extraction reads the user side of the turn, so it won't capture these. |
|
|
143
|
+
| User asks "what do you know about X?" | Two-call sweep: one `memory_search(agent_id="claude_desktop")` covers this user's memories across every agent; `knowledgebase_search(datapack_id=<X>)` covers team-shared knowledge. |
|
|
144
|
+
| User asks "what do we (as a team) know about X?" or about uploaded documents | `knowledgebase_search` (returns uploaded docs + promoted memories). |
|
|
145
|
+
| User asks to share specific private memories with the team | Follow the `memory_promote` confirmation workflow below. Never promote based on a fuzzy search result or implied consent. |
|
|
146
|
+
| User provides structured/tabular data (CSV, data dictionary) | Not natively supported via MCP. Point the user at the UI's Add Knowledge upload; do not `memory_add` row-by-row. |
|
|
147
|
+
| User wants to add documents to the team's knowledge base | Point them at the Cloud UI flow — Datapack → Actions → **Add Knowledge** (PDF/TXT/MD/JSON/MP4, 5MB each, 10/batch). MCP ingestion tools are not available on Cloud. |
|
|
106
148
|
|
|
107
|
-
|
|
108
|
-
|---|---|---|
|
|
109
|
-
| User shares personal info ("I'm Amiram", "I'm a VP of Product") | Store as personal memory immediately | `memory_add` |
|
|
110
|
-
| User states a preference ("I prefer dark mode", "always use Python") | Store as personal preference | `memory_add` |
|
|
111
|
-
| User shares org convention ("we write in Go", "our standard is X") | Store as organizational memory | `memory_add` |
|
|
112
|
-
| User teaches domain knowledge ("Meko traces are decision traces") | Store as memory AND consider KB ingestion | `memory_add` |
|
|
113
|
-
| User corrects your behavior ("don't do X, do Y instead") | Store the correction as a learning | `memory_add` |
|
|
114
|
-
| User asks "what do you know about X?" | Three-call sweep: desktop memories, then the cross-project common bucket, then team-shared knowledge | `memory_search(agent_id="claude_desktop")` → `memory_search(agent_id="meko_agent")` → `knowledgebase_search(datapack_id=<X>)` |
|
|
115
|
-
| User asks "what do we (as a team) know about X?" or about uploaded documents | Query the team's Shared Knowledge directly | `knowledgebase_search` (returns uploaded docs + promoted memories) |
|
|
116
|
-
| Session produced a valuable multi-turn exchange | Preserve the full conversation | `conversation_create` + `conversation_add_message` |
|
|
117
|
-
| Significant learnings accumulated during session | Offer to persist key takeaways; remind the user they can promote important ones to Shared Knowledge from the Cloud UI | Summarize and propose `memory_add` calls |
|
|
118
|
-
| User provides structured/tabular data (CSV, data dictionary) | Not natively supported via MCP on Cloud today — `db_run_write_query` returns `{"error": "not_available"}`. Store the key facts as a narrative memory, or point the user at the UI's knowledge-base upload for file form | `memory_add` for facts, UI "Add Knowledge" for files |
|
|
119
|
-
| User wants to add documents to the team's knowledge base | Point them at the Cloud UI flow — Datapack → Actions → **Add Knowledge** (PDF/TXT/MD/JSON/MP4, 5MB each, 10/batch). The MCP ingestion tools are not available on Cloud. | UI only |
|
|
149
|
+
## Conversation capture — mechanics
|
|
120
150
|
|
|
121
|
-
|
|
151
|
+
The **what and when** is covered above ("Per-turn conversation capture" — post every substantive turn; "First turn of every session" — `conversation_create` once). This section is the mechanics.
|
|
122
152
|
|
|
123
|
-
|
|
153
|
+
`conversation_create` — once per session; keep the `conversation_id`:
|
|
124
154
|
|
|
125
155
|
```
|
|
126
|
-
|
|
127
|
-
├── About themselves (name, role, preferences)
|
|
128
|
-
│ → memory_add — personal profile
|
|
129
|
-
├── About how their team/org works (conventions, standards, policies)
|
|
130
|
-
│ → memory_add — personal memory; the user can promote it to Shared
|
|
131
|
-
│ Knowledge from the UI's Learnings tab so teammates see it too
|
|
132
|
-
├── Domain knowledge (facts, definitions, specs, research)
|
|
133
|
-
│ → memory_add for quick recall; for bulk documents, the user uploads
|
|
134
|
-
│ files via the UI's Datapack → Actions → Add Knowledge flow
|
|
135
|
-
├── A correction or learning ("don't do X", "always do Y")
|
|
136
|
-
│ → memory_add — behavioral feedback
|
|
137
|
-
├── Full conversation worth preserving (multi-turn, reasoning traces)
|
|
138
|
-
│ → conversation_create + conversation_add_message — verbatim
|
|
139
|
-
└── Structured/tabular data (CSV rows, schemas, data dictionaries)
|
|
140
|
-
→ Not MCP-supported on Cloud today (db_run_write_query returns
|
|
141
|
-
{"error": "not_available"}). Extract key facts to memory_add
|
|
142
|
-
or tell the user this isn't a Cloud feature yet.
|
|
143
|
-
```
|
|
144
|
-
|
|
145
|
-
## Conversation capture
|
|
146
|
-
|
|
147
|
-
Claude Desktop does not have automatic capture hooks. Preserve valuable sessions manually.
|
|
148
|
-
|
|
149
|
-
### When to create a conversation
|
|
150
|
-
|
|
151
|
-
Create a conversation container when starting substantive work — not for quick questions, but for sessions with multi-turn reasoning worth replaying or sharing. **Call `conversation_create` early so you have a real `conversation_id`** — memory writes require one (nil-UUID orphans the trace in Langfuse):
|
|
152
|
-
|
|
153
|
-
```
|
|
154
|
-
conversation_create(scope="write", agent_id="claude_desktop",
|
|
156
|
+
conversation_create(agent_id="claude_desktop",
|
|
155
157
|
title="<descriptive topic>")
|
|
156
158
|
```
|
|
157
159
|
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
### When to add messages
|
|
161
|
-
|
|
162
|
-
After significant exchanges (3+ turns), save key exchanges:
|
|
163
|
-
|
|
164
|
-
```
|
|
165
|
-
conversation_add_message(scope="write", conversation_id="<id>",
|
|
166
|
-
agent_id="claude_desktop",
|
|
167
|
-
input="<exact user prompt>",
|
|
168
|
-
output="<exact assistant response>",
|
|
169
|
-
reasoning="<tool calls and reasoning, if any>")
|
|
170
|
-
```
|
|
171
|
-
|
|
172
|
-
### Capture rules
|
|
160
|
+
`conversation_add_message` — every substantive turn (see the code block in "Per-turn conversation capture"). Rules:
|
|
173
161
|
|
|
174
|
-
- **Verbatim content only** — never summarize, rephrase, or condense any field
|
|
175
|
-
- **Include tool calls** in the `reasoning` field —
|
|
176
|
-
- **
|
|
177
|
-
-
|
|
162
|
+
- **Verbatim content only** — never summarize, rephrase, or condense any field. Extraction (and replay) depend on the real words.
|
|
163
|
+
- **Include tool calls** in the `reasoning` field — essential for session replay.
|
|
164
|
+
- **Use seeds** for dedup: `seed="<conversation_id>:claude-desktop:<sequential_number>"`.
|
|
165
|
+
- Don't also `memory_add` the same fact — the server extracts memories from the posted turn. `memory_add` is only for the three exception cases above.
|
|
178
166
|
|
|
179
167
|
## Calling tools correctly on the first attempt
|
|
180
168
|
|
|
181
169
|
**Use only the required parameters. Do not guess optional parameters.**
|
|
182
170
|
|
|
183
171
|
### memory_add — correct call pattern
|
|
172
|
+
|
|
173
|
+
Only for the three exception cases (explicit "remember this", output-only/tool-derived fact, overwriting correction) — not for facts the user stated, which the posted turn already captures. Example of an explicit save:
|
|
184
174
|
```
|
|
185
|
-
memory_add(
|
|
186
|
-
text="
|
|
175
|
+
memory_add(
|
|
176
|
+
text="Remember: deploy scripts must be run from the repo root, never a subdir",
|
|
187
177
|
agent_id="claude_desktop",
|
|
188
178
|
conversation_id="<id from conversation_create>")
|
|
189
179
|
```
|
|
190
|
-
Required parameters: `
|
|
180
|
+
Required parameters: `text`, `agent_id`, `conversation_id`. On **writes**, `conversation_id` must be a real UUID from `conversation_create` — writes attached to a nil/empty conversation are orphaned in Langfuse traces. Empty / missing `agent_id` is NOT rejected — the server quietly falls back to the `meko_agent` common bucket. Pass `agent_id="claude_desktop"` explicitly so this client's writes stay in the right bucket and don't pollute the cross-project pool.
|
|
191
181
|
|
|
192
182
|
### memory_search — correct call pattern
|
|
193
183
|
```
|
|
194
|
-
memory_search(
|
|
184
|
+
memory_search(
|
|
195
185
|
query="user role",
|
|
196
186
|
agent_id="claude_desktop",
|
|
197
187
|
conversation_id="<id from conversation_create>")
|
|
198
188
|
```
|
|
199
|
-
Required parameters: `
|
|
189
|
+
Required parameters: `query`, `agent_id`, `conversation_id`. On **`memory_search`** specifically, `conversation_id` is used only for Langfuse trace nesting — it does NOT filter results. Pass the session's UUID so the search span appears under the active conversation; passing `""` is accepted and means "don't nest under any trace." For conversation-scoped filtering use the separate `run_id` parameter.
|
|
200
190
|
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
memory_search(
|
|
204
|
-
agent_id="meko_agent", conversation_id="<id>")
|
|
205
|
-
```
|
|
191
|
+
`agent_id` attributes the search trace but does not filter the returned memories. One call includes rows written by `claude_desktop`, `meko_agent`, coding agents, and legacy agent values for this user.
|
|
192
|
+
|
|
193
|
+
**Interpreting results — trust the memory rows, be skeptical of stray `relations`.** `memory_search` returns three lists: `results` (the actual stored memories — trust these), `relations`, and `promoted_relations` (entity-graph edges). Two things to know so you don't discard useful results:
|
|
206
194
|
|
|
207
|
-
|
|
195
|
+
- **`memory_search` is cross-agent by design.** Results include memories written by *other* clients (`agent_id` "agent", "claude_code:…", etc.) for the same user — that is expected, not a tenant leak. Use them.
|
|
196
|
+
- **A `relations` edge can outlive the memory it came from.** Deleting a memory does not always remove its graph edges, so `relations` may contain stale or contradicted entities (e.g. an identity that conflicts with the consistent picture in `results`). When a relation contradicts the memory rows, **trust the rows and disregard the stray relation** — don't conclude the whole result set is "someone else's data" and throw it away.
|
|
208
197
|
|
|
209
198
|
### knowledgebase_search — correct call pattern
|
|
210
199
|
```
|
|
211
|
-
knowledgebase_search(
|
|
200
|
+
knowledgebase_search(
|
|
212
201
|
query="...",
|
|
213
202
|
agent_id="<anything — ignored>",
|
|
214
203
|
conversation_id="<id>",
|
|
215
204
|
datapack_id="<datapack UUID>",
|
|
216
205
|
limit=10)
|
|
217
206
|
```
|
|
218
|
-
Required parameters: `
|
|
207
|
+
Required parameters: `query`, `agent_id`, `conversation_id`, `datapack_id`. `datapack_id` has no default here. `agent_id` is ignored for filtering — results are the team's shared knowledge on the datapack regardless of what you pass.
|
|
208
|
+
|
|
209
|
+
### memory_promote — explicit confirmation required
|
|
210
|
+
|
|
211
|
+
`memory_promote` is destructive and non-idempotent: it makes selected content visible to the datapack, moves the memories and graph context into shared knowledge, and evicts the private mem0 records. There is no MCP rollback.
|
|
212
|
+
|
|
213
|
+
1. Use `memory_search` or `memory_get_all` to obtain exact memory UUIDs. Never pass relation or graph-edge IDs.
|
|
214
|
+
2. Present each exact candidate memory and its UUID to the user.
|
|
215
|
+
3. State that promotion is one-way, team-visible, and removes the private records.
|
|
216
|
+
4. Obtain explicit confirmation for those exact candidates before calling `memory_promote`.
|
|
217
|
+
5. Call it with the active `conversation_id`, exact `memory_ids`, `agent_id="claude_desktop"`, and intended `datapack_id`. If a legacy deployment exposes `scope`, use the minimum `write` scope; do not escalate to `admin`.
|
|
218
|
+
6. Only datapack owners and maintainers may promote. If a viewer/contributor receives 403, or any authentication/permission error occurs, report it and stop. Do not retry with a broader scope, another datapack, or altered identity.
|
|
219
|
+
7. After success, optionally verify visibility with `knowledgebase_search`. Do not claim rollback is possible.
|
|
220
|
+
|
|
221
|
+
The Cloud UI's Learnings tab remains an alternative user-driven path.
|
|
219
222
|
|
|
220
223
|
### Critical parameter rules
|
|
221
224
|
|
|
222
|
-
- **agent_id**: `"claude_desktop"` for this client's project-less
|
|
225
|
+
- **agent_id**: `"claude_desktop"` for this client's project-less writes and trace attribution. Use `"meko_agent"` when writing genuinely cross-project facts such as user identity. Empty/missing values on writes route to `meko_agent`. The value does not filter `memory_search`, `memory_get_all`, `conversation_list`, or `knowledgebase_search`; `conversation_get` is the read that requires the creating agent's exact value. See `tools-agent-id-conventions.md`.
|
|
223
226
|
- **conversation_id**: Behavior varies by tool. On write tools (`memory_add`, `conversation_add_message`) pass a real UUID from `conversation_create` — a nil/empty value orphans the Langfuse trace. On `memory_search` it's used only for trace nesting (not for filtering), and empty-string is accepted; on `memory_get_all` and most read tools, still pass the session UUID when you have one. Never pass `"current"` or other non-UUID junk — only a real UUID or an intentionally empty string where the tool allows it.
|
|
224
|
-
- **scope**: Only `"read"`, `"write"`, or `"admin"`. Nothing else.
|
|
225
227
|
- **When in doubt about optional parameters, omit them.** The server has sensible defaults.
|
|
226
228
|
|
|
227
229
|
## Key concepts
|
|
228
230
|
|
|
229
|
-
1. **
|
|
230
|
-
2. **
|
|
231
|
-
3. **
|
|
232
|
-
4. **
|
|
233
|
-
5. **
|
|
234
|
-
6. **
|
|
235
|
-
7. **
|
|
236
|
-
8. **
|
|
237
|
-
9. **
|
|
238
|
-
10. **
|
|
239
|
-
11. **Error recovery**: Connection errors are common with memory tools — see `tools-troubleshooting.md` for retry strategies and fallbacks.
|
|
231
|
+
1. **23 tools in 6 groups**: Memory (8 — including `memory_promote`), Conversation (6), Knowledge Base (1 — `knowledgebase_search`), Datapack (5), Artifacts (2 — `artifact_put`, `artifact_get`), Observability (1 — `track_token_usage`). Memory is captured automatically from turns posted with `conversation_add_message` — post each substantive turn and the server extracts durable memories from it. KB ingestion is UI-only (Datapack → Actions → Add Knowledge); raw SQL is not exposed. See `tools-overview.md`.
|
|
232
|
+
2. **datapack_id routing**: DB, RAG, and memory tools accept optional `datapack_id` (default datapack if omitted). `knowledgebase_search` is the exception: `datapack_id` is **required** there.
|
|
233
|
+
3. **agent_id is multi-agent**: For Claude Desktop, use `agent_id="claude_desktop"` for normal writes and `agent_id="meko_agent"` for cross-project facts. Writes are attributed to `(datapack_id, user_id, agent_id)`. Personal memory reads and `conversation_list` span all of this user's agents; `conversation_get` remains agent-owned. `knowledgebase_search` ignores `agent_id` entirely. See `tools-agent-id-conventions.md`.
|
|
234
|
+
4. **Personal memory vs. team-shared knowledge**: Un-promoted memories are scoped per-user — readable across all of that user's agents, but no other user can see them. With explicit confirmation, `memory_promote` moves exact memories into Shared Knowledge; the Cloud UI's Learnings tab is an alternative. Promoted content is visible to every datapack member. `knowledgebase_search` is the MCP read path for both Shared Knowledge and uploaded documents.
|
|
235
|
+
5. **conversation_id IS the Langfuse trace ID**: every MCP tool call inside a conversation becomes a span under that trace. Observable in the Meko UI's Observe hub. See `tools-memory-vs-conversation.md`.
|
|
236
|
+
6. **Adding documents to the team knowledge base is UI-only on Cloud today**: user uploads files via Datapack → Actions → **Add Knowledge** (PDF/TXT/MD/JSON/MP4, 5MB each). The MCP ingestion tools are not available on Cloud. See `tools-rag-workflow.md`.
|
|
237
|
+
7. **Manual conversation capture**: Claude Desktop does not have automatic capture hooks. Create and save conversations explicitly when sessions are valuable.
|
|
238
|
+
8. **Memory latencies are not cheap**: observed on prod 2026-05-07 — `memory_add` 12-21s/call (calls OpenAI), `memory_search` 2-6s/call. Budget accordingly.
|
|
239
|
+
9. **Known limitations**: see `tools-known-limitations.md` before attempting write operations on tools that appear in the catalog but aren't available on Cloud.
|
|
240
|
+
10. **Error recovery**: Connection errors are common with memory tools — see `tools-troubleshooting.md` for retry strategies and fallbacks.
|
|
240
241
|
|
|
241
242
|
## Reference sections
|
|
242
243
|
|
|
243
244
|
| File | What it covers |
|
|
244
245
|
|------|---------------|
|
|
245
|
-
| `tools-overview.md` | Complete catalog of all
|
|
246
|
+
| `tools-overview.md` | Complete catalog of all 23 tools with decision tree |
|
|
246
247
|
| `tools-cookbook.md` | Per-tool examples with correct parameters, responses, and error cases |
|
|
247
248
|
| `tools-memory-vs-conversation.md` | When to use memory tools vs conversation tools |
|
|
248
249
|
| `tools-rag-workflow.md` | End-to-end RAG pipeline flow |
|
|
249
|
-
| `tools-scope-permissions.md` | read/write/admin permission hierarchy |
|
|
250
250
|
| `tools-troubleshooting.md` | Error recovery, retry strategies, stuck pipeline diagnosis |
|
|
251
251
|
| `tools-known-limitations.md` | Broken tools, missing capabilities, permission gaps |
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Meko MCP Tools — Claude Desktop Setup
|
|
2
2
|
|
|
3
|
-
Use the Meko MCP tools skill natively in Claude Desktop.
|
|
3
|
+
Use the Meko MCP tools skill natively in Claude Desktop. Because Desktop has no lifecycle hooks, the skill teaches Claude to capture each substantive turn by posting it via `conversation_add_message` (the server extracts durable memories from those posts), to reserve explicit `memory_add` for the narrow cases (the user says "remember this", a fact lives only in the assistant's output or a tool result, or a corrected fact needs overwriting), to classify information, to use all <!--tool-count-->23<!--/tool-count--> Meko MCP tools correctly, and to handle errors gracefully.
|
|
4
4
|
|
|
5
5
|
## Setup
|
|
6
6
|
|
|
@@ -12,21 +12,21 @@ In Claude Desktop: Customize > Personal plugins > Browse plugin marketplace. Sea
|
|
|
12
12
|
|
|
13
13
|
**Option B — .skill file:**
|
|
14
14
|
|
|
15
|
-
Download `meko-mcp-tools-desktop.skill` from the [releases page](https://github.com/yugabyte/meko-
|
|
15
|
+
Download `meko-mcp-tools-desktop.skill` from the [releases page](https://github.com/yugabyte/meko-skills/releases) and drag it into Claude Desktop (or use Customize > Skills > Import).
|
|
16
16
|
|
|
17
17
|
**Option C — Manual install:**
|
|
18
18
|
|
|
19
19
|
```bash
|
|
20
|
-
git clone https://github.com/yugabyte/meko-
|
|
20
|
+
git clone https://github.com/yugabyte/meko-skills.git
|
|
21
21
|
```
|
|
22
22
|
|
|
23
|
-
Copy `skills/
|
|
23
|
+
Copy `skills/meko-mcp-tools-desktop/` into Claude Desktop's skill directory. The exact path depends on your Desktop version — check Customize > Skills for the install location.
|
|
24
24
|
|
|
25
25
|
### Step 2: Configure the MCP server
|
|
26
26
|
|
|
27
27
|
Add the Meko MCP server to your Claude Desktop configuration. Go to Claude > Settings > Developer > Edit Config and add a `mcpServers` entry.
|
|
28
28
|
|
|
29
|
-
**Local HTTP** (for
|
|
29
|
+
**Local HTTP** (for local Meko development environments):
|
|
30
30
|
|
|
31
31
|
```json
|
|
32
32
|
{
|
|
@@ -70,7 +70,7 @@ Replace `/path/to/meko-mcp-server` with your cloned repo path and set the correc
|
|
|
70
70
|
{
|
|
71
71
|
"mcpServers": {
|
|
72
72
|
"meko": {
|
|
73
|
-
"url": "https
|
|
73
|
+
"url": "https://mcp.mekodata.ai/mcp"
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
76
|
}
|
|
@@ -84,29 +84,56 @@ Restart Claude Desktop after editing the configuration.
|
|
|
84
84
|
|
|
85
85
|
Start a new conversation and say:
|
|
86
86
|
|
|
87
|
-
>
|
|
87
|
+
> What datapacks do I have?
|
|
88
88
|
|
|
89
|
-
Claude should call `
|
|
89
|
+
Claude should call `datapack_list` and return your accessible datapacks. If it works, the MCP server and skill are both connected.
|
|
90
|
+
|
|
91
|
+
### Step 4 (recommended): Make Desktop proactive
|
|
92
|
+
|
|
93
|
+
Claude Desktop has no lifecycle hooks, so skill activation is model-judged from the skill's description. On clean prompts ("what do you know about me?") it fires reliably, but on **task-shaped prompts that only mention a fact in passing** ("I'm evaluating pnpm vs npm; I already use Turborepo") the skill may not activate, and the turn — with its fact — goes uncaptured. See [Desktop activation ceiling](#skill-doesnt-trigger).
|
|
94
|
+
|
|
95
|
+
The one always-on lever on Desktop is the **Instructions for Claude** field, which is injected into every conversation as *your* (first-party) instruction. Paste this into Claude > Settings > General > Profile > **Instructions for Claude** ("Claude will keep these in mind across chats") to close the gap:
|
|
96
|
+
|
|
97
|
+
```
|
|
98
|
+
About my setup: Meko (my connected MCP memory server) is my memory, knowledge,
|
|
99
|
+
observability and auditing layer across chats. It learns continuously from my
|
|
100
|
+
work and my team's/org's best practices. At the start of a chat, look me up
|
|
101
|
+
(load the skill and connect to the MCP endpoint): call conversation_create
|
|
102
|
+
(always use agent_id "claude_desktop" across all Meko calls) and either memory
|
|
103
|
+
or knowledge tools, to provide better context based on past conversations and
|
|
104
|
+
what I, and the team who's collaborating with me, already learned. Save to Meko
|
|
105
|
+
(conversation_add_message) on a regular basis to enable memories to be
|
|
106
|
+
implicitly generated in the background and for observability and audit
|
|
107
|
+
compliance.
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
This is the recommended fix — and for **Sonnet- and Opus-class models it is required**, not just recommended: those models will not do proactive per-turn capture from the skill alone (see "Skill doesn't trigger" below). Eager models (Haiku, Fable) capture from the fortified skill without it; Sonnet and Opus need this always-on, first-party instruction.
|
|
111
|
+
|
|
112
|
+
Why *this* wording (it was hard-won). Empirically, framings that ask the model to "log/save every exchange" — even transparent, user-owned ones — are refused by capability-cautious models as *silent standing background logging to an external server*. What unlocks proactive capture is reframing **what Meko is**: not a logging conduit but the user's own **memory / knowledge / observability / audit system of record** that learns from the user and their team. That legitimacy framing (system-of-record + collaborative + a sanctioned purpose) is what moved Opus from refusal to full proactive capture. Note also *why the Profile field specifically*: it is the only channel that is both always in context **and** carries first-party (user) authority — the skill is read at the model's discretion, and MCP `server_instructions` are treated as untrusted tool-channel data, so neither can substitute for this field on the cautious tier.
|
|
90
113
|
|
|
91
114
|
## Usage
|
|
92
115
|
|
|
93
116
|
The skill triggers automatically based on context — just talk to Claude naturally:
|
|
94
117
|
|
|
95
|
-
###
|
|
118
|
+
### Share personal info (captured by posting the turn via conversation_add_message)
|
|
96
119
|
> I'm a backend engineer. We use Go and YugabyteDB for everything.
|
|
97
120
|
|
|
121
|
+
Stated facts like this are captured when the agent posts the turn with `conversation_add_message`; the server extracts durable memories from the post. You don't need a proactive `memory_add`.
|
|
122
|
+
|
|
123
|
+
### Explicitly save a fact (triggers memory_add)
|
|
124
|
+
> Remember that I prefer tabs over spaces.
|
|
125
|
+
|
|
126
|
+
An explicit "remember this" is one of the narrow cases where the agent calls `memory_add` directly.
|
|
127
|
+
|
|
98
128
|
### Recall memories (triggers memory_search)
|
|
99
129
|
> What do you know about me?
|
|
100
130
|
|
|
101
|
-
###
|
|
102
|
-
>
|
|
131
|
+
### Search the team's knowledge base (triggers knowledgebase_search)
|
|
132
|
+
> What does our docs say about deployment?
|
|
103
133
|
|
|
104
134
|
### Save conversations (triggers conversation_create + conversation_add_message)
|
|
105
135
|
> Save this conversation.
|
|
106
136
|
|
|
107
|
-
### Store structured data (triggers db_run_write_query)
|
|
108
|
-
> Here's a CSV of our products: [paste CSV data]
|
|
109
|
-
|
|
110
137
|
### Manage datapacks (triggers datapack_list / datapack_create)
|
|
111
138
|
> List all datapacks.
|
|
112
139
|
|
|
@@ -117,9 +144,10 @@ The skill triggers automatically based on context — just talk to Claude natura
|
|
|
117
144
|
| Skill name | `meko-mcp-tools` | `meko-mcp-tools-desktop` |
|
|
118
145
|
| Installation | `claude plugin install meko-agent-skills` | Plugin marketplace / .skill file / manual |
|
|
119
146
|
| MCP connection | `claude mcp add --transport http meko <url>` | `claude_desktop_config.json` |
|
|
120
|
-
| Automatic capture | Hooks (SessionStart, PreCompact, SessionEnd) |
|
|
147
|
+
| Automatic capture | Hooks (SessionStart, PreCompact, SessionEnd) | Skill-driven — agent posts each turn via `conversation_add_message`; server extracts memories |
|
|
121
148
|
| Periodic checkpoints | CronCreate (every 10 min) | Not available |
|
|
122
|
-
|
|
|
149
|
+
| Proactive activation | Deterministic (SessionStart hook always injects doctrine) | Model-judged from skill description; best-effort. Backstop with a personal-preferences snippet (Step 4) |
|
|
150
|
+
| agent_id | `<client>:<repo-basename>` (e.g. `claude_code:meko-mcp-server`) | `claude_desktop` |
|
|
123
151
|
|
|
124
152
|
## Troubleshooting
|
|
125
153
|
|
|
@@ -148,3 +176,5 @@ Conversation tools require Langfuse credentials (`LANGFUSE_PUBLIC_KEY`, `LANGFUS
|
|
|
148
176
|
The skill activates when Claude detects relevant context (MCP tools, memory operations, database queries, etc.). If it doesn't trigger:
|
|
149
177
|
1. Verify the skill appears in Customize > Skills and is enabled
|
|
150
178
|
2. Try a more explicit prompt: "Use the Meko tools to store this in memory: I prefer Python."
|
|
179
|
+
|
|
180
|
+
**Known limitation (hookless Desktop activation ceiling).** Unlike Claude Code — where a SessionStart hook deterministically injects the memory doctrine every session — Desktop activation is judged by the model from the skill's description alone. This works for clean semantic matches (recall questions, explicit "remember this", keyword mentions) but is best-effort for **task-shaped prompts** where a durable fact appears only in passing inside a technical question. The skill description is already tuned to its 1024-character ceiling; broadening it further does not close this gap. The reliable fix is the always-on **personal-preferences snippet** in [Step 4](#step-4-recommended-make-desktop-proactive), which is injected into every conversation regardless of the prompt. Even without it, no data is lost when the *user* explicitly asks to recall or save — only passive capture of in-passing facts is best-effort.
|
|
@@ -6,15 +6,15 @@ description: Maps reference files to their topics for the meko-mcp-tools-desktop
|
|
|
6
6
|
# Reference Sections
|
|
7
7
|
|
|
8
8
|
## Tool Selection & Catalog
|
|
9
|
-
- [tools-overview.md](tools-overview.md) — Complete catalog of all
|
|
9
|
+
- [tools-overview.md](tools-overview.md) — Complete catalog of all 23 tools with a decision tree
|
|
10
10
|
|
|
11
11
|
## Tool-Specific Guidance
|
|
12
12
|
- [tools-agent-id-conventions.md](tools-agent-id-conventions.md) — Multi-agent model: the three buckets (project `<client>:<repo-basename>`, common `meko_agent`, loose client name), personal vs. team-shared read surfaces
|
|
13
13
|
- [tools-memory-vs-conversation.md](tools-memory-vs-conversation.md) — Decision framework: memory_add vs conversation_create/conversation_add_message, plus Desktop capture guidance
|
|
14
|
+
- [tools-conversation-reasoning.md](tools-conversation-reasoning.md) — Authoring the `reasoning` and `plan` fields on `conversation_add_message`, with worked examples
|
|
14
15
|
- [tools-rag-workflow.md](tools-rag-workflow.md) — End-to-end RAG pipeline: source registration, index creation, status polling
|
|
15
16
|
|
|
16
17
|
## Safety & Permissions
|
|
17
|
-
- [tools-scope-permissions.md](tools-scope-permissions.md) — read/write/admin permission hierarchy and per-tool requirements
|
|
18
18
|
|
|
19
19
|
## Practical Usage
|
|
20
20
|
- [tools-cookbook.md](tools-cookbook.md) — Per-tool examples with correct parameters, expected responses, and common errors
|