honcho/mcp
ajspig 439f5efeba feat(mcp): search conclusions via search tool
Port of plastic-labs/claude-honcho#113 to the standalone MCP worker.
The search tool only queried the message store, so saved conclusions
were unreachable through search (findable only by paging
list_conclusions or via query_conclusions with a known scope).

search now also queries conclusions in parallel with the message
search, returning {messages, conclusions}. Since the conclusions
query API requires an explicit (observer, observed) pair, the
conclusion leg runs only when peer_id is given (self-conclusions,
matching list_conclusions/query_conclusions defaults) and degrades
to [] on error so search never gets worse than before. Conclusion
results include IDs usable with delete_conclusion.

Also syncs mcp/bun.lock with package.json's @honcho-ai/sdk ^2.1.0
(the lock still recorded ^2.0.0) and points delete_conclusion's
description at query_conclusions/list_conclusions for ID discovery.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-04 16:40:00 -04:00
..
src feat(mcp): search conclusions via search tool 2026-08-04 16:40:00 -04:00
.dev.vars.example feat(mcp): read HONCHO_API_URL env var to support self-hosted Honcho (#575) 2026-04-20 16:13:16 -04:00
.gitignore feat(mcp): read HONCHO_API_URL env var to support self-hosted Honcho (#575) 2026-04-20 16:13:16 -04:00
README.md feat: support OAuth for MCP clients. (#923) 2026-07-21 15:31:09 -04:00
bun.lock feat(mcp): search conclusions via search tool 2026-08-04 16:40:00 -04:00
instructions.md refactor: MCP server improvements (#379) 2026-03-31 17:34:36 -04:00
package.json refactor: MCP server improvements (#379) 2026-03-31 17:34:36 -04:00
tsconfig.json refactor: MCP server improvements (#379) 2026-03-31 17:34:36 -04:00
wrangler.toml refactor: MCP server improvements (#379) 2026-03-31 17:34:36 -04:00

README.md

Honcho MCP Server

A Cloudflare Worker that implements the Model Context Protocol (MCP) for Honcho, providing AI memory and personalization tools to LLM clients like Claude Desktop.

Quickstart: Use the Hosted Server

  1. Get an API key at https://app.honcho.dev
  2. Add Honcho to your Claude Desktop config:
{
  "mcpServers": {
    "honcho": {
      "command": "bunx",
      "args": [
        "mcp-remote",
        "https://mcp.honcho.dev",
        "--header",
        "Authorization:${AUTH_HEADER}"
      ],
      "env": {
        "AUTH_HEADER": "Bearer <your-honcho-key>"
      }
    }
  }
}

Optional Headers

Header Default Description
X-Honcho-Workspace-ID "default" Workspace to operate in

Available Tools

Workspace: inspect_workspace (aggregates metadata, configuration, and peer/session IDs), list_workspaces (enumerates accessible workspaces), search (semantic search scoped by optional peer/session params), get_metadata, set_metadata

Peers: create_peer, list_peers, chat, get_peer_card, set_peer_card, get_peer_context, get_representation

Sessions: create_session, list_sessions, delete_session, clone_session, add_peers_to_session, remove_peers_from_session, get_session_peers, inspect_session, add_messages_to_session, get_session_messages, get_session_message, get_session_context

Conclusions: list_conclusions, query_conclusions, create_conclusions, delete_conclusion

System: schedule_dream, get_queue_status

Architecture

src/
  index.ts              # Worker entry point — parse config, delegate to MCP handler
  server.ts             # createServer() — registers all tools on an McpServer
  config.ts             # HonchoConfig, parseConfig(), createClient()
  types.ts              # ToolContext, result helpers
  tools/
    workspace.ts        # inspect, list, search, metadata
    peers.ts            # CRUD, chat, card, context, representation
    sessions.ts         # CRUD, peers, messages, inspect, context, clone
    conclusions.ts      # list, query, create, delete
    system.ts           # dream, queue status

Built on:

Self-Hosted Honcho

If you run Honcho yourself (for privacy, latency, or offline use), deploy the MCP Worker alongside your instance and set HONCHO_API_URL in its environment.

Local dev (bun run dev): create mcp/.dev.vars:

HONCHO_API_URL=http://127.0.0.1:28000

Deployed Worker:

wrangler secret put HONCHO_API_URL
# paste your URL when prompted

When HONCHO_API_URL is unset the Worker routes to https://api.honcho.dev, so this change is backward-compatible.

Development

Setup

bun install

Local dev

bun dev

Type-check

bun run tsc --noEmit

Test locally

bunx mcp-remote http://localhost:8787 \
  --header "Authorization:Bearer <key>"

Deploy

bun run deploy              # production
bun run deploy:staging      # staging