Install
Add to ~/Library/Application Support/Claude/claude_desktop_config.json
Windows / Linux path
%APPDATA%\Claude\claude_desktop_config.json~/.config/Claude/claude_desktop_config.json{
"mcpServers": {
"io-github-tsyyan-buddie": {
"command": "uvx",
"args": [
"buddie"
],
"env": {
"BUDDIE_GITHUB_TOKEN": "<YOUR_VALUE>",
"VERBATIM_STORE": "./.verbatim",
"BUDDIE_LOG": "~/.cache/buddie/hook.jsonl",
"BUDDIE_FETCH": "on",
"BUDDIE_FINAL": "final_mark in [mandate] of buddie.toml, else none",
"BUDDIE_GATES": "[gates] of buddie.toml",
"BUDDIE_INTRO": "~/.cache/buddie/intro.json",
"BUDDIE_REPOS": "git repos around the working directory",
"GITHUB_TOKEN": "<VALUE>",
"BUDDIE_GITHUB": "on",
"BUDDIE_STORES": "none",
"BUDDIE_LESSONS": "on",
"BUDDIE_NUMBERS": "from the numbers level",
"BUDDIE_SHARED_LOG": "/mnt/project-files/buddie/hook, only if that folder exists",
"BUDDIE_JOURNAL_TEXT": "[journal] text of buddie.toml, else off",
"BUDDIE_CONTEXT_LIMIT": "200000"
}
}
}
}
Restart Claude Desktop to activate the new server.
Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)
Windows / Linux path
.cursor\mcp.json (project) or %USERPROFILE%\.cursor\mcp.json (global).cursor/mcp.json (project) or ~/.cursor/mcp.json (global){
"mcpServers": {
"io-github-tsyyan-buddie": {
"command": "uvx",
"args": [
"buddie"
],
"env": {
"BUDDIE_GITHUB_TOKEN": "<YOUR_VALUE>",
"VERBATIM_STORE": "./.verbatim",
"BUDDIE_LOG": "~/.cache/buddie/hook.jsonl",
"BUDDIE_FETCH": "on",
"BUDDIE_FINAL": "final_mark in [mandate] of buddie.toml, else none",
"BUDDIE_GATES": "[gates] of buddie.toml",
"BUDDIE_INTRO": "~/.cache/buddie/intro.json",
"BUDDIE_REPOS": "git repos around the working directory",
"GITHUB_TOKEN": "<VALUE>",
"BUDDIE_GITHUB": "on",
"BUDDIE_STORES": "none",
"BUDDIE_LESSONS": "on",
"BUDDIE_NUMBERS": "from the numbers level",
"BUDDIE_SHARED_LOG": "/mnt/project-files/buddie/hook, only if that folder exists",
"BUDDIE_JOURNAL_TEXT": "[journal] text of buddie.toml, else off",
"BUDDIE_CONTEXT_LIMIT": "200000"
}
}
}
}
Cursor usually picks up config changes automatically; if the server does not appear, reload the window.
Add to .mcp.json (project) or ~/.claude.json (global)
Windows / Linux path
.mcp.json (project) or %USERPROFILE%\.claude.json (global).mcp.json (project) or ~/.claude.json (global){
"mcpServers": {
"io-github-tsyyan-buddie": {
"command": "uvx",
"args": [
"buddie"
],
"env": {
"BUDDIE_GITHUB_TOKEN": "<YOUR_VALUE>",
"VERBATIM_STORE": "./.verbatim",
"BUDDIE_LOG": "~/.cache/buddie/hook.jsonl",
"BUDDIE_FETCH": "on",
"BUDDIE_FINAL": "final_mark in [mandate] of buddie.toml, else none",
"BUDDIE_GATES": "[gates] of buddie.toml",
"BUDDIE_INTRO": "~/.cache/buddie/intro.json",
"BUDDIE_REPOS": "git repos around the working directory",
"GITHUB_TOKEN": "<VALUE>",
"BUDDIE_GITHUB": "on",
"BUDDIE_STORES": "none",
"BUDDIE_LESSONS": "on",
"BUDDIE_NUMBERS": "from the numbers level",
"BUDDIE_SHARED_LOG": "/mnt/project-files/buddie/hook, only if that folder exists",
"BUDDIE_JOURNAL_TEXT": "[journal] text of buddie.toml, else off",
"BUDDIE_CONTEXT_LIMIT": "200000"
}
}
}
}
The server will be available in the next Claude Code session.
Add to .vscode/mcp.json
Windows / Linux path
.vscode\mcp.json.vscode/mcp.json{
"servers": {
"io-github-tsyyan-buddie": {
"command": "uvx",
"args": [
"buddie"
],
"env": {
"BUDDIE_GITHUB_TOKEN": "<YOUR_VALUE>",
"VERBATIM_STORE": "./.verbatim",
"BUDDIE_LOG": "~/.cache/buddie/hook.jsonl",
"BUDDIE_FETCH": "on",
"BUDDIE_FINAL": "final_mark in [mandate] of buddie.toml, else none",
"BUDDIE_GATES": "[gates] of buddie.toml",
"BUDDIE_INTRO": "~/.cache/buddie/intro.json",
"BUDDIE_REPOS": "git repos around the working directory",
"GITHUB_TOKEN": "<VALUE>",
"BUDDIE_GITHUB": "on",
"BUDDIE_STORES": "none",
"BUDDIE_LESSONS": "on",
"BUDDIE_NUMBERS": "from the numbers level",
"BUDDIE_SHARED_LOG": "/mnt/project-files/buddie/hook, only if that folder exists",
"BUDDIE_JOURNAL_TEXT": "[journal] text of buddie.toml, else off",
"BUDDIE_CONTEXT_LIMIT": "200000"
}
}
}
}
Reload the VS Code window to activate.
Add to ~/.codeium/windsurf/mcp_config.json
Windows / Linux path
%USERPROFILE%\.codeium\windsurf\mcp_config.json~/.codeium/windsurf/mcp_config.json{
"mcpServers": {
"io-github-tsyyan-buddie": {
"command": "uvx",
"args": [
"buddie"
],
"env": {
"BUDDIE_GITHUB_TOKEN": "<YOUR_VALUE>",
"VERBATIM_STORE": "./.verbatim",
"BUDDIE_LOG": "~/.cache/buddie/hook.jsonl",
"BUDDIE_FETCH": "on",
"BUDDIE_FINAL": "final_mark in [mandate] of buddie.toml, else none",
"BUDDIE_GATES": "[gates] of buddie.toml",
"BUDDIE_INTRO": "~/.cache/buddie/intro.json",
"BUDDIE_REPOS": "git repos around the working directory",
"GITHUB_TOKEN": "<VALUE>",
"BUDDIE_GITHUB": "on",
"BUDDIE_STORES": "none",
"BUDDIE_LESSONS": "on",
"BUDDIE_NUMBERS": "from the numbers level",
"BUDDIE_SHARED_LOG": "/mnt/project-files/buddie/hook, only if that folder exists",
"BUDDIE_JOURNAL_TEXT": "[journal] text of buddie.toml, else off",
"BUDDIE_CONTEXT_LIMIT": "200000"
}
}
}
}
Restart Windsurf (or refresh its MCP servers panel) to activate the new server.
Windsurf Next uses ~/.codeium/windsurf-next/mcp_config.json. Devin Desktop (the Windsurf rebrand) uses ~/.config/devin/mcp_config.json and imports the Windsurf file.
Add to ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
Windows / Linux path
%APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json{
"mcpServers": {
"io-github-tsyyan-buddie": {
"command": "uvx",
"args": [
"buddie"
],
"env": {
"BUDDIE_GITHUB_TOKEN": "<YOUR_VALUE>",
"VERBATIM_STORE": "./.verbatim",
"BUDDIE_LOG": "~/.cache/buddie/hook.jsonl",
"BUDDIE_FETCH": "on",
"BUDDIE_FINAL": "final_mark in [mandate] of buddie.toml, else none",
"BUDDIE_GATES": "[gates] of buddie.toml",
"BUDDIE_INTRO": "~/.cache/buddie/intro.json",
"BUDDIE_REPOS": "git repos around the working directory",
"GITHUB_TOKEN": "<VALUE>",
"BUDDIE_GITHUB": "on",
"BUDDIE_STORES": "none",
"BUDDIE_LESSONS": "on",
"BUDDIE_NUMBERS": "from the numbers level",
"BUDDIE_SHARED_LOG": "/mnt/project-files/buddie/hook, only if that folder exists",
"BUDDIE_JOURNAL_TEXT": "[journal] text of buddie.toml, else off",
"BUDDIE_CONTEXT_LIMIT": "200000"
}
}
}
}
Cline reloads cline_mcp_settings.json automatically; if the server does not appear, reload the VS Code window.
Open it from Cline's MCP Servers panel → Configure. Roo Code uses a different file and format.
Configuration
Environment variables this server reads. Secrets stay on your machine.
| Name | Required | Description |
|---|---|---|
| BUDDIE_GITHUB_TOKEN secret | No | GitHub API token used for pr: and ci: anchors (public repos work without one, within rate limits). |
| VERBATIM_STORE | No | Snapshot store used to keep the bytes of every cited source. Default: ./.verbatim |
| BUDDIE_LOG | No | Hook run log; 0 turns it off. Default: ~/.cache/buddie/hook.jsonl |
| BUDDIE_FETCH | No | Set to 0 so the hook uses stored snapshots only instead of downloading cited pages. Default: on |
| BUDDIE_FINAL | No | Regex marking a final answer that must carry anchors at any event; with none, the last message at Stop is the final answer; empty turns the rule off. Default: final_mark in [mandate] of buddie.toml, else none |
| BUDDIE_GATES | No | class=level,... overrides the default levels of the gates. Default: [gates] of buddie.toml |
| BUDDIE_INTRO | No | The intro mode's count per buddie.toml; 0 keeps none. Default: ~/.cache/buddie/intro.json |
| BUDDIE_REPOS | No | dir:dir pairs of repositories used to check repo anchors. Default: git repos around the working directory |
| GITHUB_TOKEN | No | Alternative GitHub API token used for pr: and ci: anchors (public repos work without one, within rate limits). |
| BUDDIE_GITHUB | No | Set to 0 to make no GitHub calls; pr: and ci: anchors become UNCHECKABLE. Default: on |
| BUDDIE_STORES | No | dir:dir extra snapshot stores the hook reads along with the session's own. Default: none |
| BUDDIE_LESSONS | No | Set to 0 for no lessons at SessionStart. Default: on |
| BUDDIE_NUMBERS | No | gap, fail or off: how the receipt judges a number missing from its source. Default: from the numbers level |
| BUDDIE_SHARED_LOG | No | Second log, one file per session; 0 turns it off. Default: /mnt/project-files/buddie/hook, only if that folder exists |
| BUDDIE_JOURNAL_TEXT | No | Set to 1 so the journal also keeps promise sentences, choice and decision cards as text. Default: [journal] text of buddie.toml, else off |
| BUDDIE_CONTEXT_LIMIT | No | Context tokens past which a non-final reply is returned; 0 turns it off. Default: 200000 |