Skip to main content

Module mcp_server

Module mcp_server 

Source
Expand description

In-process memory MCP server for the UAR agent runtime.

Runs the full surreal-memory tool suite in-process, with no external server process. Exposes:

  1. An Axum router using rmcp’s StreamableHttpService for HTTP MCP clients.
  2. All tools available as UAR-native calls through MemoryService.

§HTTP exposure

Mount the router returned by memory_mcp_router() at the configured path:

ⓘ
let router = memory_mcp_router(Arc::clone(&memory_service));
app = app.nest(&config.memory.mcp_http_path, router);

Structs§

AddMemoryParams
AddObservationsParams
AddToTaskStreamParams
AutoSummarizeParams
CompressMemoriesParams
ConversationParams
CreateEntityParams
CreateRelationParams
CreateTaskStreamParams
DeleteEntityParams
DeleteRelationParams
ExpandNeighborsParams
FindPathParams
GetContextParams
GetRelatedParams
HybridSearchParams
MemoryIdParams
ScopeFilterParams
SearchMemoriesParams
SearchParams
SemanticSearchParams
TaskStreamNameParams
UarMemoryMcpServer
In-process memory MCP server inheriting identical tools to the standalone surreal-memory-server, but run inside the UAR process.
UpdateMemoryParams

Functions§

memory_mcp_router
Build an Axum router that exposes the in-process memory MCP server over the streamable-HTTP transport (GET SSE / POST / DELETE on the same path).