Skip to main content
Glama
whimsicality-mcp

whimsicality-mcp

Official

whimsicality-mcp

Ein MCP (Model Context Protocol)-Server, der KI-Agenten persistenten Speicher bietet — Kontextspeicherung, Fakten, Pläne, RAG-Suche, Code-Snippets und Gesprächskompression, die über Sitzungen und Prozesse hinweg erhalten bleiben.

Funktioniert mit jedem MCP-kompatiblen Agenten: Devin CLI, Claude Desktop, Cursor und anderen.

Schnellstart

# Install globally
npm install -g whimsicality-mcp

# Or run without installing
npx whimsicality-mcp

Fügen Sie es dann zur MCP-Konfiguration Ihres Agenten hinzu:

{
  "mcpServers": {
    "whimsicality": {
      "command": "npx",
      "args": ["whimsicality-mcp"]
    }
  }
}

Das war's. Der Server funktioniert sofort mit diskbasierter Persistenz — keine nativen Abhängigkeiten erforderlich. Daten werden in ~/.whimsicality/kernel-storage/ gespeichert.

Related MCP server: Memory MCP

Werkzeuge

Der Server stellt 14 Werkzeuge bereit, alle mit dem Präfix whim_:

Tool

Zweck

whim_context_set / get / list / delete

Persistente Textkontext-Slots

whim_facts_save / get / list

Schlüssel-Wert-Fakten (Benutzerpräferenzen, Projektentscheidungen)

whim_plan_save / get

Plandokumente für langfristige Arbeit

whim_rag_index / search

Dokumentenindizierung und semantische Suche

whim_snippet_save / search

Wiederverwendbare Code-Snippets

whim_compact

Komprimiert Gesprächsverlauf in Zusammenfassungen

Wie Agenten es verwenden sollten

Zu Beginn der Sitzung — Zustand von früheren Agenten wiederherstellen:

1. whim_plan_get({})              → read the current plan
2. whim_facts_list({})            → list all facts
3. whim_facts_get({name: "..."})  → read relevant facts
4. whim_context_list({})          → list all context slots
5. whim_context_get({key: "..."}) → read relevant slots

Während der Arbeit — Zustand für den nächsten Agenten speichern:

whim_plan_save({plan: "updated plan with progress and next steps"})
whim_facts_save({name: "new_fact", value: "..."})
whim_context_set({key: "what_i_learned", text: "..."})

Backends

Der Server unterstützt vier Möglichkeiten, den Kernel zu finden, die in dieser Reihenfolge ausprobiert werden:

1. Disk-Fallback (Standard, keine Einrichtung)

Funktioniert sofort. Daten werden in einer JSON-Datei unter ~/.whimsicality/kernel-storage/whim-mcp-store.json gespeichert. Wortüberlappungssuche für RAG/Snippets. Keine nativen Abhängigkeiten.

2. Vorgefertigtes Kernel-Binary (einfachstes Upgrade)

npm install @whimsicalitylabs/kernel-prebuilt

Plattformspezifische vorgefertigte Binaries werden über npm optionalDependencies verteilt. Der Server findet das Binary automatisch in node_modules.

Hinweis: Vorgefertigte Binaries sind noch nicht für alle Plattformen verfügbar. Siehe kernel-prebuilt für den Status.

3. Auf ein vorhandenes Binary zeigen

{
  "mcpServers": {
    "whimsicality": {
      "command": "npx",
      "args": ["whimsicality-mcp"],
      "env": {
        "WHIMSICALITY_KERNEL_BIN": "/path/to/whimsicality-kernel"
      }
    }
  }
}

4. Aus dem Quellcode bauen

Klonen Sie den Rust-Workspace und bauen Sie:

git clone https://github.com/WhimsicalityLabs/whimsicality-kernel.git
cd whimsicality-kernel
cargo build --release

Setzen Sie dann WHIMSICALITY_KERNEL_BIN auf target/release/whimsicality-kernel.

Was der Kernel hinzufügt

Der Rust-Kernel bietet:

  • Abgestufter Speicher: heiß (RAM) → warm (mmap) → kalt (zstd auf Disk) mit automatischer Promotion/Demotion

  • Inhaltsadressierte Deduplizierung: identische Werte teilen Speicher über blake3-Hashing

  • Lock-freier Hot Path: DashMap für gleichzeitige Lesezugriffe

  • Nur-Anhängen-Sitzungsprotokoll: bincode-Einträge mit Verzweigung/Forking

  • Strukturierte Kontextzusammenstellung: benannte Variablen, keine flachen Token-Streams

