Skip to content

MCP Server

When you run somtum init --all, Somtum registers an MCP server that Claude can call autonomously during a session.

Available tools

ToolWhat Claude does with it
recallSearches memories when unsure about a project detail. Accepts strategy and scope overrides.
getRetrieves full observation bodies by ID. Bumps last_confirmed_at on each hit.
rememberStores an observation manually. Accepts scope: 'project' | 'workspace' | 'global'.
updateUpdates an existing observation's title, body, tags, or files. Redaction is applied.
cache_lookupChecks the prompt cache directly.
report_false_hitReports that a cached response didn't answer the question (tunes fuzzy threshold data).
forgetSoft-deletes an observation.
statsReports tokens saved, cache hit rate, false-hit count, and corpus size.

Every MCP response includes a tokens field so Claude can account for retrieval cost.

Memory scope

Observations carry a scope field that controls visibility:

ScopeMeaningUse it when
projectDefault. Visible only in this project.Most decisions, bugfixes, and learnings.
workspaceShared across projects via the recall MCP tool.Team conventions, preferred libraries, global rules.
globalSame as workspace; reserved for personal preferences that span all projects.Your personal coding preferences.
bash
# Store a workspace-scoped observation from within a session:
remember("Always use pnpm for Node projects", body="...", scope="workspace")

Setup

somtum init --all writes .mcp.json to your project root:

json
{
  "mcpServers": {
    "somtum": {
      "command": "somtum",
      "args": ["mcp"]
    }
  }
}

Restart Claude Code after running somtum init --all to pick up the MCP configuration.

Verifying

Check .mcp.json exists in your project root:

bash
cat .mcp.json

Released under the MIT License.