Skip to content

MCP Server ​

When you run somtum init --all (Claude Code) or somtum init --agent codex, Somtum registers an MCP server the agent can call on its own during a session. Any other MCP client can use it too: point it at somtum mcp over stdio.

Available tools ​

ToolWhat the agent 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 the agent 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"]
    }
  }
}

For Codex, somtum init --agent codex appends the same server to the project's .codex/config.toml:

toml
[mcp_servers.somtum]
command = "somtum"
args = ["mcp"]

Restart the agent after running init to pick up the MCP configuration. Codex reads project config only for trusted projects.

Verifying

Check .mcp.json exists in your project root:

bash
cat .mcp.json

Released under the MIT License.