Waggle Mcp

io.github.Abhigyan-Shekhar由 GitHub 账号 Abhigyan-Shekhar 发布v0.1.8更新于 Oct 25, 2026

Persistent graph-backed conversational memory for AI agents.

发布方自己的服务:Fenlight

已验证STDIO仅桌面知识与记忆开发者工具

概览

AI 生成的概览

本地优先的记忆层,以图结构保存项目决策与上下文,让 AI 助手能跨会话回忆。

可以做什么
加载项目上下文并检索相关记忆历史,包括决策、约束和待解决问题,并附带证据与来源(prime_context、query_graph)。为特定任务组装精简的上下文包(build_context)。把对话中值得保留的结论写回记忆图(observe_conversation)。在浏览器工作区中获取项目简报、检索权威记忆、提出待人工审批的更正、按提案 ID 应用已批准的更改,并为当前会话加载可移植的 .abhi 图。
适用场景
适合与助手在多个会话中持续处理同一项目,希望决策、需求和偏好被延续而不必反复粘贴上下文的场景。也适合希望以图的形式查看和纠正所存记忆的团队。
运行要求
需在 Python 3.11 或更高版本上用 pipx 安装本地 Python 包,然后运行 setup 与 doctor 并重启客户端。通过环境变量配置:WAGGLE_BACKEND(默认 sqlite,服务部署可用 neo4j)、WAGGLE_DB_PATH、WAGGLE_DEFAULT_TENANT_ID、WAGGLE_MODEL 和 WAGGLE_TRANSPORT。本地使用无需账号或外部数据库,默认 SQLite 存储位于本机。
安装前请注意
通过工具调用返回的记忆会共享给发起请求的 AI 服务,因此本地存储并不意味着模型输入留在设备上。直接编辑图和本地 MCP 操作不受浏览器审批流程约束。浏览器导入内容以未加密形式存于会话存储,关闭聊天并不保证删除。自托管远程部署需要 HTTPS、身份验证、持久存储和备份。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Waggle Mcp,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

[Waggle]

Project memory for humans and AI agents.
Keep decisions, context, and the reasons behind them across conversations.

[PyPI] [Python 3.11+] [MCP compatible] [Apache-2.0]

Install Waggle · Try the browser workspace · Documentation


Keep the context, not just the conversation

Waggle is an open-source, local-first memory layer for AI agents. It stores project knowledge as a graph: what you decided, why it matters, what it depends on, and what has changed. Your next conversation can pick up from that context instead of starting over.

Use Waggle with your MCP client, inspect and edit memory in Graph Studio, or bring a portable memory graph into the browser workspace.

  • Continue across sessions. Recall project decisions, requirements, preferences, and open questions without repeatedly pasting context.
  • Understand the reasoning. Explore relationships, supporting evidence, contradictions, and the history behind a decision.
  • Keep control of corrections. In the WebMCP workspace, agents propose changes; humans approve the exact content before it becomes authoritative.
  • Take memory with you. Export and import .abhi files across supported workflows without tying your graph to one client.
  • Start locally. The default SQLite store lives on your machine. Local use does not require a Waggle account or an external database.

Quick Start

The Python package requires Python 3.11+ and pipx. On macOS, you can install pipx with brew install pipx; see the installation guide for client-specific options.

bash
pipx install waggle-mcppipx ensurepath

Restart your terminal after the first pipx ensurepath, then run:

bash
waggle-mcp setup --yeswaggle-mcp doctor

Restart your MCP client to load Waggle. Setup detects supported clients and writes their configuration; automatic memory behavior uses the client's installed hooks, skills, or project instructions.

To check continuity, ask your agent to remember a project decision, then open a fresh session in the same project and ask what was decided. Keep the same project identifier across sessions.

Choose your client

For clients that accept an mcpServers configuration:

json
{  "mcpServers": {    "waggle": {      "command": "waggle-mcp",      "args": ["serve", "--transport", "stdio"]    }  }}

If the command is not found, run pipx ensurepath and reopen your terminal. Use the troubleshooting guide for installation, startup, and client connection issues.

How memory works

Waggle separates durable project knowledge from the model's context window. An agent retrieves relevant memory when needed and records meaningful outcomes for later conversations.

  1. Capture: record decisions, constraints, preferences, and supporting context.
  2. Connect: link related memories and preserve contradictions and updates.
  3. Recall: retrieve scoped context with evidence and provenance.
  4. Continue: use that context in another session or supported client.

The core MCP workflow uses prime_context to load project context, query_graph to retrieve relevant history, and observe_conversation to record durable outcomes. build_context assembles a compact context pack for a specific task. Tool availability alone does not make an agent use memory automatically; its hooks, skills, or instructions must call these tools.

See the tool reference and configuration reference for the full API and retrieval settings.

Graph Studio

Graph Studio makes project memory inspectable and editable. Browse nodes and relationships, add or remove graph content, inspect source evidence, and review how a memory changed over time.

The browser workspace provides focused views for project context, memories, proposals, and activity. Graph Studio provides the graph-level view of that server-backed memory; private browser imports remain in the workspace tab.

Open Graph Studio

WebMCP — memory in your browser

The Waggle workspace lets a human and a compatible browser agent work with the same project memory. Its WebMCP adapter registers page-level Site tools through document.modelContext.registerTool. This is separate from installing Waggle's MCP server or configuring a remote MCP connector.

