Skip to main content

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:
  1. Before answering, call search_memories with the current question.
  2. After a useful fact, call add_memory so the next session can recall it.
  3. Correct or drop a fact with update_memory or delete_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.
Keep access keys out of shared repos. Use placeholders in committed mcp.json, and put real secrets in a local untracked config.

Configure Cursor

  1. Create an access key with session and memory permissions (see below).
  2. Create an agent in the workspace.
  3. Add a server entry in .cursor/mcp.json (project) or ~/.cursor/mcp.json (global):
  1. 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
Create keys in Settings → Access keys and copy the secret immediately — it is shown only once.

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 preference and fact for durable content; use short_lived for ephemeral context.
  • Do not store secrets in memories. delete_session wipes 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