MCP
Actx0 speaks Model Context Protocol over streamable HTTP. An MCP client (Cursor, Claude, or any compatible agent) gets tools to add, search, update, and delete session memories without calling the REST API directly. Every tool call uses your workspace access key. Scope is fixed per connection — workspace, agent, and session come from headers, not from tool arguments. Use MCP when the agent already lives in an editor or harness. Use the REST API or SDKs when you own the runtime.The mental model
Typical loop inside the client:
- Before answering, call
search_memorieswith the current question. - After a useful fact, call
add_memoryso the next session can recall it. - Correct or drop a fact with
update_memoryordelete_memory.
Connection scope
Send these headers on the MCP HTTP connection:add_memory creates the session from X-Session-Id if it does not exist yet. The other tools resolve that external id and fail if the session is missing.
Configure Cursor
- Create an access key with session and memory permissions (see below).
- Create an agent in the workspace.
- Add a server entry in
.cursor/mcp.json(project) or~/.cursor/mcp.json(global):
- Reload MCP in Settings → Tools & MCP, or restart Cursor.
url is the Actx0 MCP streamable HTTP endpoint. Use a stable X-Session-Id per user, ticket, or repo so memories accumulate on the same session.
Tools
Memory
kind values: summary, fact, preference, short_lived, long_lived.
Access key permissions
The key must include:- Session: create, list, get, update, delete
- Memory: create, list, get, query, update, delete
Build against this flow
- Search before the model writes a reply; add only facts worth reusing.
- One MCP connection = one session. Change
X-Session-Id(or use another server entry) to isolate users or projects. - Prefer
preferenceandfactfor durable content; useshort_livedfor ephemeral context. - Do not store secrets in memories.
delete_sessionwipes that session’s memory when a run should not persist. - For prompts and knowledge, call the REST API from your app — those resources are not MCP tools.
Next steps
Agents
How sessions and memories are scoped
Create Memory
Same writes over REST
Access keys
Create a workspace key in the dashboard
SDK & Tools
Python, Node.js, Go, and MCP releases