Connect and use the workspace

  1. Open the workspace in ChatGPT's built-in browser using a model and account configuration that supports Site tools.
  2. In the address bar, check Site tools → Available site tools and confirm the five Waggle tools are available. Keep this workspace tab open while working with its memory.
  3. Explore the sample project or select Load private .abhi to work with your own graph.
  4. Ask for a project brief or recall a specific decision. On the hosted workspace, use project_id: waggle-webmcp, including after importing your own graph.
  5. To correct a memory, ask the agent to propose a replacement. Review it in Proposals, edit it if needed, and approve the exact value.
  6. Ask the agent to apply the approved proposal using only its actual proposal ID. Recall the decision again to confirm the result and inspect its history.

For example:

text
Call Waggle's get_project_brief with project_id "waggle-webmcp".Use the returned memories to catch me up on this project.

If Site tools are unavailable, check the browser's permissions and configuration. If the browser blocks an apply call, you can use Apply approved change on the approved proposal and confirm the action yourself. This uses the same approval and freshness checks; it does not bypass browser safeguards.

Browser tools

ToolWhat it does
get_project_briefReturns the project's goal, current decisions, constraints, state, and open questions.
recall_memoryFinds current authoritative memories for a query, with supersession provenance when available.
propose_memory_changeCreates a pending correction for human review without changing authoritative memory.
apply_approved_memory_changeApplies the exact approved value using only a proposal ID.
load_abhi_for_sessionLoads a portable graph into this browser tab and returns a brief.

Corrections you can review

mermaid
flowchart LR    A[Agent proposes a correction] --> B[Human reviews and approves]    B --> C[Waggle checks approval and target version]    C --> D[Approved value becomes authoritative]    D --> E[Previous memory stays in history]

Approved content cannot be changed by the applying agent. If the target memory has changed since the proposal was created, the proposal is marked stale instead of overwriting newer information. Application preserves the previous memory and links it to the replacement with an updates edge.

These approval rules govern the WebMCP correction workflow. They are not a claim that every direct graph-editing or local MCP operation requires approval.

Bring your own memory

A .abhi file is Waggle's portable memory graph. The browser importer reads existing memories; it does not ingest a source repository to invent a project brief.

  1. Select Load private .abhi in the workspace.
  2. Choose an unencrypted schema 2.x file, up to 700 KiB compressed and 4 MiB expanded.
  3. Confirm the Private session graph indicator appears. Briefs, recall, proposals, and approvals now use that imported copy.

The import replaces this tab's active workspace; it does not merge with the sample graph, modify your original file, or affect another visitor.

You can also attach the file to a compatible chat and ask:

text
Use Waggle's load_abhi_for_session tool to load this .abhi file intoproject "waggle-webmcp" for this session. Then call get_project_brief.

The agent must be able to read the attachment and provide its bytes as base64. The tool does not accept a local file path or download URL. Use the page's file picker if the chat cannot access the attachment.

See the portable memory format for archive structure and supported operations.

Your data and deployment options

Where you use WaggleWhere memory lives
Local MCP serverSQLite on your machine, at ~/.waggle/waggle.db by default.
Private browser importThis tab's sessionStorage; the importer does not upload the graph to Waggle's backend.
Hosted sample workspaceAn isolated, temporary server-side sample project; not an account-based cloud backup.
Self-hosted remote MCP serverYour configured Neo4j backend and infrastructure.

Browser lifetime. Private imports survive page reloads, and browser session restoration can preserve them. Use the workspace's Reset Demo control to explicitly clear the private copy and return to the sample project. Closing a chat conversation alone is not a guaranteed deletion signal. Browser storage is not encrypted by the importer.

AI services. Attaching a file in chat shares it with that chat provider. Memory returned through tool calls is also shared with the requesting AI service. Local storage does not mean that model inputs stay on your device.

Hosted preview. The public workspace is for trying the browser experience, not durable production storage. Its free hosting can pause when idle, take time to wake, and lose sample state on restart or redeployment. Opening it does not connect to your local Waggle database. The included SQLite preview configuration stores disposable state under /tmp, caps admission at 128 sessions per database, and rejects new sessions at capacity without evicting existing ones.

Self-hosting. The browser preview's governance backend currently requires SQLite. Remote MCP hosting with Neo4j is a separate configuration, not a drop-in replacement for that browser workflow. For remote deployment, configure HTTPS, authentication, persistent storage, and backups. Read the production deployment guide, security model, and hardening checklist before exposing a server publicly.

Development

Waggle uses Python for the memory engine and MCP server, and React/Vite for Graph Studio and the browser workspace.

bash
git clone https://github.com/Abhigyan-Shekhar/Waggle-mcp.gitcd Waggle-mcppython -m venv .venvsource .venv/bin/activate# Windows PowerShell: .venv\Scripts\Activate.ps1python -m pip install -e ".[dev]"
WAGGLE_MODEL=deterministic pytest -qruff check src/ tests/ruff format --check src/ tests/

On PowerShell, set $env:WAGGLE_MODEL="deterministic" before running pytest -q. Deterministic embeddings keep tests offline; use the normal embedding model when evaluating semantic retrieval.

For frontend changes:

bash
npm ci --prefix apps/mcp/graph-uinpm run test:unit --prefix apps/mcp/graph-uinpm run build --prefix apps/mcp/graph-ui

Documentation and contributing

License

Waggle is open source under the Apache License 2.0.

来源:README.md,提交 dc39a8b

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.1.8最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分

其他 Waggle 集成