bifrost: Skill for Claude Code

.claude/skills/mcp-harness/SKILL.md

mcp-harness is a skill for Claude Code from maximhq/bifrost. It costs 145 tokens per session (3,541 once invoked), scanned A, original, Apache-2.0.

An end-to-end test harness for MCP, a standard way for AI applications to connect to tools and data sources. It tests clients, authentication, endpoints, tool execution, sessions, filtering, virtual connections, logs, and pricing without paid external calls.

In plain words
What is it for?
Use it when changing MCP endpoints, client connections, tool execution, inference tools, filtering, grants, sessions, logs, or the MCP library. It also points internal logic changes to focused Go unit tests.
Why use it?
It helps distinguish user-visible MCP failures from internal function bugs and keeps tool access, permissions, and session behavior covered in one repeatable test setup.

Skill for Claude Code

Written for Claude Code: installed under .claude/. Also seen: reads .claude/ paths; mentions AGENTS.md.

This is maximhq/bifrost's own configuration. It tells Claude Code how to work on bifrost itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything bifrost configures →

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is go test ./core/mcp/....

About the project

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.

maximhq/bifrost · 10,145 stars · on GitHub · getmaxim.ai

Reuse

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.

Copy the file
curl -O https://raw.githubusercontent.com/maximhq/bifrost/dev/.claude/skills/mcp-harness/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/maximhq/bifrost

Made for: Claude Code.

Wrote 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.

agentmods badge for mcp-harness

README.md
[![agentmods](https://agentmods.dev/badge/skills/maximhq/bifrost/mcp-harness/github.svg)](https://agentmods.dev/skills/maximhq/bifrost/mcp-harness)
Your own site
<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.

agentmods 80×15 button for mcp-harness

Your own site · 80×15
<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>
Per session 145 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,541 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured yesterday against content hash fde4e254577d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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.

.claude/skills/mcp-harness/SKILL.md · 138 lines

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), with enforce_auth_on_inference on 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/completions and /v1/responses with 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's mcp_configs, Virtual MCPs.
  • Where the config comes from: the admin API, config.json at boot (a client that boots pending verification can only come from config.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_changed pushes, auth challenges, input_required mid-call, MCP Apps ui:// resources.
  • Network path: direct, through an outbound proxy, no_proxy, TLS inspection, idle cuts.

Read the full file on GitHub · 138 lines

Changes

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.

  1. yesterday Changed fde4e254577d
  2. 5d ago First seen · 138 lines · 145 tokens per session scan A 61e7f0c7856e

Subscribe to this mod's changes

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.

Related

mcp-harness compared with skills from other repositories

mcp-harness next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
mcp-harnessmaximhq/bifrostSkill10ktodayApache-2.0A145Claude Code
Browser Agent QA TestingPramodDutta/qaskillsSkill25329d agoMITA33Claude Code, Codex
unrelated-toolsunrelated-ai/mcp-gatewaySkill27yesterdayMITA64Codex
unified-ai-gatewayhappy520ai/unified-ai-systemSkill104d agoApache-2.0A35Codex
test-sweepsrnichols/plan-forgeSkill628d agoMITA38Claude Code
audit-loopsrnichols/plan-forgeSkill628d agoMITA100Claude Code
verifystudioKjm/ai-harness-templateSkill461mo agoMITA79Claude Code