Skip to content

Commit cc3483b

Browse files
dr-frmrajspig
andauthored
refactor: MCP server improvements (plastic-labs#379)
* refactor: MCP server improvements * feat: add missing tools and polish descriptions. Add inspect_workspace, list_workspaces, inspect_session, get_session_message, and get_session_summaries tools. Fix CORS preflight handling and default route path. Extract shared formatting helpers for messages and summaries. Trim redundant tool descriptions. * chore: cr updates * chore: cr * fix: adding pagnation * fix: use nanoid to match Honcho's server-side ID format * fix: simplified tool list. 10 removed, in favor of more unified tools * docs: clarifying language * docs: updating agentic dev & MCP.mdx docs * docs: minor fix * fix: adding codex * chore: updating with latest SDK * docs: update * fix: adding assistantName config * chore: clarifying language --------- Co-authored-by: ajspig <dragon@monstercode.com>
1 parent a5423b5 commit cc3483b

18 files changed

Lines changed: 2078 additions & 2746 deletions

File tree

docs/v3/documentation/introduction/vibecoding.mdx

Lines changed: 62 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,79 @@
11
---
2-
title: "AI-Powered Honcho Setup"
2+
title: "Agentic Development"
33
icon: "wand-magic-sparkles"
4-
description: "Agent skills and starter prompt for building with Honcho"
5-
sidebarTitle: 'Vibecoding Setup'
4+
description: "Agent skills, MCP server, and tools for building with Honcho"
5+
sidebarTitle: 'Agentic Development'
66
---
77

8-
These docs are designed to be easily consumable by LLMs. Each page has a button that lets you copy the page as Markdown or paste directly into ChatGPT or Claude.
98

10-
We follow the llms.txt standard. There are both an llms.txt and llms-full.txt available:
9+
## MCP Server
1110

12-
- [llms.txt](/llms.txt)
13-
- [llms-full.txt](/llms-full.txt)
11+
The fastest way to give any AI tool persistent memory is through the Honcho MCP server. It works with any client that supports the Model Context Protocol.
12+
13+
**Get started in 2 minutes:**
14+
15+
1. Get an API key at [app.honcho.dev](https://app.honcho.dev)
16+
2. Add the config for your client below
17+
3. Restart your client
18+
19+
See the [full MCP documentation](/v3/guides/integrations/mcp) for all available tools, advanced configuration, and setup instructions for every supported client.
20+
21+
<CodeGroup>
22+
```json Claude Desktop
23+
{
24+
"mcpServers": {
25+
"honcho": {
26+
"command": "npx",
27+
"args": [
28+
"mcp-remote",
29+
"https://mcp.honcho.dev",
30+
"--header",
31+
"Authorization:${AUTH_HEADER}",
32+
"--header",
33+
"X-Honcho-User-Name:${USER_NAME}"
34+
],
35+
"env": {
36+
"AUTH_HEADER": "Bearer hch-your-key-here",
37+
"USER_NAME": "YourName"
38+
}
39+
}
40+
}
41+
}
42+
```
43+
44+
```json Cursor
45+
{
46+
"mcpServers": {
47+
"honcho": {
48+
"url": "https://mcp.honcho.dev",
49+
"headers": {
50+
"Authorization": "Bearer hch-your-key-here",
51+
"X-Honcho-User-Name": "YourName"
52+
}
53+
}
54+
}
55+
}
56+
```
57+
58+
```bash Claude Code
59+
claude mcp add honcho \
60+
--transport http \
61+
--url "https://mcp.honcho.dev" \
62+
--header "Authorization: Bearer hch-your-key-here" \
63+
--header "X-Honcho-User-Name: YourName"
64+
```
65+
</CodeGroup>
1466

1567
---
1668

1769
## Claude Code Plugin
1870

19-
20-
Use Honcho to build with Honcho! The [plugin](/v3/guides/integrations/claudecode) provides claude code persistent memory that survives context wipes and session restarts.
71+
Use Honcho to build with Honcho! The [plugin](/v3/guides/integrations/claudecode) provides Claude Code persistent memory that survives context wipes and session restarts.
2172

2273
```bash
2374
/plugin marketplace add plastic-labs/claude-honcho
24-
/plugin install honcho@honcho # Tools for Claude to use Honcho to manage it's own context
25-
/plugin install honcho-dev@honcho # Skills to teach claude how to integrate Honcho
75+
/plugin install honcho@honcho # Tools for Claude to use Honcho to manage its own context
76+
/plugin install honcho-dev@honcho # Skills to teach Claude how to integrate Honcho
2677
```
2778

2879
The marketplace also includes all the agent skills below, so you can use `/honcho-dev:integrate` directly after installing.

docs/v3/guides/integrations/mcp.mdx

Lines changed: 250 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,33 @@
11
---
22
title: "Model Context Protocol (MCP)"
33
icon: 'star-of-life'
4-
description: "Use Honcho in Claude Desktop"
4+
description: "Give any AI tool persistent memory with the Honcho MCP server"
55
sidebarTitle: 'MCP'
66
---
77

8-
You can let Claude use Honcho to manage its own memory in the native desktop app by using the Honcho MCP integration! Follow these steps:
8+
The Honcho MCP server gives any MCP-compatible AI tool persistent memory and personalization. Connect it once and your AI assistant learns who you are, remembers your preferences, and gets better over time — across every conversation.
99

10-
1. Go to https://app.honcho.dev and get an API key. Then go to Claude Desktop and navigate to custom MCP servers.
10+
**Server URL:** `https://mcp.honcho.dev`
1111

1212
<Note>
13-
If you don't have node installed you will need to do that. Claude Desktop or Claude Code can help!
13+
You'll need an API key from [app.honcho.dev](https://app.honcho.dev) to use the hosted MCP server.
1414
</Note>
1515

16-
2. Add Honcho to your Claude desktop config. You must provide a username for Honcho to refer to you as -- preferably what you want Claude to actually call you.
16+
## Client Setup
17+
18+
Pick your client below and add the config. After adding, **restart the client fully** for changes to take effect.
19+
20+
### Claude Desktop
21+
22+
<Tabs>
23+
<Tab title="macOS">
24+
Edit `~/Library/Application Support/Claude/claude_desktop_config.json`:
25+
</Tab>
26+
<Tab title="Windows">
27+
Edit `%APPDATA%\Claude\claude_desktop_config.json`:
28+
</Tab>
29+
</Tabs>
30+
1731
```json
1832
{
1933
"mcpServers": {
@@ -28,15 +42,202 @@ If you don't have node installed you will need to do that. Claude Desktop or Cla
2842
"X-Honcho-User-Name:${USER_NAME}"
2943
],
3044
"env": {
31-
"AUTH_HEADER": "Bearer <your-honcho-key>",
32-
"USER_NAME": "<your-name>"
45+
"AUTH_HEADER": "Bearer hch-your-key-here",
46+
"USER_NAME": "YourName"
3347
}
3448
}
3549
}
3650
}
3751
```
3852

39-
You may customize your assistant name and/or workspace ID. Both are optional.
53+
<Tip>
54+
After saving, fully quit and relaunch Claude Desktop. The Honcho tools should appear in the tool picker.
55+
</Tip>
56+
57+
For best results, create a project and paste these [instructions](https://raw.githubusercontent.com/plastic-labs/honcho/refs/heads/main/mcp/instructions.md) into the "Project Instructions" field so Claude knows how to use the memory tools.
58+
59+
### Claude Code
60+
61+
```bash
62+
claude mcp add honcho \
63+
--transport http \
64+
--url "https://mcp.honcho.dev" \
65+
--header "Authorization: Bearer hch-your-key-here" \
66+
--header "X-Honcho-User-Name: YourName"
67+
```
68+
69+
Or if you prefer the [Claude Code Honcho plugin](/v3/guides/integrations/claudecode) for a deeper integration with persistent memory, git awareness, and agent skills:
70+
71+
```bash
72+
/plugin marketplace add plastic-labs/claude-honcho
73+
```
74+
75+
### Codex
76+
77+
Add to `~/.codex/config.toml`:
78+
79+
```toml
80+
[mcp_servers.honcho]
81+
command = "npx"
82+
args = [
83+
"mcp-remote",
84+
"https://mcp.honcho.dev",
85+
"--header",
86+
"Authorization:Bearer hch-your-key-here",
87+
"--header",
88+
"X-Honcho-User-Name:YourName"
89+
]
90+
```
91+
92+
<Note>
93+
Codex only supports stdio transport, so it uses `mcp-remote` as a bridge. Restart both the Codex CLI and VS Code extension after editing.
94+
</Note>
95+
96+
### Cursor
97+
98+
Cursor supports MCP servers natively via HTTP. Add to your global config at `~/.cursor/mcp.json` or per-project at `.cursor/mcp.json`:
99+
100+
```json
101+
{
102+
"mcpServers": {
103+
"honcho": {
104+
"url": "https://mcp.honcho.dev",
105+
"headers": {
106+
"Authorization": "Bearer hch-your-key-here",
107+
"X-Honcho-User-Name": "YourName"
108+
}
109+
}
110+
}
111+
}
112+
```
113+
114+
Alternatively, go to **Cursor Settings → MCP** and add a new HTTP server with the URL and headers above.
115+
116+
### Windsurf
117+
118+
Add to `~/.codeium/windsurf/mcp_config.json`:
119+
120+
```json
121+
{
122+
"mcpServers": {
123+
"honcho": {
124+
"serverUrl": "https://mcp.honcho.dev",
125+
"headers": {
126+
"Authorization": "Bearer hch-your-key-here",
127+
"X-Honcho-User-Name": "YourName"
128+
}
129+
}
130+
}
131+
}
132+
```
133+
134+
<Note>
135+
Windsurf uses `serverUrl` instead of `url`.
136+
</Note>
137+
138+
### VS Code (Copilot Chat)
139+
140+
Add to your workspace `.vscode/mcp.json`:
141+
142+
```json
143+
{
144+
"servers": {
145+
"honcho": {
146+
"type": "http",
147+
"url": "https://mcp.honcho.dev",
148+
"headers": {
149+
"Authorization": "Bearer hch-your-key-here",
150+
"X-Honcho-User-Name": "YourName"
151+
}
152+
}
153+
}
154+
}
155+
```
156+
157+
Or add to your User Settings JSON (`Cmd+Shift+P` → "Preferences: Open User Settings (JSON)"):
158+
159+
```json
160+
{
161+
"mcp": {
162+
"servers": {
163+
"honcho": {
164+
"type": "http",
165+
"url": "https://mcp.honcho.dev",
166+
"headers": {
167+
"Authorization": "Bearer hch-your-key-here",
168+
"X-Honcho-User-Name": "YourName"
169+
}
170+
}
171+
}
172+
}
173+
}
174+
```
175+
176+
### Cline
177+
178+
Cline supports remote MCP servers natively. Open Cline's MCP settings at:
179+
180+
<Tabs>
181+
<Tab title="macOS">
182+
`~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json`
183+
</Tab>
184+
<Tab title="Windows">
185+
`%APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json`
186+
</Tab>
187+
</Tabs>
188+
189+
```json
190+
{
191+
"mcpServers": {
192+
"honcho": {
193+
"url": "https://mcp.honcho.dev",
194+
"headers": {
195+
"Authorization": "Bearer hch-your-key-here",
196+
"X-Honcho-User-Name": "YourName"
197+
}
198+
}
199+
}
200+
}
201+
```
202+
203+
Or add it via the Cline sidebar: click the MCP Servers icon → **Configure****Remote Servers**.
204+
205+
### Zed
206+
207+
Add to `~/.config/zed/settings.json`:
208+
209+
```json
210+
{
211+
"context_servers": {
212+
"honcho": {
213+
"url": "https://mcp.honcho.dev",
214+
"headers": {
215+
"Authorization": "Bearer hch-your-key-here",
216+
"X-Honcho-User-Name": "YourName"
217+
}
218+
}
219+
}
220+
}
221+
```
222+
223+
<Note>
224+
Zed uses `context_servers` instead of `mcpServers`. Native HTTP support requires Zed v0.214.5 or later.
225+
</Note>
226+
227+
---
228+
229+
## Optional Configuration
230+
231+
You can customize the assistant name and workspace ID by adding extra headers. Both are optional.
232+
233+
| Header | Default | Description |
234+
|--------|---------|-------------|
235+
| `Authorization` | *required* | `Bearer hch-your-key-here` |
236+
| `X-Honcho-User-Name` | *required* | What the AI should call you |
237+
| `X-Honcho-Assistant-Name` | `"Assistant"` | Name for the AI peer |
238+
| `X-Honcho-Workspace-ID` | `"default"` | Isolate memory per project |
239+
240+
Example with all headers (Claude Desktop format):
40241

41242
```json
42243
{
@@ -56,18 +257,52 @@ You may customize your assistant name and/or workspace ID. Both are optional.
56257
"X-Honcho-Workspace-ID:${WORKSPACE_ID}"
57258
],
58259
"env": {
59-
"AUTH_HEADER": "Bearer <your-honcho-key>",
60-
"USER_NAME": "<your-name>",
61-
"ASSISTANT_NAME": "<your-assistant-name>",
62-
"WORKSPACE_ID": "<your-custom-workspace-id>"
260+
"AUTH_HEADER": "Bearer hch-your-key-here",
261+
"USER_NAME": "YourName",
262+
"ASSISTANT_NAME": "Claude",
263+
"WORKSPACE_ID": "my-project"
63264
}
64265
}
65266
}
66267
}
67268
```
68269

69-
3. Restart the Claude Desktop app. Upon relaunch, it should start Honcho and the tools should be available!
270+
---
271+
272+
## Available Tools
273+
274+
The recommended flow for a standard conversation uses `create_session` + `add_messages_to_session` + `chat`. See the [full instructions](https://raw.githubusercontent.com/plastic-labs/honcho/refs/heads/main/mcp/instructions.md) for a complete walkthrough.
275+
276+
**Workspace**`inspect_workspace`, `list_workspaces`, `search`, `get_metadata`, `set_metadata`
277+
278+
**Peers**`create_peer`, `list_peers`, `chat`, `get_peer_card`, `set_peer_card`, `get_peer_context`, `get_representation`
279+
280+
**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`
281+
282+
**Conclusions**`list_conclusions`, `query_conclusions`, `create_conclusions`, `delete_conclusion`
283+
284+
**System**`schedule_dream`, `get_queue_status`
285+
286+
---
287+
288+
## Verify It Works
289+
290+
After setup, try asking your AI assistant:
291+
292+
> "What do you know about me?"
293+
294+
On the first conversation there won't be much — but after a few exchanges, Honcho's background reasoning will start building a representation of you. Ask again after a couple of conversations and you'll see the difference.
295+
296+
---
297+
298+
## Troubleshooting
70299

71-
4. Finally, Claude needs instructions on how to use Honcho. The Desktop app doesn't allow you to add system prompts directly, but you can create a project and paste these [instructions](https://raw.githubusercontent.com/plastic-labs/honcho/refs/heads/main/mcp/instructions.md) into the "Project Instructions" field.
300+
| Problem | Fix |
301+
|---------|-----|
302+
| Tools don't show up | Make sure you fully restarted the client after adding the config. |
303+
| Authorization errors | Check your API key at [app.honcho.dev](https://app.honcho.dev). It should start with `hch-`. |
304+
| `npx` not found | Install Node.js — your AI assistant can help with this. |
305+
| "No personalization insights found" | Normal for new users. Honcho needs a few conversations to build context. |
306+
| Connection timeouts | Check that `https://mcp.honcho.dev` is accessible from your network. |
72307

73-
Claude should then query for insights before responding and write your messages to storage! If you come up with more creative ways to get Claude to manage its own memory with Honcho, feel free to [let us know](https://discord.gg/plasticlabs) or make a PR on this [repo](https://github.com/plastic-labs/honcho/tree/main/mcp)!
308+
Need help? Join us on [Discord](https://discord.gg/honcho) or open an issue on [GitHub](https://github.com/plastic-labs/honcho/tree/main/mcp).

0 commit comments

Comments
 (0)