# wcat MCP server setup for Claude Desktop and Cursor (/en/docs/wcat/mcp)

Ask Claude Desktop, Cursor or another app where you chat with your AI agent without a terminal what you know about a
person, or where a budget was agreed, and get the answer from your own messages, mail, notes and stored meetings, with
each source cited. The agent can also save memories, record facts and propose actions for you to review. It never
sends a message or an email.

These apps reach programs on your computer through MCP (Model Context Protocol), so wcat runs beside the app as a
small MCP server, on the same computer. For an app in a browser or on a phone, use
[the remote connection](/llms.mdx/docs/wcat/remote/content.md): it serves the same three tools through your HTTPS tunnel.

**On this page:**

1. Commands and permissions
2. Lock an agent to a group
3. Open a cited item
4. Connect an app
5. The agent log

## Commands and permissions [#commands-and-permissions]

wcat uses cli-core's shared MCP surface. It lists three tools:

| Tool | What it does |
|---|---|
| `memo_tools_search` | Find commands by words and inspect their arguments and answer shape; no query lists the full catalogue with current availability |
| `memo_read` | Run a reading command by its CLI path |
| `memo_write` | Run a writing command by its CLI path; permissions are checked before execution |

For example, find a note reader with `memo_tools_search {"query":"notes show"}`, then call
`memo_read {"command":"notes show","arguments":{"note":"note:12"}}`.
Arguments use the CLI's positional names and snake_case options. Unknown arguments are refused.
The commands run the CLI itself in-process, using the same services, answers and errors.

Set `permissions` in wcat's [configuration](/llms.mdx/docs/wcat/configuration/content.md#permissions) to limit what an app can do.
A dotted command path is a key, such as `notes.edit`; a parent key such as `notes` covers its commands.
`deny` marks a command unavailable in discovery, `readonly` permits reads, and `ask` or `allow` permits writes. Over MCP, `ask` runs
without a terminal question; approval prompts depend on the client app. Writes without a saved level use `ask`.
Commands that change source folders need `mcp.authority`, which defaults to `deny`.
Meeting findings decisions (`meetings.actions.confirm` and `meetings.actions.reject`), `messages.reset` and
`projects.annotations.restore` also default to `deny`; the owner must explicitly permit each operation
before an agent can use it. Save permissions in the configuration; discovery and the next command call
read the current levels. Permissions and the shared WireCat read ceiling are checked again on every call.

`search all` returns meeting passages from every meeting account, personal and work, beside messages, mail, notes,
events, CRM, business data and tracker issues. A transcript hit's `next` step opens it with `meetings passage`. When
`search.meetings` or `meetings.passage` is `deny` or `ask`, search all leaves meetings out and says so in `missing`: a
hit the agent may not open unasked is not handed to it.

`wcat mcp serve --permission notes.edit=deny` makes a saved permission stricter for one server; repeat the option
for more keys. It cannot loosen the saved permissions, including more specific keys.
`WCAT_READ_ONLY=1` marks every writing command unavailable and refuses writes on an existing connection.
Discovery retains blocked commands with current `availability` and the reason, as cli-core does.

## Lock an agent to a group [#lock-an-agent-to-a-group]

