eruka-mcp

eruka-mcp

MCP server for Eruka context memory. Tells AI agents what it knows, thinks, what's stale, and what it doesn't know.

Open Eruka Dashboard →

crates.io downloads MIT MCP
cargo install eruka-mcp

Knowledge States

Every piece of context has a confidence state — AI agents receive constraint text that prevents hallucination:

StateConfidenceMeaningAgent Behavior
CONFIRMED1.0User verified ground truthUse directly
INFERRED0.45-0.85AI extracted, high confidenceUse with caveat
UNCERTAIN0.05-0.30Was confirmed, now staleFlag as possibly outdated
UNKNOWN0.0Needed but missingDO NOT fabricate

13 MCP Tools

Read, write, search context. Detect gaps. Get constraints. Assess quality. Compress for token efficiency. All via JSON-RPC over stdio or SSE.

Anti-Hallucination

Constraint injection prevents AI agents from making things up. Before generation, Eruka checks readiness and injects: "DO NOT fabricate: revenue. This field is UNKNOWN."

Service Key Auth

Authenticate with eruka_sk_* service keys. Scope enforcement (read/write/admin). Input validation with length limits. Per-key rate limiting.

Tier Gating

Free tier: 8 core tools. Pro tier: +temporal queries, research. Enterprise: all 13 tools including compression and quality scoring.

Tools Reference

ToolDescriptionTier
eruka_get_contextRead context fields by path or prefixFree
eruka_write_contextWrite a field with knowledge stateFree
eruka_search_contextHybrid keyword + vector searchFree
eruka_get_completenessCategory coverage reportFree
eruka_get_gapsList missing knowledge areasFree
eruka_detect_gapsDetect gaps with constraint textFree
eruka_get_constraintAnti-hallucination constraint for a taskFree
eruka_get_voiceBrand voice and tone guidelinesFree
eruka_get_relatedKnowledge graph traversalPro
eruka_add_relationshipAdd entity relationshipPro
eruka_get_context_compressedToken-efficient compressed contextEnterprise
eruka_query_temporalTime-range context queriesPro
eruka_research_gapAuto-research missing knowledgeEnterprise

Quick Start

# Install
cargo install eruka-mcp

# Set environment
export ERUKA_API_URL=https://eruka.dirmacs.com
export ERUKA_API_KEY=eruka_sk_your_key_here

# Add to Claude Desktop (~/.config/claude/claude_desktop_config.json)
{
  "mcpServers": {
    "eruka": {
      "command": "eruka-mcp",
      "args": ["--api-url", "https://eruka.dirmacs.com", "--api-key", "eruka_sk_..."]
    }
  }
}

# Add to Claude Code
claude mcp add eruka -- eruka-mcp --api-url https://eruka.dirmacs.com --api-key eruka_sk_...

Architecture

Claude / Cursor / VS Code AI Client JSON-RPC (stdio/SSE) eruka-mcp this crate HTTPS + API Key Eruka API eruka.dirmacs.com PostgreSQL + pgvector HNSW vector search