Repository navigation
Description
Feature: MCP Server for AI Tool Integration
Problem
Uteke is only accessible via CLI. AI tools (Claude Code, Cursor, Copilot, etc.) cannot access Uteke memories programmatically. MCP (Model Context Protocol) is becoming the standard for tool integration.
Proposed Solution
Build an MCP server that exposes Uteke operations to AI coding agents and assistants.
MCP Tools to Expose
| Tool | Maps to CLI | Description |
|---|---|---|
uteke_remember |
uteke remember |
Store a new memory |
uteke_recall |
uteke recall |
Semantic search memories |
uteke_list |
uteke list |
List/filter memories |
uteke_forget |
uteke forget |
Delete a memory |
uteke_consolidate |
uteke consolidate |
Run dedup |
uteke_stats |
uteke stats |
Get memory statistics |
Implementation
Two approaches (pick one):
Option A: Extend uteke-serve
- Add MCP endpoint to existing
uteke-serveHTTP server - Single binary, less maintenance
- Already has
uteke-servebinary in workspace
Option B: Separate MCP binary
- New
uteke-mcpbinary in workspace - Cleaner separation of concerns
- Can be installed independently
Recommendation: Option A — extend uteke-serve with /mcp endpoint.
Why v0.1.0
- MCP is critical for adoption — AI tools are the primary consumers
- Requires stable HTTP server (v0.0.11 security fixes)
- Requires metadata + FTS5 (v0.0.12) for richer tool responses
Acceptance Criteria
- MCP server exposes remember, recall, list, forget, stats
- Works with Claude Code MCP client
- Works with Cursor MCP integration
- JSON-RPC protocol compliant
- Authentication support (API key from uteke-serve config)
- Documentation for MCP setup in popular AI tools
Update from SurrealDB Research & Room Feature (Jun 2026)
After analyzing SurrealDB's Namespace > Database > Scope hierarchy and evaluating Uteke's multi-agent collaboration needs, the MCP tool spec should support room-scoped operations.
Updated MCP Tools Table
| Tool | Maps to CLI | Description | Room Support |
|---|---|---|---|
uteke_remember |
uteke remember |
Store a new memory | --room <id> |
uteke_recall |
uteke recall |
Semantic search memories | --room <id> filters to room context |
uteke_list |
uteke list |
List/filter memories | --room <id> lists room memories |
uteke_forget |
uteke forget |
Delete a memory | --room <id> scoped delete |
uteke_consolidate |
uteke consolidate |
Run dedup | Room-aware dedup (same room = higher merge priority) |
uteke_stats |
uteke stats |
Get memory statistics | Per-room stats |
uteke_room_info |
uteke rooms info |
Get room details + participants | NEW |
Room = Shared Collaboration Context
Room ID format: <platform>:<id> (e.g., discord:1514528701109506199, local:session-abc)
Use case: Multiple AI agents collaborating in a Discord thread can share context via a room. Any agent joining the room gets access to all memories stored in that room — no need to know which namespace/agent created them.
Room + Namespace are orthogonal: namespace = who stored it, room = what collaboration context it belongs to.
MCP Example Call
{
"tool": "uteke_recall",
"arguments": {
"query": "SurrealDB architecture",
"room": "discord:1514528701109506199",
"namespace": "kai"
}
}Impact on Acceptance Criteria
- MCP server exposes remember, recall, list, forget, stats, room_info
- All tools accept optional
roomparameter for scoped operations -
uteke_recallwith room parameter returns room-scoped results only - Works with Claude Code MCP client
- Works with Cursor MCP integration
- JSON-RPC protocol compliant
- Authentication support (API key from uteke-serve config)
- Documentation for MCP setup in popular AI tools
Related
- Room feature: feat(#134): file permissions and ONNX model checksum verification #278
- Importance scoring with room factor: ⭐ Feature: Smart memory decay and importance scoring #247
- Relationship graph (room as container): 🔗 Feature: Relationship graph layer between memories #246
Activity
ajianaz commentedon Jun 11, 2026
🔌 Update: Room-Aware MCP Tools (from SurrealDB analysis, #286)
Room Support in MCP Server
The MCP server should expose room operations as first-class tools. This is critical for multi-agent AI workflows where Claude Code / Cursor / Copilot agents collaborate in shared contexts.
Additional MCP Tools for Room
uteke_room_rememberuteke remember --room <id>uteke_room_recalluteke recall --room <id>uteke_room_summaryuteke recall --room <id> --summaryuteke_room_listuteke room listuteke_room_statsuteke room stats <id>MCP Use Cases
uteke_room_recall→ full context restoreduteke_room_summary→ instant catch-upUpdated Acceptance Criteria (add to existing)
uteke_room_rememberMCP tool (room + author + type + tags)uteke_room_recallMCP tool (full room context with author attribution)uteke_room_summaryMCP tool (condensed top-K diverse results)uteke_room_listMCP tooluteke_room_statsMCP tooluteke_recallwhen room_id providedDependency Note
#286 (Room) and #246 (Graph) should be implemented BEFORE MCP tools are finalized. MCP is the surface layer — it exposes what the core provides. Order: #249 → #286 → #246 → THIS (#248).
feat(#248): MCP server for AI tool integration via stdio JSON-RPC (#301)
feat(#248): MCP server for AI tool integration via stdio JSON-RPC (#301)