`WCAT_GROUP_LOCK=work wcat mcp serve` serves only the group `work` (see [groups](/llms.mdx/docs/wcat/usage/content.md#groups-of-accounts)), and
the lock fails closed. These commands run under it:

| Group | Commands |
|---|---|
| reads | `context`, `show`, `messages show`, `search all`, `messages`, `mail`, `notes` and `people` |
| groups | `groups list`; `groups add`, `remove` and `move` are refused |
| CRM | every `deals` and `leads` command, every `organizations` command, `pipelines list` and `pipelines show` |
| people and notes | `people list`, `people add`, `notes list`, `notes show` |
| your own | every `memories`, `facts`, `actions`, `review` and `tasks` command; `projects list`, `add`, `context`, `status` and `key-documents` |
| labels and links | `tags add`, `tags remove`, `relationships list`, `relationships add`, `relationships roles list` |
| server | `mcp serve` |

Every other command is refused with `permission_error`, among them `projects gather`, `evidence`, `annotations` and
`actions`, which read linked chats without the group yet. So are `relationships update`, `end`, `remove` and
`confirm`: they take a bare relationship id, which the lock cannot tie to an account. `relationships roles add` and
`remove` are the owner's alone.

In the commands that run, reads take only the group's accounts, and a list leaves out what belongs to an account
outside it. What you made yourself (notes, projects, tasks, invoices, memories, facts) belongs to no account and shows
in every group. A reference outside the group is refused with `permission_error`, in an argument or an option, and so
is a bare id of one (`organizations show 3`). That covers a message, a chat, a calendar event, a deal or organization
a CRM outside the group brought, and a person none of whose accounts is in it. Another group, `--source all`, and a
`--source` or `--account` outside the group are refused too. `projects status` counts a linked chat outside the group
in `missing`, and names none. Evidence and sources outside it are left out and counted in `out_of_scope` (a list says so in `missing`); a context's
`coverage` counts the accounts it kept out instead of naming them. A proposal or an action outside the group is not
listed, shown or decided.

Set the lock in the environment of the process the app starts; the agent cannot lift it.

The named CLI-only exclusions are the `mcp` commands, `upgrade`, `skill install`, `jobs start` and `jobs stop`: they
start another server, replace the running program, install instructions in other apps, or manage a background timer.

`schedule list`, `agents list`, `run` and `exec` are offered, as in every WireCat CLI: an agent may start a schedule
you made. `schedule command`, `agent`, `remove`, `pause` and `resume` need `mcp.authority`, which defaults to `deny`,
so only you make, remove or stop one.

`notes add` and `notes edit` take the note as `text`. `--text-file` and `--export` are not offered, and a run over MCP
refuses them before anything is saved, so an agent cannot make wcat read a file on this computer or the server's own
input, or write a file into a folder of its choice.

`sources add` takes the source as `text` only: an agent cannot name a file on this computer or an address for wcat
to open, so it gets no way to read local files or reach a private network through wcat. A path or a link is added
from the command line ([Sources you add by hand](/llms.mdx/docs/files/content.md)). An agent's subjects wait for you to confirm them.
`sources remove` is not offered: only you remove a source you added. `sources suggest` is not offered either, so an
agent cannot send a source's text off this computer; nor are `sources readers set` and `models keys set` and
`remove`, since only you choose the reader and give its key. `sources readers list` is offered. Of `models ai`, only
`show` is offered: `set`, `unset`, `remove`, `revoke` and `check` choose the AI model, its address and its key, or
spend your credit, so only you run them.

`memories add`, `facts add`, `actions add`, `meetings actions add` and `projects actions add` save proposals.
By default only the owner decides project proposals; `projects actions confirm` and `projects actions reject` refuse
an agent. Set [`agent_decisions: true`](/llms.mdx/docs/wcat/configuration/content.md#agent_decisions) to let them decide with a recorded reason
through the CLI and MCP. wcat never sends a message or mail. `--as-owner` and `--from-app` are not offered over
MCP: a call through it is always the agent's.

## Open a cited item [#open-a-cited-item]

Pass a search hit's `ref` to `notes show` as `note`, or a message or email reference to `messages show` as `message`.
`notes show` returns the whole note; `messages show` returns the stored message or email and takes `full: true` for whole
attachment text. `tags list` lists tags.
Messenger reads use the explicit account and chat encoded in the reference; nothing is fetched from a provider.

## Connect an app [#connect-an-app]

Add wcat to the app's MCP settings. Most apps use a file like this:

```json
{ "mcpServers": { "wcat": { "command": "wcat", "args": ["mcp", "serve"] } } }
```

Add the `wcat` entry next to any servers already in the file:

| App | Settings file |
|---|---|
| Cursor | `~/.cursor/mcp.json` |
| Claude Desktop, macOS | `~/Library/Application Support/Claude/claude_desktop_config.json` |
| Claude Desktop, Windows | `%APPDATA%\Claude\claude_desktop_config.json` |

Restart the app after you save the file. wcat must be installed on the same computer as the app. If
the app cannot find `wcat`, replace `"wcat"` with its full path, which `which wcat` (macOS and Linux)
or `where.exe wcat` (Windows) prints.

Then try it:

```text prompt
Use the wcat tools to list the memories waiting for my review.
```

Suggestions are saved under the agent name `wcat-mcp`. Review proposed memories and facts with
`wcat memories list status:proposed` and the commands in [Memories and facts](/llms.mdx/docs/wcat/memories/content.md).

## The agent log [#the-agent-log]

Each command that reaches wcat’s command runner is written to the agent log, including permission and validation refusals:

```sh
wcat agents list agent:wcat-mcp --limit 20
```

The log shows the command as an underscore name, the result and the time, never its arguments.
Discovery and shared-protocol refusals happen before the command runner.

For meeting evidence, see [meeting search](/llms.mdx/docs/wcat/search/content.md#search-stored-meetings). Ask your agent to read
passages with `meetings passage`, then stage a batch with `meetings actions add`. Give one `account` as
`example:work` and an `input` object with `schema_version: 1`, `key`, `extractor` and `findings`, using
the same fields as `wcat meetings actions add --help`. Every finding needs exact cue references and
fingerprints and a confirmed project link. Unknown dates and assignees stay absent; inferred follow-ups
are labelled as such. Exact retries reuse the key; changed input needs a new key.

Some proposals are the owner's alone, whatever the permissions and `agent_decisions` say: mail and meeting
findings batches, task closes and source reviews (`memory_source_review`). `review confirm` and `review reject`
refuse an agent on them (`proposal.owner-only`). For a memory or fact whose sources changed, an agent may run
`memories check`, `memories challenge` and `facts challenge`, which only open or add to the owner's review, and may
quote what a source says with `quote` on `memories add` and `facts add`; it never decides the review
([When a source changes](/llms.mdx/docs/wcat/memories/content.md#when-a-source-changes)).

`meetings actions show` and `meetings actions list` take an explicit `source`. The owner reviews
batches through `wcat meetings actions confirm` or `reject`, or explicitly permits the corresponding MCP decision commands. Staging creates no facts or numbered tasks.

`projects actions add` stages cited facts and follow-ups about one project: each reference is a `msg:` or
`document:` reference with the `fingerprint` `projects evidence` gave, and a text changed since then refuses as
stale. `projects actions list` pages through a project's proposals — suggested key documents (`key:<n>`) and
findings batches — each with its evidence: whether the text changed (`state`), the text and the messages around
it unless `brief`; cited documents include nearby paragraphs. A text changed since staging refuses only the
findings that cite it. Decide the ones you are confident about with `projects actions confirm` (the finding IDs to
create) or `projects actions reject`, always with a `reason`, which is kept with the decision; ask the owner about
the rest. A batch needs its `fingerprint`. Unless the owner sets `agent_decisions: true`, decisions are refused and
only the owner decides, through `wcat projects actions confirm` or `reject`.

Key-document suggestions have no saved text fingerprint and return `state: "untracked"`; reread them
before deciding. Findings retain their own cited fingerprints for detecting source changes.

`projects evidence` takes the options of `wcat projects evidence` in snake_case and needs `source`: account
entries, a kind, `group:<name>` or `all`. It searches the project's name, its key, each of its aliases and each
`alias`, each `context_query` and each `contact` separately and joins the hits; `since_time` defaults to `60d`.
Optional `before_time` fixes the exclusive end to an ISO 8601 timestamp with `Z` or a UTC offset. Days back
are counted from that instant; an explicit start date also uses it as the end. Keep the same value on
continuation. It fixes the window, not the source data or the registered aliases/accounts.
Meeting accounts are supported: a recorded profile such as `zm:work` selects that account's stored,
indexed transcript cues. Hits retain exact `meeting:` cue references and use the meeting start date
(`time_kind: "meeting-start"`). Superseded/deleted transcripts are excluded. Missing transcripts and
incomplete archives remain unknown; wcat does not fetch recordings. Transcript indexing uses the meeting
provider's existing indexing workflow; the mail/document catch-up below does not build transcript indexes.
New mail and documents are indexed for search first; `no_catch_up: true` reads the index as it is. Each message
hit carries `around`: `before_n` and `after_n` messages next to it in its chat (default 2), as context, never as
more hits. Every message of a chat confirmed as the project's (`wcat relationships add
chat:<provider>/<account>/<chat> project:<id>`) is read too when `source` holds its account: those items have
`context: "linked-chat"` and name nothing, their lane has `query: null` and `chat` set. Each `linked_chats` entry has
`items` (new items this run) and `capped`: one run takes at most a share of the item limit from each chat, and
`cursor` reads the rest of a capped one. A linked chat outside
`source` is listed in `unread_sources`, never read. Every person confirmed as a member of the project
(`person:<id>` `member-of` `project:<id>`) is read like a `person:<id>` contact below, without their aliases and
without being passed: a sender lane and `context: "sender"` items. A person also passed as a contact is read once.
Core takes at most 16 lanes, so members that do not fit, in a fixed order, are listed in `unread_sources` with
`kind: "member"` and `reason: "member-limit"`; a member with no stored identity has `reason: "no-identity"`. `mentions` lists the other projects, tags and topics the texts name, cited; a name is not
membership. An item found only through a
contact's name has `context: "person-only"`. A `person:<id>` contact reads what that person's stored identities
wrote in `source` (lane `kinds: ["sender"]`, `query: null`, `senders` set; items `context: "sender"`, which may name
nothing) and searches only the aliases the owner gave them, not their messenger display name. `people` lists who
wrote this run's message and mail items, from stored contacts, never from names in the text: one entry per stored
person (`person: "person:<id>"`, `name`, every `identities` entry `{provider, account, id}` seen, so one person's
Telegram and WhatsApp count together) or per identity linked to no person (`person: null`), with `items` and
`contexts` (items per `context`). The owner's own messages are left out. Most items first, at most 20;
`people_omitted` counts the rest. Counts cover this call only: add them up across `cursor` calls. Failed or unread sources are listed, and `completeness` stays
`unknown`. When it returns a `checkpoint`, call again with the same arguments and `cursor` set to it.
It creates no facts, tasks or project links; the index catch-up above can update local search indexes.

Use `projects context` with a project key, exact name or alias to review pending findings together.
Meeting previews read at most five batches from each of eight linked meeting accounts; coverage and
continuation commands identify more or missing records. A preview includes only this project's
undecided findings. Read the full batch before review: it can also hold findings for another project.

`projects annotations show` returns a version-2 `snapshot`, its `fingerprint`, coverage and bounded
read counters for an existing project. It omits source bodies and preserves proposed state. Save that
snapshot to a private local JSON file, then call `projects annotations check` with that `file`,
an explicit `target_store`, destination `project:<id>` and a `bindings` JSON file mapping every external
reference and the project. `max_read_bytes` can lower the
4 MiB read budget. The target must already exist and have matching sources and project key/name;
the tool reports conflicts and a fingerprint without restoring annotations. Both tools refuse
unknown arguments. Schema validation is followed by the shared graph and content checks.

Notes, meeting memberships, tasks, memories, labels and findings are omitted, so this is a selected
annotation format rather than a full project backup. The owner uses
the [selected annotation workflow](/llms.mdx/docs/wcat/recipes/content.md#keep-selected-project-annotations), or explicitly permits
`projects.annotations.restore` for the command. These reading
commands remain available with `WCAT_READ_ONLY=1`; calls still produce the normal agent audit entry.

Next: [review what the app saved](/llms.mdx/docs/wcat/memories/content.md).
