Skip to main content
Glama
whimsicality-mcp

whimsicality-mcp

Official

whimsicality-mcp

AI 에이전트에 영구 메모리(세션과 프로세스를 넘어 유지되는 컨텍스트 저장, 사실, 계획, RAG 검색, 코드 스니펫, 대화 압축)를 제공하는 MCP(Model Context Protocol) 서버입니다.

MCP 호환 에이전트와 함께 작동합니다: Devin CLI, Claude Desktop, Cursor 등.

빠른 시작

# Install globally
npm install -g whimsicality-mcp

# Or run without installing
npx whimsicality-mcp

그런 다음 에이전트의 MCP 구성에 추가하세요:

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

끝입니다. 서버는 기본적으로 디스크 기반 영속성으로 즉시 작동하며, 네이티브 종속성이 필요 없습니다. 데이터는 ~/.whimsicality/kernel-storage/에 저장됩니다.

Related MCP server: Memory MCP

도구

서버는 whim_ 접두사가 붙은 14개의 도구를 노출합니다:

도구

용도

whim_context_set / get / list / delete

영구 텍스트 컨텍스트 슬롯

whim_facts_save / get / list

키-값 사실 (사용자 기본 설정, 프로젝트 결정 사항)

whim_plan_save / get

장기 작업을 위한 계획 문서

whim_rag_index / search

문서 인덱싱 및 의미 검색

whim_snippet_save / search

재사용 가능한 코드 스니펫

whim_compact

대화 기록을 요약으로 압축

에이전트가 사용하는 방법

세션 시작 시 — 이전 에이전트의 상태 복구:

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

작업 중 — 다음 에이전트를 위한 상태 저장:

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: "..."})

백엔드

서버는 커널을 찾는 네 가지 방법을 순서대로 지원합니다:

1. 디스크 폴백 (기본값, 설정 불필요)

즉시 작동합니다. 데이터는 ~/.whimsicality/kernel-storage/whim-mcp-store.json의 JSON 파일에 유지됩니다. RAG/스니펫에 대한 단어 중복 검색. 네이티브 종속성이 없습니다.

2. 사전 빌드된 커널 바이너리 (가장 쉬운 업그레이드)

npm install @whimsicalitylabs/kernel-prebuilt

npm optionalDependencies를 통해 배포되는 플랫폼별 사전 빌드 바이너리. 서버는 node_modules에서 바이너리를 자동으로 찾습니다.

참고: 사전 빌드된 바이너리가 아직 모든 플랫폼에서 제공되는 것은 아닙니다. 상태는 kernel-prebuilt를 참조하세요.

3. 기존 바이너리 가리키기

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

4. 소스에서 빌드

Rust 워크스페이스를 클론하고 빌드하세요:

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

그런 다음 WHIMSICALITY_KERNEL_BIN을 target/release/whimsicality-kernel로 설정하세요.

커널이 추가하는 것

Rust 커널은 다음을 제공합니다:

  • 계층형 스토리지: 핫(RAM) → 웜(mmap) → 콜드(디스크의 zstd) 및 자동 승격/강등

  • 콘텐츠 주소 지정 중복 제거: blake3 해싱을 통한 동일 값 공유 저장

  • 잠금 없는 핫 경로: 동시 읽기를 위한 DashMap

  • 추가 전용 세션 로그: 분기/포크가 가능한 bincode 항목

  • 구조화된 컨텍스트 어셈블리: 평면 토큰 스트림이 아닌 명명된 변수

커널을 사용할 수 있으면 서버는 커널과 디스크 양쪽에 이중 쓰기를 수행합니다. 이를 통해 커널의 빠른 세션 내 액세스와 교차 세션 안정성을 위한 디스크 영속성을 모두 얻을 수 있습니다(커널의 핫 계층은 RAM 전용이며 프로세스 종료 시 손실됨).

구성

모든 구성은 환경 변수를 통해 이루어집니다:

변수

기본값

설명

WHIMSICALITY_STORAGE_DIR

~/.whimsicality/kernel-storage

모든 저장 데이터의 루트 디렉터리

WHIMSICALITY_KERNEL_BIN

(자동 검색)

Rust 커널 바이너리 경로

WHIMSICALITY_HOT_BUDGET_MB

256

핫 계층 RAM 예산(MB) (커널 전용)

개발

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

라이선스

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