Windsurf Integration Example
September 11, 2026 · View on GitHub
Applies to the current boss-agent-cli open-capability CLI contract as of August 10, 2026.
Windsurf is Codeium's agentic IDE. Cascade is the primary agent surface and supports both MCP servers and project-level .windsurfrules. This guide covers two options: native MCP integration (recommended) and rules-file integration (fallback).
Good fit when
- you want Cascade to run candidate or recruiter workflows through one structured interface
- you want
bossregistered as MCP tools instead of pasting terminal commands - you already have project rules in
.windsurfrulesand want to add BOSS Zhipin constraints
Minimal integration
Windsurf supports two approaches. Choose the one that fits your setup.
Option 1: MCP server integration (recommended)
In Windsurf Settings → Cascade → MCP Servers, add:
{
"mcpServers": {
"boss-agent-cli": {
"command": "uv",
"args": [
"--directory",
"/absolute/path/to/boss-agent-cli",
"run",
"python",
"mcp-server/server.py"
]
}
}
}
Once enabled, Cascade will enumerate all 77 implemented MCP tools, including boss_wizard, candidate search/apply/chat workflows, recruiter candidate workflows, local resume tools, and AI helpers.
Option 2: .windsurfrules integration
Append guidance like this to the project root .windsurfrules:
## BOSS Zhipin job-hunt capability
When the task involves job discovery, job-detail inspection, or local job organization:
1. Run `boss schema` first to learn the capability surface and argument shapes
2. Then run `boss status` to verify authentication
3. If not logged in, run `boss login` and ask the user to scan if needed
4. Use `boss search`, preferably with `--welfare` for precise filtering
5. Use `boss detail <security_id>` once a hit looks promising
6. Use `boss shortlist add`, `boss apply`, or `boss greet` according to the user's goal
7. Consume stdout JSON only; when `ok=false`, read `error.recovery_action` before retrying
Minimal command chain:
boss schema
boss status
boss search "Golang" --city 广州 --welfare "双休,五险一金"
boss detail <security_id>
boss shortlist add <security_id> <job_id>
Fields to parse
ok: whether the command succeededdata: jobs, details, or action resultshints.next_actions: suggested next commanderror.code: recovery routingerror.recovery_action: how Cascade should recover
Recovery flow
Recommended order:
boss doctor
boss status
boss login
Common branches:
AUTH_REQUIRED/AUTH_EXPIRED: runboss loginagainINVALID_PARAM: return toboss schemaand validate parameter namesRATE_LIMITED: wait before retrying; do not continue sensitive automationACCOUNT_RISK: stop the workflow, preserve its checkpoint, and resume only after the account-risk condition is resolvedENVIRONMENT_RISK: stop the workflow the same way; do not refresh tokens, re-login, or retry, and resume only after the user has confirmed the page state in the same dedicated browser profile
Advanced ideas
- Hook
boss ai reply <message>andboss ai chat-coach <chat>into Cascade so it can help with communication quality - Use
boss statsandboss shortlist_listfor local-state summaries; useboss_digestorboss_wizardfor platform conversation workflows