Skip to main content

Agent Setup

Per-agent configuration instructions for connecting BAP to your AI coding agent.

Claude Code

With slim mode (recommended):
BAP is also available as a Claude Code plugin. Install with claude plugin add bap for automatic setup.

Codex CLI

Codex Desktop

Add to ~/.codex/config.toml:

Claude Desktop

Add to claude_desktop_config.json:
On native Windows (not WSL), wrap the command with cmd /c:

Cursor

Add to your Cursor MCP settings (.cursor/mcp.json in your project or global config):

Windsurf

Add to your Windsurf MCP configuration:

GitHub Copilot

Add to your VS Code settings.json:

Gemini CLI

Generic MCP Client

Any MCP-compatible client can connect to BAP. The server uses stdio transport:
  • Command: npx
  • Args: ["-y", "@browseragentprotocol/mcp"]
  • Transport: stdio

Common Flags

Add these to the args array as needed: Example with multiple flags:

CLI Skill Installation

For CLI-based agents that do not use MCP, install the BAP skill file instead:
This auto-detects installed agents and copies the appropriate skill file. Supports 13 platforms including Claude Code, Codex CLI, Gemini CLI, Cursor, GitHub Copilot, Windsurf, Roo Code, Amp, and more.