Applies to the current boss-agent-cli low-risk CLI contract as of May 18, 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).
- you want Cascade to search, inspect, and organize jobs while sensitive actions stay manual
- you want
bossregistered as MCP tools instead of pasting terminal commands - you already have project rules in
.windsurfrulesand want to add BOSS Zhipin constraints
Windsurf supports two approaches. Choose the one that fits your setup.
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 the default low-risk MCP surface, including boss_search, boss_detail, boss_show, boss_shortlist_*, local resume tools, and AI helpers. Sensitive tools such as greet/apply/chat/candidate workflows are not exposed by default.
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 <security_id> <job_id>` for local organization; outbound action stays manual on the official website
7. Consume stdout JSON only; when `ok=false`, read `error.recovery_action` before retryingMinimal command chain:
boss schema
boss status
boss search "Golang" --city 广州 --welfare "双休,五险一金"
boss detail <security_id>
boss shortlist add <security_id> <job_id>ok: whether the command succeededdata: jobs, details, or action resultshints.next_actions: suggested next commanderror.code: recovery routingerror.recovery_action: how Cascade should recover
Recommended order:
boss doctor
boss status
boss loginCommon 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 automation and use the official website manually
- 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; platform conversation digests are blocked by default