Skip to content

🔌 Feature: MCP server for AI tool integration #248

Closed

Description

@ajianaz

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-serve HTTP server
  • Single binary, less maintenance
  • Already has uteke-serve binary in workspace

Option B: Separate MCP binary

  • New uteke-mcp binary 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 room parameter for scoped operations
  • uteke_recall with 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

Activity

  1. reopened this on Jun 9, 2026
  2. added
    v0.1.0
    scope:core
    type:feature
    priority:high
    enhancement
    and removed
    type:feature
    on Jun 9, 2026
  3. added this to the milestone on Jun 11, 2026
  4. ajianaz commented on Jun 11, 2026

    @ajianaz
    CollaboratorAuthor

    🔌 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

    Tool Maps to CLI Description
    uteke_room_remember uteke remember --room <id> Store memory in collaborative room
    uteke_room_recall uteke recall --room <id> Recall full room context
    uteke_room_summary uteke recall --room <id> --summary Get condensed room summary
    uteke_room_list uteke room list List available rooms
    uteke_room_stats uteke room stats <id> Room metadata and participants

    MCP Use Cases

    1. Multi-agent discussion: Claude Code + Cursor both contribute to room via MCP
    2. Session continuation: Agent starts new session → uteke_room_recall → full context restored
    3. Cross-tool collaboration: Copilot in VS Code + Claude in terminal share same room
    4. Onboarding: New agent joins → uteke_room_summary → instant catch-up

    Updated Acceptance Criteria (add to existing)

    • uteke_room_remember MCP tool (room + author + type + tags)
    • uteke_room_recall MCP tool (full room context with author attribution)
    • uteke_room_summary MCP tool (condensed top-K diverse results)
    • uteke_room_list MCP tool
    • uteke_room_stats MCP tool
    • Room context included in uteke_recall when room_id provided
    • Authentication supports room-scoped permissions

    Dependency 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).

  5. added a commit that references this issue on Jun 12, 2026
  6. added a commit that references this issue on Aug 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementpriority:highscope:corev0.1.0

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions