webmcp-bridge AGENTS.md

webmcp-bridge AGENTS.md is an instructions file for Codex, OpenCode from holon-run/webmcp-bridge. It costs 614 tokens per session, scanned A, original, MIT.

Repository instructions for WebMCP Bridge, which lets a local tool call browser features through Playwright, a browser-automation library.

In plain words
What is it for?
Use them when working on the local MCP connection, browser-page gateway, native WebMCP support, fallback shims, or site-specific adapters.
Why use it?
They give coding agents the project structure, priorities, and boundaries needed to change the bridge safely.

Instructions file for CodexOpenCode

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/holon-run/webmcp-bridge/agents-md
Clone the repo
git clone --depth 1 https://github.com/holon-run/webmcp-bridge

Made for: Codex, OpenCode.

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 webmcp-bridge AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/holon-run/webmcp-bridge/agents-md.svg)](https://agentmods.dev/instructions/holon-run/webmcp-bridge/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/holon-run/webmcp-bridge/agents-md"><img src="https://agentmods.dev/badge/instructions/holon-run/webmcp-bridge/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 614 This file is loaded in full into every session.
When invoked 614 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
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 $0.00614 $0.00614
Opus 5 $0.00307 $0.00307
Sonnet 5 $0.00123 $0.00123
Haiku 4.5 $0.00061 $0.00061

Measured 4d ago against content hash 05552781f893, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

webmcp-bridge AGENTS.md 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 4d ago.

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.

AGENTS.md · 50 lines

How it starts

The opening of the file, as written. The whole thing — 50 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Repository Guidelines

Mission

webmcp-bridge provides a local-to-browser WebMCP bridge with a unified call path: local-mcp -> playwright -> browser navigator.modelContext. The system is native-first and uses shim fallback when a website does not expose native WebMCP. The architecture is split into:

  • @webmcp-bridge/local-mcp: local stdio MCP entrypoint (one site session per process) that proxies tool requests to a browser page gateway.
  • @webmcp-bridge/playwright: browser WebMCP page gateway and lifecycle management (native-first, shim fallback).
  • @webmcp-bridge/adapter-*: site-specific fallback tool mapping, used only when native WebMCP is unavailable.
  • @webmcp-bridge/core: shared WebMCP-compatible runtime/shim contracts used by fallback paths.

Current Priorities

  1. Stabilize stdio MCP semantics in local-mcp: one-site process lifecycle and strict proxying to Playwright page gateway for tools/list and tools/call.
  2. Harden native-first behavior and shim fallback in playwright, especially around navigation/frame lifecycle edge cases.
  3. Keep adapters thin and replaceable as fallback-only components; business logic must not leak into shared layers.
  4. Expand contract coverage for native vs shim behavior before adding new sites/features.

Guardrails

  • Do not implement credential vaulting or auth bypass.
  • Assume user is already authenticated in browser session.
  • Fail closed on ambiguous upstream states (AUTH_REQUIRED, UPSTREAM_CHANGED, etc.).
  • Keep MCP payloads JSON-serializable and schema-friendly.
  • Preserve single responsibility per package; avoid cross-package implicit coupling.
  • Prefer browser-side WebMCP execution for privileged site actions; do not move site credentials into local-mcp.

Coding Rules

  • Language: TypeScript ESM, 2-space indentation.
  • Every source file must start with a short module header comment describing:
    • module responsibility;
    • dependency relationship with other modules.
  • Prefer small pure utilities and explicit error mapping.
  • Avoid introducing site-specific constants into shared packages.

Read the full file on GitHub · 50 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. 4d ago First seen · 50 lines · 614 tokens per session scan A 05552781f893

Subscribe to this mod's changes

webmcp-bridge AGENTS.md is an instructions file published in the GitHub repository holon-run/webmcp-bridge (27 stars, last pushed 4mo ago), licensed MIT. It adds 614 tokens to every session, about $0.0031 per session on Opus 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-08-30.