Bifrost is an AI gateway that gives applications one OpenAI-compatible API for accessing models from more than 23 providers. It is used to route model requests, handle provider failover and load balancing, and apply features such as caching, guardrails, and MCP gateway support.
Borrowing it
Nothing to install: this file belongs to maximhq/bifrost. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/maximhq/bifrost/dev/.claude/skills/mcp-harness/SKILL.mdgit clone --depth 1 https://github.com/maximhq/bifrostWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/maximhq/bifrost/mcp-harness)<a href="https://agentmods.dev/skills/maximhq/bifrost/mcp-harness"><img src="https://agentmods.dev/badge/skills/maximhq/bifrost/mcp-harness/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/maximhq/bifrost/mcp-harness"><img src="https://agentmods.dev/badge/skills/maximhq/bifrost/mcp-harness.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00145 | $0.03541 |
| Opus 5.5 | $0.00058 | $0.01416 |
| Sonnet 5.5 | $0.00029 | $0.00708 |
| Haiku 4.5 | $0.00015 | $0.00354 |
Grade A, and why
mcp-harness scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 138 lines — stays where its author put it; the contents beside it link to each section on GitHub.
MCP harness
Every end-to-end MCP case lives in the MCP harness: tests/e2e/api/runners/build-mcp-harness.mjs, which generates the Postman collection at the start of each run (the collection is not committed; edit the builder). make run-mcp-harness-test boots its own Bifrost and an mcpchaos fleet and calls nothing outside the machine: no API keys, no paid calls. Run it yourself, scoped to your cases, and report the result.
Read AGENTS.md "Every MCP change ships with MCP harness cases" and "MCP Tool Filtering is 4 Levels Deep" first. Cite names, not line numbers: the helpers below are names in tests/e2e/api/runners/lib/mcp-harness.mjs on dev.
1. What goes where
| What changed | Test it in |
|---|---|
MCP behaviour a client can observe: the admin API, /mcp, a slug, tool execution, MCP tools in inference, sessions, MCP logs |
the MCP harness (this skill), plus Go unit tests |
| A function's logic, a race, an error path no request can reach | Go unit tests beside the code; make test-mcp for core/internal/mcptests |
| How a provider converts a tool definition or a tool call | the provider harness (.claude/skills/harness-test-writer/SKILL.md) |
| A dashboard page | Playwright (tests/e2e/features/mcp-*) |
| Upstream behaviour the fleet cannot produce yet | extend chaosmock (tests/cmd/mcpconsole/chaosmock, with its own Go test), then use it from the harness |
A change that reaches both a provider's conversion and MCP behaviour needs both harnesses.
2. The axes a case is placed on
Every MCP change sits on some of these axes. Section 3 says which ones a kind of change must cover; cover every value the change can reach, not only the one named in the issue.
- Connection type:
http,sse,stdio(a STDIO client spawns{{chaos_bin}}, which bridges to the fleet),openapi; the in-process clients only through the Bifrost MCP and Warp. - Upstream auth type:
none,headers,oauth,per_user_oauth,per_user_headers,token_exchange,client_credentials,aws_sigv4. Helpers:mockAuth,asServer,createOAuth,consentAs,followCallback,completeOAuth,puConfig,puConnect,flowStart,puFinish. - Inbound auth mode on
/mcp:headers,both,oauth(mcp_server_auth_mode;withMode,MODE_NAMES,modePrefix), withenforce_auth_on_inferenceon and off (setEnforce). - Caller credential: none, a virtual key (
x-bf-vk;vkCreate,vkExec), a token from Bifrost's OAuth server, a temp token (TT); a key with and without MCP grants; two credentials at once. - Surface:
/mcp(initialize,tools/list,tools/call, prompts, resources, notifications),/mcp/<slug>,/v1/mcp/tool/execute,/v1/chat/completionsand/v1/responseswith MCP tools (manual and auto-execute, streaming and not), code mode, the Bifrost MCP on/v1/mcp. - Filter level: global, client (
tools_to_execute,tools_to_auto_execute), tool, per request (x-bf-mcp-include-clients,x-bf-mcp-include-tools), the virtual key'smcp_configs, Virtual MCPs. - Where the config comes from: the admin API,
config.jsonat boot (a client that boots pending verification can only come fromconfig.json), the MCP library. - Client state: healthy, unstable (with
last_failure), disabled, pending verification, reconnected, deleted while it dials. - Upstream behaviour (fleet): faults, hangs, slow tools,
tools/list_changedpushes, auth challenges,input_requiredmid-call, MCP Appsui://resources. - Network path: direct, through an outbound proxy,
no_proxy, TLS inspection, idle cuts.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- yesterday Changed fde4e254577d
- 5d ago First seen · 138 lines · 145 tokens per session scan A 61e7f0c7856e
mcp-harness is a skill published in the GitHub repository maximhq/bifrost (10,145 stars, last pushed today), licensed Apache-2.0. It adds 145 tokens to every session and 3,541 once invoked, about $0.0006 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-27.
mcp-harness compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| mcp-harnessmaximhq/bifrost | Skill | 10k | today | Apache-2.0 | A | 145 | Claude Code |
| Browser Agent QA TestingPramodDutta/qaskills | Skill | 253 | 29d ago | MIT | A | 33 | Claude Code, Codex |
| unrelated-toolsunrelated-ai/mcp-gateway | Skill | 27 | yesterday | MIT | A | 64 | Codex |
| unified-ai-gatewayhappy520ai/unified-ai-system | Skill | 10 | 4d ago | Apache-2.0 | A | 35 | Codex |
| test-sweepsrnichols/plan-forge | Skill | 6 | 28d ago | MIT | A | 38 | Claude Code |
| audit-loopsrnichols/plan-forge | Skill | 6 | 28d ago | MIT | A | 100 | Claude Code |
| verifystudioKjm/ai-harness-template | Skill | 46 | 1mo ago | MIT | A | 79 | Claude Code |