Wenn der Kernel verfügbar ist, schreibt der Server doppelt in den Kernel und auf die Disk. Dies bietet den schnellen In-Sitzungs-Zugriff des Kernels plus Disk-Persistenz für zuverlässige sitzungsübergreifende Nutzung (die heiße Ebene des Kernels ist nur RAM und geht beim Prozessende verloren).

Konfiguration

Die gesamte Konfiguration erfolgt über Umgebungsvariablen:

Variable

Standard

Beschreibung

WHIMSICALITY_STORAGE_DIR

~/.whimsicality/kernel-storage

Stammverzeichnis für alle gespeicherten Daten

WHIMSICALITY_KERNEL_BIN

(automatisch erkannt)

Pfad zum Rust-Kernel-Binary

WHIMSICALITY_HOT_BUDGET_MB

256

RAM-Budget für die heiße Ebene in MB (nur Kernel)

Entwicklung

git clone https://github.com/WhimsicalityLabs/Whimsicality-MCP.git
cd whimsicality-mcp
npm install
npm run build
node bin/whimsicality-mcp.js

Lizenz

MIT

Available Tools

14 tools
whim_compactA

Truncate conversation history to fit a token budget. Keeps first and last messages intact, truncates the middle. This is truncation, not summarization.

Inputs: messages (required), maxTokens.

whim_context_deleteB

Delete a context slot.

Inputs: key (required), namespace.

whim_context_getB

Retrieve text from a named context slot.

Inputs: key (required), namespace.

whim_context_listB

List all context slot keys.

Inputs: namespace.

whim_context_setA

Store text in a named context slot. Use for persistent memory that survives across agent sessions.

Inputs: key (required), text (required), namespace.

whim_facts_getC

Retrieve a named fact.

Inputs: name (required).

whim_facts_listC

List all saved fact names.

Inputs: no named parameters.

whim_facts_saveB

Save a named fact. Facts are key-value pairs that persist across sessions.

Inputs: name (required), value (required).

whim_plan_getC

Retrieve a saved plan.

Inputs: name.

whim_plan_saveA

Save a plan document. The plan persists across sessions and can be retrieved later by another agent.

Inputs: plan (required), name.

whim_rag_indexB

Index a document for keyword search retrieval.

Inputs: id (required), text (required).

whim_snippet_saveB

Save a reusable code snippet.

Inputs: code (required), name (required), language (required), description.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.3/5.0

    Scored across 14 tools

    Disambiguation4/5

    Most tools have distinct purposes: facts, context slots, RAG search, plans, snippets, and compaction each serve different needs. However, facts and context both act as persistent key-value stores, which could cause some confusion, though the descriptions clarify context as memory and facts as factual data.

    Naming Consistency4/5

    The naming follows a consistent pattern of 'whim_<resource>_<action>' for most tools (e.g., whim_facts_get, whim_context_set, whim_rag_search). Minor exceptions include whim_compact, which lacks a resource category, and slight verb placement variations, but overall the pattern is predictable.

    Tool Count4/5

    14 tools is a reasonable count for a multi-purpose memory and utility server. Each tool covers a distinct functional area, though some areas like facts and context could potentially be merged, but the count is within the well-scoped range and does not feel excessive.

    Completeness3/5

    The server covers core operations for facts, context, and RAG, but has notable gaps: no delete for facts, plans, or snippets; no list for plans or snippets; and no way to retrieve a snippet by name (only search). These missing operations may force agents to work around or leave orphaned data.

    Maintenance

    ActivityInactive
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      D
      maintenance
      Provides AI agents with persistent, searchable memory that survives across conversations using semantic search, temporal versioning, and smart organization. Enables long-term context retention and cross-session continuity for AI assistants.
      14
      -
    • F
      license
      Not graded
      quality
      D
      maintenance
      Provides persistent AI agent memory using a local vector database for long-term semantic storage and short-term session scratchpads. It enables low-latency memory operations including search, storage, and bulk management without external cloud dependencies.
      -
    • A
      license
      Not graded
      quality
      D
      maintenance
      Provides persistent memory storage for AI agents with full-text search, tagging, and importance levels, enabling agents to store and retrieve memories efficiently.
      MIT