Installation
Install the STAR Plugin in your AI coding tool
Prerequisites
Before installing the plugin for any tool, make sure you have:
- A Bright API token — create one in Bright under Organization → API Keys or Project → API Keys. See Personal API Key Scopes.
- Your Bright cluster hostname — typically
app.brightsec.com(EU cluster:eu.brightsec.com).
Export both as environment variables so the plugin and the Bright Repeater can read them:
export BRIGHT_HOSTNAME="app.brightsec.com"
export BRIGHT_TOKEN="your-bright-api-token"
Persist these in your shell profile (~/.zshrc,~/.bashrc) so every session has them.
Install for your tool
Each tool has its own native install steps. Follow the README for your tool:
| Tool | Install guide | Registers the MCP server for you | Notes |
|---|---|---|---|
| Cursor | cursor/README.md → Install | Yes — bundled mcp.json | Marketplace install or local clone; supports Cursor Cloud Agents |
| Claude Code | claude-code/README.md → Install | Yes — bundled .mcp.json | CLI marketplace install; supports --agent mode |
| Codex | codex/README.md → Install | No — one extra command | Agents ship as skills (no separate agent type in Codex) |
| GitHub Copilot CLI | github-copilot/README.md → Install | No — one extra command | Agents and skills only; the CLI plugin bundles no MCP config |
| GitHub Copilot coding agent | github-copilot/README.md → Install | Yes — mcp-servers block in the agent frontmatter | Runs on github.com; needs repository secrets and host allowlisting |
| Antigravity CLI | antigravity/README.md → Install | No — edit one config file | Agents ship as skills (no separate agent type) |
| Devin | Devin (Desktop & CLI) | Yes — inherits the Claude package config | No dedicated package — reuses claude-code/ via Claude-manifest compatibility |
All packages use the same Bright MCP server under the hood — the differences are tool-specific plugin mechanics, frontmatter, and how the MCP server gets registered.
Register the Bright MCP server
The plugin ships agents and skills. Those are the instructions; the Bright tools come from the MCP server. For Cursor, Claude Code, and Devin the package bundles an MCP config and there is nothing more to do. For Codex, Copilot CLI, and Antigravity the tool loads MCP servers from its own configuration, so the server has to be registered once — otherwise the agents install correctly and then have nothing to call.
Skipping this step is the most common cause of "the plugin is installed but Bright tools don't appear."
Codex
codex mcp add brightsec --url "https://$BRIGHT_HOSTNAME/mcp" --bearer-token-env-var BRIGHT_TOKENVerify with codex mcp list — brightsec should be enabled with BRIGHT_TOKEN as its bearer-token env var. Codex doesn't interpolate ${VAR} in MCP config files, which is why the token is passed as an env-var name rather than a value.
GitHub Copilot CLI
copilot mcp add --transport http --header "Authorization: Api-Key $BRIGHT_TOKEN" \
brightsec "https://$BRIGHT_HOSTNAME/mcp"Verify with copilot mcp get brightsec — it should show brightsec enabled, over http, with the Authorization header.
Antigravity CLI
Antigravity reads MCP servers from ~/.gemini/config/mcp_config.json. Add the server there, using serverUrl rather than url:
{
"mcpServers": {
"brightsec": {
"serverUrl": "https://app.brightsec.com/mcp",
"headers": {
"Authorization": "Api-Key <your-bright-api-token>"
}
}
}
}Use literal values here. The mcp_config.json bundled with the package ships ${BRIGHT_HOSTNAME} / ${BRIGHT_TOKEN} placeholders as a template, because env-var expansion in this file isn't guaranteed across Antigravity versions.
GitHub Copilot coding agent
This surface is configured differently again: the agent definitions in .github/agents/ carry their own mcp-servers block, so no command is needed, but the credentials come from the repository rather than your shell. Set BRIGHT_TOKEN as a secret and BRIGHT_HOSTNAME as a variable in the repository's copilot environment, and allowlist your Bright host so the agent can reach it. See the package README for the exact steps.
For a self-hosted or non-default cluster, point the URL at your own host in whichever method applies — all three commands above already read it from BRIGHT_HOSTNAME.
Verify the installation
After installing — and, where required, registering the MCP server — confirm:
- The Bright MCP server (
brightsec) is connected and active in your tool's MCP settings, and Bright tools are listed. Agents present with no tools behind them means the MCP server isn't registered. - The Bright agents appear in the agent list (or as available skills, depending on the tool) — see Agents & Skills for what to expect.
- Environment variables are accessible — run
echo $BRIGHT_HOSTNAMEandecho $BRIGHT_TOKENin the same shell.
Export the variables before launching the tool. Most tools read MCP configuration at startup, so a variable exported mid-session never reaches the already-registered server. The agents check both up front and stop with a message naming what's missing rather than failing later as an authentication error.
Update & uninstall
Each package README includes tool-specific update and uninstall instructions. The general pattern:
- Update: refresh the marketplace catalog, then update the plugin (or
git pullfor clone-based setups). - Uninstall: disable or remove the plugin from the tool's settings, then optionally remove the marketplace source.
See the per-tool README linked above for exact commands.
Troubleshooting
| Symptom | Fix |
|---|---|
| Agents installed but no Bright tools available | On Codex, Copilot CLI, or Antigravity, register the MCP server — see Register the Bright MCP server |
| Bright tools missing from the AI assistant | Reload the IDE / restart the CLI session; confirm the MCP server is enabled |
Agent reports a missing BRIGHT_TOKEN / BRIGHT_HOSTNAME | Export it in the shell you launch the tool from, then restart the session — the MCP server reads it at startup |
Auth fails (401 from MCP) | Replace the API token and restart |
| Repeater starts but scans never use it | Cluster mismatch: the Repeater registered against one Bright cluster while the scan runs on another. Nothing errors — the scan just never finds it. Start it with the same BRIGHT_HOSTNAME the MCP server is registered against |
| Repeater won't connect | Test manually: npx @brightsec/cli repeater --id <ID> --hostname "$BRIGHT_HOSTNAME" --token "$BRIGHT_TOKEN" |
| Cloud Agents can't reach Bright | Confirm BRIGHT_HOSTNAME and BRIGHT_TOKEN exist in cloud agent secrets |
For deeper troubleshooting, see the Advanced usage section in each tool's README.
Updated 11 days ago