diffmem-mcp-server

v0.2.0
diffmem-mcp-server Checked 1 hour ago Published 3 days ago

DiffMem MCP Server — exposes DiffMem memory APIs as MCP tools with security-first design

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

list_spaces

List all memory spaces in your project. Returns space IDs, types (public/private), ontology, and initialization status. No parameters needed — project scope is derived from your API key.

get_space_info

Get detailed metadata for a specific memory space. Args: space_id: The space identifier (e.g. "default", "shared-kb") Returns space metadata including ontology, description, file count, and storage usage.

ParameterTypeDescription
space_id *string

list_files

List files in a memory space. Args: space_id: The space identifier (e.g. "default") Returns a list of file paths with sizes and last-committed timestamps.

ParameterTypeDescription
space_id *string

read_file

Read a specific file from a memory space. Args: space_id: The space identifier (e.g. "default") path: File path relative to the space root (e.g. "memories/people/alice.md") Returns the file content as text.

ParameterTypeDescription
path *string
space_id *string

ingest_memory

Save a memory to DiffMem, the project's persistent memory store. Call this yourself when the exchange is memory-worthy — do not wait to be asked: - The user explicitly asks you to remember or save something. Pass their words through near-verbatim in `content`. - A stable fact surfaces: preferences, constraints, decisions and their outcomes, the project's stack, people's names or roles, ongoing work. - The user corrects something already saved. Save the correction as a plain statement; consolidation resolves the conflict downstream. Do not call when: - The exchange is routine conversa…

ParameterTypeDescription
content *string
space_idstring

check_save_status

Check the outcome of a memory save made with ingest_memory. Returns the save's current state: queued, processing, committed, or failed (with an error code). Use when the user asks whether something was saved or saved correctly — saves are not announced automatically, this tool is the only way to see a failure. Args: save_id: The save_id returned by the ingest_memory call to check.

ParameterTypeDescription
save_id *string

retrieve_context

Retrieve relevant context from the project's memory. Searches all spaces your API key can access — authorization is the key's, so a first-try call needs no space knowledge. Retrieval is agent-based: it finds and synthesizes the most relevant memory content. Args: query: The conversation or query to retrieve context for space_id: Optional. Search within a specific space only. spaces: Optional. Comma-separated list of space IDs to narrow the search. Omit both to search everything your key can access. Returns synthesized context with source references and retrieval me…

ParameterTypeDescription
query *string
space_idstring
spacesstring

get_project_status

Get project configuration and status. Returns plan details, quota limits, current usage, and space count. No parameters needed — project scope is derived from your API key.