Connect another MCP client
Esta página aún no está disponible en tu idioma.
mash init connects Claude Code, Codex and, in 0.3.3 and later,
OpenCode, Antigravity and
Cursor for you. For GitHub Copilot CLI,
see connection steps for your Mash version.
Any other client that can start a local (stdio) MCP server can run mash mcp
itself.
Connect another MCP client
Section titled “Connect another MCP client”After setting up Mash, add an entry like this to your client’s MCP configuration:
{ "mcpServers": { "mash": { "command": "/absolute/path/to/mash", "args": ["mcp", "--config", "/absolute/path/to/config.toml"] } }}Replace the paths with your installed executable and Mash configuration. The exact configuration format depends on your client. For shared history, also make your configured token environment variable available to the client.
For a small model, or an agent that should only read, add "--lean" after
"mcp". Mash then offers eight tools instead of 21, the ones that find and
read chats and memories (search, list_chats, view, list_records,
recall_records, get_record, status and help), which takes less than
half the room in the model’s context. Nothing that saves memories, indexes or
maintains Mash is offered.
Restart the client, then ask it to use Mash to find an earlier conversation.
It should call Mash’s search tool and answer from your history. Restart the
client again after each Mash upgrade so that it starts the new executable.
What your agent can do
Section titled “What your agent can do”Your agent can search chats, list conversations, read messages and available attachments, and check whether history is current. It can also refresh history, forget a chat, make backups, or download optional models when you request it. The MCP tool reference lists every tool and its parameters.
Searching does not refresh the index. If new chats are missing, run
mash index; for ongoing updates, see
keep history up to date.
Read saved attachments
Section titled “Read saved attachments”Ask the agent to list attachments on a message and open the one you need. Mash can retain attachments from Claude Code, Codex, and OpenCode; other providers’ attachments are not currently captured.
Embedded files are saved automatically when supported. To allow files referenced from a directory on your machine, add that directory to your Mash configuration:
[attachments]allowed_roots = ["/absolute/path/to/provider/attachments"]share_files = falseRun mash index afterward. Missing or disallowed files may appear by name
without a readable copy. Files are not shared with your other machines by
default. Images and PDFs can contain sensitive information; review them before sharing.