Skill v1.0.0
currentLLM-judged scan95/100version: "1.0.0" name: manage-mcp description: Use when the user asks to add, configure, verify, update, troubleshoot, or remove an MCP server for Agent Bridge provider CLIs.
Manage MCP Servers
Keep MCP ownership provider-native. Agent Bridge coordinates the provider process; the provider CLI owns its MCP client and configuration.
Before changing configuration
- Identify the MCP server's authoritative package/repository/documentation and its required transport: local stdio or remote HTTP/SSE/streamable HTTP.
- Confirm the installed provider CLI and version. Do not infer support from another provider or from historical qualification.
- Prefer a pinned MCP package/version on managed or unattended hosts. Do not silently float
latestwhen Agent Bridge depends on the contract. - Treat a newly requested remote MCP, executable, or credential scope as an external trust boundary. Use only the server/integration the user authorized.
Provider-native configuration
Configure only providers that are installed and natively support the requested MCP. Inspect the installed CLI's current help/documentation before mutating configuration because these surfaces can change between qualified versions.
- Claude: use Claude's native
claude mcpcommands or its normal user/project MCP configuration for the intended scope. - Codex: use native
codex mcpcommands / Codex's native MCP entries. - Agy
1.1.19was qualified with nativeagy mcp add/remove/list/enable/disable; its configuration was observed at~/.gemini/config/mcp_config.json. The earlier Agy1.1.12no-MCP result is historical, not a current capability rule. - Grok Build
1.0.5was qualified with nativegrok mcp add/remove/list/enable/disable/doctor; its configuration was observed at~/.grok/config.toml. Grok remains opt-in.
Grok headless MCP tool use requires trusted execution so its native --always-approve behavior is available. Prefer the normal shared execution-mode policy; when an explicit Grok override is required, use GROK_EXECUTION_MODE=trusted. Do not bypass the policy by changing NODE_ENV, and do not weaken the safe default for unrelated Runs.
Do not create a universal Agent Bridge MCP configuration file. Do not use Claude's exclusive enterprise managed-MCP file as the normal Agent Bridge path because it can suppress unrelated user/project MCP servers.
Preserve unrelated user-managed MCP registrations. Update or remove only the named server the user asked Agent Bridge to manage.
Credentials
Never write a credential value into MCP configuration, Skill content, logs, screenshots, qualification evidence, or user-visible output.
Configure the MCP to reference an environment-variable name where the provider/server supports it. Supply the value through the deployment environment's existing secret-management or environment-injection mechanism. Agent Bridge does not own a deployment-specific secret manager and must not require one particular hosting product to configure MCP.
Environment injection is not a hidden-from-provider boundary: a credential supplied to the provider process can be accessible to that process and its tools. Credentials that must remain hidden from the provider/model require a separately scoped credential broker or service supplied by the deployment rather than plaintext injection into the provider environment.
If a required credential is missing, tell the user which environment-variable name is needed and ask them to configure it through their deployment's secret-management mechanism. Do not ask them to paste the secret into chat.
Verify real capability
Configuration listing or an MCP handshake is not enough when Agent Bridge will rely on the tool.
For a concrete MCP dependency, perform a bounded model-mediated qualification through the normal Agent Bridge headless provider path:
- invoke an ordinary Agent Bridge Run using the real provider executable;
- require information that can only come from a deterministic MCP tool call;
- prove the MCP server received the call;
- prove the result returned to the model;
- prove the provider completed through the normal Agent Bridge parser/delivery path;
- inspect output/logs for accidental secret material.
Re-run this proof when a provider executable/version or relied-on MCP contract materially changes, not for every ordinary CI run.
Active-tool cancellation has not yet been separately qualified for MCP. Keep MCP operations bounded and do not make long-running MCP work a production dependency until cancellation is re-proved through the existing Agent Bridge supervision/fencing path.
Playwright MCP
For headless web UI work, prefer the qualified Playwright MCP path when no stronger provider-native browser path has itself been qualified.
The evidence captured for issue #554 qualified Playwright MCP 0.0.79 with headless Chromium. On a managed host, keep that version pinned until a newer version is requalified. Run it headlessly and isolate task browser state where practical; do not disable the Chromium sandbox unless the environment specifically requires and qualifies that exception.
Playwright MCP is a tool boundary, not a security sandbox. Keep test credentials scoped, prefer localhost/test/staging, and do not expose production sessions merely to obtain visual evidence.
Remove or update
Use the provider's native MCP commands/configuration to change only the named registration. Verify the final provider-visible state. Remove temporary MCP registrations, test fixtures, servers, browser state, and other qualification artifacts that are not intentionally retained. Do not rewrite whole provider configuration files when a native targeted command exists.