00 One-Click Auto Setup (Recommended)
Run this first after install — works for most cases.
heropen auto-setup Auto
Automatically detects agents installed on your machine (Cline / Cursor / Windsurf / Claude Code etc.), scans their MCP config files, and injects HeroPen automatically.
pip install heropen heropen auto-setup
If auto-setup doesn't find your tool, or you want to configure manually, continue below.
01 What MCP Configuration Looks Like
All agents use the same JSON format for MCP config — only the file path and minor syntax differ.
Core Config Standard Format
This JSON tells your agent: "start a command named heropen with argument mcp, communicating over stdin/stdout."
{
"mcpServers": {
"heropen": {
"command": "heropen",
"args": ["mcp"],
"disabled": false
}
}
}
02 WorkBuddy
WorkBuddy on Windows has the simplest configuration.
Config File Manual
- Navigate to
C:\Users\YourUser\.workbuddy\ - Create or edit
mcp.json - Paste the following:
{
"mcpServers": {
"heropen": {
"command": "heropen",
"args": ["mcp"],
"disabled": false
}
}
}
- Save the file
- Completely close WorkBuddy (exit from the taskbar, not just the window), then reopen
Multi-MCP Example Example
If you're using both Feishu MCP and HeroPen:
{
"mcpServers": {
"connector-proxy": {
"type": "http",
"url": "http://127.0.0.1:59489/mcp",
"description": "feishu MCP"
},
"heropen": {
"command": "heropen",
"args": ["mcp"],
"disabled": false
}
}
}
03 Cline (VS Code Extension)
Cline is the most popular MCP Agent extension for VS Code.
Config File Location Manual
Windows:
%APPDATA%\Claude\cline_mcp_settings.json
macOS:
~/Library/Application Support/Claude/cline_mcp_settings.json
Linux:
~/.config/Claude/cline_mcp_settings.json
Open the corresponding file and add to mcpServers:
{
"mcpServers": {
"heropen": {
"command": "heropen",
"args": ["mcp"],
"disabled": false
}
}
}
04 Cursor
Cursor's MCP config works at both project level and global level.
Global Config Manual
- Open Cursor → Settings → Features → MCP Servers
- Click "Add MCP Server"
NameenterheropenTypeselectcommandCommandenterheropen mcp- Click Save
Or edit the global config file directly:
# macOS/Linux: ~/.cursor/mcp.json
# Windows: C:\Users\YourUser\.cursor\mcp.json
{
"mcpServers": {
"heropen": {
"command": "heropen",
"args": ["mcp"],
"disabled": false
}
}
}
05 Claude Code CLI
Project-level configuration for Claude Code.
Project Config Manual
Create or edit in your project root:
# .claude/settings.json (relative to project root)
# Or ~/.claude/settings.json (global)
{
"mcpServers": {
"heropen": {
"command": "heropen",
"args": ["mcp"],
"disabled": false
}
}
}
06 Cherry Studio
Cherry Studio has a UI-based configuration.
UI Configuration Manual
- Open Cherry Studio → Settings → MCP Client
- Click "Add MCP Server"
- Name:
heropen - Command:
heropen - Args:
mcp - Save
Or edit the config file directly:
# Windows: %APPDATA%\CherryStudio\mcp.json
# macOS: ~/Library/Application Support/CherryStudio/mcp.json
{
"mcpServers": {
"heropen": {
"command": "heropen",
"args": ["mcp"],
"disabled": false
}
}
}
07 Continue.dev
Continue's global config file.
Global Config Manual
# macOS/Linux: ~/.continue/config.json
# Windows: C:\Users\YourUser\.continue\config.json
{
"experimental": {
"mcpServers": {
"heropen": {
"command": "heropen",
"args": ["mcp"],
"disabled": false
}
}
}
}
08 Verify Configuration
No matter which method you used, run this in your terminal to confirm.
Terminal Verification Confirm
heropen status
If it shows memory count, agent info, and running status, HeroPen is working.
"How many memories does heropen have? Check it"If it answers, you're all set.
Troubleshooting FAQ
- "MCP error -32000: Connection closed" → First check that you have the latest version (
pip install --upgrade heropen), then verify your JSON format is correct - "Command heropen not found" → Python is not in your PATH, use
python -m heropen mcpinstead - Config changes not taking effect → Completely close and restart your agent (not just the window)
- JSON errors on Windows → Save the file as UTF-8 encoding, not UTF-8 with BOM