diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 76bcead0..dcf34730 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -13,34 +13,15 @@ host are welcome. ## Adding a polyfill -A polyfill implements the client side of one published extension inside one -host that hasn't shipped it, and does nothing once the host supports the -extension itself. The extension is an MCP extension, or a spec for agents -published outside MCP, such as ARD. Each one is a folder in this repository. - ### 1. Meet the contract -Every polyfill here meets [`docs/polyfill-contract.md`](docs/polyfill-contract.md): - -- one published extension and nothing else; -- a named spec revision; -- a test for each client rule, plus a run against a server someone else - wrote; -- a stand-down; -- stated limits; -- server content treated as untrusted data. - -The `create-polyfill` skill walks an agent through building one to that -contract. Install it with: - -``` -/plugin install polyfill-author --marketplace idosal/AgentPolyfill -``` +Implement the client side of a published extension for a specific host. Name the +specification revision, test the client requirements, and document any exceptions. +Include an interoperability test with an independent server and a way to disable +the adapter when the host adds native support. Treat server content as untrusted. -Then ask for the extension and host you want, for example "polyfill MCP -Server Cards in Claude Code". If what you want isn't in any spec, the -`design-extension` skill in the same plugin covers that case, because a -polyfill never adds behaviour of its own. +See the [polyfill contract](docs/polyfill-contract.md) for the full requirements and +[polyfill-author](plugins/polyfill-author/) for the optional authoring tools. ### 2. Put it in its folder diff --git a/README.md b/README.md index ef85d221..ab4980f3 100644 --- a/README.md +++ b/README.md @@ -1,1386 +1,80 @@ -# AgentPolyfill +# AgentPolyfill -Polyfills for agent protocols. Bring more of MCP to the clients you already -use. Plugins and extensions add Apps, Skills, Events, Server Cards and ARD; -the table below shows which run in each host. +MCP extensions for coding agents. Open an interactive app inside a tool call, +wake an idle session when a deployment fails, or load a skill directly from an +MCP server. -> **An early proof of concept.** It works today, and it has real gaps. Events, -> Skills and Apps can't reach servers behind OAuth yet, Apps runs only in -> Claude Code, and a few spec rules can't be met from a plugin. Each gap comes -> from what the host APIs expose, and small, generic changes to those APIs -> would close them: -> [what hosts would need to change](docs/host-changes.md). + + + + Five MCP workflows in Claude Code and Codex, including DOOM in the terminal and a Cloudflare error waking an idle agent. + + -MCP grows through extensions now: Apps, Skills, Events, Server Cards. A server -can adopt one in a day, but every host has to build each one itself, on its -own schedule, so a new extension can sit unused for months. A polyfill closes -that gap from the outside. It implements one published extension's client side -as a plugin or host extension, follows that extension's spec (any exception -is listed and can be switched off), and steps aside once the host ships its -own. Servers don't change at all. - -We want this to be an open community around open specs: anyone can use these -extensions in the host they have, bring a polyfill to another host, or propose -a new extension, without waiting on one company's roadmap. - -- **If you use one of the supported hosts,** see its install steps below. -- **If you build,** the `create-polyfill` and `design-extension` skills and the - [contract](docs/polyfill-contract.md) every polyfill here meets are your - starting point. New polyfills, and existing ones brought to another host, - are welcome: [Build one](#build-one). If you keep one in your own - repository, list it in the [community directory](community/). -- **If you write specs,** a polyfill can be the client half of the two - implementations an extension needs to reach Stable: - [For spec authors](#for-spec-authors). +[Watch the full demo (48 s)](https://agentpolyfill.com/media/launch.mp4) · [Installation](#install) · [Supported hosts](#polyfills) · [Documentation](https://agentpolyfill.com) ## Install -**Claude Code** (2.1.329 or newer). At the prompt of a `claude` session, -install every polyfill at once: +> AgentPolyfill is an independent community project with no affiliation to the maintainers of supported protocols or the vendors of supported hosts. +> The plugins are experimental and may have unintended effects in your agent sessions or host configuration. Use them at your own risk. -``` +**Claude Code** · In Claude Code 2.1.329+, install the bundle and start a new session. +It includes Apps, Events and Server Cards. + +```text /plugin install agent-polyfill --marketplace idosal/AgentPolyfill ``` -Or install just one, with its name in place of `agent-polyfill`: -`mcp-events`, `mcp-apps-cli` or `mcp-server-cards`. Beyond MCP, -`ard-discovery` adds ARD; it isn't in the bundle, so install it by name. Then -start a new `claude` session. There is no Skills polyfill for Claude Code: -Claude Code lists skills from MCP servers itself, in beta from 2.1.332 -([Skills, below](#polyfills)). +**Codex** · With Codex 0.170+ and Node.js 20+, add the marketplace once, then install a plugin. To try Server Cards, run -**Codex** (0.170 or newer; Skills was tested on 0.172; Node 20 or newer). In a -terminal: - -``` +```sh codex plugin marketplace add idosal/AgentPolyfill -codex plugin add mcp-events@agent-polyfill -codex plugin add mcp-skills@agent-polyfill codex plugin add mcp-server-cards@agent-polyfill ``` -Beyond MCP, ARD (a draft; every search asks you first and goes to a registry -you choose): - -``` -codex plugin add ard-discovery@agent-polyfill -``` - -**Pi** (1.6.0, the version tested; Node 22 or newer). Install Events, Skills -and Server Cards together: - -```bash -pi install git:github.com/idosal/AgentPolyfill -``` - -Pi clones the repository into its agent folder (under `~/.pi/agent/git/`) -and loads the three extensions from there. Nothing is published to npm or -Pi's package gallery, and nothing is built. Start `pi` to use them. - -ARD is installed on its own, from a clone. As with the Claude Code bundle, -it is left out because its search sends the words of your request to a -registry, after asking you each time: - -```bash -git clone https://github.com/idosal/AgentPolyfill.git -cd AgentPolyfill -pi install ./polyfills/ard/pi/extension -``` - -Pi loads a local path where it is, so keep the clone. The clone path also -works for any one form alone. - -**OpenCode** (2.4 or newer, for the V2 plugin API; tested with 2.4.1; Git). -Nothing for OpenCode is published to npm: OpenCode installs each plugin from -this repository on GitHub. In a terminal: - -``` -opencode plugin add 'github:idosal/AgentPolyfill#main::path:polyfills/events/opencode/plugin' -opencode plugin add 'github:idosal/AgentPolyfill#main::path:polyfills/skills/opencode/plugin' -opencode plugin add 'github:idosal/AgentPolyfill#main::path:polyfills/server-cards/opencode/plugin' -``` - -Beyond MCP, ARD (a draft; every search asks you first and goes to a registry -you choose): - -``` -opencode plugin add 'github:idosal/AgentPolyfill#main::path:polyfills/ard/opencode/plugin' -``` - -Each line adds one plugin to your global `opencode.json`; OpenCode has no -bundle. OpenCode runs the plugins itself, so you don't need Node. They load -the next time OpenCode opens a project. - -**Google Antigravity** (App 2.35.1 and CLI 1.5.17, the versions these builds -were tested in; Node 20 or newer and Git on your `PATH`). Nothing for -Antigravity is published to its Marketplace. Install from GitHub, with the -Antigravity CLI: `agy plugin install` needs it, and the App doesn't ship -`agy`. - -```bash -agy plugin install https://github.com/idosal/AgentPolyfill/tree/main/polyfills/events/antigravity/plugin -agy plugin install https://github.com/idosal/AgentPolyfill/tree/main/polyfills/skills/antigravity/plugin -agy plugin install https://github.com/idosal/AgentPolyfill/tree/main/polyfills/server-cards/antigravity/plugin -``` - -Beyond MCP, ARD (a draft; every search asks you first and goes to a registry -you choose): - -```bash -agy plugin install https://github.com/idosal/AgentPolyfill/tree/main/polyfills/ard/antigravity/plugin -``` - -Each line fetches this repository with Git and copies one plugin to -`~/.gemini/config/plugins/`, which the App and the CLI both read. Run a line -again to update that plugin. From a clone, -`agy plugin install ./polyfills//antigravity/plugin` does the -same. The IDE documents no plugin hooks, so the forms aren't supported there, -and their gated calls are refused. - -**GitHub Copilot CLI** (1.0.115, the version tested). From a clone, added as a -marketplace: - -```bash -git clone https://github.com/idosal/AgentPolyfill.git -copilot plugin marketplace add ./AgentPolyfill -copilot plugin install mcp-events@agent-polyfill -copilot plugin install mcp-server-cards@agent-polyfill -``` - -Beyond MCP, ARD (a draft published by the ards-project on GitHub; every search -asks you first and goes to a registry you choose): - -```bash -copilot plugin install ard-discovery@agent-polyfill -``` - -That is the install that was tested. Copilot loads a local marketplace's -plugins where they are, so keep the clone. From GitHub, -`copilot plugin marketplace add idosal/AgentPolyfill` adds the same -marketplace. Checked in Copilot CLI 1.0.105. Not checked in 1.0.115, in the -interactive TUI, or in VS Code. Events is a Copilot -extension, and Copilot loads extensions only in its experimental mode: start -it with `copilot --experimental` (Copilot's help also names -`/settings experimental on`, which was not checked). Copilot -runs Events with its own Node. Server Cards and ARD are MCP servers: they need -no experimental mode, and need Node 20 or newer on your `PATH`. Copilot has Skills over MCP -and MCP Apps built in, so there is no Copilot form of those -([why](polyfills/events/copilot/README.md#skills-and-apps-in-copilot)). - -**T3 Code** (0.1.11, the version tested). T3 Code runs the Codex and Claude -Code you have, so install the plugins above for the agent you use in it. For -Events in Codex threads, add the T3 form from a clone instead of the Codex -plugin (nothing for T3 Code is published): - -```bash -git clone https://github.com/idosal/AgentPolyfill.git -codex mcp add mcp-events-t3 -- node "$PWD/AgentPolyfill/polyfills/events/t3/plugin/dist/server.js" -``` - -Then **Restart agent session** in T3 Code. What works and what doesn't is in -[In T3 Code](#in-t3-code). - -**Hermes Agent** (v0.23.4, the version tested; Node 20 or newer on the -gateway's machine). Each polyfill is a Hermes plugin in this repository: - -``` -hermes plugins install idosal/AgentPolyfill/polyfills/events/hermes/plugin --enable -hermes plugins install idosal/AgentPolyfill/polyfills/skills/hermes/plugin --enable -hermes plugins install idosal/AgentPolyfill/polyfills/server-cards/hermes/plugin --enable -``` - -Outside MCP, ARD (a draft; every search asks you first and goes to a registry -you choose): - -``` -hermes plugins install idosal/AgentPolyfill/polyfills/ard/hermes/plugin --enable -``` - -Events and Skills then need the servers they may use named in the plugin's -settings in `config.yaml`, and Events the grant to start a turn; each README -says what to add. - -There are [more ways to install](#more-ways-to-install) further down. - -## Polyfills - -| Extension | Spec | Claude Code | Codex | Pi | OpenCode | Antigravity | Copilot CLI | Hermes | -|---|---|---|---|---|---|---|---|---| -| Events | [SEP-3415](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/main/seps/3415-events-extension.md), Final | [`mcp-events`](polyfills/events/claude-code) | [`mcp-events`](polyfills/events/codex) | [`mcp-events`](polyfills/events/pi) | [`mcp-events`](polyfills/events/opencode) | [`mcp-events`](polyfills/events/antigravity) | [`mcp-events`](polyfills/events/copilot) | [`mcp-events`](polyfills/events/hermes) (poll and push; webhook is Hermes's own) | -| Skills | [SEP-2640](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/main/seps/2640-skills-extension.md), Final | built into Claude Code, in beta from 2.1.332 ([changelog](https://code.claude.com/docs/en/changelog)) | [`mcp-skills`](polyfills/skills/codex) | [`mcp-skills`](polyfills/skills/pi) | [`mcp-skills`](polyfills/skills/opencode) | [`mcp-skills`](polyfills/skills/antigravity) | built into Copilot | [`mcp-skills`](polyfills/skills/hermes) | -| Server Cards | [SEP-2127](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/main/seps/2127-mcp-server-cards.md), Final (the extension is Beta) | [`mcp-server-cards`](polyfills/server-cards/claude-code) | [`mcp-server-cards`](polyfills/server-cards/codex) | [`mcp-server-cards`](polyfills/server-cards/pi) | [`mcp-server-cards`](polyfills/server-cards/opencode) | [`mcp-server-cards`](polyfills/server-cards/antigravity) | [`mcp-server-cards`](polyfills/server-cards/copilot) | [`mcp-server-cards`](polyfills/server-cards/hermes) | -| Apps | [MCP Apps](https://github.com/modelcontextprotocol/ext-apps) 2026-01-26, Stable | [`mcp-apps-cli`](polyfills/apps/claude-code) | not yet | not available | not available | native in the App (v2.34.0+); the CLI and IDE show text | built into Copilot for graphical hosts (VS Code); none in the terminal | not yet | -| ARD (beyond MCP) | [Agentic Resource Discovery](https://github.com/ards-project/ard-spec) v0.91, a draft | [`ard-discovery`](polyfills/ard/claude-code) | [`ard-discovery`](polyfills/ard/codex) | [`ard-discovery`](polyfills/ard/pi) | [`ard-discovery`](polyfills/ard/opencode) | [`ard-discovery`](polyfills/ard/antigravity) | [`ard-discovery`](polyfills/ard/copilot) | [`ard-discovery`](polyfills/ard/hermes) | - -T3 Code isn't a column here: it's an app that runs Codex, Claude Code and -other agents for you, so what works in it is mostly what works in those, with -one Events form of its own. [In T3 Code](#in-t3-code) says which. - -All of them are early. Here is what each one does, and where it stops: - -- **Events.** The agent watches events on your MCP servers, by poll, push or - webhook, and an event wakes an idle session. In Codex, a woken session is a - Codex CLI session (the terminal app or `codex exec`): a chat in the ChatGPT - desktop app keeps its events but can't be woken, so ask it for - `recent_events`. A resumed Codex session starts watching at its first Events - tool call. In Pi, event types are listed in the system prompt at session - start. `watch_event` asks in a Pi dialog, naming the server, event type, - filters and note, and saying that events will start turns. After yes, an - event wakes the idle session with a message starting `[mcp-events]`, and - Pi reads it with `get_event`. The message says it came from the extension, - not from you; Pi delivers it to the model in the user's turn. In OpenCode, - by default a watch starts only after OpenCode asks you, naming the server - and event type. An event then wakes the idle session with a synthetic - message from the plugin, starting `[mcp-events]`, which gives the events' - ids and none of their content; the model reads them with - `mcp_events_get_event`. OpenCode stores the message as synthetic but sends - it to the model in the user's role, and OpenCode Desktop shows no entry for - it, so the turn starts with no visible cause. OpenCode's own automations - also take push events, so use a watch or an automation for an event type, - not both. In Antigravity, a watch asks in Antigravity's approval card, and - new events reach a conversation at its next model call, through the - plugin's `PreInvocation` hook (checked in CLI 1.5.17; Antigravity's plugins - page doesn't list `PreInvocation` among plugin hooks). What it adds is fixed - text with a count and the plugin's own watch ids, nothing a server wrote. - In the App only, a sidecar you turn on wakes an idle conversation; its - message arrives as a system message, not as yours. - In Copilot, Events needs experimental mode. `watch_event` goes - through Copilot's tool prompt, then asks in the plugin's own dialog, naming - the server, event type, filters and note, with "Don't watch it" first. An - event then wakes the idle session with a turn Copilot marks as an - automation, whose first line says the plugin sent it; VS Code's Copilot - harness shows it as a message from the plugin, then the turn. In Hermes, - Events polls and pushes; webhook delivery is Hermes's own (`events: true` - on a server), and the plugin leaves those servers to Hermes. Starting and - stopping a watch go through Hermes's own approval, which shows the whole - watch; "always" covers that exact watch only. Once you grant - `allow_gateway_injection`, an event wakes the idle session with a message - starting `[mcp-events]`, which names the watch, the server and the event - ids and nothing the server wrote; the model reads the event with - `get_event`. -- **Skills.** In Codex, Pi, OpenCode, Antigravity and Hermes, skills an MCP - server serves show up next to your own, load only after you say yes to each - one, and are checked against the server's digests. Claude Code needs no - polyfill for Skills: it lists skills from MCP servers itself, in beta from - 2.1.332. Its - [changelog](https://code.claude.com/docs/en/changelog) says they show as - `server:skill` in the `/` menu, and other skills keep their names. It is a - beta and may not be on for every account or server yet; where it isn't on, - there is currently no Skills over MCP in Claude Code. The Claude Code form - this repository had was removed for that reason; - [if you installed it](#if-you-installed-mcp-skills-in-claude-code), - uninstall it. In Codex, served skills appear in Codex's own skill list - after you ask once to list them, from the next turn. One rule of the spec - can't be met in Codex yet: a skill from one server reading another server's - resources isn't put to you first (rule X8), because Codex doesn't let a - plugin ask. In Pi, - served skills appear in its own list as `mcp--`, marked - `[MCP server "", not a local skill]`. Loading one asks "Don't load - it", "Show me its SKILL.md first", or "Load it"; a yes is kept for exactly - those files. Pi meets X8: a read from another MCP server while a served - skill is loaded asks first, naming both servers, including in codemode. - In OpenCode, served skills appear in its own skill list as - `mcp-skills::`, marked the same way, with none of their text. - Loading takes two steps: OpenCode's skill tool returns a note from the - plugin, then the model calls `mcp_skills_load_skill` and, by default, - OpenCode asks you, with no preview of `SKILL.md`. "Allow always" covers - that skill as it is now; a changed skill is asked about again. OpenCode - meets X8: once a session has loaded a served skill, OpenCode's own resource - read of another server is asked about, per call, naming both servers, - including in Code Mode and in subagents. - In Antigravity, served skills appear in its skill list as placeholder - folders in `~/.gemini/config/skills/`, and loading a new or changed one asks - in Antigravity's own approval card (yes or no; there's no "show me first"). - X8 isn't met in Antigravity: once a served skill is loaded, the plugin's - hook asks before a read from another server, but Antigravity (CLI 1.5.17, - App 2.35.1) ignores that question, shows no card, and lets the read go - ahead. - In Hermes, served skills appear in - Hermes's skill list as `mcp-skills:-`, marked with their - server, from the session after the plugin first looks at the server. - Loading one goes through Hermes's own approval, naming the skill, its - server and its files; "always" covers that version only. To read its - `SKILL.md` first, deny and type the `/mcp-skills show` line the question - gives: its answer goes to you, and the model never sees it. Hermes meets - X8: while a session holds a served skill, a read from another server is - asked about each time, naming both. Where Hermes approves without asking - (`--yolo`, `/yolo`, `hermes -z`, `approvals.mode: off`), no served skill loads. - Copilot needs no polyfill for - Skills: Copilot CLI 1.0.115 declares Skills over MCP to every server in its - `initialize`. Listing or loading a served skill in Copilot was not checked - ([how it's switched](polyfills/events/copilot/README.md#skills-and-apps-in-copilot)). -- **Server Cards.** Name a company and the agent finds the MCP servers its domain - publishes, checks each card against the schema, and adds the one you pick - to the host's own configuration. The host then connects it with its own - sign-in, so servers behind OAuth work. You see the host it connects to - before you add it. In Pi, `add_mcp_server` asks "Don't add it" or "Add it", - showing the host, URL, headers, `mcp.json` file and undo command. Only - "Add it" runs `pi mcp add` and registers the server for the current - session, so it connects without a restart. In OpenCode, by default - `server_cards_add_mcp_server` asks you about each addition ("Allow always" - saves nothing). Once you allow it, the server is in OpenCode's MCP servers - at once and OpenCode connects it. It belongs to the project it was added - in: the plugin keeps it in its OpenCode storage, adds it again each time it - loads there, and writes no configuration file. In Antigravity, the addition - asks in Antigravity's own approval card, whose question gives the host, - URL, headers, file and undo (the CLI's card shows its first two lines: the - URL, header names and file); only your approval writes - `~/.gemini/config/mcp_config.json`. - A card that needs a secret can't be added: that file reads no `${VAR}`. - In Copilot, after Copilot's - tool prompt, the plugin's form names the server, URL, headers, file and - undo command; only "Add it" runs `copilot mcp add`, and the server connects - after `/mcp reload`. Copilot declines the form in `copilot -p`, even with - `--yolo`. In Hermes, Hermes's own approval names the server and shows the - whole entry (the URL, each header with its value, secrets only as `${VAR}` - references, the transport and every other setting), the file and the undo - action; an approved addition goes into `mcp_servers` in Hermes's - `config.yaml`, and Hermes connects it after `/reload-mcp`. -- **Apps.** A server's app opens right under the tool call in the terminal - and answers the mouse and keyboard: real pixels in iTerm2, kitty and - Ghostty, text cells everywhere else. This form runs in Claude Code. No Pi - form is built or tested: Pi 1.6.0 leaves out `ui://` resources and tool - `_meta`, so an extension can't get an App's UI. No OpenCode form is built: - OpenCode 2.4.1 has no MCP Apps support, a plugin can't read a `ui://` - resource or a tool's `_meta` over OpenCode's connection, and there is no - place in the conversation for a plugin to draw. Antigravity needs no form: - its App renders MCP Apps itself (v2.34.0 and later); its CLI and IDE show - text. - Copilot needs no form: - VS Code's Copilot harness turns MCP Apps on itself (from its source; not - checked in VS Code), and Copilot CLI's terminal draws none. No Hermes form is built yet. - -In Antigravity, which neither tells a plugin's MCP server which conversation -calls it nor shows MCP forms, the plugins ask through its approval card from a -`PreToolUse` hook: before a watch, a new or changed skill load, an addition -or a search. Their other tools get Antigravity's usual MCP question. - -Events, Skills and Apps can't reach servers behind OAuth yet, in any host -where these forms run. -[Why, and what would fix it.](#how-it-works-in-each-host-and-where-it-stops) - -**Beyond MCP**, `ard-discovery` adds -[Agentic Resource Discovery](https://github.com/ards-project/ard-spec) v0.91, -a draft. It finds MCP servers through a domain's `ard.json`, or by searching -an ARD registry you choose, and hands the cards to `mcp-server-cards` (the -Pi, OpenCode, Antigravity and Hermes forms carry the Server Cards checks and -add step themselves; Antigravity's has its own `add_mcp_server`). A search -sends the words of your request to that registry, so every search asks you -first and names where it's going. That's also why it isn't part of the Claude -Code `agent-polyfill` bundle or Pi's one-line install. Install it by name in -Claude Code, Codex or Copilot, from a clone in Pi, with its own -`opencode plugin add` in OpenCode, with its own `agy plugin install` from -GitHub in Antigravity, and with its own `hermes plugins install` in Hermes. - -In Pi, `ard_search` asks "Don't send it" or "Send the search", naming the -registry endpoint and exact query. There is no default registry: name one -or set `ARD_DISCOVERY_REGISTRY`. `ard_add_mcp_server` asks separately before -adding, using the Server Cards Pi flow. It has its own tool name because -Pi shares tool names across extensions and keeps the first registration. -Checked in Pi 1.6.0: discovery, and a search of the repository's demo -registry after consent. Adding is checked by the form's tests only. - -In OpenCode, by default each `ard_search` asks you first, on the registry -hosts, with the exact query in the request; "Allow always" saves nothing. A -registry a referral names is asked about on its own before the query goes -there. There is no default registry: name one or set -`ARD_DISCOVERY_REGISTRY`. `ard_add_mcp_server` adds a server as the OpenCode -Server Cards form does, under the same permission actions. Checked in -OpenCode 2.4.1: reading buildkite.com's `ard.json`, and a search of the -repository's demo registry after OpenCode asked. Adding is checked by the -form's tests only. ARD was not checked in OpenCode's TUI or in OpenCode -Desktop. - -In Antigravity, `ard_search` asks in Antigravity's approval card, naming the -registry endpoints and exact query, and `add_mcp_server` asks separately, as -in `mcp-server-cards`. There is no default registry. Checked in CLI 1.5.17: -a search of Hugging Face's own registry goes to that endpoint only after the -approval, and a declined one sends nothing. An editor on `agy acp` shows the -query and the registry argument, not the endpoints or the referrals. - -In Copilot, each `ard_search` goes through Copilot's tool prompt, then the -plugin's form, which names the registry endpoint and the exact query; only -"Send the search" sends. `ard_search` is marked not read-only, so a host that -runs read-only tools unasked, as VS Code's Copilot harness did, doesn't run it -unasked. There is no default registry: name one or -set `ARD_DISCOVERY_REGISTRY`. `add_mcp_server` adds a server as the Copilot -Server Cards form does. Checked in Copilot CLI 1.0.115: `ard_discover` -reading buildkite.com's `ard.json`, and a search of the repository's demo -registry after the form. Search was not checked against any other registry. - -In Hermes, each `ard_search` goes through Hermes's own approval, which names -the registry endpoint and the exact query; "session" or "always" covers that -exact query to that endpoint only. A registry a referral names needs an -approval of its own. There is no default registry: name one or set -`ARD_DISCOVERY_REGISTRY`. `ard_add_mcp_server` adds a server as the Hermes -Server Cards form does, after a separate approval. Checked in Hermes v0.23.4: -`ard_discover` reading buildkite.com's `ard.json` -([interop](polyfills/ard/hermes/README.md#interop)). Search and adding are -checked by the form's tests only. - -The supported hosts don't implement these extensions themselves yet, apart -from Skills in Claude Code (a beta, from 2.1.332), part of Events in -OpenCode and Hermes, and MCP Apps in Antigravity's App. On 23 November 2026 the official -[extension support matrix](https://modelcontextprotocol.io/extensions/client-matrix) -listed Tasks for Claude Code, and none of Events, Apps or Skills (Server Cards -isn't in the matrix). Codex doesn't support Events for your own servers, or -Skills (openai/codex#48000). OpenCode 2.4's own client takes Events by push, -for its automations; it doesn't poll or take webhooks, and it skips event -types whose schemas it can't check. It doesn't support Skills, Server Cards -or Apps. Antigravity's App supports MCP Apps (v2.34.0), and none of the -others. Copilot has Skills over MCP and MCP Apps (in graphical hosts) -itself, and its SDK's types declare a catalogue API that accepts Server Cards (not checked), but nothing seen in it reads them from a domain -([what was checked](polyfills/server-cards/copilot/README.md#copilots-own-catalogue)). -Hermes v0.23.4 takes Events by webhook itself, for a server you mark -`events: true`; it doesn't poll or push, and it doesn't serve MCP skills. -Hosts add extensions all the time, so check the -matrix for today's picture. Claude Code's -[changelog](https://code.claude.com/docs/en/changelog) lists skills from MCP -servers, as a beta, in 2.1.332 (25 November 2026). +The [installation guide](https://agentpolyfill.com/guide/getting-started) covers prerequisites, setup and removal for each host. ## Try it -### Events: the agent wakes up when something happens - -![One sentence to Claude Code gives a private button page and a watch, and the session goes idle. Someone types "ship it" on the page and presses the button; the idle session wakes by itself and says what was typed.](polyfills/events/claude-code/docs/media/button-demo.gif) - -Add the hosted demo server (no sign-in), start your host, and ask -"Give me a demo button and tell me what I type when I press it": - -**Claude Code:** - -``` -claude mcp add --transport http feeds https://event-feeds.idosalomon.workers.dev/mcp -``` - -**Codex:** - -``` -codex mcp add feeds --url https://event-feeds.idosalomon.workers.dev/mcp -``` - -**Pi:** - -```bash -pi mcp add feeds --url https://event-feeds.idosalomon.workers.dev/mcp -``` - -**OpenCode**, in `opencode.json`: - -```jsonc -{ - "mcp": { "feeds": { "type": "remote", "url": "https://event-feeds.idosalomon.workers.dev/mcp" } } -} -``` - -**Copilot CLI** (start it with `copilot --experimental`): - -```bash -copilot mcp add --transport=http feeds https://event-feeds.idosalomon.workers.dev/mcp -``` - -**Hermes**, in `~/.hermes/config.yaml`, with the plugin's own settings: - -```yaml -mcp_servers: - feeds: - url: https://event-feeds.idosalomon.workers.dev/mcp -plugins: - entries: - mcp-events: - settings: - servers: [feeds] - allow_gateway_injection: true -``` - -In Pi, you can ask "Watch for new earthquakes from the feeds server and tell -me where each one was", then confirm the watch in its dialog. In OpenCode, -allow the watch when OpenCode asks. In Copilot, allow `watch_event` at -Copilot's prompt, then choose "Watch it" in the plugin's question. In -Hermes, approve the watch when Hermes asks. - -**Antigravity:** - -```bash -agy mcp add feeds https://event-feeds.idosalomon.workers.dev/mcp -``` - -`agy mcp add` is in CLI 1.5.17's own help, not in Antigravity's docs; the -App doesn't ship `agy`. In Antigravity, approve the watch in its approval -card. Events reach the conversation at its next turn; for an idle App -conversation to be woken, turn on the plugin's sidecar -([how](polyfills/events/antigravity/README.md#enable-idle-wakes-in-the-app)). -This demo was not checked in Antigravity. - -The same server also offers new comments in a Hacker News thread, new npm and -GitHub releases, and earthquakes. Its source is in -[`servers/event-feeds`](servers/event-feeds). - -### Skills: skills that come from an MCP server - -In Codex, Pi, OpenCode, Antigravity or Hermes, add Hugging Face's public MCP -server (no sign-in) and ask a question one of its skills covers. - -- **Codex:** the served skills appear in the `$` list after you ask once to - list the served skills, from the next turn. -- **Pi:** the served skills appear in its own list at session start. Ask a - question or use `/skill:mcp--`, then answer the load dialog. -- **OpenCode:** the served skills are in OpenCode's skill list as - `mcp-skills:huggingface:`. Ask a question, then allow the load when - OpenCode asks. -- **Antigravity:** ask once to list the served skills. The plugin writes - them to Antigravity's skills folder, which Antigravity documents reading - before each turn. Ask a question, then approve the load in Antigravity's - approval card. -- **Copilot CLI:** nothing to install: Copilot has Skills over MCP built in. -- **Hermes:** the plugin looks at the server during your first turn; from - your next session, the served skills are in Hermes's skill list as - `mcp-skills:huggingface-`. Ask a question, then approve the load when - Hermes asks. - -**Codex:** - -``` -codex mcp add huggingface --url https://huggingface.co/mcp -``` - -**Pi:** - -```bash -pi mcp add huggingface --url https://huggingface.co/mcp -``` - -**OpenCode**, in `opencode.json`: - -```jsonc -{ - "mcp": { "huggingface": { "type": "remote", "url": "https://huggingface.co/mcp", "oauth": false } } -} -``` - -**Antigravity:** - -```bash -agy mcp add huggingface https://huggingface.co/mcp -``` - -**Hermes**, in `~/.hermes/config.yaml`: - -```yaml -mcp_servers: - huggingface: - url: https://huggingface.co/mcp -plugins: - entries: - mcp-skills: - settings: - servers: [huggingface] -``` - -### Server Cards: add a company's MCP server by its domain - -Nothing to set up. Ask "What MCP servers does neon.com publish?" and add -**Neon Docs** (no sign-in). For one behind a sign-in, ask about buildkite.com; -once it's added, sign in through the host. - -- **Claude Code:** the host asks you to sign in. - `claude mcp remove neon-docs -s local` removes it again. -- **Codex:** the host asks you to sign in. -- **Pi:** choose "Add it" in the extension's dialog; use `/mcp` or - `pi mcp login ` for sign-in, and `pi mcp remove neon-docs` to remove - the server. -- **OpenCode:** allow the addition when OpenCode asks; OpenCode connects the - server at once. Run `opencode mcp auth ` for sign-in, and ask OpenCode - to remove Neon Docs to take it away again - (`server_cards_remove_mcp_server`). -- **Antigravity:** approve the addition in its approval card. For a sign-in, - use Authenticate in Customizations > Installed > MCP Servers (`/mcp` in the - CLI); signing in after an addition hasn't been checked yet. Remove the - server there, or with `agy mcp remove neon-docs` (in CLI 1.5.17's own help, - not in Antigravity's docs). -- **Copilot CLI:** after Copilot's tool prompt, choose "Add it" in the - plugin's form, then `/mcp reload`; `/mcp auth ` signs in, and - `copilot mcp remove neon-docs` removes it. -- **Hermes:** approve the addition when Hermes asks, then `/reload-mcp`; - `hermes mcp login ` signs in, and `hermes mcp remove neon-docs`, then - `/reload-mcp`, removes it. - -### Apps: an MCP App's interface, in the terminal - -A server's app opens under the tool call and answers the mouse -([full video, 33 s](https://github.com/idosal/AgentPolyfill/releases/download/mcp-apps-cli-v0.1.0/mcp-apps-cli-demo.mp4)). - -![In Claude Code, a classic shareware game from the hosted arcade server runs under the tool call and is played with keys and clicks. Then a cohort retention heatmap from another MCP server opens inline, shows a tooltip wherever the pointer goes, and a control switches its period. Last, a 3D scene opens and turns when dragged.](docs/media/mcp-apps-cli.gif) - -Add the hosted arcade (classic shareware games from archive.org), start -`claude`, and ask "Find a shareware game in the arcade and load it": - -``` -claude mcp add --transport http arcade https://mcp-apps-arcade.idosalomon.workers.dev/mcp -``` - -Each polyfill's own README has the details: requirements, what happens between -installing and first use, and everything it can't do yet. - -## What makes something a polyfill - -1. It implements one published extension, client side, and nothing else: no - extra protocol and no vendor additions. The extension is an MCP extension, - or a spec for agents published outside MCP, such as ARD, and is labelled - as that. The one exception is an earlier form of the same extension that - servers still speak, listed in the polyfill's README and switched off with - one setting. -2. It names the spec revision it implements. -3. Every client rule in the spec has a test, and it runs against servers - someone else wrote. -4. It stands down once the host supports the extension itself. -5. It says plainly what it can't do in each host, and what the host would - need to change. - -The full text is in [`docs/polyfill-contract.md`](docs/polyfill-contract.md). - -Events uses the exception in rule 1: by default it also talks to servers that -advertise events in the form from before SEP-3415. `MCP_EVENTS_PRE_STANDARD=off` -makes it follow the SEP exactly. - -For rule 4, no polyfill can detect native support on its own yet, because -none of the hosts tells a plugin or extension which extensions its own MCP -client supports. When your host ships one of these extensions, turn that -polyfill off: - -- **Claude Code:** disable its plugin (`/plugin disable mcp-events`), or use - its own setting (`MCP_EVENTS_OFF=1`, or `disabled` in `/config` for Server - Cards and ARD). Skills was the first case: Claude Code ships it itself now, - in beta, so that form was removed from this repository. -- **Codex:** remove the plugin - (`codex plugin remove mcp-events@agent-polyfill`). -- **Pi:** `pi remove git:github.com/idosal/AgentPolyfill` removes Events, - Skills and Server Cards together and Pi's copy of the repository. For a - local install, use `pi remove ./polyfills/
/pi/extension` from the - same clone. To turn off one form, use `MCP_EVENTS_OFF=1`, - `MCP_SKILLS_OFF=1`, `MCP_SERVER_CARDS_DISABLED=1` or - `ARD_DISCOVERY_DISABLED=1` for the corresponding form. -- **OpenCode:** remove the plugin (`opencode plugin remove` with the text it - was added with), or use `MCP_EVENTS_OFF=1`, `MCP_SKILLS_OFF=1`, - `MCP_SERVER_CARDS_DISABLED=1` or `ARD_DISCOVERY_DISABLED=1`, or the plugin - option `off`, for the corresponding form. -- **Antigravity:** disable or uninstall the plugin - (`agy plugin disable mcp-events`), or use its own setting (`MCP_EVENTS_OFF` - in its settings file, `MCP_SKILLS_DISABLED`, `MCP_SERVER_CARDS_DISABLED=1`, - `ARD_DISCOVERY_DISABLED=1`). -- **Copilot CLI:** disable or uninstall the plugin - (`copilot plugin disable mcp-events@agent-polyfill`), or use - `MCP_EVENTS_OFF=1`, `MCP_SERVER_CARDS_DISABLED=1` or - `ARD_DISCOVERY_DISABLED=1`. -- **Hermes:** disable the plugin with Hermes's own switch - (`hermes plugins disable mcp-events`), or use `MCP_SERVER_CARDS_DISABLED=1` - or `ARD_DISCOVERY_DISABLED=1`. Events already leaves a server you mark - `events: true` to Hermes. - -Each README says how. - -Events in OpenCode states a departure from rule 4. OpenCode's own client -takes push events for its automations, but it skips event types whose -schemas it can't check, and a plugin can't ask which ones it took. So the -polyfill watches every event type, push included, and tells the model to use -a watch or an automation for an event type, not both. Its -[README](polyfills/events/opencode/README.md#push-and-opencodes-automations) -says why. - -## How it works in each host, and where it stops - -Each host lets outside code in, in a different way. - -- **Claude Code** runs mods inside the host (on by default since 2.1.287). A - mod can register tools, draw UI, start a turn in an idle session, and call a - server's tools over Claude Code's own connection. -- **Codex** runs plugins that bring their own MCP server. Every tool call the - server receives says which session it came from, `codex queue --resume` - starts a turn in an idle session from outside, and Codex lists the skills a - plugin's folder holds alongside its own. -- **Pi** runs extensions inside its own process. They can register tools, - ask in Pi dialogs, list skills and wake an idle session. Events and Skills - each open their own MCP connections; Server Cards and ARD save servers - through Pi's CLI and register them for the current session. -- **OpenCode** runs plugins inside its own server, once per project folder - (the V2 plugin API, from 2.4). A plugin can add tools, ask through - OpenCode's permission rules, add skills to OpenCode's list, start a turn in - an idle session, and see a tool call before it runs. Events and Skills each - open their own MCP connections; Server Cards and ARD add servers to - OpenCode's MCP configuration in memory, and OpenCode connects them with its - own client. -- **Antigravity** runs plugins that bring their own MCP server, command hooks - and, in its App, sidecars. A plugin's MCP server isn't told which - conversation calls it and can't ask you anything, so the plugins ask - through a `PreToolUse` hook that shows Antigravity's approval card, and pass - the conversation to the call through it. A sidecar wakes an idle App - conversation with `agentapi send-message`. -- **GitHub Copilot CLI** runs plugins with MCP servers, and, in experimental - mode, extensions: a process that joins the session, registers tools, starts - a turn with `session.send`, opens dialogs, and calls a server's tools or - reads its resources over Copilot's own connection. VS Code's Copilot harness - runs the same runtime and loads the same extensions. Events opens its own - MCP connections; Server Cards and ARD add servers with `copilot mcp add`. -- **Hermes Agent** runs Python plugins inside the gateway every session runs - in. A plugin can register tools and skills, start a turn in an idle session - (`ctx.inject_message`), put a tool call to Hermes's own approval, and call a - server's tools over Hermes's connection. Hermes delivers Events by webhook - itself, so its Events form adds poll and push and leaves those servers to - Hermes. Events and Skills open their own MCP connections; Server Cards and - ARD write servers into Hermes's `config.yaml`, and Hermes connects them with - its own client after `/reload-mcp`. - -That's the host half of almost any extension. The protocol half is missing. -None of these hosts lets a plugin or extension send an extension's own -methods, such as `events/poll` or `skills/list`, over the host's connection, -see everything a server advertised, or receive a server's notifications. So -Events, Skills and Apps each open a second connection of their own, using the headers in your -config. That connection can't use the host's sign-in, which is why those -three can't reach servers behind OAuth. - -Server Cards doesn't have this problem. A card is a public document, and the -server it describes goes into the host's own config, so the host connects it -with its own sign-in. - -Four small, generic changes would address the limit in each host. None of -them names an extension: - -| Change | Claude Code today | Codex today | Pi today | OpenCode today | Antigravity today | Copilot today | Hermes today | -|---|---|---|---|---|---|---|---| -| Send any MCP method over the host's connection | missing | missing (its client can, internally) | missing (its client can, internally) | missing (its client sends `events/*` for itself) | missing | missing (tool calls and resource reads only) | missing (its client sends `events/*` for its webhook support) | -| Read what the server advertised | missing | mostly there | missing | missing | missing | missing (instructions only) | missing | -| Deliver a server's notifications to the plugin | missing | only for OpenAI's hosted apps server | missing | missing (its client takes Events push for its automations only) | missing | `list_changed` only | missing | -| Raw tool results; declare a client extension | missing | declaring only by Codex's own client | `structuredContent` reaches hooks; tool `_meta` and declaring are missing | raw results not checked; declaring only by OpenCode's own client, for Events | missing (its App declares the Apps extension itself) | raw tool results; declaring only by Copilot itself | `structuredContent` only; no declaring | - -The first two are enough for Events (by poll and webhook) and Skills to work -with every server you've signed in to, with one additional change in Pi: -Events needs protocol revision 2026-07-28, and Pi 1.6.0's own client stops -at 2025-11-25. What each change would look like, what -each extension needs, and the questions they raise about permissions are in -[`docs/host-changes.md`](docs/host-changes.md). - -### Limits in Pi - -- Events and Skills can't use a sign-in through Pi (`/mcp`, `pi mcp login`, - or `auth.provider`). An `Authorization` header in `mcp.json` works, - written out or resolved from `${VARIABLE}` or `!command`. Their separate - connections mean a local (stdio) server runs twice. -- Events needs an open Pi session. A watch on a local server resumes only - when the session is resumed in the same folder. By default, a watch wakes - at most once a minute and a session at most 30 times an hour; past that it - is told once and waits until you write. Events stay stored. -- Events and Skills stand down when Pi's own MCP support is off - (`--no-mcp`, `-builtin:mcp`, or a replacement MCP extension). A server - another extension registers later is reached after `/reload`. -- Skills added mid-session appear in Pi's list after `/reload`. There is - no switch for one extension-provided skill; leave a server out with - `{"skip": [...]}` in `mcp-skills/settings.json` in Pi's agent folder. -- Server Cards and ARD don't compare a card with the live server (S-3), - as in the other forms. Their Pi conformance pages record that limit - ([Server Cards](polyfills/server-cards/pi/docs/conformance.md), - [ARD](polyfills/ard/pi/docs/conformance.md)). - -### Limits in OpenCode - -- Events and Skills can't reach a server OpenCode signs in to with OAuth - (`opencode mcp auth`): OpenCode gives a plugin neither its sign-in nor a - way to send `events/*` or `skills/*` over its own connection. They connect - with the headers in your OpenCode configuration, so a local server runs - twice. -- Each polyfill asks by default. OpenCode's shipped rules allow every action, - so each plugin turns `allow` into `ask` for its own actions (a watch, a - skill load, a cross-server read, an addition, a search) and nothing else. - A `deny` or `ask` rule you write wins; an `allow` rule you write doesn't - skip the question, because the plugin can't tell it from OpenCode's - default. To leave it to your rules alone, set the plugin option - `askByDefault: false`, or `MCP_EVENTS_ASK_BY_DEFAULT=0`, - `MCP_SKILLS_ASK_BY_DEFAULT=0`, `MCP_SERVER_CARDS_ASK_BY_DEFAULT=0` or - `ARD_DISCOVERY_ASK_BY_DEFAULT=0`. The plugin keeps its own copy of each - "Allow always", so taking one back in OpenCode doesn't remove it; an `ask` - rule does. -- OpenCode 2.4.1's TUI shows a plugin's question only as "Call tool - ``"; the details are on the model's call line just above it. Server - Cards' prompt there offers only "Allow once" and "Reject", since nothing - is saved, and ARD's search would too. A registry an ARD referral names is - asked about in a prompt of its own, and in the TUI nothing on screen names - it. OpenCode Desktop shows the action and its resource (checked for Events - and Skills). -- After a skill loads or an event wakes a session, what the model does goes - through OpenCode's rules as usual, and their default allows it. So the - model can run a command a loaded skill describes, without a prompt. -- Events watches resume when OpenCode next opens the project. By default, a - watch wakes at most once a minute and a session at most 30 times an hour. -- Skills has no preview of `SKILL.md` before you decide. A loaded skill is - held for 64 sessions at once; past that, or after a restart, a file read - asks the model to load it again. A skill's binary files are checked, not - shown. -- Server Cards and ARD add only streamable HTTP servers. A card that needs a - secret isn't added; the answer gives the `opencode.json` entry with - `{env:VAR}` where the secret goes. They don't compare a card with the live - server (S-3), as in the other forms. -- Not checked: Server Cards and ARD in OpenCode Desktop, ARD in the TUI, - OpenCode Console's `console_watch` tools, and Windows outside CI (CI runs - the tests on Linux, macOS and Windows). - -### Limits in Antigravity - -- Events and Skills can't use Antigravity's own sign-in (Authenticate, or - `oauth` in `mcp_config.json`); a server that needs it is left out. A header - written in `mcp_config.json` works. Their separate connections mean a local - (stdio) server runs twice. -- Only App conversations can be woken, and only with the Events sidecar on; - CLI conversations get events at their next model call, through the - plugin's `PreInvocation` hook (checked in CLI 1.5.17; Antigravity's plugins - page doesn't list `PreInvocation` among plugin hooks). A watch restarts - when its conversation next calls the plugin: a resumed CLI conversation - gets the events it missed. A webhook watch was not checked. -- The approval card is yes or no. The CLI's card shows the question's first - two lines and hides the rest, and still lists "always allow" choices, - which the App greys out. Antigravity's MCP client declares elicitation but - cancels every request, and an editor connected to `agy acp` sees the tool - and its arguments, not the plugins' question. -- Watches, new or changed skill loads, additions and searches ask through - `force_ask`. The other Events tools, an approved unchanged skill load and - skill file reads pass with a ticket and then get Antigravity's usual MCP - question, which allow rules can skip. Whether - `--dangerously-skip-permissions` also skips `force_ask` hasn't been - checked. -- X8 isn't met: the Skills hook asks before another server's - `read_resource` once a served skill is loaded, but Antigravity (CLI 1.5.17 - in auto and default mode, and App 2.35.1) ignores that question (no card; - the read goes ahead). The plugin doesn't refuse such reads instead: that - would block another server's reads, unrelated ones included, and no opt-in - setting for it is built. -- In CLI 1.5.17, a `PreToolUse` hook that fails, times out or prints - something that isn't JSON makes the call fail. -- Server Cards can't add a card that needs a secret: Antigravity's personal - `mcp_config.json` reads no `${VAR}`, and the plugin never writes one. -- The IDE documents no plugin hooks, so the forms aren't supported there, - and their gated calls are refused. -- Checked in App 2.35.1 and CLI 1.5.17. - -### Limits in Copilot - -- Everything Events needs from Copilot is in its extension API, which is - experimental: extensions load only in experimental mode, and the API may - change in any release. Checked in Copilot CLI 1.0.115. `copilot --acp` - loads no extensions, and `copilot -p` ends the session with the prompt, so - nothing is woken there. -- Events can't use a sign-in through Copilot. A header in `mcp-config.json` - works, written out or from `${VARIABLE}`, except variables Copilot keeps - from extensions. Its separate connection means a local (stdio) server - runs twice. -- Events reads only the servers Copilot enables for the session, from - `mcp-config.json` and a trusted project's `.mcp.json` or - `.github/mcp.json`. Servers a plugin brings, `--additional-mcp-config` and - the built-in GitHub server are listed as unavailable. A server you switch - off with `/mcp disable` stops its watches until a session has it again. -- Events needs an open session; `copilot --resume` picks watches up from - their cursors. The wake limits are the same as in the other forms. -- Each watch asks you in the plugin's own dialog, after Copilot's tool - prompt, because Copilot's prompt isn't always a person: in assisted mode - (which an organisation can make the default) an LLM review approves calls, - and allow-all approves everything. Where Copilot can't ask anyone - (`copilot -p`), no watch starts. `MCP_EVENTS_ASK_BY_DEFAULT=0` leaves it to - Copilot's rules. -- Server Cards and ARD add a server with `copilot mcp add`; it connects - after `/mcp reload` or in the next session. Copilot declines their form in - `copilot -p`, even with `--yolo`, so adding works in the interactive - session only. ARD's search was checked only against the repository's demo - registry. They don't compare a card with the live server (S-3), as in - the other forms - ([Server Cards](polyfills/server-cards/copilot/docs/conformance.md), - [ARD](polyfills/ard/copilot/docs/conformance.md)). -- Checked in VS Code's Copilot harness (1.147.0): Events end to end, where a - wake looks like a typed message whose first line names the plugin; and - Server Cards adding a server, through VS Code's tool prompt and then the - plugin's form, which VS Code shows as one paragraph. ARD's server loads - there. Not checked there: the plugin's own watch question, and an ARD - search. - -### Limits in Hermes - -- Events and Skills can't use a sign-in through Hermes (`auth: oauth`). They - open their own connections, with the headers in `config.yaml`, so a local - (stdio) server runs twice. They use only the servers named in their own - `settings.servers`, and leave alone a server whose entry takes `${VAR}` - from `.env`, where Hermes keeps secrets; Hermes's own connection to it - still works. -- Events' wake is a user message: `ctx.inject_message` puts it in the - conversation as if you typed it, so its first line says the plugin sent - it. Its grant, `allow_gateway_injection`, also lets the plugin start turns - in chat-app sessions; the plugin only ever wakes the session that set the - watch. The wake limits are the same as in the other forms. -- After a gateway restart, watches start again at the first session or - turn, not when the gateway starts. The plugins read the configuration - again at each turn and tool call, so a change takes effect at the next - turn. -- Skills found while a session runs are listed from the next session - (`list_skills` and `load_skill` reach them at once), so the first session - after install doesn't list them yet. Reading a skill's `SKILL.md` before - loading it takes a step of your own: deny, then type `/mcp-skills show`. -- Where Hermes approves without asking (`--yolo`, `/yolo`, `hermes -z`, - `approvals.mode: off`), the forms refuse each step that needs your own yes: - a watch, a skill load, a registry search and a server addition. Telling - that takes the test Hermes's approval gate uses, which isn't on Hermes's - published plugin API; where it can't be evaluated (another Hermes version, - `plugins.isolation: host`), the step is refused too. Hermes's unattended approve modes (`approvals.cron_mode`, - `single_query_mode` or `unattended_mode: approve`) still approve these steps - where nobody is present, as you set them to, and a kept "session" or - "always" answer covers its exact step. -- Server Cards and ARD write the server into `config.yaml`; it connects - after `/reload-mcp` or in a new session. ARD's search is checked by the - form's tests only. They don't compare a card with the live server (S-3), - as in the other forms. -- By default Hermes lists plugin tools behind Tool Search, and a model may - not find them there; `tools.tool_search.enabled: off` in `config.yaml` - lists them directly. -- Not checked on Windows. - -What Hermes would need to change is in -[`docs/host-changes.md`](docs/host-changes.md#in-hermes). - -## In T3 Code - -[T3 Code](https://github.com/pingdotgg/t3code) (0.1.11) is an app (desktop, -web and phone) that runs the coding agents already on your machine, Codex, -Claude Code and OpenCode among them, from one interface. It has no plugin -layer of its own and no MCP client for your servers: the agent connects them, -as it does on its own. So the plugins above load in T3 Code's threads, and -most of what they need from a host, T3 Code passes through. What follows was -checked with Codex as the agent; [T3 Code](docs/t3-code.md) has the details -and the sources. - -- **Apps: T3 Code does it itself.** It shows an MCP App under the tool call, - for Codex and for Claude Code 2.1.301 or newer. Don't install the Apps - polyfill for use in T3 Code. -- **Skills, Server Cards and ARD: the tools work, the one question doesn't.** - With Codex, each asks you before its consequential step ("Load it", "Add - it", "Send the search") with an MCP elicitation form. T3 Code shows such a - form only when it can answer it with Approve or Decline, and cancels the - others without showing them, so the step is refused as if you'd said no. - Nothing is approved for you. Checked in T3 Code 0.1.11 with Skills. Server - Cards and ARD use the same kind of form and were not checked in T3 Code. -- **Events: the T3 form, for Codex threads only.** The Codex plugin's wake - doesn't fit T3 Code: its turn runs where the thread doesn't show it. - [`mcp-events-t3`](polyfills/events/t3) is an MCP server you add to Codex. - T3 Code tells it which thread it serves, a watcher it starts outlives the - agent's sessions and T3 Code itself, and an event wakes the thread through - T3 Code's own `t3 thread send`. Claude Code threads - can't use it, because T3 Code doesn't tell Claude Code's servers which - thread they serve. The Claude Code mod's wakes could reach a thread at most - while T3 Code keeps its session open, and that was not checked. -- **Not checked in T3 Code:** anything with Claude Code or OpenCode as the - agent; the approval prompt for `watch_event` in a thread whose mode asks; - Server Cards and ARD. - -What T3 Code would need to change is in -[`docs/host-changes.md`](docs/host-changes.md#in-t3-code). - -## Other hosts +With Server Cards installed, try this prompt. -We haven't found a documented way for third-party code to send requests over -the host's MCP connection in Cursor or in VS Code's own chat, and ChatGPT runs -no third-party code on the client side. (VS Code's Copilot harness is another -matter: it runs Copilot CLI's runtime, and the Copilot forms run there.) For those, the only polyfill would be a -gateway: an MCP server that presents an extension as plain tools. That's a -weaker form (for Events, the model would have to poll, and nothing would wake -it), and none is shipped here. -Bringing a polyfill to another host is -[welcome](#an-existing-polyfill-in-another-host). +> What MCP servers does neon.com publish? -## Build one +Choose **Neon Docs**, review its address and approve the addition. Your host handles the connection and any required sign-in. -There are three ways in: build a new polyfill, bring an existing one to -another host, or list your own in the community directory. - -### A new polyfill - -The `create-polyfill` skill walks an agent through building a polyfill to -this contract: the spec's client rules as a checklist, how to reach each -thing the extension needs in the host, standing down, and what counts as -proof. - -``` -/plugin install polyfill-author --marketplace idosal/AgentPolyfill -``` - -Then ask for the extension you want, for example "polyfill MCP Apps in -Codex". The skill points the agent at the primary sources (the SEP, the -extension's spec, the core spec for the revision in use, the conformance -suite) and has it work from those. - -### When the spec doesn't have what you want - -A polyfill stays exact, so new behaviour doesn't go into one. The -`design-extension` skill, in the same plugin, covers that case. First it -checks whether the protocol already has a place for what you want. If it's -really new, it helps you design it as its own extension under MCP's extension -rules (your own identifier, a declaration, defined behaviour when the other -side lacks it, a written spec, two implementations) and take it to the -working group. - -Both skills are plain `SKILL.md` files -([create-polyfill](plugins/polyfill-author/skills/create-polyfill/SKILL.md), -[design-extension](plugins/polyfill-author/skills/design-extension/SKILL.md)), -so any agent that reads skills can use them. - -### An existing polyfill in another host - -Each polyfill is one folder per extension. The part that doesn't depend on a -host (the protocol, the spec's client rules and their tests) lives in `core/`, -and next to it is one adapter per host, which wires that core into what the -host lets outside code do. Events and Skills are built that way: one `core/` -with these forms: - -- `claude-code/`: a Claude Code mod (Events has one; Skills doesn't, because - Claude Code lists served skills itself). -- `codex/`: a Codex plugin. -- `pi/`: a Pi extension. -- `opencode/`: an OpenCode plugin. -- `antigravity/`: a Google Antigravity plugin. -- `copilot/`: a Copilot CLI plugin (Events only; Copilot has Skills built in). -- `hermes/`: a Hermes Agent plugin, a Python half Hermes loads and the - shared client bundled as a Node helper it starts. - -Bringing one to a new host means writing a new adapter. Find how the host lets -a plugin reach the wire (a connection of its own, a tool call, a way to wake -an idle session), meet the contract there, write down what that host can't -do, and make it installable in that host (through its marketplace, where it -has one). -[`CONTRIBUTING.md`](CONTRIBUTING.md#bringing-a-polyfill-to-another-host) has -the steps, and `create-polyfill` covers it too. - -### Your own, listed in the community directory - -If you keep a polyfill in your own repository, you can list it in -[`community/`](community/) with a pull request: one entry with the extension, -the spec revision, the hosts, your repository and its install line. Listed -polyfills aren't reviewed or shipped by this project and aren't in its -marketplaces. One that meets the contract can move into `polyfills/` after a -review. - -## For spec authors - -An MCP extension reaches Stable through a second Extensions Track SEP. Among -other things, that SEP must "Show two independent implementations, at least -one client-side and one server-side, that interoperate", include a -conformance scenario, and show the extension has been used for real -([SEP-3392](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/main/seps/3392-extension-lifecycle.md)). - -A polyfill can be that client-side implementation, in hosts that haven't -shipped the extension yet, used by real people against real servers. Each one -here names the spec revision it implements. Events and Skills have a test for -every client rule and run against servers their authors didn't write. Skills -passes the official conformance suite's Skills client scenarios in Codex, Pi, -Antigravity and Hermes, and Events passes the Events client scenarios proposed -upstream (still an open pull request in the conformance suite). Apps checks -the spec requirement by requirement in its compliance page. Whether a polyfill -counts as an independent implementation for a given SEP is up to that -extension's maintainers. - -In Pi, Skills passes all four upstream client scenarios. Events passes all -17 checks with the shared client as the Pi form runs it; end to end through -real Pi, 11 pass, none fail, and six can't be evaluated because Pi's own -client also connects to the suite's server. The Pi forms' conformance pages -record the details ([Skills](polyfills/skills/pi/docs/conformance.md), -[Events](polyfills/events/pi/docs/conformance.md)). - -In OpenCode, the forms bundle the shared Events and Skills clients -unchanged, and the upstream suites weren't run through OpenCode. The Skills -form's conformance page maps all 60 rules to OpenCode: 54 met, 4 met with a -stated exception, and one not met, X13b (letting you inspect a skill before -it loads), which needs a change in OpenCode. The Events page lists the -clauses its tests check end to end in a real OpenCode, and its departure -from rule 4 ([Skills](polyfills/skills/opencode/docs/conformance.md), -[Events](polyfills/events/opencode/docs/conformance.md)). - -In Antigravity, Skills passes all four upstream client scenarios and Events -all 17 checks (suite at `c8625de`): Events through its MCP server and real -hook, Skills through its MCP server code with its hook's handlers run -in-process (a `force_ask` taken as yes). Events was also checked against a -server this project didn't write: this repository's deploys demo, whose -Events support is Mastra's own implementation. The Antigravity conformance pages record the details -([Skills](polyfills/skills/antigravity/docs/conformance.md), -[Events](polyfills/events/antigravity/docs/conformance.md)). - -In Copilot, Events passes all 17 checks of the upstream Events client -scenarios end to end through the bundled extension, and its tests check the -SEP's rules through the extension as Copilot starts it -([Events](polyfills/events/copilot/docs/conformance.md), -[Server Cards](polyfills/server-cards/copilot/docs/conformance.md), -[ARD](polyfills/ard/copilot/docs/conformance.md)). - -In Hermes, Events passes the 14 checks of the upstream Events client -scenarios that apply, through the bundled helper as the plugin starts it; -the webhook scenario's three are "unverified, not violated", since webhook -delivery is Hermes's own there. Skills passes the four upstream Skills client -scenarios through the bundled helper, and its conformance page maps all 60 -rules to Hermes: 53 met, 6 met with a stated exception, none not met -([Events](polyfills/events/hermes/docs/conformance.md), -[Skills](polyfills/skills/hermes/docs/conformance.md)). - -If your extension needs a client in a host that doesn't have one, open an -issue, or build it with the `create-polyfill` skill. - -## More ways to install - -**Claude Code.** One polyfill at a time, at the prompt of a `claude` session: - -``` -/plugin install mcp-events --marketplace idosal/AgentPolyfill -``` - -The same works for `mcp-apps-cli`, `mcp-server-cards` and -`ard-discovery`; `ard-discovery` brings `mcp-server-cards` with it. In a -terminal, use `claude plugin install` with the same arguments. - -The first install adds this repository's marketplace too. After that, the -short form is `/plugin install mcp-events@agent-polyfill`. To add the -marketplace on its own, run `/plugin marketplace add idosal/AgentPolyfill`. -`agent-polyfill` holds nothing of its own: it depends on every MCP polyfill -here (all of the above except `ard-discovery`), and each one stays a plugin -you can disable or uninstall separately. Start a new `claude` session for -plugins to load. - -**Codex.** With the marketplace added, `codex plugin add @agent-polyfill` -installs one (`mcp-events`, `mcp-skills`, `mcp-server-cards` or -`ard-discovery`), and `codex plugin remove @agent-polyfill` removes it. -Codex has no bundle. - -**Pi.** `pi install git:github.com/idosal/AgentPolyfill` installs Events, -Skills and Server Cards together. Update installed packages with -`pi update --extensions`. Remove all three and Pi's copy of the repository -with `pi remove git:github.com/idosal/AgentPolyfill`. - -For one run of all three without installing: - -```bash -pi -e git:github.com/idosal/AgentPolyfill -``` - -To install any one form alone, use a clone. Replace `` with `events`, -`skills`, `server-cards` or `ard`: - -```bash -git clone https://github.com/idosal/AgentPolyfill.git -cd AgentPolyfill -pi install ./polyfills//pi/extension -``` - -Pi loads the local path where it is, so keep the clone. For one run without -installing, use `pi -e ./polyfills//pi/extension`. To remove a local -install, run `pi remove ./polyfills//pi/extension` from the same folder. -Use one way per form, not both: Pi tells packages apart by their repository -address or local path, so a form installed both ways loads twice. - -After removal, Events and Skills data stays in `mcp-events/` and `mcp-skills/` -in Pi's agent folder (`~/.pi/agent`, or `PI_CODING_AGENT_DIR`); delete those -folders too to remove it. Servers added by Server Cards or ARD stay in -`mcp.json`; remove each with `pi mcp remove `. - -**OpenCode.** A commit in place of `main` in the `opencode plugin add` line -pins one version. `opencode plugin remove` with the same text takes the -plugin out of your global `opencode.json`; OpenCode's downloaded copy stays -in `~/.cache/opencode/npm/` (a `git-AgentPolyfill-…` folder), which you can -delete. From a clone of this repository, you can instead add a polyfill's -`plugin` folder to `plugins` in `opencode.json`, the global one or a -project's: - -```jsonc -{ - "plugins": ["/path/to/AgentPolyfill/polyfills/events/opencode/plugin"] -} -``` - -OpenCode loads it the next time it opens the project; take the entry out to -remove it. A plugin option such as `askByDefault` goes in the object form of -the entry: `{ "package": "", "options": { "askByDefault": false } }`. -Nothing for OpenCode is published to npm. - -Removing a plugin leaves its data. Events keeps its watches, stored events -and log in `~/.local/share/opencode/mcp-events/`, and Skills its log in -`~/.local/share/opencode/mcp-skills/`; delete those folders too to remove -it. The "Allow always" answers Events and Skills kept, and which skills each -session loaded, stay in OpenCode's plugin storage. Servers added by Server -Cards or ARD were never in your configuration files, so they stop being -added; their list stays in that storage and comes back if you install the -plugin again, unless you remove each server first -(`server_cards_remove_mcp_server` or `ard_remove_mcp_server`). - -**Antigravity.** -`agy plugin install https://github.com/idosal/AgentPolyfill/tree/main/polyfills//antigravity/plugin` -(or `./polyfills//antigravity/plugin` from a clone) installs one, -and `agy plugin uninstall ` removes it (`mcp-events`, `mcp-skills`, -`mcp-server-cards` or `ard-discovery`). Both need the Antigravity CLI; the -App doesn't ship `agy`. The -plugins' own data stays in `~/.gemini/agentpolyfill//`, Skills' -placeholders in `~/.gemini/config/skills/mcp-skills-served--*`, and servers -added by Server Cards or ARD in `~/.gemini/config/mcp_config.json`; each -README says what to delete. Nothing is published to Antigravity's -Marketplace. - -**GitHub Copilot CLI.** With the marketplace added (Copilot reads -`.github/plugin/marketplace.json`), `copilot plugin install @agent-polyfill` -installs one (`mcp-events`, `mcp-server-cards` or `ard-discovery`), and -`copilot plugin uninstall @agent-polyfill` removes it. Copilot has no -bundle. For one run without installing, from a clone: -`copilot --experimental --plugin-dir ./AgentPolyfill/polyfills//copilot/plugin`. -Uninstalling leaves Events' data in `~/.copilot/mcp-events/` and the servers -Server Cards or ARD added in `~/.copilot/mcp-config.json` -(`copilot mcp remove `); the marketplace stays until -`copilot plugin marketplace remove agent-polyfill`. Each form's README has -the details. - -**Hermes Agent.** `hermes plugins install` takes a path in this repository on -GitHub (`idosal/AgentPolyfill/polyfills//hermes/plugin`), as in -[Install](#install). From a clone, put a form's `plugin/` folder in -`$HERMES_HOME/plugins//` and run `hermes plugins enable `. There -is no bundle and no marketplace file. `hermes plugins remove ` removes -one; Events and Skills leave their data in `$HERMES_HOME/mcp-events/` and -`$HERMES_HOME/mcp-skills/`, and the servers Server Cards or ARD added stay in -`config.yaml` (`hermes mcp remove `). Each form's README has the -details. - -### If you installed `mcp-skills` in Claude Code - -The marketplace no longer lists `mcp-skills` for Claude Code, and from -version 0.3.0 the `agent-polyfill` bundle no longer depends on it. Remove an -install you already have with `/plugin uninstall mcp-skills@agent-polyfill`. -Whether Claude Code removes it by itself when the bundle stops depending on -it isn't known here, so look in `/plugin`. Before you uninstall, -`/mcp-skills forget` drops the approvals it kept and `/mcp-skills setup remove` -deletes its copy of Bun, if you had it download one; -[what it kept on your machine](polyfills/claude-code/skills/README.md) has -the rest. +## Polyfills -## Safety +Select a host adapter for its install commands, examples and limits. -These are third-party plugins and extensions, and they run with your -permissions: +| Polyfill | What you can do | Host adapters | +| --- | --- | --- | +| [**Apps**](https://agentpolyfill.com/guide/apps) | Play DOOM or explore a chart inside a tool call. | [Claude Code](polyfills/apps/claude-code) | +| [**Events**](https://agentpolyfill.com/guide/events) | Wake an idle agent when a deployment fails. | [Claude Code](polyfills/events/claude-code) · [Codex](polyfills/events/codex) · [Pi](polyfills/events/pi) · [OpenCode](polyfills/events/opencode) · [Antigravity](polyfills/events/antigravity) · [Copilot CLI](polyfills/events/copilot) · [Hermes](polyfills/events/hermes) · [T3 Code](polyfills/events/t3) | +| [**Skills**](https://agentpolyfill.com/guide/skills) | Load a skill from Hugging Face to choose a model quantization. | [Codex](polyfills/skills/codex) · [Pi](polyfills/skills/pi) · [OpenCode](polyfills/skills/opencode) · [Antigravity](polyfills/skills/antigravity) · [Hermes](polyfills/skills/hermes) | +| [**Server Cards**](https://agentpolyfill.com/guide/server-cards) | Find the MCP servers published by `neon.com` and add Neon Docs. | [Claude Code](polyfills/server-cards/claude-code) · [Codex](polyfills/server-cards/codex) · [Pi](polyfills/server-cards/pi) · [OpenCode](polyfills/server-cards/opencode) · [Antigravity](polyfills/server-cards/antigravity) · [Copilot CLI](polyfills/server-cards/copilot) · [Hermes](polyfills/server-cards/hermes) | +| [**ARD**](https://agentpolyfill.com/guide/ard) | Find Buildkite’s MCP server by domain or search an ARD registry. | [Claude Code](polyfills/ard/claude-code) · [Codex](polyfills/ard/codex) · [Pi](polyfills/ard/pi) · [OpenCode](polyfills/ard/opencode) · [Antigravity](polyfills/ard/antigravity) · [Copilot CLI](polyfills/ard/copilot) · [Hermes](polyfills/ard/hermes) | -- **Claude Code:** a mod. -- **Codex:** a plugin. -- **Pi:** an extension in Pi's process. Pi runs tools without asking unless - a permission extension asks. Each polyfill asks before its consequential - step: a watch, a skill load, a registry search or a server addition. It - never auto-approves; Pi's permissions remain the boundary. -- **OpenCode:** a plugin in OpenCode's server. OpenCode's shipped rules - allow every action, so each polyfill puts its consequential step (a watch, - a skill load, a registry search or a server addition) to OpenCode's - permission rules and makes it ask by default. It never answers for you; - OpenCode's rules remain the boundary. -- **Antigravity:** a plugin: an MCP server and command hooks, and for Events a - sidecar you turn on. Antigravity's own approval card is the boundary: each - watch, new or changed skill load, addition and registry search asks there - through `force_ask`. Every other tool, an approved unchanged skill load - included, gets Antigravity's usual MCP question, which allow rules can - skip. Whether `--dangerously-skip-permissions` also skips `force_ask` - hasn't been checked. Nothing is auto-approved. The plugins read - `~/.gemini/config/mcp_config.json`, which can hold header values, and never - log or show them. -- **Copilot CLI:** a plugin, and for Events an extension, a child process of - Copilot's. Copilot's own prompts are the boundary, and its rules apply to - every tool. It can approve a call without you, in assisted mode (an LLM - review, which an organisation can make the default) or with allow-all, so - each polyfill asks before its consequential step itself: a - watch in the plugin's dialog, a registry search or a server addition in the - plugin's form. It never answers for you. -- **Hermes Agent:** a plugin, a Python half that runs in Hermes's gateway, - and a Node helper it starts. Hermes's own approval is the boundary: a - watch, a skill load, a registry search and a server addition each go to - it, and it fails closed where nobody can answer. Where Hermes approves - without asking (`--yolo`, `/yolo`, `hermes -z`, `approvals.mode: off`), each polyfill - refuses that step instead, since Hermes would answer for you. Hermes's unattended approve modes (`approvals.cron_mode`, - `single_query_mode` or `unattended_mode: approve`) still approve these steps - where nobody is present, as you set them to, and a kept "session" or - "always" answer covers its exact step. -- **T3 Code:** the plugins of the agent it runs, as above. The T3 Events form - is an MCP server Codex starts, plus a watcher of its own that keeps running - after T3 Code closes, until no thread has a watch. +Agentic Resource Discovery (ARD) is a separate draft protocol. Its plugin asks before sending your query to a registry. -None reads the host's stored credentials, including Pi's `mcp-auth.json` -or `auth.json`, OpenCode's OAuth tokens, Antigravity's -`mcp_oauth_tokens.json`, Copilot's `config.json`, OAuth store or keychain -entries, and Hermes's `.env`, `auth.json` or token store (`mcp-tokens/`). -Each polyfill's `SECURITY.md` says what it checks and what it doesn't protect -against. -[`SECURITY.md`](SECURITY.md) says how to report a problem privately. +Claude Code 2.1.332+ includes native Skills in beta. [Migrating from the older plugin](polyfills/claude-code/skills/README.md). +The Antigravity App renders MCP Apps natively. Copilot CLI advertises Skills and its VS Code integration enables Apps. [Copilot compatibility notes](polyfills/events/copilot/README.md#skills-and-apps-in-copilot). -## Repository layout +[T3 Code](docs/t3-code.md) uses the underlying agent’s plugins and has a dedicated Events adapter for Codex threads. +[Tasks for Codex](polyfills/tasks/codex) is also available from source. -- **`polyfills//`**: one folder per extension, with a subfolder per - host it runs in, and a `core/` next to them when the hosts share code. - [`events`](polyfills/events) and [`skills`](polyfills/skills) have a core. - Each host's forms live in a folder named for it: +## Compatibility and security - - `claude-code/`: mods for Events, Server Cards, ARD and Apps. - - `codex/`: plugins for Events, Skills, Server Cards and ARD. - - `pi/`: extensions for Events, Skills, Server Cards and ARD, each with - an installable `extension/` folder and its own README and SECURITY.md. - - `opencode/`: plugins for Events, Skills, Server Cards and ARD, each with - an installable `plugin/` folder (one bundled `server.js` and a - `package.json`) and its own README and SECURITY.md. - - `antigravity/`: plugins for Events, Skills, Server Cards and ARD, each - with an installable `plugin/` folder, its own README, SECURITY.md and - `docs/conformance.md`. - - `copilot/`: Copilot CLI plugins for Events, Server Cards and ARD, each - with an installable `plugin/` folder and its own README and SECURITY.md. - - `hermes/`: Hermes Agent plugins for Events, Skills, Server Cards and - ARD, each with an installable `plugin/` folder (the Python half and a - bundled Node helper) and its own README and SECURITY.md. - - `t3/`: the Events form for T3 Code - ([`polyfills/events/t3`](polyfills/events/t3)), an MCP server for Codex - threads in T3 Code. -- **Marketplaces.** - [`.claude-plugin/marketplace.json`](.claude-plugin/marketplace.json) lists - everything for Claude Code, including the two plugins in - [`plugins/`](plugins): `agent-polyfill`, which installs every MCP polyfill, - and `polyfill-author`, the skills for building one. - [`.agents/plugins/marketplace.json`](.agents/plugins/marketplace.json) lists - the Codex plugins. - The root [`package.json`](package.json) lists the three Pi extensions - installed by `pi install git:github.com/idosal/AgentPolyfill`. Local - folders are the alternative for one form, and the way to install ARD; - none is published to npm or Pi's package gallery. - OpenCode's forms are installed from their folders on GitHub with - `opencode plugin add`; none is published to npm, and there is no - marketplace file for them. - Antigravity's are installed with `agy plugin install` from their `plugin/` - folders on GitHub; none is in its Marketplace. - [`.github/plugin/marketplace.json`](.github/plugin/marketplace.json) lists - the Copilot CLI plugins. Hermes's forms are installed from their folders - on GitHub with `hermes plugins install`; there is no marketplace file for - them. -- **[`tools/opencode`](tools/opencode):** the pinned OpenCode and the harness - the OpenCode forms' tests run in. -- **[`tools/hermes`](tools/hermes):** the pinned Hermes, the harness the - Hermes forms' tests run in, and the Python modules the plugins share. -- **[`servers/`](servers):** the demo servers hosted for trying a polyfill, - such as [`event-feeds`](servers/event-feeds) for Events. -- **[`community/`](community/):** the community directory. -- **[`site/`](site):** the website, [agentpolyfill.com](https://agentpolyfill.com). +- Events, Skills and Apps adapters that open a separate connection to a server cannot reuse the host’s OAuth session. [Host API limitations](docs/host-changes.md) +- Codex cannot prompt before a loaded skill reads resources from another server. [Skills in Codex](polyfills/skills/codex) +- When an app omits `ui.csp`, the Claude Code adapter uses a more permissive default content security policy. [Apps conformance](polyfills/apps/claude-code/docs/COMPLIANCE.md) -Marketplace plugins release on their own, under tags that start with the -plugin's name (for example `mcp-apps-cli-v0.1.0`). +[Security and vulnerability reporting](SECURITY.md) · [Interoperability results](https://agentpolyfill.com/guide/spec-authors) ## Contributing -Found a problem or have a question? Open an issue. A new polyfill, or an -existing one brought to another host, is welcome if it meets the -[contract](docs/polyfill-contract.md); the `create-polyfill` skill is the -quickest way to build one that does. [`CONTRIBUTING.md`](CONTRIBUTING.md) -explains how to add one to this repository, and how to list one you keep -elsewhere in the [community directory](community/). - -## Licence and status +To add a host adapter or implement an extension, see the [contributing guide](CONTRIBUTING.md) +and [polyfill contract](docs/polyfill-contract.md). Independently maintained plugins can be listed in the [community directory](community/). -Apache-2.0. See [LICENSE](LICENSE). +## License -A community project by [Ido Salomon](https://github.com/idosal). It isn't part -of the MCP specification, and it isn't affiliated with or endorsed by the MCP -project, the Agentic AI Foundation, the Linux Foundation, Anthropic, OpenAI or -any other host vendor. The author works in the MCP Apps working group; this -isn't working-group output. Model Context Protocol and MCP are trademarks of -LF Projects, LLC. Claude and Claude Code are trademarks of Anthropic, PBC. -OpenAI and Codex are trademarks of OpenAI. +[Apache-2.0](LICENSE). diff --git a/community/README.md b/community/README.md index 1380623a..889276eb 100644 --- a/community/README.md +++ b/community/README.md @@ -56,15 +56,7 @@ Open a pull request that adds one object to the `polyfills` array: Other hosts are welcome too. - **`summary`**: one plain sentence. - **`repository`** and **`install`**: where it lives, and the command or steps - that install it. For a Pi extension, give its tested `pi install` command; - if it needs a clone, include the clone steps and local path. For an - OpenCode plugin, give the `opencode plugin add` line, or the folder to put - in `plugins` in `opencode.json`. For an Antigravity plugin, give the - `agy plugin install` line and the folder it takes. For a Copilot CLI plugin, - give the marketplace and `copilot plugin install` lines, and say if it needs - experimental mode (every Copilot extension does). For a Hermes Agent - plugin, give the `hermes plugins install` line and the settings it needs - in `config.yaml`. The repository's README states the spec revision, its + that install it, including any required host settings. The repository’s README states the spec revision, its limits and what it sends where. - **`maintainer`**: your GitHub handle. - **`contract`**: where it stands on this project's @@ -80,44 +72,6 @@ Open a pull request that adds one object to the `polyfills` array: Entries stay in the order they were added. The site's build checks each one for these fields. -This repository's Pi forms are in `polyfills//pi/`, with the -installable extension in `extension/`. They cover Events, Skills, Server -Cards and ARD; Apps has no Pi form. -`pi install git:github.com/idosal/AgentPolyfill` installs Events, Skills and -Server Cards together. A clone is the alternative for one form, and the -way to install ARD: its search sends the words of your request to a registry -after asking each time, so it is left out of the one-line install as it is -from the Claude Code bundle. Nothing for Pi here is published to npm or -Pi's package gallery. The [root README](../README.md#install) has the steps. - -This repository's OpenCode forms are in `polyfills//opencode/`, -with the installable plugin in `plugin/`. They cover Events, Skills, Server -Cards and ARD; Apps has no OpenCode form. Nothing for OpenCode here is -published to npm: `opencode plugin add` installs each one from GitHub. The -[root README](../README.md#install) has the tested install lines. - -This repository's Antigravity forms are in `polyfills//antigravity/`, -with the installable plugin in `plugin/`. They cover Events, Skills, Server -Cards and ARD; Apps has no Antigravity form, because the App shows MCP Apps -itself. Nothing is published to Antigravity's Marketplace. Each installs from -its `plugin/` folder on GitHub with `agy plugin install`, which needs the -Antigravity CLI (the App doesn't ship `agy`) and Git, as the -[root README](../README.md#install) shows. - -This repository's Copilot CLI forms are in `polyfills//copilot/`, -with the installable plugin in `plugin/`. They cover Events, Server Cards and -ARD; Copilot has Skills and Apps built in. Its marketplace is -`.github/plugin/marketplace.json`, installed from a clone (tested with 1.0.115) or from GitHub -(checked in Copilot CLI 1.0.105; not checked in 1.0.115, in the interactive -TUI, or in VS Code). The [root README](../README.md#install) has -the steps. - -This repository's Hermes Agent forms are in `polyfills//hermes/`, -with the installable plugin in `plugin/`. They cover Events, Skills, Server -Cards and ARD; Apps has no Hermes form yet. `hermes plugins install` installs -each one from its folder on GitHub; there is no marketplace file. The -[root README](../README.md#install) has the install lines. - ## What gets listed - It implements the client side of a published extension, in a host that diff --git a/docs/host-changes.md b/docs/host-changes.md index 8e2fd3cf..a325eb7a 100644 --- a/docs/host-changes.md +++ b/docs/host-changes.md @@ -1,17 +1,11 @@ # What hosts would need to change -Claude Code, Codex, Pi, OpenCode, Antigravity, GitHub Copilot CLI and Hermes -Agent all let outside code extend them. That gets a polyfill most of the way: -it can add tools, react to what happens in a -session, and wake a session that has gone idle. What none of them lets a -plugin do is speak an extension's own protocol over the host's connection to -a server. This page explains that gap, the four small changes that would close -it in each host, and what each extension needs from them. +Events, Skills and Apps need MCP methods or notifications that host plugin APIs +do not fully expose. Adapters that open their own connection cannot reuse the +host’s OAuth session. The tables below identify the missing APIs and the +extensions that would use them. -None of the changes names an extension. They are generic, and any future -extension would use them the same way. - -This page is for these versions: +Versions examined: - Claude Code 2.1.330 (its mod API types). - Codex CLI 0.170.0 (its `app-server` protocol, as @@ -96,11 +90,11 @@ headers for the method, or takes them from the caller. - **Claude Code** has nothing like it today. It could be `$.mcp.request(server, method, params)` next to the existing `$.mcp.call`. -- **Codex** already has the hard part. Its MCP client can send any request +- The **Codex** MCP client can send any request (`send_custom_request`), but only Codex itself can use it. It could be an app-server method such as `mcpServer/request { threadId, server, method, params }`, behind `experimentalApi`, returning the raw result. -- **Pi** has the hard part too. Its MCP client (`McpClient.request()` in +- The **Pi** MCP client (`McpClient.request()` in `pi-mcp`) sends any method, but the built-in MCP extension keeps its clients to itself. It could be `pi.getMcpServerSession(name)` in the extension API, provided by whichever extension connects MCP servers, as @@ -109,18 +103,18 @@ headers for the method, or takes them from the caller. the caller the request's JSON-RPC id (push notifications are routed by it), takes per-request `Mcp-*` routing headers, and refuses `tools/call`, so tools stay on Pi's tool pipeline, where permission extensions see them. -- **OpenCode** has the hard part too: its MCP client already sends `events/*` +- The **OpenCode** MCP client sends `events/*` for itself. It could be `ctx.mcp.request({ server, method, params })` beside `ctx.mcp.list`, on the connection OpenCode holds, with its sign-in. - **Antigravity** has nothing like it. Its MCP client is closed, so this would be a new plugin API, for example a method a plugin's MCP server or sidecar can call. -- **Copilot** has the same shape next to it: `session.rpc.mcp.callTool` and +- **Copilot** exposes two related methods: `session.rpc.mcp.callTool` and `resources.read` already go over Copilot's connection "with the existing server admission and tool permission checks". A `session.rpc.mcp.request({ serverName, method, params })` beside them, returning the raw result, would close it. -- **Hermes** has the hard part too: its webhook support for Events +- The **Hermes** webhook implementation for Events (`tools/mcp_tool_events.py`) sends `events/*` over the native session with `session.send_request`, under the server's RPC lock. It could be `ctx.mcp_request(server, method, params, timeout)` next to `ctx.call_mcp`, @@ -560,8 +554,8 @@ details: - **Scope.** A plugin could declare in its manifest which extension it implements and which method prefixes it will send (`events/`, `skills/`). Then you see the grant when you install it, and the pipe isn't open-ended. -- **Credentials.** Requests go out with your sign-in. That's the point, and - it's also why the scope above matters. +- **Credentials.** Requests use the host’s authenticated connection. Restrict that access + to the servers and methods granted to the plugin. - **Who may call, in Copilot.** An extension already gets an elevated-permission question before it may skip tool prompts or register hooks. A raw MCP pipe is the same kind of grant, and could be asked the same way, naming the @@ -592,4 +586,4 @@ details: - **MCP Apps in Antigravity's CLI and IDE,** which show text only. The App supports MCP Apps itself, so there is no Apps polyfill for Antigravity. - **Hosts with no extension layer and no API like Codex's `app-server`** - (ChatGPT is one). See the [README](../README.md#other-hosts). + (ChatGPT is one). See the [host support table](../README.md#polyfills). diff --git a/docs/media/demos/apps.gif b/docs/media/demos/apps.gif new file mode 100644 index 00000000..b2052fe5 Binary files /dev/null and b/docs/media/demos/apps.gif differ diff --git a/docs/media/demos/ard.gif b/docs/media/demos/ard.gif new file mode 100644 index 00000000..c705793a Binary files /dev/null and b/docs/media/demos/ard.gif differ diff --git a/docs/media/demos/events.gif b/docs/media/demos/events.gif new file mode 100644 index 00000000..75be2bbb Binary files /dev/null and b/docs/media/demos/events.gif differ diff --git a/docs/media/demos/launch.gif b/docs/media/demos/launch.gif new file mode 100644 index 00000000..b0ae685a Binary files /dev/null and b/docs/media/demos/launch.gif differ diff --git a/docs/media/demos/server-cards.gif b/docs/media/demos/server-cards.gif new file mode 100644 index 00000000..6d4c14d0 Binary files /dev/null and b/docs/media/demos/server-cards.gif differ diff --git a/docs/media/demos/skills.gif b/docs/media/demos/skills.gif new file mode 100644 index 00000000..0d42fcfa Binary files /dev/null and b/docs/media/demos/skills.gif differ diff --git a/docs/polyfill-contract.md b/docs/polyfill-contract.md index c3bbaae0..45684d07 100644 --- a/docs/polyfill-contract.md +++ b/docs/polyfill-contract.md @@ -1,7 +1,7 @@ # The polyfill contract -A polyfill in this repository meets these rules. Where one doesn't yet, its -README says so. +These requirements apply to each host adapter. Document exceptions in the +adapter’s README. ## 1. One published extension, client side, and nothing else @@ -20,7 +20,6 @@ unchanged, and "extension" below means either kind. It adds no methods, fields, capabilities or policy of its own. If a server behaves in a way the spec doesn't define, the polyfill refuses or ignores it. -It doesn't invent an accommodation. One exception is allowed: an earlier form of the same extension that servers in real use still speak. A polyfill may accept that form if it: @@ -30,8 +29,7 @@ in real use still speak. A polyfill may accept that form if it: exactly; - says in its README that this goes beyond the spec. -Any other exception is one the user makes on purpose, for one server at a -time, and is off by default. +Other exceptions require explicit opt-in for each server and are disabled by default. Example: by default `mcp-events` also uses servers that advertise events in the form from before SEP-3415. `MCP_EVENTS_PRE_STANDARD=off` turns that off, diff --git a/docs/t3-code.md b/docs/t3-code.md index 67ef8aeb..7f0c0867 100644 --- a/docs/t3-code.md +++ b/docs/t3-code.md @@ -11,13 +11,6 @@ Checked against T3 Code 0.1.11 (the `t3` npm package, released 20 November ## What T3 Code is -T3 Tools makes one agent product that runs on your machine: T3 Code. T3 Chat, -the company's chat app, is a hosted web product. Neither pingdotgg nor -t3dotgg publishes its source (the repositories named after it on GitHub are -other people's clones), and T3 Code's docs mention it only as a plan that lets -T3 Connect link more machines. It has nothing local for a polyfill to plug -into, so nothing here applies to it. - T3 Code doesn't have an agent loop of its own. It drives the agents you already have and are signed in to: Claude Code, Codex, Cursor, OpenCode, Grok Build, Antigravity, Kiro, Pi, Muse Code, fx, and any ACP agent. Each is a diff --git a/plugins/agent-polyfill/README.md b/plugins/agent-polyfill/README.md index 4f376059..5fd5927d 100644 --- a/plugins/agent-polyfill/README.md +++ b/plugins/agent-polyfill/README.md @@ -1,39 +1,21 @@ # agent-polyfill -Installs every MCP polyfill in the [AgentPolyfill](../../README.md) -marketplace for Claude Code at once. It holds no code of its own: it lists -each polyfill as a dependency, and Claude Code installs the dependencies from -the same marketplace. +Install the Claude Code plugin bundle, then start a new session: -``` +```text /plugin install agent-polyfill --marketplace idosal/AgentPolyfill ``` -Today that is: - -- `mcp-apps-cli`: MCP Apps, app UIs inline in the terminal - ([README](../../polyfills/apps/claude-code/README.md)). -- `mcp-events`: MCP Events, Claude watches events on your MCP servers and - reacts when they happen - ([README](../../polyfills/events/claude-code/README.md)). -- `mcp-server-cards`: MCP Server Cards, Claude finds the MCP servers a domain - publishes and adds the one you pick - ([README](../../polyfills/server-cards/claude-code/README.md)). - -Each polyfill is a plugin of its own, so you can disable or uninstall any of -them on its own, or install only the ones you want -(`/plugin install mcp-apps-cli --marketplace idosal/AgentPolyfill`). +- [`mcp-apps-cli`](../../polyfills/apps/claude-code/) — Render interactive MCP Apps in the terminal. +- [`mcp-events`](../../polyfills/events/claude-code/) — Watch and receive MCP events. +- [`mcp-server-cards`](../../polyfills/server-cards/claude-code/) — Discover and add MCP servers by domain. -## Skills is no longer in the bundle +Each plugin can also be installed or disabled individually. +[ARD discovery](../../polyfills/ard/claude-code/) is installed separately. -Up to version 0.2.0 the bundle also installed `mcp-skills`. From 0.3.0 it -doesn't, and the marketplace no longer lists it: Claude Code lists skills from -MCP servers itself, in beta from 2.1.332 -([changelog](https://code.claude.com/docs/en/changelog)). +## Upgrading from 0.2.0 -If you installed it before, by name or through this bundle, remove it with -`/plugin uninstall mcp-skills@agent-polyfill`. Whether Claude Code removes a -plugin by itself when a bundle stops depending on it isn't known here, so -look in `/plugin` after updating. What it kept on your machine, and how to -remove that, is in -[`polyfills/claude-code/skills`](../../polyfills/claude-code/skills/README.md). +Claude Code supports MCP Skills natively from 2.1.332 (beta). Version 0.3.0 +removed `mcp-skills` from the bundle. Check `/plugin` after updating. If the old +plugin is still installed, run `/plugin uninstall mcp-skills@agent-polyfill`. +See [migration and local data cleanup](../../polyfills/claude-code/skills/README.md). diff --git a/polyfills/apps/claude-code/README.md b/polyfills/apps/claude-code/README.md index a8789088..bfd55e59 100644 --- a/polyfills/apps/claude-code/README.md +++ b/polyfills/apps/claude-code/README.md @@ -5,20 +5,20 @@ MCP Apps in the Claude Code terminal. When Claude calls a tool that ships an interface appears inline, under the tool call, and you can click, drag and type into it. Existing MCP servers work unmodified. + + + + Claude Code runs DOOM, plots CPU usage and rotates a 3D model in the terminal. + + + +[Watch DOOM, a live chart and a 3D model in Claude Code (19 s)](https://agentpolyfill.com/media/apps.mp4) + - **Real pixels** in terminals that show images: iTerm2 3.5+, kitty and Ghostty. - **Character cells** everywhere else: Terminal.app, VS Code, tmux and so on. Text, including chart labels, stays real characters. -![Real pixels on the left, character cells on the right](docs/demo-side-by-side.png) - -The [video](https://github.com/idosal/AgentPolyfill/releases/download/mcp-apps-cli-v0.1.0/mcp-apps-cli-demo.mp4) -(33 s, MP4) starts with a classic shareware game from the hosted arcade -server, played with keys and clicks. Next, a cohort heatmap from an MCP server -opens under the tool call and answers the pointer. Last comes a 3D scene -Claude writes, turned by dragging. The still above is from an earlier -recording of two terminals side by side. - Codex: not yet. What Codex would need is in [What hosts would need to change](../../../docs/host-changes.md). @@ -109,6 +109,8 @@ Each of these comes up once. ### Using a view +![Graphics and character-cell rendering side by side](docs/demo-side-by-side.png) + Add MCP servers as usual. When Claude calls a tool with an MCP App, the app appears under the call, sized to fit. @@ -307,11 +309,3 @@ Releases are built on GitHub Actions Apache-2.0 ([LICENSE](../../../LICENSE)). The helper includes third-party crates and npm packages under their own licenses: [THIRD_PARTY_LICENSES.txt](THIRD_PARTY_LICENSES.txt). - -Part of [AgentPolyfill](../../../README.md): MCP extensions for hosts that -haven't shipped them yet. - -This is a community project. It isn't affiliated with or endorsed by -Anthropic, OpenAI, the Model Context Protocol project, the Agentic AI -Foundation or the Linux Foundation. Claude and Claude Code are trademarks of -Anthropic, PBC. OpenAI and Codex are trademarks of OpenAI. diff --git a/polyfills/ard/antigravity/README.md b/polyfills/ard/antigravity/README.md index 4f717f44..bc930e4c 100644 --- a/polyfills/ard/antigravity/README.md +++ b/polyfills/ard/antigravity/README.md @@ -5,6 +5,15 @@ Find MCP servers for Google Antigravity through Agentic Resource Discovery a task in plain words. Each search, and each server you add, is put to you first in Antigravity's own approval card. + + + + Claude Code finds Buildkite’s MCP server by domain, then asks permission to search a local ARD registry. + + + +[Watch Claude Code look up Buildkite and search a registry (16 s)](https://agentpolyfill.com/media/ard.mp4) + ARD is a draft from outside MCP, published by the [ards-project](https://github.com/ards-project/ard-spec) on GitHub; this plugin follows v0.91 (see [Spec and conformance](#spec-and-conformance)). diff --git a/polyfills/ard/claude-code/README.md b/polyfills/ard/claude-code/README.md index 836c7859..387ce8a8 100644 --- a/polyfills/ard/claude-code/README.md +++ b/polyfills/ard/claude-code/README.md @@ -4,6 +4,15 @@ Claude finds MCP servers through Agentic Resource Discovery (ARD): in what a domain lists, or by asking an ARD registry for a server that can do a task. You choose the registry, and Claude Code asks you before every search. + + + + Claude Code finds Buildkite’s MCP server by domain, then asks permission to search a local ARD registry. + + + +[Watch Claude Code look up Buildkite and search a registry (16 s)](https://agentpolyfill.com/media/ard.mp4) + Also available for Codex, Pi and OpenCode: [ard-discovery for Codex](../codex/README.md), [ard-discovery for Pi](../pi/README.md), [ard-discovery for OpenCode](../opencode/README.md). > Search for an MCP server that can check why my CI build failed. @@ -262,7 +271,7 @@ Codex differs. The one public ARD registry found returns MCP results that point at an MCP Registry `server.json` rather than a Server Card, so `mcp-server-cards` -refuses every one (see [Findings](#findings-to-report-upstream)). Until a +refuses every one (see [Findings](#interoperability-notes)). Until a public registry serves valid cards, the [demo registry](#demo-registry) stands in. @@ -297,9 +306,7 @@ stands in. - **Upstream conformance:** the MCP conformance suite has no Server Card or ARD scenarios (`modelcontextprotocol/conformance` at `96a6f9478b`). -### Findings to report upstream - -Not yet reported upstream: +### Interoperability notes - **Hugging Face Discover** (the Space at `huggingface-hf-discover.hf.space`) answers searches with entries typed `application/mcp-server-card+json` @@ -335,9 +342,3 @@ The code is in [`mod/hooks`](mod/hooks): ## Licence Apache-2.0, like the rest of this repository ([LICENSE](../../../LICENSE)). - -This is a community project. It isn't affiliated with or endorsed by -Anthropic, OpenAI, the Model Context Protocol project, the Agentic AI -Foundation, the Linux Foundation, or the authors of ARD. Claude and Claude -Code are trademarks of Anthropic, PBC. OpenAI and Codex are trademarks of -OpenAI. diff --git a/polyfills/ard/codex/README.md b/polyfills/ard/codex/README.md index 926f800c..1a318787 100644 --- a/polyfills/ard/codex/README.md +++ b/polyfills/ard/codex/README.md @@ -4,6 +4,15 @@ Codex finds MCP servers through Agentic Resource Discovery (ARD): in what a domain lists, or by asking an ARD registry for a server that can do a task. You choose the registry, and Codex shows you a form before every search. + + + + Claude Code finds Buildkite’s MCP server by domain, then asks permission to search a local ARD registry. + + + +[Watch Claude Code look up Buildkite and search a registry (16 s)](https://agentpolyfill.com/media/ard.mp4) + Also available for Claude Code, Pi and OpenCode: [ard-discovery for Claude Code](../claude-code/README.md), [ard-discovery for Pi](../pi/README.md), [ard-discovery for OpenCode](../opencode/README.md). > Find an MCP server that can check why my CI build failed. @@ -189,7 +198,7 @@ plugin (`codex plugin remove ard-discovery@agent-polyfill`), or set - **Search results today.** The one public registry, Hugging Face Discover, returns MCP Registry `server.json` entries, not Server Cards, so nothing it returns can be added yet. See the - [findings](../claude-code/README.md#findings-to-report-upstream). + [findings](../claude-code/README.md#interoperability-notes). - **A public name that resolves to a private address isn't caught,** because Node's `fetch` resolves names itself. Redirects are checked. Checking the resolved address in the plugin's own fetch (a `lookup` that refuses private @@ -267,11 +276,11 @@ the rows where Codex differs: - **Upstream conformance:** the MCP conformance suite has no Server Card or ARD scenarios. -### Findings to report upstream +### Interoperability notes The findings concern the specs and the public registry, so they apply to both forms. They are listed once, with the Claude Code form's -[findings](../claude-code/README.md#findings-to-report-upstream): Hugging Face +[findings](../claude-code/README.md#interoperability-notes): Hugging Face Discover's results, and the well-known path. ## Development @@ -294,8 +303,3 @@ npm test # against the committed plugin/dist/server.mjs: run npm run ## Licence Apache-2.0, like the rest of this repository ([LICENSE](../../../LICENSE)). - -This is a community project. It isn't affiliated with or endorsed by OpenAI, -Anthropic, the Model Context Protocol project, the Agentic AI Foundation, the -Linux Foundation, or the authors of ARD. Claude and Claude Code are trademarks -of Anthropic, PBC. OpenAI and Codex are trademarks of OpenAI. diff --git a/polyfills/ard/copilot/README.md b/polyfills/ard/copilot/README.md index dd22d7e2..a3875678 100644 --- a/polyfills/ard/copilot/README.md +++ b/polyfills/ard/copilot/README.md @@ -4,6 +4,15 @@ Copilot finds MCP servers through Agentic Resource Discovery (ARD): in what a domain lists, or by asking an ARD registry for a server that can do a task. You choose the registry, and Copilot shows you a form before every search. + + + + Claude Code finds Buildkite’s MCP server by domain, then asks permission to search a local ARD registry. + + + +[Watch Claude Code look up Buildkite and search a registry (16 s)](https://agentpolyfill.com/media/ard.mp4) + Also available for [Claude Code](../claude-code/README.md), [Codex](../codex/README.md) and [Pi](../pi/README.md). @@ -148,7 +157,7 @@ Copilot doesn't read ARD yet. When it does, uninstall the plugin, disable it - **Search results today.** The one public registry, Hugging Face Discover, returns MCP Registry `server.json` entries, not Server Cards, so nothing it returns can be added yet (the Claude Code form's - [findings](../claude-code/README.md#findings-to-report-upstream)). + [findings](../claude-code/README.md#interoperability-notes)). - **Two questions per search or add:** Copilot's tool prompt, then the form. - **Search was run only against this repository's demo registry.** No public ARD registry that takes an unauthenticated search was found (contract rule 3 @@ -215,8 +224,3 @@ CI: [`copilot-ard-test.yml`](../../../.github/workflows/copilot-ard-test.yml). Part of [AgentPolyfill](../../../README.md). Apache-2.0. See [`LICENSE`](../../../LICENSE). - -This is a community project. It isn't affiliated with or endorsed by GitHub, -Microsoft, Google, Hugging Face, the Model Context Protocol project, the -Agentic AI Foundation or the Linux Foundation. GitHub Copilot is a trademark of -GitHub, Inc. diff --git a/polyfills/ard/hermes/README.md b/polyfills/ard/hermes/README.md index bfd0e64b..16c4d9ad 100644 --- a/polyfills/ard/hermes/README.md +++ b/polyfills/ard/hermes/README.md @@ -5,6 +5,15 @@ registry for a capability. Hermes asks before sending your words to a registry, then shows the cards it found and whether their publisher confirms them. Adding a server requires a separate Hermes approval. + + + + Claude Code finds Buildkite’s MCP server by domain, then asks permission to search a local ARD registry. + + + +[Watch Claude Code look up Buildkite and search a registry (16 s)](https://agentpolyfill.com/media/ard.mp4) + ARD is a spec from outside MCP: a draft (v0.91) published by the ards-project on GitHub, not an MCP specification. It stays separate from [`mcp-server-cards`](../../server-cards/hermes/README.md), which discovers only diff --git a/polyfills/ard/opencode/README.md b/polyfills/ard/opencode/README.md index 210db61e..3d96f4db 100644 --- a/polyfills/ard/opencode/README.md +++ b/polyfills/ard/opencode/README.md @@ -4,6 +4,15 @@ OpenCode finds MCP servers through Agentic Resource Discovery (ARD): in what a domain lists, or by asking an ARD registry for a server that can do a task. You choose the registry, and OpenCode asks you before every search. + + + + Claude Code finds Buildkite’s MCP server by domain, then asks permission to search a local ARD registry. + + + +[Watch Claude Code look up Buildkite and search a registry (16 s)](https://agentpolyfill.com/media/ard.mp4) + Also available for Claude Code, Codex and Pi: [ard-discovery for Claude Code](../claude-code/README.md), [ard-discovery for Codex](../codex/README.md), [ard-discovery for Pi](../pi/README.md). > Find an MCP server that can check why my CI build failed. diff --git a/polyfills/ard/pi/README.md b/polyfills/ard/pi/README.md index 0e3de42a..e52e54b5 100644 --- a/polyfills/ard/pi/README.md +++ b/polyfills/ard/pi/README.md @@ -4,6 +4,15 @@ Pi finds MCP servers through Agentic Resource Discovery (ARD): in what a domain lists, or by asking a registry for a server that can do a task. You choose the registry, and Pi asks before every search and every addition. + + + + Claude Code finds Buildkite’s MCP server by domain, then asks permission to search a local ARD registry. + + + +[Watch Claude Code look up Buildkite and search a registry (16 s)](https://agentpolyfill.com/media/ard.mp4) + Also available for Claude Code, Codex and OpenCode: [ard-discovery for Claude Code](../claude-code/README.md), [ard-discovery for Codex](../codex/README.md), [ard-discovery for OpenCode](../opencode/README.md). All four use the same ARD registry client and Server Cards modules. @@ -220,4 +229,4 @@ Server Cards Pi adapter tests against ARD's own bundle. Tests need loopback listening permission. Rebuild after changing source; tests never silently refresh the shipping bundle. -Apache-2.0. This is a community project, independent of the host and spec authors. +[Apache-2.0](../../../LICENSE). diff --git a/polyfills/events/antigravity/README.md b/polyfills/events/antigravity/README.md index 81ad08f4..8068c7b9 100644 --- a/polyfills/events/antigravity/README.md +++ b/polyfills/events/antigravity/README.md @@ -4,6 +4,15 @@ Antigravity can watch events on your MCP servers: “tell me when a deploy fails.” New events reach the conversation at its next model call. In the Antigravity App, an optional sidecar can also wake the conversation. + + + + An idle Claude Code session wakes when a Cloudflare Worker throws a JSON parsing error. + + + +[Watch a Worker error wake Claude Code (15 s)](https://agentpolyfill.com/media/events.mp4) + This plugin implements the client side of MCP Events, [SEP-3415](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/main/seps/3415-events-extension.md), the **Final text as of 24 November 2026**, the same revision as diff --git a/polyfills/events/claude-code/README.md b/polyfills/events/claude-code/README.md index 84a39561..416efd69 100644 --- a/polyfills/events/claude-code/README.md +++ b/polyfills/events/claude-code/README.md @@ -3,6 +3,15 @@ Claude can watch events on your MCP servers ("tell me when a deploy fails") and act when one fires, even while the session sits idle with nobody typing. + + + + An idle Claude Code session wakes when a Cloudflare Worker throws a JSON parsing error. + + + +[Watch a Worker error wake Claude Code (15 s)](https://agentpolyfill.com/media/events.mp4) + Also available for Codex, Pi and OpenCode: [mcp-events for Codex](../codex/README.md), [mcp-events for Pi](../pi/README.md), [mcp-events for OpenCode](../opencode/README.md). This mod implements the client side of the MCP Events extension, @@ -10,12 +19,6 @@ This mod implements the client side of the MCP Events extension, (Final), which Claude Code doesn't support by itself yet. Details are in [Spec and conformance](#spec-and-conformance). -![A Claude Code session is asked to watch the demo server for failed deploys, and goes idle. On the demo's page a bad commit is deployed; the idle session wakes by itself, reads the deploy's log and names the cause.](docs/media/demo.gif) - -*A real session with the demo server in [`demo/`](demo/): Claude watches it, -and it fires the event. Waits are shortened, and the frame zooms in on what is -being typed or shown. [Full video](docs/media/demo.mp4) (24 seconds).* - ## Install At the prompt of a `claude` session: @@ -125,6 +128,8 @@ To stop: "Stop watching the demo button." ### Or run a demo server yourself +[Watch the local deployment demo (24 s)](docs/media/demo.mp4) + [`demo/`](demo/) holds a small Events server: a "deploys" service with a page of buttons. It needs Node 22.18 or newer. @@ -335,7 +340,7 @@ turn it on by name, in `~/.claude/settings.json`: Know what that means before you do: -- It's run by Ido Salomon, the author of this mod, at +- Ido Salomon operates the relay at `https://mcp-events-public-relay.idosalomon.workers.dev`. Opening that address in a browser shows what it is and what it keeps. - **The payloads of your webhook-delivered events pass through that server**, @@ -574,8 +579,3 @@ haven't shipped them yet. Apache-2.0. See [`LICENSE`](../../../LICENSE). The bundled helper (`mod/dist/helper.js`) includes npm packages under their own licences: [`mod/THIRD_PARTY_LICENSES.txt`](mod/THIRD_PARTY_LICENSES.txt). - -This is a community project. It isn't affiliated with or endorsed by -Anthropic, OpenAI, the Model Context Protocol project, the Agentic AI -Foundation or the Linux Foundation. Claude and Claude Code are trademarks of -Anthropic, PBC. OpenAI and Codex are trademarks of OpenAI. diff --git a/polyfills/events/claude-code/SECURITY.md b/polyfills/events/claude-code/SECURITY.md index d060c027..61b6c4da 100644 --- a/polyfills/events/claude-code/SECURITY.md +++ b/polyfills/events/claude-code/SECURITY.md @@ -183,9 +183,9 @@ prevented. Code's permissions are the boundary. - **A relay's operator can read event payloads.** Webhooks are signed, not encrypted. With a relay of your own, that operator is you. - - The public relay (`MCP_EVENTS_RELAY=public`) is run by the author of this - mod, and is never used unless you set that by name. - - With it, your webhook-delivered payloads pass through his server and are + - Ido Salomon operates the public relay. Enable it explicitly with + `MCP_EVENTS_RELAY=public`. + - Webhook payloads pass through the public relay and are stored there until collected, for about a day at most. An uncollected delivery is dropped after 23 hours by a clear-out that runs hourly. - He could read them. He couldn't forge or alter one: the signing secret diff --git a/polyfills/events/codex/README.md b/polyfills/events/codex/README.md index 097eb002..1d48a611 100644 --- a/polyfills/events/codex/README.md +++ b/polyfills/events/codex/README.md @@ -3,6 +3,15 @@ Codex can watch events on your MCP servers ("tell me when a deploy fails") and act when one fires, even while the session sits idle with nobody typing. + + + + An idle Claude Code session wakes when a Cloudflare Worker throws a JSON parsing error. + + + +[Watch a Worker error wake Claude Code (15 s)](https://agentpolyfill.com/media/events.mp4) + Also available for Claude Code, Pi and OpenCode: [mcp-events for Claude Code](../claude-code/README.md), [mcp-events for Pi](../pi/README.md), [mcp-events for OpenCode](../opencode/README.md). This plugin implements the client side of the MCP Events extension, @@ -203,7 +212,7 @@ It writes `~/.mcp-events/relay.json`, which the plugin reads. #### The public relay (opt-in) -It's run by Ido Salomon, the author of this plugin, at +Ido Salomon operates the relay at `https://mcp-events-public-relay.idosalomon.workers.dev`. It's off unless you set `MCP_EVENTS_RELAY=public` in the environment Codex starts from. @@ -504,8 +513,3 @@ haven't shipped them yet. Apache-2.0. See [`LICENSE`](../../../LICENSE). The bundled helper includes npm packages under their own licences: [`plugin/THIRD_PARTY_LICENSES.txt`](plugin/THIRD_PARTY_LICENSES.txt). - -This is a community project. It isn't affiliated with or endorsed by -Anthropic, OpenAI, the Model Context Protocol project, the Agentic AI -Foundation or the Linux Foundation. Claude and Claude Code are trademarks of -Anthropic, PBC. OpenAI and Codex are trademarks of OpenAI. diff --git a/polyfills/events/copilot/README.md b/polyfills/events/copilot/README.md index e21a6cdb..482f2200 100644 --- a/polyfills/events/copilot/README.md +++ b/polyfills/events/copilot/README.md @@ -3,6 +3,15 @@ Copilot can watch events on your MCP servers ("tell me when a deploy fails") and act when one fires, even while the session sits idle with nobody typing. + + + + An idle Claude Code session wakes when a Cloudflare Worker throws a JSON parsing error. + + + +[Watch a Worker error wake Claude Code (15 s)](https://agentpolyfill.com/media/events.mp4) + Also available for [Claude Code](../claude-code/README.md), [Codex](../codex/README.md) and [Pi](../pi/README.md). @@ -413,7 +422,7 @@ The changes a host would need are in ### Skills and Apps in Copilot -There is no Copilot form of the Skills or Apps polyfills, on purpose: Copilot +Copilot has both, and a polyfill would be a second client beside Copilot's own. - **Skills over MCP (SEP-2640).** @@ -526,8 +535,3 @@ haven't shipped them yet. Apache-2.0. See [`LICENSE`](../../../LICENSE). The bundled extension includes npm packages under their own licences: [`plugin/THIRD_PARTY_LICENSES.txt`](plugin/THIRD_PARTY_LICENSES.txt). - -This is a community project. It isn't affiliated with or endorsed by GitHub, -Microsoft, Anthropic, OpenAI, the Model Context Protocol project, the Agentic -AI Foundation or the Linux Foundation. GitHub Copilot is a trademark of -GitHub, Inc. diff --git a/polyfills/events/hermes/README.md b/polyfills/events/hermes/README.md index 7abde58a..b6735531 100644 --- a/polyfills/events/hermes/README.md +++ b/polyfills/events/hermes/README.md @@ -4,6 +4,15 @@ Hermes Agent can watch events on your MCP servers ("tell me when a deploy fails") and act when one fires, even while the session sits idle with nobody typing. + + + + An idle Claude Code session wakes when a Cloudflare Worker throws a JSON parsing error. + + + +[Watch a Worker error wake Claude Code (15 s)](https://agentpolyfill.com/media/events.mp4) + Also available for [Claude Code](../claude-code/README.md), [Codex](../codex/README.md), [Pi](../pi/README.md), [OpenCode](../opencode/README.md), [T3 Code](../t3/README.md) and diff --git a/polyfills/events/opencode/README.md b/polyfills/events/opencode/README.md index 1fb33304..5a017745 100644 --- a/polyfills/events/opencode/README.md +++ b/polyfills/events/opencode/README.md @@ -3,6 +3,15 @@ OpenCode can watch events on your MCP servers ("tell me when a deploy fails") and act when one fires, even while the session sits idle with nobody typing. + + + + An idle Claude Code session wakes when a Cloudflare Worker throws a JSON parsing error. + + + +[Watch a Worker error wake Claude Code (15 s)](https://agentpolyfill.com/media/events.mp4) + Also available for Claude Code, Codex and Pi: [mcp-events for Claude Code](../claude-code/README.md), [mcp-events for Codex](../codex/README.md), [mcp-events for Pi](../pi/README.md). This plugin implements the client side of the MCP Events extension, diff --git a/polyfills/events/pi/README.md b/polyfills/events/pi/README.md index ce62947a..d9d15cce 100644 --- a/polyfills/events/pi/README.md +++ b/polyfills/events/pi/README.md @@ -3,6 +3,15 @@ Pi can watch events on your MCP servers ("tell me when a deploy fails") and act when one fires, even while the session sits idle with nobody typing. + + + + An idle Claude Code session wakes when a Cloudflare Worker throws a JSON parsing error. + + + +[Watch a Worker error wake Claude Code (15 s)](https://agentpolyfill.com/media/events.mp4) + Also available for Claude Code, Codex and OpenCode: [mcp-events for Claude Code](../claude-code/README.md), [mcp-events for Codex](../codex/README.md), [mcp-events for OpenCode](../opencode/README.md). This extension implements the client side of the MCP Events extension, @@ -327,7 +336,3 @@ haven't shipped them yet. Apache-2.0. See [`LICENSE`](../../../LICENSE). The bundle includes npm packages under their own licences: [`extension/THIRD_PARTY_LICENSES.txt`](extension/THIRD_PARTY_LICENSES.txt). - -This is a community project. It isn't affiliated with or endorsed by -Anthropic, OpenAI, Earendil, the Model Context Protocol project, the Agentic -AI Foundation or the Linux Foundation. diff --git a/polyfills/events/t3/README.md b/polyfills/events/t3/README.md index d4991b5e..21077a94 100644 --- a/polyfills/events/t3/README.md +++ b/polyfills/events/t3/README.md @@ -5,6 +5,15 @@ events on your MCP servers ("tell me when a deploy fails") and act when one fires, even after the thread has gone idle, its agent session has closed, or T3 Code has restarted. + + + + An idle Claude Code session wakes when a Cloudflare Worker throws a JSON parsing error. + + + +[Watch a Worker error wake Claude Code (15 s)](https://agentpolyfill.com/media/events.mp4) + Also available for: [Claude Code](../claude-code/README.md), [Codex](../codex/README.md). Why T3 Code gets a form of its own, and what the other polyfills do there, is in [T3 Code](../../../docs/t3-code.md). diff --git a/polyfills/server-cards/antigravity/README.md b/polyfills/server-cards/antigravity/README.md index b5ae0725..4fced903 100644 --- a/polyfills/server-cards/antigravity/README.md +++ b/polyfills/server-cards/antigravity/README.md @@ -5,6 +5,15 @@ publishes. Ask it to add one, approve it in Antigravity's own approval card, and the server goes into Antigravity's MCP configuration, where Antigravity connects it with its own sign-in. + + + + Claude Code and Codex discover Neon’s MCP servers by domain and add Neon Docs after approval. + + + +[Watch Claude Code and Codex discover and add Neon Docs (27 s)](https://agentpolyfill.com/media/server-cards.mp4) + Also available for [Claude Code](../claude-code/README.md) and [Codex](../codex/README.md). diff --git a/polyfills/server-cards/claude-code/README.md b/polyfills/server-cards/claude-code/README.md index dae1f68f..9505cc1d 100644 --- a/polyfills/server-cards/claude-code/README.md +++ b/polyfills/server-cards/claude-code/README.md @@ -4,6 +4,15 @@ Name a company, and Claude finds the MCP servers its domain publishes. Press **Add** under the answer, and Claude Code connects the server with its own sign-in. + + + + Claude Code and Codex discover Neon’s MCP servers by domain and add Neon Docs after approval. + + + +[Watch Claude Code and Codex discover and add Neon Docs (27 s)](https://agentpolyfill.com/media/server-cards.mp4) + Also available for Codex, Pi and OpenCode: [mcp-server-cards for Codex](../codex/README.md), [mcp-server-cards for Pi](../pi/README.md), [mcp-server-cards for OpenCode](../opencode/README.md). > What MCP servers does buildkite.com publish? @@ -300,7 +309,7 @@ rows where Codex differs. | D-5 | Use a `data` entry's card inline | discovery.md, step 3 | D-4 | met | | D-6 | Exactly one of `url` and `data` per entry | AI Catalog (MUST) | D-5, O-1 | met | | D-7 | Limit nested catalogs; depth 4 is recommended | AI Catalog (SHOULD) | D-8 | met: limit 4 | -| D-8 | Read `specVersion` first, and reject an unsupported major version with an informative error | AI Catalog, Consumer Behavior (SHOULD) | D-9 | met (see [Findings](#findings-to-report-upstream)) | +| D-8 | Read `specVersion` first, and reject an unsupported major version with an informative error | AI Catalog, Consumer Behavior (SHOULD) | D-9 | met (see [Findings](#interoperability-notes)) | | D-9 | The same `identifier` names the same artifact | AI Catalog | D-6 | met | | V-1 | A card conforms to the schema: the v1 `$schema` URL, a reverse-DNS `name`, `version`, a `description` of 100 characters or fewer, remotes, inputs | schema.ts and schema.json | V-1 to V-5 | met: an invalid card is refused, never repaired | | V-2 | `version` is one version, not a range | schema.ts, `ServerCard.version` | V-3 | met (see Findings) | @@ -384,9 +393,7 @@ in this session. A URL is never taken from the conversation. - **Upstream conformance:** the MCP conformance suite has no Server Card scenarios (`modelcontextprotocol/conformance` at `96a6f9478b`). -### Findings to report upstream - -Not yet reported upstream: +### Interoperability notes - **specVersion.** AI Catalog v0.9 says implementations of the release candidate use `"0.9"`, and that consumers "should not assume compatibility" @@ -432,8 +439,3 @@ The code is in [`mod/hooks`](mod/hooks): ## Licence Apache-2.0, like the rest of this repository ([LICENSE](../../../LICENSE)). - -This is a community project. It isn't affiliated with or endorsed by -Anthropic, OpenAI, the Model Context Protocol project, the Agentic AI -Foundation or the Linux Foundation. Claude and Claude Code are trademarks of -Anthropic, PBC. OpenAI and Codex are trademarks of OpenAI. diff --git a/polyfills/server-cards/codex/README.md b/polyfills/server-cards/codex/README.md index 79f774b3..c55e72d7 100644 --- a/polyfills/server-cards/codex/README.md +++ b/polyfills/server-cards/codex/README.md @@ -4,6 +4,15 @@ Name a company, and Codex finds the MCP servers its domain publishes. Ask it to add one, accept the form Codex shows you, and the server goes into Codex's own MCP configuration. + + + + Claude Code and Codex discover Neon’s MCP servers by domain and add Neon Docs after approval. + + + +[Watch Claude Code and Codex discover and add Neon Docs (27 s)](https://agentpolyfill.com/media/server-cards.mp4) + Also available for Claude Code, Pi and OpenCode: [mcp-server-cards for Claude Code](../claude-code/README.md), [mcp-server-cards for Pi](../pi/README.md), [mcp-server-cards for OpenCode](../opencode/README.md). > What MCP servers does neon.com publish? @@ -313,11 +322,11 @@ These are the rows where Codex differs: - **Upstream conformance:** the MCP conformance suite has no Server Card scenarios. -### Findings to report upstream +### Interoperability notes The findings concern the specs themselves, so they apply to both forms. They are listed once, with the Claude Code form's -[findings](../claude-code/README.md#findings-to-report-upstream): on +[findings](../claude-code/README.md#interoperability-notes): on `specVersion`, the well-known path, version ranges, Zapier's card, JSON values, and the ext-server-card README's stage. @@ -350,8 +359,3 @@ result differs. ## Licence Apache-2.0, like the rest of this repository ([LICENSE](../../../LICENSE)). - -This is a community project. It isn't affiliated with or endorsed by OpenAI, -Anthropic, the Model Context Protocol project, the Agentic AI Foundation or -the Linux Foundation. Claude and Claude Code are trademarks of Anthropic, PBC. -OpenAI and Codex are trademarks of OpenAI. diff --git a/polyfills/server-cards/copilot/README.md b/polyfills/server-cards/copilot/README.md index 8d67cbcd..906988d9 100644 --- a/polyfills/server-cards/copilot/README.md +++ b/polyfills/server-cards/copilot/README.md @@ -4,6 +4,15 @@ Name a company, and Copilot finds the MCP servers its domain publishes. Ask it to add one, accept the form Copilot shows you, and the server goes into Copilot's own MCP configuration. + + + + Claude Code and Codex discover Neon’s MCP servers by domain and add Neon Docs after approval. + + + +[Watch Claude Code and Codex discover and add Neon Docs (27 s)](https://agentpolyfill.com/media/server-cards.mp4) + Also available for [Claude Code](../claude-code/README.md), [Codex](../codex/README.md) and [Pi](../pi/README.md). @@ -295,7 +304,3 @@ npm run build # plugin/dist/server.mjs; a test fails when it is stale Part of [AgentPolyfill](../../../README.md). Apache-2.0. See [`LICENSE`](../../../LICENSE). - -This is a community project. It isn't affiliated with or endorsed by GitHub, -Microsoft, the Model Context Protocol project, the Agentic AI Foundation or -the Linux Foundation. GitHub Copilot is a trademark of GitHub, Inc. diff --git a/polyfills/server-cards/hermes/README.md b/polyfills/server-cards/hermes/README.md index b811ff4e..6723f23b 100644 --- a/polyfills/server-cards/hermes/README.md +++ b/polyfills/server-cards/hermes/README.md @@ -4,6 +4,15 @@ Ask Hermes which MCP servers a domain publishes. It reads the domain's AI Catalog, fetches and validates each Server Card, and shows the results. Ask to add one, and Hermes asks for approval before changing its configuration. + + + + Claude Code and Codex discover Neon’s MCP servers by domain and add Neon Docs after approval. + + + +[Watch Claude Code and Codex discover and add Neon Docs (27 s)](https://agentpolyfill.com/media/server-cards.mp4) + ## Install ```sh diff --git a/polyfills/server-cards/opencode/README.md b/polyfills/server-cards/opencode/README.md index e5e5b71e..ac56c174 100644 --- a/polyfills/server-cards/opencode/README.md +++ b/polyfills/server-cards/opencode/README.md @@ -4,6 +4,15 @@ Name a company, and OpenCode finds the MCP servers its domain publishes. Ask it to add one, and once you allow it, the server is in OpenCode's MCP servers. + + + + Claude Code and Codex discover Neon’s MCP servers by domain and add Neon Docs after approval. + + + +[Watch Claude Code and Codex discover and add Neon Docs (27 s)](https://agentpolyfill.com/media/server-cards.mp4) + Also available for Claude Code, Codex and Pi: [mcp-server-cards for Claude Code](../claude-code/README.md), [mcp-server-cards for Codex](../codex/README.md), [mcp-server-cards for Pi](../pi/README.md). > What MCP servers does neon.com publish? diff --git a/polyfills/server-cards/pi/README.md b/polyfills/server-cards/pi/README.md index 3838159c..39095548 100644 --- a/polyfills/server-cards/pi/README.md +++ b/polyfills/server-cards/pi/README.md @@ -4,6 +4,15 @@ Name a company, and Pi finds the MCP servers its domain publishes. Ask it to add one, choose **Add it** in Pi's question, and the server goes into Pi's own MCP configuration and connects in the current session. + + + + Claude Code and Codex discover Neon’s MCP servers by domain and add Neon Docs after approval. + + + +[Watch Claude Code and Codex discover and add Neon Docs (27 s)](https://agentpolyfill.com/media/server-cards.mp4) + Also available for Claude Code, Codex and OpenCode: [mcp-server-cards for Claude Code](../claude-code/README.md), [mcp-server-cards for Codex](../codex/README.md), [mcp-server-cards for OpenCode](../opencode/README.md). All four use the same card and discovery modules, and all but OpenCode the same configuration modules. @@ -207,4 +216,4 @@ from the Events Pi form, with temporary files kept under `test/.tmp`. Tests need permission to listen on loopback. They do not rebuild the shipping bundle silently: run `npm run build` after source changes. -Apache-2.0. This is a community project, independent of the host and spec authors. +[Apache-2.0](../../../LICENSE). diff --git a/polyfills/skills/antigravity/README.md b/polyfills/skills/antigravity/README.md index e7a9a4dd..df99bb63 100644 --- a/polyfills/skills/antigravity/README.md +++ b/polyfills/skills/antigravity/README.md @@ -4,6 +4,15 @@ Use skills served by your MCP servers in Google Antigravity. The plugin lists them with Antigravity's local skills, asks before loading a new or changed version, and checks each file against the server's published manifest. + + + + Codex lists skills from Hugging Face and asks permission to load one before recommending a model quantization. + + + +[Watch Codex use a Hugging Face skill (25 s)](https://agentpolyfill.com/media/skills.mp4) + This implements the client side of [SEP-2640, Final](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/2eb3a8e345aaee53461a3c5c5f6900659d3ecb27/seps/2640-skills-extension.md), commit `2eb3a8e`, the same revision as the [Codex form](../codex/README.md). It shares [Skills core](../core/), Codex's approval store and content formatting, diff --git a/polyfills/skills/codex/README.md b/polyfills/skills/codex/README.md index 86614c31..a382031e 100644 --- a/polyfills/skills/codex/README.md +++ b/polyfills/skills/codex/README.md @@ -5,6 +5,15 @@ They show up in Codex's skill list, Codex loads one when a task calls for it, and it reads the files the skill refers to as it needs them. You approve each skill once. + + + + Codex lists skills from Hugging Face and asks permission to load one before recommending a model quantization. + + + +[Watch Codex use a Hugging Face skill (25 s)](https://agentpolyfill.com/media/skills.mp4) + Also available for Pi and OpenCode: [mcp-skills for Pi](../pi/README.md), [mcp-skills for OpenCode](../opencode/README.md). Claude Code needs no polyfill for this: it lists skills from MCP servers itself, in beta from 2.1.332 ([changelog](https://code.claude.com/docs/en/changelog)). It implements the client side of the MCP Skills extension @@ -390,11 +399,3 @@ server (`dist/helper.js`, with the shared core inside it), and the plugin's own [Apache-2.0](../../../LICENSE). The bundled server (`mod/dist/helper.js`) includes npm packages under their own licences: [`mod/THIRD_PARTY_LICENSES.txt`](mod/THIRD_PARTY_LICENSES.txt). - -This plugin is one of a set of polyfills that add MCP extensions to Claude -Code, Codex, Pi and OpenCode ahead of native support, collected at -[AgentPolyfill](../../../README.md). It's a community project by Ido Salomon. -It isn't affiliated with or endorsed by Anthropic, OpenAI, the Model Context -Protocol project, the Agentic AI Foundation or the Linux Foundation. Claude and -Claude Code are trademarks of Anthropic, PBC. OpenAI and Codex are trademarks -of OpenAI. diff --git a/polyfills/skills/hermes/README.md b/polyfills/skills/hermes/README.md index ce61178d..eb73c77a 100644 --- a/polyfills/skills/hermes/README.md +++ b/polyfills/skills/hermes/README.md @@ -5,6 +5,15 @@ serve. They're listed with your own skills, Hermes loads one when a task calls for it, after asking you, and reads the files the skill refers to as it needs them. + + + + Codex lists skills from Hugging Face and asks permission to load one before recommending a model quantization. + + + +[Watch Codex use a Hugging Face skill (25 s)](https://agentpolyfill.com/media/skills.mp4) + Also available for [Codex](../codex/README.md), [Pi](../pi/README.md) and [OpenCode](../opencode/README.md). Claude Code serves MCP skills itself. diff --git a/polyfills/skills/opencode/README.md b/polyfills/skills/opencode/README.md index 375f8513..b5ff6d87 100644 --- a/polyfills/skills/opencode/README.md +++ b/polyfills/skills/opencode/README.md @@ -5,6 +5,15 @@ They show up in OpenCode's own skill list, OpenCode loads one when a task calls for it, and it reads the files the skill refers to as it needs them. Loading goes through OpenCode's permission rules. + + + + Codex lists skills from Hugging Face and asks permission to load one before recommending a model quantization. + + + +[Watch Codex use a Hugging Face skill (25 s)](https://agentpolyfill.com/media/skills.mp4) + Also available for Codex and Pi: [mcp-skills for Codex](../codex/README.md), [mcp-skills for Pi](../pi/README.md). Claude Code needs no polyfill for this: it lists skills from MCP servers itself, in beta from 2.1.332 ([changelog](https://code.claude.com/docs/en/changelog)). It implements the client side of the MCP Skills extension diff --git a/polyfills/skills/pi/README.md b/polyfills/skills/pi/README.md index c0c8e487..3eb86560 100644 --- a/polyfills/skills/pi/README.md +++ b/polyfills/skills/pi/README.md @@ -5,6 +5,15 @@ show up in Pi's skill list next to your own, Pi loads one when a task calls for it, and it reads the files the skill refers to as it needs them. You approve each skill once. + + + + Codex lists skills from Hugging Face and asks permission to load one before recommending a model quantization. + + + +[Watch Codex use a Hugging Face skill (25 s)](https://agentpolyfill.com/media/skills.mp4) + Also available for Codex and OpenCode: [mcp-skills for Codex](../codex/README.md), [mcp-skills for OpenCode](../opencode/README.md). Claude Code needs no polyfill for this: it lists skills from MCP servers itself, in beta from 2.1.332 ([changelog](https://code.claude.com/docs/en/changelog)). It implements the client side of the MCP Skills extension @@ -304,7 +313,3 @@ haven't shipped them yet. Apache-2.0. See [`LICENSE`](../../../LICENSE). The bundle includes npm packages under their own licences: [`extension/THIRD_PARTY_LICENSES.txt`](extension/THIRD_PARTY_LICENSES.txt). - -This is a community project. It isn't affiliated with or endorsed by -Anthropic, OpenAI, Earendil, the Model Context Protocol project, the Agentic -AI Foundation or the Linux Foundation. diff --git a/servers/event-feeds/README.md b/servers/event-feeds/README.md index e3b0093f..6ff0dbf0 100644 --- a/servers/event-feeds/README.md +++ b/servers/event-feeds/README.md @@ -1,13 +1,9 @@ # event-feeds -A public MCP server that offers **events**: things an agent can watch, so that it wakes up and acts -when they happen. It implements the server side of the MCP Events extension, -[SEP-3415](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/main/seps/3415-events-extension.md) -(`io.modelcontextprotocol/events`, protocol revision 2026-07-28), on one Cloudflare Worker. - -It is run by Ido Salomon as part of [AgentPolyfill](https://github.com/idosal/AgentPolyfill), so that anyone -with an Events-capable client can try Events in a minute without running anything. Source: -[`servers/event-feeds`](https://github.com/idosal/AgentPolyfill/tree/main/servers/event-feeds). +A public MCP Events server for Hacker News, npm, GitHub releases, earthquakes and +a demo button. It implements [SEP-3415](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/main/seps/3415-events-extension.md) +(`io.modelcontextprotocol/events`, protocol revision 2026-07-28) on Cloudflare Workers. +The hosted instance accepts clients without sign-in and is operated by Ido Salomon. - Server: `https://event-feeds.idosalomon.workers.dev/mcp` - Web page: (what this is, and a demo button) diff --git a/site/.vitepress/config.mts b/site/.vitepress/config.mts index cb7352ab..5c3e3a26 100644 --- a/site/.vitepress/config.mts +++ b/site/.vitepress/config.mts @@ -3,8 +3,6 @@ import { readFileSync } from 'node:fs' import { defineConfig } from 'vitepress' const repo = 'https://github.com/idosal/AgentPolyfill' -// The author on X, top right and in the footer. -const x = 'https://x.com/idosal1' const site = 'https://agentpolyfill.com' // The link-preview card (og/og.html, rendered to public/og.jpg). Its hash is in // the URL, so services that cached an older card fetch the new one. @@ -14,7 +12,7 @@ const ogVersion = createHash('sha256') .slice(0, 12) const ogImage = `${site}/og.jpg?v=${ogVersion}` const description = - 'Polyfills for agent protocols: bring more of MCP to the clients you already use. Plugins add Apps, Skills, Events, Server Cards and ARD to Claude Code and Codex.' + 'Plugins for MCP Events, Skills, Server Cards and Apps, with optional Agentic Resource Discovery.' export default defineConfig({ lang: 'en', @@ -149,7 +147,6 @@ export default defineConfig({ socialLinks: [ { icon: 'github', link: repo, ariaLabel: 'AgentPolyfill on GitHub' }, - { icon: 'x', link: x, ariaLabel: 'Ido Salomon on X' }, ], editLink: { @@ -164,8 +161,8 @@ export default defineConfig({ docFooter: { prev: 'Previous', next: 'Next' }, footer: { - message: 'Not affiliated with Anthropic, OpenAI, MCP, ARD or the AAIF. About', - copyright: `By @idosal1 · Apache-2.0 · Source on GitHub · llms.txt`, + message: 'About AgentPolyfill', + copyright: `Apache-2.0 · Source on GitHub · llms.txt`, }, externalLinkIcon: true, diff --git a/site/.vitepress/theme/components/InstallLine.vue b/site/.vitepress/theme/components/InstallLine.vue index a0cc0b81..3d3eb9c8 100644 --- a/site/.vitepress/theme/components/InstallLine.vue +++ b/site/.vitepress/theme/components/InstallLine.vue @@ -3,14 +3,13 @@ import { ref } from 'vue' import { useData } from 'vitepress' import CopyCommand from './CopyCommand.vue' -// The install, for each host, under the hero's buttons. The README's Install -// section has the same commands: keep them in step. +// Quick install commands displayed on the home page. const hosts = [ { id: 'claude-code', name: 'Claude Code', command: '/plugin install agent-polyfill --marketplace idosal/AgentPolyfill', - label: 'Install every polyfill in Claude Code', + label: 'Install the Claude Code bundle', }, { id: 'codex', diff --git a/site/.vitepress/theme/components/LaunchVideo.vue b/site/.vitepress/theme/components/LaunchVideo.vue index 0b9bf630..d12d489f 100644 --- a/site/.vitepress/theme/components/LaunchVideo.vue +++ b/site/.vitepress/theme/components/LaunchVideo.vue @@ -43,7 +43,7 @@ function play() { preload="none" :width="launch.width" :height="launch.height" - :aria-label="`The AgentPolyfill launch video. ${launch.description}`" + :aria-label="`AgentPolyfill demo. ${launch.description}`" @play="started = true" > @@ -61,11 +61,11 @@ function play() { fetchpriority="high" decoding="async" /> - diff --git a/site/.vitepress/theme/components/PolyfillCards.vue b/site/.vitepress/theme/components/PolyfillCards.vue index 5bac457f..bc0d8a57 100644 --- a/site/.vitepress/theme/components/PolyfillCards.vue +++ b/site/.vitepress/theme/components/PolyfillCards.vue @@ -2,8 +2,7 @@ import Recording from './Recording.vue' import home from '../../../home.json' -// The cards' lines are in home.json, shared with the Markdown copy of the home -// page for agents, which also keeps each one's demo command and first question. +// Home page cards are shared with the Markdown export. // group="beyond" shows the polyfills for drafts outside MCP. const props = defineProps<{ group?: 'mcp' | 'beyond' }>() const polyfills = props.group === 'beyond' ? home.beyond : home.polyfills diff --git a/site/about.md b/site/about.md index 12044835..e91864b4 100644 --- a/site/about.md +++ b/site/about.md @@ -1,79 +1,23 @@ --- -description: Who makes AgentPolyfill, its licence, and what it is not affiliated with. +description: Project source, license, issue tracker and security reporting. aside: false --- -# About +# About AgentPolyfill -AgentPolyfill is a community project by -[Ido Salomon](https://github.com/idosal): polyfills for agent protocols. They -bring more of MCP to the clients you already use, before those clients -support it. Today that's four MCP extensions and one open draft beyond MCP. -What runs in each host: +AgentPolyfill is an independent open-source project that implements agent +protocol extensions as host plugins. -- **Claude Code:** Events, Server Cards, Apps and ARD. Skills needs no - polyfill there: Claude Code lists skills from MCP servers itself, in beta - from 2.1.332. -- **Codex:** Events, Skills, Server Cards and ARD. -- **Pi:** Events, Skills, Server Cards and ARD, as Pi extensions. Apps has no - Pi form. -- **OpenCode:** Events, Skills, Server Cards and ARD, as OpenCode plugins. - Apps has no OpenCode form. -- **Antigravity:** Events, Skills, Server Cards and ARD, as Antigravity - plugins. Apps has no Antigravity form: the App renders MCP Apps itself. -- **Copilot CLI:** Events, Server Cards and ARD, as Copilot CLI plugins. - Events is a Copilot extension and needs Copilot's experimental mode. Skills - and Apps have no Copilot form: Copilot CLI has Skills over MCP built in, and - VS Code's Copilot harness turns MCP Apps on (from its source; no app was drawn there). -- **Hermes Agent:** Events, Skills, Server Cards and ARD, as Hermes plugins. - Events adds poll and push; webhook delivery is Hermes's own. Apps has no - Hermes form yet. +- [Source and releases](https://github.com/idosal/AgentPolyfill) +- [Report a bug or request a feature](https://github.com/idosal/AgentPolyfill/issues) +- [Report a security vulnerability](./guide/security) +- [Contribute an adapter](./guide/contributing) -See [Getting started](/guide/getting-started) for installation. In Pi, -`pi install git:github.com/idosal/AgentPolyfill` installs Events, Skills and -Server Cards together. A clone is the alternative for one form, and the way -to install ARD separately: its search sends your request's words to a registry -after asking each time, so it is left out as it is from the Claude Code bundle. -Nothing for Pi is published to npm or Pi's package gallery. -Nothing for OpenCode is published to npm either; OpenCode installs each plugin -from the repository on GitHub, with Git. -Nothing is published to Antigravity's Marketplace either; its plugins install -from GitHub, with the Antigravity CLI (the App doesn't ship `agy`) and Git. -In Copilot CLI, add a clone of the repository as a marketplace and install -each plugin from it; that is the install that was tested. +## License and trademarks -In Hermes Agent, install each plugin with -`hermes plugins install idosal/AgentPolyfill/polyfills//hermes/plugin --enable`. -Events and Skills then need the servers named in their settings in -`config.yaml`, and Events the grant to start a turn. - -## Not affiliated - -AgentPolyfill isn't part of the MCP specification, and it isn't affiliated -with or endorsed by the MCP project, the Agentic AI Foundation, the Linux -Foundation, Anthropic, OpenAI or any other host vendor, or the authors of -Agentic Resource Discovery. The author works in the MCP Apps working group; -this isn't working-group output. +AgentPolyfill is licensed under [Apache-2.0](https://github.com/idosal/AgentPolyfill/blob/main/LICENSE). +Bundled dependencies have their own license notices in each adapter. Model Context Protocol and MCP are trademarks of LF Projects, LLC. Claude and Claude Code are trademarks of Anthropic, PBC. OpenAI and Codex are trademarks of OpenAI. GitHub Copilot is a trademark of GitHub, Inc. - -## Licence - -Apache-2.0. See -[LICENSE](https://github.com/idosal/AgentPolyfill/blob/main/LICENSE). Each -polyfill that ships third-party code includes its notices in its folder. - -## Source - -The plugins and extensions, their docs and this site are in one repository: -[github.com/idosal/AgentPolyfill](https://github.com/idosal/AgentPolyfill). This -site is built with VitePress from the `site/` folder, from the repository's own -READMEs, with a launch video and one recording per polyfill made for the site. - -## Contact - -Problems and questions: -[open an issue](https://github.com/idosal/AgentPolyfill/issues). Security -problems: see [Security](/guide/security). diff --git a/site/guide/apps.md b/site/guide/apps.md index b0fb32d4..fef10a1f 100644 --- a/site/guide/apps.md +++ b/site/guide/apps.md @@ -1,5 +1,5 @@ --- -description: mcp-apps-cli renders MCP Apps inline in the Claude Code terminal, with mouse and keyboard. Real pixels in iTerm2, kitty and Ghostty, character cells elsewhere. +description: mcp-apps-cli renders MCP Apps inline in the Claude Code terminal, with mouse and keyboard. Graphics in iTerm2, kitty and Ghostty, character cells elsewhere. --- # Apps @@ -11,14 +11,14 @@ drag and type into it. Existing MCP servers work unmodified. It implements MCP Apps (`io.modelcontextprotocol/ui`) as published in `specification/2026-01-26` (Stable), plus `ui/download-file` from the draft. -- **Real pixels** in terminals that show images: iTerm2 3.5+, kitty and Ghostty. +- **Graphics** in terminals that show images: iTerm2 3.5+, kitty and Ghostty. - **Character cells** everywhere else: Terminal.app, VS Code, tmux and so on. - Text, including chart labels, stays real characters. + Text, including chart labels, uses text characters. ## Install @@ -27,38 +27,9 @@ Apps (`io.modelcontextprotocol/ui`) as published in `specification/2026-01-26` /plugin install mcp-apps-cli --marketplace idosal/AgentPolyfill ``` -Or in a terminal, `claude plugin install mcp-apps-cli --marketplace idosal/AgentPolyfill`. -Start a new `claude` session for it to load. +Start a new Claude Code session after installation. Apps requires a Chromium-based browser. The fullscreen layout forwards clicks and keystrokes to the app. -Apps isn't in Codex yet. Codex gives a plugin no way to draw in its terminal, -and its terminal doesn't declare MCP Apps to servers, which no plugin can -change ([How it works](./how-it-works#how-a-plugin-plugs-in-today)). - -Apps has no Pi form. Pi 1.6.0 leaves out `ui://` resources and tool `_meta`, -so an extension cannot get an App's UI through Pi. Pi's terminal could draw -one in principle, but no Pi Apps form is built or tested. - -Apps has no OpenCode form. OpenCode 2.4.1 has no MCP Apps support of its own, -and its TUI draws only terminal text. OpenCode Desktop's experimental panels -can embed a web view, but a plugin can't read a `ui://` resource or a tool's -`_meta` over OpenCode's connection, and there is no place in the -conversation to draw a view. That was looked into, not built. - -Apps has no Antigravity form. The Antigravity App renders MCP Apps itself -(v2.34.0 and later); the CLI and IDE show text only. - -Apps has no Copilot form, because Copilot has MCP Apps built in where they -can be drawn: VS Code's Copilot harness turns them on (from its source; no app was drawn there). The Copilot CLI -terminal draws none and doesn't declare MCP Apps to servers, and Copilot's -extensions have no UI hooks like the ones this plugin uses in Claude Code -([why](https://github.com/idosal/AgentPolyfill/blob/main/polyfills/events/copilot/README.md#skills-and-apps-in-copilot)). - -Apps has no Hermes form yet. - -The plugin is one zip, attached to a release of the repository and checked -against the SHA-256 in the repository's marketplace file before Claude Code -unpacks it. It carries a small helper program for each platform and needs -nothing else installed, not even Node. +See [Getting started](./getting-started) for host prerequisites and configuration. ## Try it diff --git a/site/guide/ard.md b/site/guide/ard.md index 7810081f..e0bf0ead 100644 --- a/site/guide/ard.md +++ b/site/guide/ard.md @@ -17,8 +17,8 @@ plugin finds servers in two ways: In Claude Code, it only finds. Each Server Card it finds goes to @@ -111,116 +111,9 @@ hermes plugins install idosal/AgentPolyfill/polyfills/ard/hermes/plugin --enable ::: -### In Claude Code - -The terminal form is `claude plugin install ard-discovery --marketplace idosal/AgentPolyfill`. -It lists `mcp-server-cards` as a dependency, and Claude Code installs that from -the same marketplace. You need Claude Code 2.1.329 or newer, with mods, and -nothing else: no helper process, no Node, no account. - -### In Codex - -Codex 0.170 or newer, with Node 20 or newer. As in Claude Code, no registry is -set: name one in the request, or set `ARD_DISCOVERY_REGISTRY`. To add a server -it finds, Codex shows you a form, and the server is added only if you accept. - -### In Pi - -Pi 1.6.0 (the version tested), with Node 22 or newer. Nothing for Pi is -published to npm or Pi's package gallery. ARD is installed on its own from -a clone: `pi install git:github.com/idosal/AgentPolyfill` installs Events, -Skills and Server Cards, leaving ARD out for the same reason as the Claude -Code bundle. Its search sends the words of your request to a registry after -asking each time. The extension is bundled, with nothing to build. -For one run without installing, use -`pi -e ./polyfills/ard/pi/extension`. Pi loads the path where it is, so keep -the clone. Remove it from the same folder with -`pi remove ./polyfills/ard/pi/extension`. Servers you added stay in -`mcp.json`; remove one with `pi mcp remove `. - -This form includes Server Cards checking and adding; no other polyfill is -required. Its add tool is `ard_add_mcp_server`, so it can run beside Server -Cards' `add_mcp_server`: Pi shares tool names across extensions and keeps -the first registration of a name. - -### In OpenCode - -OpenCode 2.4 or newer (tested with 2.4.1). OpenCode runs the plugin itself, -so you don't need Node. The plugin isn't on npm: the command fetches it from -GitHub, with Git, and adds it to `plugins` in your global -`~/.config/opencode/opencode.json`, so it runs in every project from the next -time OpenCode opens one. A commit in place of `main` pins one version. From a -clone, put the folder `polyfills/ard/opencode/plugin` in `plugins` in an -`opencode.json` instead. To remove it, run `opencode plugin remove` with the -same text; OpenCode's downloaded copy stays in `~/.cache/opencode/npm/` (a -`git-AgentPolyfill-…` folder), which you can delete. Removing it stops adding -the servers it added, which were never in your configuration files. Its list -of them stays in OpenCode's plugin storage (OpenCode's own database) and -comes back if you install it again; remove a server with -`ard_remove_mcp_server` first to drop it from the list. - -It works on its own; installing `mcp-server-cards` beside it is optional. -Adding a server it finds works as in -[`mcp-server-cards`](./server-cards#using-it-step-by-step) in OpenCode, with -the same code and the same permission actions. - -### In Antigravity - -Node 20 or newer on `PATH`. Nothing is published to Antigravity's -Marketplace; install from GitHub, with the Antigravity CLI (the App doesn't -ship `agy`) and Git. `agy plugin install` copies the plugin's folder to -`~/.gemini/config/plugins/ard-discovery`, which the App and the CLI both -read. Remove it with `agy plugin uninstall ard-discovery`. Servers you added -stay in `~/.gemini/config/mcp_config.json`; remove one with -`agy mcp remove ` (in CLI 1.5.17's own help, not in Antigravity's -docs). - -This form carries the Server Cards checks and add step itself, as the Codex -and Pi forms do; it doesn't need `mcp-server-cards` installed. Checked in -App 2.35.1 and CLI 1.5.17. - -### In Copilot CLI - -Copilot CLI 1.0.115 (the version tested), with Node 20 or newer on your -`PATH`. It is an MCP server in a plugin, so it needs no experimental mode. The -install from a clone is the one tested; keep the clone. From GitHub, -`copilot plugin marketplace add idosal/AgentPolyfill` adds the marketplace. -Checked in Copilot CLI 1.0.105. Not checked in 1.0.115, in the interactive -TUI, or in VS Code. Start a new -Copilot session afterwards. Remove it with -`copilot plugin uninstall ard-discovery@agent-polyfill`. Servers you added -stay in `~/.copilot/mcp-config.json`; remove one with -`copilot mcp remove `. - -It works on its own, with its own `add_mcp_server`, the one from the Server -Cards Copilot form. Installing `mcp-server-cards` beside it is optional; -Copilot keeps the two tools apart by server name. - -### In Hermes - -Hermes Agent v0.23.4 (the version tested), with Node 20 or newer on the -gateway's PATH. `AGENTPOLYFILL_NODE` can name another executable. The plugin -ships its Python code and bundled helper, with no npm install needed. - -It works on its own, with `ard_add_mcp_server` and `ard_remove_mcp_server`. -Those names avoid a collision with Server Cards, so both plugins can run -together. Each owns its own additions. - -Disable it with `hermes plugins disable ard-discovery`. Servers stay in -`mcp_servers` in `config.yaml`; ask the plugin to remove an unchanged entry -it added, or use `hermes mcp remove `, then `/reload-mcp`. Its removal -record is `$HERMES_HOME/ard-discovery/added.json`. Discovery state lives in -memory; rediscover after restarting the helper or gateway. - -The sections below name the host where behavior differs. Full guides by host: +Install ARD separately. In Claude Code it also installs Server Cards. Registry searches require approval before the query leaves the host. -- [Claude Code](https://github.com/idosal/AgentPolyfill/tree/main/polyfills/ard/claude-code) -- [Codex](https://github.com/idosal/AgentPolyfill/tree/main/polyfills/ard/codex) -- [Pi](https://github.com/idosal/AgentPolyfill/tree/main/polyfills/ard/pi) -- [OpenCode](https://github.com/idosal/AgentPolyfill/tree/main/polyfills/ard/opencode) -- [Antigravity](https://github.com/idosal/AgentPolyfill/tree/main/polyfills/ard/antigravity) -- [Copilot CLI](https://github.com/idosal/AgentPolyfill/tree/main/polyfills/ard/copilot) -- [Hermes](https://github.com/idosal/AgentPolyfill/tree/main/polyfills/ard/hermes) +See [Getting started](./getting-started) for host prerequisites and configuration. ## Try it @@ -640,4 +533,4 @@ its card. No live registry search or upstream ARD conformance run is claimed. On GitHub, in [`polyfills/ard/claude-code`](https://github.com/idosal/AgentPolyfill/tree/main/polyfills/ard/claude-code): the full [`README.md`](https://github.com/idosal/AgentPolyfill/blob/main/polyfills/ard/claude-code/README.md), with one row for each rule ARD v0.91 puts on a consumer of MCP Server Cards and -the test that covers it, the proof, and the findings to report upstream. +the test that covers it, test results and interoperability notes. diff --git a/site/guide/build-a-polyfill.md b/site/guide/build-a-polyfill.md index 92e954e0..bdadc468 100644 --- a/site/guide/build-a-polyfill.md +++ b/site/guide/build-a-polyfill.md @@ -1,40 +1,28 @@ --- -description: The create-polyfill and design-extension skills, and the contract every AgentPolyfill polyfill meets. +description: Requirements for a new host adapter and optional tools for implementing or designing an extension. --- # Build a polyfill -Two skills, in one plugin, walk an agent through the work: +Start with a published specification and a host that lacks client support for it. +If an adapter already exists for another host, reuse its protocol implementation +and tests. The [contribution guide](./contributing) covers packaging and CI. -- **`create-polyfill`** builds client support for a published MCP extension - inside a host that has not shipped it, to the contract below. -- **`design-extension`** designs new behaviour on top of MCP the way the - protocol's extension rules expect, starting by checking whether an existing - slot or proposal already covers it. +The optional `polyfill-author` plugin includes two skills. Use `create-polyfill` +to implement an existing specification and `design-extension` to propose new +protocol behavior. To install the skills in Claude Code, run -In Claude Code, install the authoring plugin: - -``` +```text /plugin install polyfill-author --marketplace idosal/AgentPolyfill ``` -Then ask for the extension you want, for example "polyfill MCP Server Cards in -Claude Code". The skill points the agent at the primary sources (the SEP, the -extension's spec, the core spec for the revision in use, the conformance suite) -and has it work from those. - -Both skills are plain `SKILL.md` files -([create-polyfill](https://github.com/idosal/AgentPolyfill/blob/main/plugins/polyfill-author/skills/create-polyfill/SKILL.md), -[design-extension](https://github.com/idosal/AgentPolyfill/blob/main/plugins/polyfill-author/skills/design-extension/SKILL.md)), -so other agents that read skills can use them too. +The [skill definitions](https://github.com/idosal/AgentPolyfill/tree/main/plugins/polyfill-author/skills) +also work with other agents that read `SKILL.md` files. ## The contract -Every polyfill in this repository meets these rules. Where one does not yet, its -README says so: the OpenCode form of Events watches push events that -OpenCode's automations also take, a stated departure from rule 4. The full -text is in -[`docs/polyfill-contract.md`](https://github.com/idosal/AgentPolyfill/blob/main/docs/polyfill-contract.md). +The [polyfill contract](https://github.com/idosal/AgentPolyfill/blob/main/docs/polyfill-contract.md) +defines the requirements below. Each adapter documents its exceptions. 1. **One published extension, client side, and nothing else.** The extension is an MCP extension (a SEP, or an extension repository under @@ -62,11 +50,8 @@ text is in ## `create-polyfill` -**The spec is the feature list.** What the polyfill does is the set of client -rules in the spec. That is what lets it be deleted later without anyone -noticing. - -The skill asks for seven parts, and the work is done when all seven exist: +Use the specification’s client requirements to scope the implementation. The +`create-polyfill` skill produces the following artifacts. | # | Part | What it is | |---|---|---| @@ -139,145 +124,15 @@ independent implementations that interoperate, and a conformance scenario. ## An existing polyfill in another host -A polyfill is one folder per extension: the host-neutral part (the protocol, -the spec's client rules and their tests) in `core/`, and one adapter beside it -for each host, which wires that core into what the host lets third-party code -do. Events and Skills are built that way, with one `core/` and an adapter -for each host: - -- **Claude Code:** a mod in `claude-code/` (Events has one; Skills doesn't, - because Claude Code lists served skills itself). -- **Codex:** a plugin in `codex/`. -- **Pi:** an extension in `pi/`, with a manifest and bundled file in - `extension/`. `pi install git:github.com/idosal/AgentPolyfill` installs - Events, Skills and Server Cards together; a local clone is the - alternative for one form. Nothing for Pi is published to npm or Pi's - package gallery. List a new form's - `./polyfills//pi/extension/dist/index.js` in the root - `package.json`'s `pi.extensions` to include it in the one-line install. - ARD is left out on purpose, as in the Claude Code bundle: its search - sends your request's words to a registry after asking each time. Install - it separately from a clone; [Getting started](./getting-started#pi) has - both install paths. -- **OpenCode:** a V2 server plugin in `opencode/`, with one bundled file, - `server.js`, in `plugin/`. OpenCode runs it inside its own server, once per - project folder. It installs from GitHub by its folder's path - (`opencode plugin add`, with Git) or from a clone; nothing is published to - npm. -- **Antigravity:** a plugin in `antigravity/`, with its MCP server and hooks - in `plugin/`. It installs from its `plugin/` folder on GitHub, or from a - clone, with `agy plugin install`, which needs the Antigravity CLI (the App - doesn't ship `agy`); nothing is published to Antigravity's Marketplace. -- **Copilot CLI:** a plugin in `copilot/`, installed from `plugin/` (Events - has one, which holds a Copilot extension; Skills doesn't, because Copilot - has Skills over MCP built in). It installs from a clone added as a - marketplace. -- **Hermes Agent:** a Python plugin in `hermes/`, installed from `plugin/`, - with a bundled Node helper. Each installs with - `hermes plugins install idosal/AgentPolyfill/polyfills//hermes/plugin --enable`. - -The Pi examples are -[Events](https://github.com/idosal/AgentPolyfill/tree/main/polyfills/events/pi), -[Skills](https://github.com/idosal/AgentPolyfill/tree/main/polyfills/skills/pi), -[Server Cards](https://github.com/idosal/AgentPolyfill/tree/main/polyfills/server-cards/pi) -and [ARD](https://github.com/idosal/AgentPolyfill/tree/main/polyfills/ard/pi). -Apps has no Pi form. Pi 1.6.0 leaves out `ui://` resources and tool `_meta`; -its terminal could draw an App in principle, but nothing is built or tested. - -The OpenCode examples are -[Events](https://github.com/idosal/AgentPolyfill/tree/main/polyfills/events/opencode), -[Skills](https://github.com/idosal/AgentPolyfill/tree/main/polyfills/skills/opencode), -[Server Cards](https://github.com/idosal/AgentPolyfill/tree/main/polyfills/server-cards/opencode) -and [ARD](https://github.com/idosal/AgentPolyfill/tree/main/polyfills/ard/opencode). -Apps has no OpenCode form. OpenCode has no MCP Apps support, and a plugin -can't read a `ui://` resource or a tool's `_meta` over OpenCode's connection; -that was looked into, not built. - -The Antigravity examples are -[Events](https://github.com/idosal/AgentPolyfill/tree/main/polyfills/events/antigravity), -[Skills](https://github.com/idosal/AgentPolyfill/tree/main/polyfills/skills/antigravity), -[Server Cards](https://github.com/idosal/AgentPolyfill/tree/main/polyfills/server-cards/antigravity) -and [ARD](https://github.com/idosal/AgentPolyfill/tree/main/polyfills/ard/antigravity). -Apps has no Antigravity form: the App renders MCP Apps itself (v2.34.0 and -later), and the CLI and IDE show text only. - -The Copilot CLI examples are -[Events](https://github.com/idosal/AgentPolyfill/tree/main/polyfills/events/copilot), -[Server Cards](https://github.com/idosal/AgentPolyfill/tree/main/polyfills/server-cards/copilot) -and [ARD](https://github.com/idosal/AgentPolyfill/tree/main/polyfills/ard/copilot). -Skills and Apps have no Copilot form: Copilot has them built in. - -The Hermes examples are -[Events](https://github.com/idosal/AgentPolyfill/tree/main/polyfills/events/hermes), -[Skills](https://github.com/idosal/AgentPolyfill/tree/main/polyfills/skills/hermes), -[Server Cards](https://github.com/idosal/AgentPolyfill/tree/main/polyfills/server-cards/hermes) and -[ARD](https://github.com/idosal/AgentPolyfill/tree/main/polyfills/ard/hermes). Apps has no Hermes form yet. - -Bringing a polyfill to another host is a new adapter: find how the host lets -it reach the wire (a connection of its own, a tool call, a way to wake an idle -session), meet the contract there, say what that host cannot do, and document -installation. Add a marketplace entry where that host uses one. -[Contributing](./contributing#bringing-a-polyfill-to-another-host) has the -steps; `create-polyfill` covers it too ("polyfill MCP Apps in Codex"). - -The Pi forms show why each host needs its own account of what its API allows -and what was checked. -Events and Skills need their own connections and cannot use Pi's sign-in; -the Skills form can meet X8 with Pi's `tool_call` hook, including codemode's -nested calls. Each form asks before its consequential step, since Pi has no -tool approval prompt unless a permission extension asks. Each has an off -switch because native support cannot be detected. Their READMEs, -`SECURITY.md` and `docs/conformance.md` record what was checked. ARD's add -step is checked by the form's tests only. - -The OpenCode forms show the same. An OpenCode plugin can add tools, start a -turn in an idle session, ask through OpenCode's own permission rules, add a -skill to its list and an MCP server to its servers, and see a tool call -before it runs. It can't send an MCP method over OpenCode's connection or -read a resource. So Events and Skills need their own connections and cannot -use OpenCode's OAuth sign-in, while Server Cards adds a server that OpenCode -connects itself. The Skills form meets X8 with a hook on OpenCode's resource -read. OpenCode's shipped rules allow every action, so each form makes its own -actions ask by default. OpenCode takes push events for its automations but -skips event types it can't check, so the Events form watches every type and -states its departure from rule 4. Their READMEs, `SECURITY.md` and -`docs/conformance.md` record what was checked. ARD's add step is checked by -the form's tests only. - -The Antigravity forms show it from another side. Antigravity documents no -MCP elicitation, and its client cancels every request without showing it, so -each form asks through its `PreToolUse` hook, which answers `force_ask` with -Antigravity's own approval card. An MCP server isn't told which conversation -calls it, but hooks are, so the hook passes the conversation id to the call -in a one-use ticket. Only the App can wake an idle conversation, through a -sidecar the person turns on. X8 isn't met: the Skills hook asks before -another server's resource read, but Antigravity ignores that question (CLI -1.5.17, App 2.35.1). -In CLI 1.5.17 a hook that fails makes the call fail. Each form has an off -switch because native support cannot be detected. Their READMEs, -`SECURITY.md` and `docs/conformance.md` record what was checked. The IDE documents no plugin hooks, so the forms aren't -supported there, and their gated calls are refused. - -The Copilot CLI forms show the same from another side. Only an extension can -start a turn (`session.send`), so Events is an extension and needs Copilot's -experimental mode; Server Cards and ARD are MCP servers in plugins and don't. -Events needs its own connection and cannot use Copilot's sign-in. Copilot's -own tool prompt comes before each tool that acts. Copilot can approve a call -without the person, in assisted mode (an LLM review, which an organisation can -make the default) or with allow-all, so each form asks its own question after -it: Events in a Copilot dialog, by default, and Server Cards and ARD in a form -before adding a server or sending a search. Each has an off switch because -native support cannot be detected. Their READMEs, `SECURITY.md` and -`docs/conformance.md` record what was checked. +For an existing extension, add an adapter under `polyfills///`. +Reuse the shared `core/` for the wire protocol and its tests where available. +The host adapter handles connection setup, tool registration, approvals and +delivery into the session. -The Hermes forms put the host tools, hooks and approvals in Python, inside -the gateway, and run the existing client rules in a bundled Node helper. -Events and Skills open their own connections to explicitly named servers; -Events leaves webhook servers to Hermes. Server Cards and ARD write -`mcp_servers` with Hermes's config API, and need `/reload-mcp` to connect. -The READMEs give the tests and limits. The shared harness in -[`tools/hermes`](https://github.com/idosal/AgentPolyfill/tree/main/tools/hermes) -runs the forms' tests in Hermes v0.23.4, with no account or API key. +Document which server connections the host exposes, how the adapter handles +authentication, and what happens when the host adds native support. Include an +end-to-end test that exercises the adapter through the host. See the +[host adapter checklist](./contributing#bringing-a-polyfill-to-another-host). ## Your own, listed in the community directory diff --git a/site/guide/community.md b/site/guide/community.md index f76cd675..c12df9de 100644 --- a/site/guide/community.md +++ b/site/guide/community.md @@ -1,14 +1,12 @@ --- -description: Polyfills that other people build and keep in their own repositories, listed so they can be found. Not reviewed or shipped by AgentPolyfill. +description: Independently maintained polyfills and how to list a project. --- # Community -Polyfills that other people build and keep in their own repositories. Each -entry points at its author's repository, and is installed from there. This -project does not review, build or ship them, and they are not in its -marketplaces or in the `agent-polyfill` bundle. What each says about the -[contract](./build-a-polyfill#the-contract) is its author's own statement. +Install community polyfills from the repositories listed below. Their maintainers +provide the compatibility and [conformance](./build-a-polyfill#the-contract) information. +AgentPolyfill does not review or distribute these packages. diff --git a/site/guide/contributing.md b/site/guide/contributing.md index 27e3a3be..6cf32c42 100644 --- a/site/guide/contributing.md +++ b/site/guide/contributing.md @@ -14,26 +14,15 @@ listed in the [community directory](#listing-a-polyfill-in-the-community-directo ## Adding a polyfill -A polyfill implements the client side of one published extension inside one -host that has not shipped it, and does nothing once the host supports the -extension itself. The extension is an MCP extension, or a spec for agents -published outside MCP, such as ARD. Each one is a folder in the repository. - ### 1. Meet the contract -Every polyfill meets [the contract](./build-a-polyfill#the-contract): one -published extension and nothing else, a named spec revision, a test for each -client rule plus a run against a server someone else wrote, a stand-down, stated -limits, and server content treated as untrusted data. The `create-polyfill` -skill walks an agent through building one to that contract. In Claude Code, -install the authoring plugin: - -``` -/plugin install polyfill-author --marketplace idosal/AgentPolyfill -``` +Implement the client side of a published extension for a specific host. Name the +specification revision, test the client requirements, and document any exceptions. +Include an interoperability test with an independent server and a way to disable +the adapter when the host adds native support. Treat server content as untrusted. -If what you want is not in any spec, the `design-extension` skill in the same -plugin covers that case: a polyfill never adds behaviour of its own. +See the [polyfill contract](https://github.com/idosal/AgentPolyfill/blob/main/docs/polyfill-contract.md) +and the [guide to building an adapter](./build-a-polyfill). ### 2. Put it in its folder diff --git a/site/guide/events.md b/site/guide/events.md index 70942867..4f814855 100644 --- a/site/guide/events.md +++ b/site/guide/events.md @@ -28,8 +28,8 @@ Final). The forms fill these gaps: ## Install @@ -69,106 +69,9 @@ hermes plugins install idosal/AgentPolyfill/polyfills/events/hermes/plugin --ena ::: -**In Claude Code** (2.1.326 or newer, with Node 20 or newer or Bun), the -terminal form is `claude plugin install mcp-events --marketplace idosal/AgentPolyfill`. -The install is one small folder (about 0.8 MB), and nothing else is downloaded -unless you ask for it with `/mcp-events setup`. +For webhook delivery, see [relay setup](#webhook-delivery-the-relay). The Pi command installs Events, Skills and Server Cards together. -**In Codex** (0.170 or newer, with Node 20 or newer), a watch wakes a Codex -CLI session (the terminal app or `codex exec`). A chat in the ChatGPT desktop -app keeps its events but can't be woken, so ask it for `recent_events`. A -resumed Codex session starts watching at its first Events tool call. - -**In Pi** (1.6.0, the version tested, with Node 22 or newer), the command -above installs Events, Skills and Server Cards together. -Pi clones the repository under `~/.pi/agent/git/` and loads the three -extensions from there. Nothing is published to npm or Pi's package gallery, -and nothing is built. - -Update installed packages with `pi update --extensions`. Remove all three -and Pi's copy of the repository with -`pi remove git:github.com/idosal/AgentPolyfill`. For one run of all three -without installing, use `pi -e git:github.com/idosal/AgentPolyfill`. - -To install only Events, use a clone: - -```bash -git clone https://github.com/idosal/AgentPolyfill.git -cd AgentPolyfill -pi install ./polyfills/events/pi/extension -``` - -Pi loads the local path where it is, so keep the clone. From the same folder, -`pi remove ./polyfills/events/pi/extension` removes that local install; -`pi -e ./polyfills/events/pi/extension` runs it once without installing. -Use one way per form: Pi tells packages apart by repository address or local -path, so a form installed both ways loads twice. - -[ARD](./ard#install) is left out of the one-line install, as it is from the -Claude Code bundle: its search sends the words of your request to a registry -after asking each time. Install it separately from a clone. - -Removal leaves watches and events in `mcp-events/`, and approvals and skill -stubs in `mcp-skills/`, in Pi's agent folder (`~/.pi/agent`, or -`PI_CODING_AGENT_DIR`); delete those folders too to remove that data. -Servers you added stay in `mcp.json`; remove one with -`pi mcp remove `. - -**In OpenCode** (2.4 or newer; tested with 2.4.1), OpenCode runs the plugin -itself, so you don't need Node. The plugin isn't on npm: the command fetches -it from GitHub, with Git, and adds it to `plugins` in your global -`~/.config/opencode/opencode.json`, so it runs in every project from the next -time OpenCode opens one. A commit in place of `main` pins one version. From a -clone, put the folder `polyfills/events/opencode/plugin` in `plugins` in an -`opencode.json` instead. To remove it, run `opencode plugin remove` with the -same text; OpenCode's downloaded copy stays in `~/.cache/opencode/npm/` (a -`git-AgentPolyfill-…` folder), which you can delete. Watches, events and the -log stay in `~/.local/share/opencode/mcp-events/` (or `MCP_EVENTS_STATE`); -delete that folder too to remove them. The "Allow always" answers it kept -stay in OpenCode's plugin storage (OpenCode's own database). - -**In Antigravity** (Node 20 or newer on `PATH`), install from GitHub, with -the Antigravity CLI (the App doesn't ship `agy`) and Git: nothing is published to -Antigravity's Marketplace. `agy plugin install` copies the plugin's folder to -`~/.gemini/config/plugins/mcp-events`, which the App and the CLI both read. -To wake an idle App conversation, the plugin's sidecar -must be on: add `"sidecars": {"mcp-events/wake": {"enabled": true}}` to -`~/.gemini/config/config.json`. The plugin never edits that file. To remove -it, run `agy plugin uninstall mcp-events`. Its state is in -`~/.gemini/agentpolyfill/mcp-events/`; delete that folder too to remove it. - -**In Copilot CLI** (1.0.115, the version tested), the plugin is a Copilot -extension, and Copilot loads extensions only in experimental mode: start it -with `copilot --experimental`, or, per Copilot's help, run `/settings experimental on` once (not checked). The -whole extension API is experimental, so it may change in any release. -Copilot runs the extension with its own Node, so you need none. The install -from a clone is the one tested; Copilot loads the plugin where it is, so keep -the clone. From GitHub, -`copilot plugin marketplace add idosal/AgentPolyfill` adds the marketplace. -Checked in Copilot CLI 1.0.105. Not checked in 1.0.115, in the interactive -TUI, or in VS Code. To remove it, run -`copilot plugin uninstall mcp-events@agent-polyfill`. Watches and events stay -in `~/.copilot/mcp-events/`; delete that folder too to remove them. - -**In Hermes** (v0.23.4, the version tested), Node 20 or newer must be on the -gateway's PATH; `AGENTPOLYFILL_NODE` can name another executable. Name the -servers in `plugins.entries.mcp-events.settings.servers` in your profile's -`config.yaml`, and set `allow_gateway_injection: true` in that plugin entry -to let an event start a turn. The demo below includes both. Without the -injection grant, events are stored but sessions cannot be woken. - -Remove it with `hermes plugins remove mcp-events`. Watches, events, cursors, -wake counts and `mcp-events.log` are kept in `$HERMES_HOME/mcp-events/`. - -The sections below name the host where behavior differs. Full guides by host: - -- [Claude Code](https://github.com/idosal/AgentPolyfill/tree/main/polyfills/events/claude-code) -- [Codex](https://github.com/idosal/AgentPolyfill/tree/main/polyfills/events/codex) -- [Pi](https://github.com/idosal/AgentPolyfill/tree/main/polyfills/events/pi) -- [OpenCode](https://github.com/idosal/AgentPolyfill/tree/main/polyfills/events/opencode) -- [Antigravity](https://github.com/idosal/AgentPolyfill/tree/main/polyfills/events/antigravity) -- [Copilot CLI](https://github.com/idosal/AgentPolyfill/tree/main/polyfills/events/copilot) -- [Hermes](https://github.com/idosal/AgentPolyfill/tree/main/polyfills/events/hermes) +See [Getting started](./getting-started) for host prerequisites and configuration. ## Try it @@ -284,7 +187,7 @@ log, and tells you the cause. :width="960" :height="540" alt="A Claude Code session is asked to watch the demo server for failed deploys, and goes idle. On the demo's page a bad commit is deployed; the idle session wakes by itself, reads the deploy's log and names the cause." - caption="A real session with the deploys demo server (24 s). Waits are shortened, and the frame zooms in on what is being typed or shown." + caption="Claude Code watches the demo server and reports a failed deployment." /> ## From install to the first event @@ -567,7 +470,7 @@ Webhook delivery through a relay needs Node 22 or newer (or Bun); push and poll work on Node 20. **The public relay** is off unless you turn it on by name, with -`MCP_EVENTS_RELAY=public`. It is run by Ido Salomon, the author of the mod. +`MCP_EVENTS_RELAY=public`. Ido Salomon operates the relay. The payloads of your webhook-delivered events pass through that server and are stored there until the mod collects them, for about a day at most; webhooks are signed, not encrypted, so whoever runs a relay can read them. It cannot create diff --git a/site/guide/getting-started.md b/site/guide/getting-started.md index 3e3798be..94b7b89f 100644 --- a/site/guide/getting-started.md +++ b/site/guide/getting-started.md @@ -1,220 +1,99 @@ --- -description: Install the AgentPolyfill plugins and extensions, what each one needs in each host, and a first run of each. +description: Install a plugin for your host and discover your first MCP server. --- # Getting started ## Install +Choose your host below. To check whether it already implements an extension, +see the [host support table](./introduction#the-polyfills). + ### Claude Code -Claude Code 2.1.329 or newer. At the prompt of a `claude` session, install -every polyfill at once: +In Claude Code 2.1.329 or later, install the bundle and start a new session +in a trusted project: -``` +```text /plugin install agent-polyfill --marketplace idosal/AgentPolyfill ``` -Then start a new `claude` session for the polyfills to load. - -`agent-polyfill` holds nothing of its own: it depends on every MCP polyfill -here, and each one stays a plugin you can disable or uninstall separately. To -install just one: +The bundle includes Apps, Events and Server Cards. To install one plugin, +replace `agent-polyfill` with its name. Install `ard-discovery` separately. +In a shell, use `claude plugin install` with the same arguments. -::: code-group - -```txt [Events] -/plugin install mcp-events --marketplace idosal/AgentPolyfill -``` - -```txt [Server Cards] -/plugin install mcp-server-cards --marketplace idosal/AgentPolyfill -``` - -```txt [Apps] -/plugin install mcp-apps-cli --marketplace idosal/AgentPolyfill -``` +Events needs Node.js 20+ or Bun. For webhook delivery through a relay, use +Node.js 22+ or Bun. Apps needs a Chromium-based browser. -```txt [ARD discovery] -/plugin install ard-discovery --marketplace idosal/AgentPolyfill -``` - -::: - -`ard-discovery` is for ARD, a draft from outside MCP. It isn't in the bundle, -because a search sends the words of your request to the ARD registry you -choose. Install it by name, and it brings `mcp-server-cards` with it. - -There is no Skills polyfill for Claude Code: Claude Code lists skills from MCP -servers itself, in beta from 2.1.332. [Skills](./skills#claude-code) says what -is known, and how to uninstall the `mcp-skills` plugin if you installed it -before. - -In a terminal, use `claude plugin install` with the same arguments: - -```bash -claude plugin install agent-polyfill --marketplace idosal/AgentPolyfill -``` - -The first install adds this repository's marketplace too. After that, the -short form is `/plugin install mcp-events@agent-polyfill`. To add the -marketplace on its own, run `/plugin marketplace add idosal/AgentPolyfill`. - -In a session, Claude Code shows the marketplace it resolved and asks you to -confirm adding it, then opens the plugin's page, where you choose who gets it: -you, everyone on this repository, or you in this repository only. The terminal -form asks nothing. Say no to the marketplace and nothing is installed. +Claude Code 2.1.332 added native Skills support in beta. See the +[Skills migration instructions](./skills#claude-code) if upgrading. ### Codex -Codex 0.170 or newer (Skills was tested on 0.172), with Node 20 or newer on -the `PATH` Codex runs with. In a terminal: +Use Codex 0.170+ with Node.js 20+ on its `PATH`. Skills was tested on Codex +0.172. Add the marketplace once, then run the install commands you need: -```bash +```sh codex plugin marketplace add idosal/AgentPolyfill codex plugin add mcp-events@agent-polyfill codex plugin add mcp-skills@agent-polyfill codex plugin add mcp-server-cards@agent-polyfill -``` - -Codex has no bundle, so add the ones you want. Apps isn't in Codex yet. -`ard-discovery`, for ARD (a draft from outside MCP), is added by name, for the -same reason as in Claude Code: - -```bash codex plugin add ard-discovery@agent-polyfill ``` ### Pi -Pi 1.6.0 (`@earendil-works/pi-coding-agent`, the version tested), with Node -22 or newer. Install Events, Skills and Server Cards together: +With Pi 1.6.0 and Node.js 22+, install Events, Skills and Server Cards together: -```bash +```sh pi install git:github.com/idosal/AgentPolyfill ``` -Pi clones the repository into its agent folder (under `~/.pi/agent/git/`) -and loads the three extensions from there. Nothing is published to npm or -Pi's package gallery, and nothing is built. Checked in Pi 1.6.0. Start `pi` -to use them. +Start `pi` to load them. For ARD or an individual extension, install from a +clone. Pi loads local extensions in place, so keep the clone. Installing the +same extension from both sources loads it twice. -Update installed packages with `pi update --extensions`. To try all three -for one run without installing: - -```bash -pi -e git:github.com/idosal/AgentPolyfill -``` - -ARD is left out for the same reason it isn't in the Claude Code bundle: -its search sends the words of your request to a registry after asking you -each time. Install it on its own from a clone: - -```bash +```sh git clone https://github.com/idosal/AgentPolyfill.git cd AgentPolyfill pi install ./polyfills/ard/pi/extension ``` -ARD includes its own Server Cards checks and add tool; it needs no other -polyfill installed. Apps has no Pi form. - -The clone path also works for any one form alone. From the clone, replace -`` with `events`, `skills`, `server-cards` or `ard`: - -```bash -pi install ./polyfills//pi/extension -``` - -Pi loads a local path where it is, so keep the clone; `git pull` in it brings -the next version. Use one way per form, -not both: Pi tells packages apart by their repository address or local -path, so a form installed both ways loads twice. - -For one run of a single form without installing, from the clone: - -```bash -pi -e ./polyfills//pi/extension -``` - ### OpenCode -OpenCode 2.4 or newer (the V2 plugin API; tested with 2.4.1), with Git, which -OpenCode uses to fetch each plugin. OpenCode runs the plugins itself, so you -don't need Node. Nothing for OpenCode is published to npm: OpenCode installs -each plugin from this repository on GitHub. In a terminal, install the ones -you want: +OpenCode 2.4+ uses Git to fetch each plugin. Run the commands for the plugins +you want, then reopen the project. Each command updates your global +`opencode.json`. Replace `main` with a commit to pin a version. -```bash +```sh opencode plugin add 'github:idosal/AgentPolyfill#main::path:polyfills/events/opencode/plugin' opencode plugin add 'github:idosal/AgentPolyfill#main::path:polyfills/skills/opencode/plugin' opencode plugin add 'github:idosal/AgentPolyfill#main::path:polyfills/server-cards/opencode/plugin' opencode plugin add 'github:idosal/AgentPolyfill#main::path:polyfills/ard/opencode/plugin' ``` -Checked in OpenCode 2.4.1. There is no OpenCode bundle or single install for every polyfill. -Apps has no OpenCode form. ARD carries the Server Cards code and its own add -tool; installing `mcp-server-cards` beside it is optional. - -Each command adds the plugin to `plugins` in your global configuration -(`~/.config/opencode/opencode.json`), so it runs in every project, from the -next time OpenCode opens one. `#main` installs what the main branch holds; a -commit in its place pins one version. Each `plugin/` folder holds one bundled -file, `server.js`, and a `package.json` that names it, with nothing to build; -the Events and Skills folders carry the bundle's licence notices too. - -Or, from a clone of this repository, add a plugin's folder to `plugins` -yourself, in the global configuration or a project's `opencode.json`: - -```jsonc -{ - "plugins": ["/path/to/AgentPolyfill/polyfills/events/opencode/plugin"] -} -``` - -OpenCode loads it the next time it opens the project. - ### Antigravity -The forms are plugins for Google Antigravity's App and CLI (`agy`). Checked -in App 2.35.1 and CLI 1.5.17. The IDE documents no plugin hooks, so the forms -aren't supported there, and their gated calls are refused. The plugins' -hooks run `node`, so Node 20 or newer must be on `PATH`. Nothing is -published to Antigravity's Marketplace. Installing needs the Antigravity CLI: -`agy plugin install` is a CLI command, and the App doesn't ship `agy`. It -fetches each plugin from GitHub with Git, so Git must be on `PATH` too. -Install the plugins you want: +Install with the Antigravity CLI (`agy`), Git and Node.js 20+ on `PATH`. +The App and CLI share the installed plugins. The IDE lacks the required hooks. +Tested with App 2.35.1 and CLI 1.5.17. -```bash +```sh agy plugin install https://github.com/idosal/AgentPolyfill/tree/main/polyfills/events/antigravity/plugin agy plugin install https://github.com/idosal/AgentPolyfill/tree/main/polyfills/skills/antigravity/plugin agy plugin install https://github.com/idosal/AgentPolyfill/tree/main/polyfills/server-cards/antigravity/plugin -``` - -`ard-discovery`, for ARD (a draft from outside MCP), installs the same way. -Every search asks you first and goes to a registry you choose: - -```bash agy plugin install https://github.com/idosal/AgentPolyfill/tree/main/polyfills/ard/antigravity/plugin ``` -`agy plugin install` copies the plugin's folder to -`~/.gemini/config/plugins/`, which the App and the CLI both read. Run -the same line again to update it. From a clone of this repository, -`agy plugin install ./polyfills//antigravity/plugin` does the same. Apps has no Antigravity form: the App -renders MCP Apps itself (v2.34.0 and later), and the CLI and IDE show text -only. - -Events can wake an idle App conversation only through its sidecar, which is -off until you add `"sidecars": {"mcp-events/wake": {"enabled": true}}` to -`~/.gemini/config/config.json`. The plugin never edits that file. +Rerun an install command to update that plugin. To wake an idle App +conversation, [enable the Events sidecar](https://github.com/idosal/AgentPolyfill/blob/main/polyfills/events/antigravity/README.md#enable-idle-wakes-in-the-app). ### GitHub Copilot CLI -Copilot CLI 1.0.115 (the version tested). From a clone of this repository, -add it as a marketplace and install the plugins you want: +Add a clone as a local marketplace. Copilot loads plugins directly from this +directory, so keep it after installation. Tested with Copilot CLI 1.0.115. -```bash +```sh git clone https://github.com/idosal/AgentPolyfill.git copilot plugin marketplace add ./AgentPolyfill copilot plugin install mcp-events@agent-polyfill @@ -222,54 +101,24 @@ copilot plugin install mcp-server-cards@agent-polyfill copilot plugin install ard-discovery@agent-polyfill ``` -This install, from a clone, is the one tested. Copilot loads a plugin from a -local marketplace where it is, without copying it, so keep the clone; -`git pull` in it brings the next version. From GitHub, -`copilot plugin marketplace add idosal/AgentPolyfill` adds the same -marketplace, and Copilot keeps its own copy. Checked in Copilot CLI 1.0.105. -Not checked in 1.0.115, in the interactive TUI, or in VS Code. - -There is no Copilot bundle. Events is a Copilot extension, and Copilot loads -extensions only in its experimental mode: start it with -`copilot --experimental`, or, per Copilot's help, run `/settings experimental on` once (not checked). Server -Cards and ARD are MCP servers in plugins and need no experimental mode. -`ard-discovery`, for ARD (a draft from outside MCP), carries its own add tool; -installing `mcp-server-cards` beside it is optional. Copilot has Skills over -MCP and MCP Apps built in, so there is no Copilot form of those -([why](https://github.com/idosal/AgentPolyfill/blob/main/polyfills/events/copilot/README.md#skills-and-apps-in-copilot)). - -To try one for a single run without installing, replace `` with -`events`, `server-cards` or `ard`: - -```bash -copilot --experimental --plugin-dir ./AgentPolyfill/polyfills//copilot/plugin -``` +Start Copilot with `copilot --experimental` for Events. Server Cards and ARD +run in standard mode and require Node.js 20+. ### Hermes Agent -Hermes Agent v0.23.4 (the version tested), with Node 20 or newer on the -gateway's machine. Install each plugin from its folder in this repository: +Install the plugins on the gateway machine with Node.js 20+ on its `PATH`. +Tested with Hermes Agent v0.23.4. -```bash +```sh hermes plugins install idosal/AgentPolyfill/polyfills/events/hermes/plugin --enable hermes plugins install idosal/AgentPolyfill/polyfills/skills/hermes/plugin --enable hermes plugins install idosal/AgentPolyfill/polyfills/server-cards/hermes/plugin --enable -``` - -ARD is a draft from outside MCP. Install it separately: - -```bash hermes plugins install idosal/AgentPolyfill/polyfills/ard/hermes/plugin --enable ``` -Each plugin carries its Python code and bundled Node helper; no npm install -is needed. `AGENTPOLYFILL_NODE` can name another Node executable. Apps has -no Hermes form yet. ARD carries its own add and remove tools and can run -beside Server Cards. - -Events and Skills use only the servers you name in the plugin's settings. -In `~/.hermes/config.yaml` (or your profile's), merge these settings with any -entries you already have: +For Events and Skills, list the permitted server names in your profile’s +`config.yaml`. Each name must also exist under `mcp_servers`. Grant +`allow_gateway_injection` if Events should wake the session. ```yaml plugins: @@ -283,704 +132,39 @@ plugins: servers: [huggingface] ``` -These names must also have entries under `mcp_servers`; the first runs below -show them. The server list is the plugin's own grant, separate from Hermes's -`mcp_allowlist`. Without `allow_gateway_injection`, Events stores events but -cannot wake a session; `list_watches` says so. - ### T3 Code -[T3 Code](https://github.com/pingdotgg/t3code) runs the Codex, Claude Code -or OpenCode already on your machine, so install the plugins above for the -agent you use in it. For Events in Codex threads, use the T3 form instead of -the Codex plugin. Nothing for T3 Code is published; add it from a clone: +Install plugins for the underlying agent. For Events in a Codex thread, +use the T3 adapter in place of the Codex Events plugin: -```bash +```sh git clone https://github.com/idosal/AgentPolyfill.git codex mcp add mcp-events-t3 -- node "$PWD/AgentPolyfill/polyfills/events/t3/plugin/dist/server.js" ``` -Then use **Restart agent session** in T3 Code. To remove it, run -`codex mcp remove mcp-events-t3` and -`node AgentPolyfill/polyfills/events/t3/plugin/dist/server.js --stop`; its data -stays in `~/.codex/mcp-events-t3` until you delete it. - -## Requirements - -### In Claude Code - -| | Claude Code | What else it needs | Where it has run | -|---|---|---|---| -| Events | 2.1.326 or newer | Node 20 or newer, or Bun (webhook delivery through a relay needs Node 22 or newer, or Bun); `/mcp-events setup` can fetch Bun for the mod alone on macOS and Linux. A terminal session, or one an app keeps open. | Checked on macOS; its tests also run on Linux and Windows | -| Server Cards, ARD | 2.1.329 or newer | Nothing else: no helper process, no Node, no account. To add a server, the `claude` command, found on your `PATH` or in the usual install folders. | | -| Apps | 2.1.329 or newer | Nothing else, not even Node: the plugin carries a small helper program for each platform. A Chromium-based browser (Chrome, Edge, Chromium, Brave); clicking into views needs Claude Code's fullscreen layout. | macOS, Linux (x64 or Arm64) and Windows x64; Windows hasn't been used in a Claude Code session yet | - -All of them run as mods, the kind of Claude Code plugin whose code runs inside -Claude Code; mods are on by default from Claude Code 2.1.287. Claude Code runs a -plugin's code only in a folder you've told it you trust, which it asks the -first time you start `claude` in a folder. In a folder you haven't trusted, -the polyfills do nothing. - -The runtime download doesn't happen unless you send the command yourself (at -the prompt, or from your own Remote Control) and then answer Download in -Claude Code's own dialog. What is fetched and how it's checked is on the -[Events](./events#the-mod-s-own-runtime) page. - -Skills needs no polyfill in Claude Code: it is built in, in beta from 2.1.332 -([Skills](./skills#claude-code)). - -### In Codex - -| | Codex | What else it needs | -|---|---|---| -| Events | 0.170 or newer | Node 20 or newer. A watch wakes a Codex CLI session (the terminal app or `codex exec`). | -| Skills | 0.172 (the version it was tested on) | Node 20 or newer | -| Server Cards, ARD | 0.170 or newer | Node 20 or newer | -| Apps | not yet | | - -Each Codex plugin's README has the rest: -[Events](https://github.com/idosal/AgentPolyfill/tree/main/polyfills/events/codex), -[Skills](https://github.com/idosal/AgentPolyfill/tree/main/polyfills/skills/codex), -[Server Cards](https://github.com/idosal/AgentPolyfill/tree/main/polyfills/server-cards/codex) and -[ARD discovery](https://github.com/idosal/AgentPolyfill/tree/main/polyfills/ard/codex). - -### In Pi - -| | Pi | What else it needs | -|---|---|---| -| Events | 1.6.0 (the version tested) | Node 22 or newer. An open session; a new watch needs a dialog in the terminal or an RPC client. | -| Skills | 1.6.0 (the version tested) | Node 22 or newer. A new skill approval needs a dialog in the terminal or an RPC client. | -| Server Cards, ARD | 1.6.0 (the version tested) | Node 22 or newer. Adding a server or sending a registry search needs a dialog in the terminal or an RPC client. | -| Apps | not available | Pi leaves out `ui://` resources and tool `_meta`; nothing for Apps in Pi is built or tested. | - -Pi runs tool calls without asking unless a permission extension asks. Each -polyfill asks before its consequential step itself. Print and JSON modes -cannot ask, so they refuse new watches, unapproved skill loads, searches -and server additions. - -Events and Skills each open their own connection to a server: a local -(stdio) server runs twice. Events needs protocol revision 2026-07-28, while -Pi's own MCP client stops at 2025-11-25. Servers are read when a session -starts; a server another extension registers later is reached after -`/reload`. When Pi's own MCP support is off (`--no-mcp`, `-builtin:mcp` in -the extensions setting, or an extension that replaces it), Events and Skills -stand down too. - -Each Pi form's README has the rest: -[Events](https://github.com/idosal/AgentPolyfill/tree/main/polyfills/events/pi), -[Skills](https://github.com/idosal/AgentPolyfill/tree/main/polyfills/skills/pi), -[Server Cards](https://github.com/idosal/AgentPolyfill/tree/main/polyfills/server-cards/pi) and -[ARD discovery](https://github.com/idosal/AgentPolyfill/tree/main/polyfills/ard/pi). - -### In OpenCode - -| | OpenCode | What else it needs | -|---|---|---| -| Events | 2.4 or newer (tested with 2.4.1) | Git, to install it. A watch runs while OpenCode has the project open. | -| Skills | 2.4 or newer (tested with 2.4.1) | Git, to install it. | -| Server Cards, ARD | 2.4 or newer (tested with 2.4.1) | Git, to install it. An added server connects over streamable HTTP; an SSE remote is refused. | -| Apps | not available | OpenCode has no MCP Apps support, and a plugin can't read a `ui://` resource or a tool's `_meta`; an OpenCode form was assessed, not built. | - -Each one runs inside OpenCode's own server, once per project folder, so it -works the same from the TUI (`opencode`), OpenCode Desktop or a client of -`opencode serve`. All four were checked against OpenCode's server; Events, -Skills and Server Cards in the TUI too; Events and Skills in OpenCode Desktop -2.4.1. Not checked: Server Cards and ARD in OpenCode Desktop, and ARD in the -TUI. The tests run in OpenCode 2.4.1 on Linux, macOS and Windows; Windows -was not checked beyond the tests. - -OpenCode's shipped permission rules allow every action. Each polyfill puts -its own actions to those rules and asks you by default: starting or stopping -a watch, loading a skill, a read of another server's resource while a served -skill is loaded, adding or removing a server, a registry search. A `deny` or -`ask` rule you write wins. With nobody there to answer, as in a scheduled -run, OpenCode refuses the question. To leave them to OpenCode's rules alone, -set the plugin option `askByDefault` to `false`, in the object form of the -plugin's entry (`{ "package": "", "options": { "askByDefault": false } }`), -or `MCP_EVENTS_ASK_BY_DEFAULT=0`, `MCP_SKILLS_ASK_BY_DEFAULT=0`, -`MCP_SERVER_CARDS_ASK_BY_DEFAULT=0` or `ARD_DISCOVERY_ASK_BY_DEFAULT=0` in -the environment OpenCode starts in. An `allow` rule you write doesn't skip -the question by itself, since the plugin can't tell it from OpenCode's -default. - -"Allow always" keeps your answer for a watch's server and event type -(Events) or for a skill as it is now (Skills), in that project. The plugin -keeps its own record of it, so taking it back in OpenCode doesn't make it ask -again; an `ask` rule for the action does. Server Cards and ARD save nothing: -each addition and each search is asked about on its own. - -In OpenCode 2.4.1's TUI, the prompt for a polyfill's action says only "Call -tool ``", such as "Call tool mcp_events_watch"; the details are on the -model's call line just above it. OpenCode Desktop shows the action and its -resource (checked for Events and Skills). After a wake or a load, what the model -does goes through OpenCode's rules as usual, and their default allows it. - -Events and Skills each open their own connection to a server: a local server -runs twice. OpenCode loads a project's plugins when something uses that -project, so a saved watch runs again only when OpenCode next opens the -project; events from the meantime arrive then. - -Each OpenCode form's README has the rest: -[Events](https://github.com/idosal/AgentPolyfill/tree/main/polyfills/events/opencode), -[Skills](https://github.com/idosal/AgentPolyfill/tree/main/polyfills/skills/opencode), -[Server Cards](https://github.com/idosal/AgentPolyfill/tree/main/polyfills/server-cards/opencode) and -[ARD discovery](https://github.com/idosal/AgentPolyfill/tree/main/polyfills/ard/opencode). - -### In Antigravity - -| | Antigravity | What else it needs | -|---|---|---| -| Events | App v2.35.1 and CLI v1.5.17 | Node 20 or newer on `PATH`. A watch needs an answer in the approval card. Waking an idle App conversation needs the sidecar on; CLI conversations get new events at their next model call. | -| Skills | App v2.35.1 and CLI v1.5.17 | Node 20 or newer on `PATH`. Loading a new or changed skill needs an answer in the approval card. | -| Server Cards | App v2.35.1 and CLI v1.5.17 | Node 20 or newer on `PATH`. An addition needs an answer in the approval card. | -| ARD | App v2.35.1 and CLI v1.5.17 (an addition through ARD was not checked in the App) | Node 20 or newer on `PATH`. An addition or a registry search needs an answer in the approval card. | -| Apps | no form | The App renders MCP Apps itself (v2.34.0 and later); the CLI and IDE show text only. | - -Antigravity documents no MCP elicitation, and its MCP client cancels every -request without showing it. So each plugin asks through its `PreToolUse` -hook, which answers `force_ask`: Antigravity's own approval card, with the -hook's question (the CLI's card shows its first two lines). The App greys -out the card's "always allow" choices; the CLI's card still lists them. The -hook leaves a one-use ticket for exactly that call, and the MCP server acts -only with it. Editors on `agy acp` see the tool and its arguments, not the -question. - -Watches, new or changed skill loads, additions and searches ask through -`force_ask`. The other Events tools, an approved unchanged skill load and -skill file reads pass with a ticket and then get Antigravity's usual MCP -question, which allow rules can skip. By default that question is asked: the -interactive CLI starts in auto mode, where an MCP tool call still asks, and -headless `agy -p` reports `request-review` and denies a call nobody answers. -Whether `--dangerously-skip-permissions` also skips `force_ask` hasn't been -checked. In CLI 1.5.17 a `PreToolUse` hook that fails makes the call fail. - -The IDE documents no plugin hooks, so the forms aren't supported there, and -their gated calls are refused. A webhook watch was not checked. - -Each Antigravity form's README has the rest: -[Events](https://github.com/idosal/AgentPolyfill/tree/main/polyfills/events/antigravity), -[Skills](https://github.com/idosal/AgentPolyfill/tree/main/polyfills/skills/antigravity), -[Server Cards](https://github.com/idosal/AgentPolyfill/tree/main/polyfills/server-cards/antigravity) and -[ARD discovery](https://github.com/idosal/AgentPolyfill/tree/main/polyfills/ard/antigravity). - -### In Copilot CLI - -| | Copilot CLI | What else it needs | -|---|---|---| -| Events | 1.0.115 or newer, in experimental mode | Nothing else: Copilot runs the extension with its own Node. An open session. The first session asks once whether the extension may have elevated permissions. A new watch needs someone to answer the plugin's question. | -| Server Cards, ARD | 1.0.115 or newer | Node 20 or newer on your `PATH`. Adding a server or sending a registry search needs Copilot's form, so it works in the interactive session only. | -| Skills | built in | Copilot CLI 1.0.115 declares Skills over MCP to every server; there is no Copilot form. | -| Apps | built in for graphical hosts | VS Code's Copilot harness turns MCP Apps on (from its source; not checked in VS Code); the terminal draws none. There is no Copilot form. | - -Copilot asks before each of the plugins' tools that act (`watch_event`, -`unwatch_event`, `add_mcp_server`, `ard_search`), as for any tool. Copilot can -approve a call without you, though: in assisted mode (an LLM review, which an -organisation can make the default) or with allow-all. So each plugin asks its own question after -Copilot's prompt. Before a watch starts, Events asks in a Copilot dialog, -naming the server, the event type, the filters and the note, and -saying that events will start turns; **Don't watch it** comes first. Server -Cards and ARD ask in the plugin's form before adding a server or sending a -search. Where nobody can be asked (`copilot -p`), a watch is refused, and -Copilot declines the form, even with `--yolo`. To leave watches to Copilot's -rules alone, set `MCP_EVENTS_ASK_BY_DEFAULT=0` in the environment Copilot -starts in. `ard_search` is marked not read-only, because VS Code's Copilot -harness runs read-only tools without asking (Copilot CLI 1.0.115 asked before -them). - -Events opens its own connection to a server, so a local (stdio) server runs -twice. It reads only the servers Copilot enables for the session. -`copilot --acp` loads no extensions, and `copilot -p` ends the session with -the prompt, so nothing is woken there. A server that Server Cards or ARD adds -connects after `/mcp reload`, or in the next session. - -Checked in VS Code 1.147.0's Copilot harness: Events end to end, where a -wake shows as a message from the plugin, then the turn; and Server Cards -adding a server, through VS Code's tool prompt and then the plugin's form, -which VS Code shows as one paragraph. ARD's server loads there. Not checked -in VS Code: an ARD search, and the Events watch question. - -Each Copilot form's README has the rest: -[Events](https://github.com/idosal/AgentPolyfill/tree/main/polyfills/events/copilot), -[Server Cards](https://github.com/idosal/AgentPolyfill/tree/main/polyfills/server-cards/copilot) and -[ARD discovery](https://github.com/idosal/AgentPolyfill/tree/main/polyfills/ard/copilot). - -### In Hermes - -| | Hermes Agent | What else it needs | -|---|---|---| -| Events | v0.23.4 (the version tested) | Node 20 or newer on the gateway's PATH. Servers named in `plugins.entries.mcp-events.settings.servers`; `allow_gateway_injection` to wake a session. Poll and push; webhook stays with Hermes. | -| Skills | v0.23.4 (the version tested) | Node 20 or newer on the gateway's PATH. Servers named in `plugins.entries.mcp-skills.settings.servers`. Newly found skills are listed from the next session. | -| Server Cards, ARD | v0.23.4 (the version tested) | Node 20 or newer on the gateway's PATH. Hermes's approval for additions and searches; `/reload-mcp` to connect an added server. | -| Apps | not yet | | - -By default Hermes lists plugin tools behind Tool Search, and a small model may -not find them there: with `tools.tool_search.enabled: off` in `config.yaml` -it sees them directly. - -The Python plugin runs in Hermes's gateway and starts its Node helper there. -Approvals go through Hermes's own once/session/always/deny prompt on the -session's surface, and fail closed where nobody can answer. A lasting ARD -search approval covers only that exact query to that endpoint; different -words ask again. Where Hermes approves without asking (`--yolo`, `/yolo`, `hermes -z`, -`approvals.mode: off`), the plugins refuse a watch, a skill load, a registry -search and a server addition instead; unattended approve modes still approve -them. - -Events and Skills open their own connections, so a local server runs twice. -They leave alone a server that uses Hermes's sign-in, or whose entry takes -`${VAR}` from Hermes's `.env`. Events also leaves `events: true` servers to -Hermes's own webhook delivery. The configuration is read again at every turn -and tool call. After a gateway restart, watches resume at the first session -or turn. - -Each Hermes form's README has the rest: -[Events](https://github.com/idosal/AgentPolyfill/tree/main/polyfills/events/hermes), -[Skills](https://github.com/idosal/AgentPolyfill/tree/main/polyfills/skills/hermes), -[Server Cards](https://github.com/idosal/AgentPolyfill/tree/main/polyfills/server-cards/hermes) and -[ARD discovery](https://github.com/idosal/AgentPolyfill/tree/main/polyfills/ard/hermes). - -### In T3 Code - -T3 Code 0.1.11 is the version tested, with Codex 0.172.0. - -| | In T3 Code | What else it needs | -|---|---|---| -| Events | the T3 form, for Codex threads only | The `t3` command on the PATH Codex runs with, and Node 20 or newer. | -| Skills, Server Cards, ARD | the plugins of the agent you use | With Codex, the question each asks before loading, adding or searching is cancelled by T3 Code without being shown, so that step doesn't happen. | -| Apps | T3 Code shows MCP Apps itself | Nothing: don't use the Apps polyfill there. | - -Not checked in T3 Code: anything with Claude Code or OpenCode as the agent, -the approval prompt for `watch_event` in a thread whose mode asks, Server -Cards and ARD. [T3 Code](https://github.com/idosal/AgentPolyfill/blob/main/docs/t3-code.md) has the details. +Select **Restart agent session** in T3 Code. The [adapter README](https://github.com/idosal/AgentPolyfill/tree/main/polyfills/events/t3) +covers thread wake-ups and removal. ## First run -Events and Apps each have a hosted demo server to try them against, Skills -uses Hugging Face's public MCP server, and Server Cards needs nothing set up. -Add the server, start your host in the same folder, and ask. Each host's -steps are below. - -### Events - -::: code-group - -```bash [Claude Code] -claude mcp add --transport http feeds https://event-feeds.idosalomon.workers.dev/mcp -``` - -```bash [Codex] -codex mcp add feeds --url https://event-feeds.idosalomon.workers.dev/mcp -``` - -```bash [Pi] -pi mcp add feeds --url https://event-feeds.idosalomon.workers.dev/mcp -``` - -```jsonc [OpenCode] -// opencode.json -{ - "mcp": { "feeds": { "type": "remote", "url": "https://event-feeds.idosalomon.workers.dev/mcp" } } -} -``` - -```bash [Antigravity] -agy mcp add feeds https://event-feeds.idosalomon.workers.dev/mcp -``` - -```bash [Copilot CLI] -copilot mcp add --transport=http feeds https://event-feeds.idosalomon.workers.dev/mcp -``` - -```yaml [Hermes] -# config.yaml in your Hermes profile -mcp_servers: - feeds: - url: https://event-feeds.idosalomon.workers.dev/mcp -plugins: - entries: - mcp-events: - settings: - servers: [feeds] - allow_gateway_injection: true -``` - -::: - -`agy mcp add` is in CLI 1.5.17's own help, not in Antigravity's docs. The -Antigravity App doesn't ship `agy`. There, add the server under -Customizations > Installed > MCP Servers, or in -`~/.gemini/config/mcp_config.json`. - -For the demo button: - -> Give me a demo button and tell me what I type when I press it. - -- **Claude Code:** the agent makes a private button page, gives you its link, - and watches it. Press the button: a few seconds later the idle session - wakes by itself and answers. The first time the agent uses each of the - mod's tools, Claude Code asks whether to go ahead, as for any MCP tool. -- **Codex:** the agent makes a private button page, gives you its link, and - watches it. Press the button to wake an idle Codex CLI session (the - terminal app or `codex exec`). A chat in the ChatGPT desktop app keeps its - events but can't be woken, so ask it for `recent_events`. A resumed Codex - session starts watching at its first Events tool call. -- **Pi:** try "Watch for new earthquakes from the feeds server and tell me - where each one was." At session start, the extension lists the server's - event types in the system prompt. `watch_event` asks a yes/no dialog naming - the server, event type, filters and note in full, and saying its events - will start turns. No or closing the dialog starts no watch. After yes, an - event wakes the idle session with a message starting `[mcp-events]`, saying - the extension sent it, not you; Pi calls `get_event` and answers. By - default, a watch can wake the session once a minute and the session can - wake 30 times an hour. Past that it is told once and waits until you - write; events stay stored. Ask "Stop watching the earthquakes" to stop. - A local (stdio) watch resumes only when you resume the session in the same - folder. Checked in Pi 1.6.0: a confirmed watch, an idle wake, the event - read, the answer and the stop. -- **OpenCode:** the entry goes in `mcp` in `opencode.json`, the project's or - your global one. The agent makes a private button page, gives you its link, - and watches it. OpenCode asks before the watch starts, naming the server - and the event type; in the TUI the prompt says only "Call tool - mcp_events_watch", and both are on the model's call line above it. "Allow - always" keeps that answer for that server and event type in this project. - Press the button: the idle session wakes with a message from the plugin - that starts with `[mcp-events]`, and the model reads the event and answers. - The TUI shows the wake as `◈ mcp-events: new events`; OpenCode Desktop - shows no entry for it, so the turn starts with no visible cause. By - default, a watch can wake the session once a minute and the session can - wake 30 times an hour. Watches resume when OpenCode next opens the project. - Checked in OpenCode 2.4.1: a demo button pressed on this server wakes the - idle session. -- **Antigravity:** try the same question. A watch asks in Antigravity's - approval card, through the plugin's `force_ask`. New events reach the - conversation at its next model call, through the plugin's `PreInvocation` - hook (checked in CLI 1.5.17; Antigravity's plugins page doesn't list - `PreInvocation` among plugin hooks), as fixed text with a count and the - plugin's own watch ids. An idle App conversation wakes only with the - sidecar on ([Install](#antigravity)); CLI conversations can't be woken. The - feeds demo was not checked in Antigravity. Checked in App 2.35.1 and CLI - 1.5.17: a watch approved and one declined, delivery at the next turn in the - CLI, and an idle App conversation woken by the sidecar. -- **Copilot CLI:** start `copilot --experimental`. The first session asks - once whether the extension may have elevated permissions; choose **Yes**. - A watch asks twice: Copilot's tool prompt for `watch_event`, then the - plugin's dialog, which names the server, the event type, the filters and - the note and says events will start turns; choose **Watch it**. Press the - button: a few seconds later the idle session starts a turn by itself, reads - the event and tells you what you typed. The wake's first line says the - plugin sent it, not you. Checked in Copilot CLI 1.0.115: a watch set - through Copilot's tool prompt, an idle wake and the read. -- **Hermes:** start `hermes`, with the demo server and plugin settings above - in your profile's `config.yaml`. Hermes makes a private button page and - asks you to approve the watch. Type a message on the page and press the - button. The idle session gets a message starting `[mcp-events]`, reads the - event with `get_event`, and tells you what you typed. Stop it with - "Stop watching the demo button." - -[More on Events](./events) - -### Skills - -::: code-group - -```bash [Codex] -codex mcp add huggingface --url https://huggingface.co/mcp -``` - -```bash [Pi] -pi mcp add huggingface --url https://huggingface.co/mcp -``` - -```jsonc [OpenCode] -// opencode.json -{ - "mcp": { "huggingface": { "type": "remote", "url": "https://huggingface.co/mcp", "oauth": false } } -} -``` - -```bash [Antigravity] -agy mcp add huggingface https://huggingface.co/mcp -``` - -```yaml [Hermes] -# config.yaml in your Hermes profile -mcp_servers: - huggingface: - url: https://huggingface.co/mcp -plugins: - entries: - mcp-skills: - settings: - servers: [huggingface] -``` - -::: - -- **Codex:** the served skills appear in the `$` list after you ask once to - list the served skills, from the next turn. -- **Pi:** the served skills appear in Pi's own list as - `mcp--`, with descriptions marked - `[MCP server "", not a local skill]`. Pi can choose one for the - task, or you can name it with `/skill:mcp-...`. -- **OpenCode:** the served skills are in OpenCode's own skill list as - `mcp-skills:huggingface:`, each described - `[MCP server "huggingface", not a local skill] …`. - `mcp_skills_list_skills` lists them, and each server it left alone, with - the reason. -- **Antigravity:** in the App, add the server under Customizations > - Installed > MCP Servers. Served skills appear as placeholder folders in - `~/.gemini/config/skills/`, which Antigravity documents reading before - each turn. - -Then ask a question one of its skills covers: - -> Which GGUF quantization should I use to run a 7B model on a 16 GB Mac? - -You're asked once whether to load the skill, in the host's own dialog, and -then the agent reads the skill's files from the server and answers from them. -In Pi the choices are "Don't load it", "Show me its SKILL.md first" and -"Load it". Declining loads nothing. Previewing shows the text to you before -the model sees it. Your yes is kept for that skill with exactly those files; -a change asks again. While a served skill is loaded, reaching another MCP -server asks "mcp-skills: reach another MCP server?", naming both servers -(SEP-2640 X8). Skills a server adds mid-session appear after `/reload`. -Checked in Pi 1.6.0 with Hugging Face's server: loading two skills after -approval, reading reference files and answering from them, and previewing a -skill first. - -In OpenCode, loading takes two steps: OpenCode's skill tool returns a short -note from the plugin, then the model calls `mcp_skills_load_skill`, and -OpenCode asks: "Allow once", "Allow always" or "Reject". There is no preview -of the skill's `SKILL.md` before you decide. In the TUI the prompt says only -"Call tool mcp_skills_load": the server and the skill's URI are on the -model's call line above it, and "Always allow" shows the pattern it would -save, bound to the skill's digest. "Allow always" covers that skill as it is -now; a changed skill asks again. While a served skill is loaded, OpenCode's -own read of another server's resource is asked about, naming both servers -(SEP-2640 X8). Checked in OpenCode 2.4.1: loading two Hugging Face skills -after OpenCode asked, and answering from them. Under OpenCode's default -rules, the model can also run a command a loaded skill describes, without a -prompt. - -In Antigravity the question is the approval card, yes or no, for a new or -changed skill. An approved, unchanged skill skips the plugin's question and -gets only Antigravity's usual MCP question, which allow rules can skip. X8 -isn't met: once a served skill is loaded, the plugin's hook asks before a -`read_resource` from another server, naming both, but Antigravity (CLI -1.5.17, App 2.35.1) ignores that question (no card; the read goes ahead). - -In Hermes, the plugin looks at the server during your first turn. From the -next session, skills appear as `mcp-skills:huggingface-`, each marked -with its server. `list_skills` and `load_skill` reach them at once. Ask: - -> Use the Hugging Face local-models skill: which GGUF quantization should I use to run a 7B model on a 16 GB Mac? - -Hermes views the stub and calls `load_skill`. Its approval names the skill, -server and files. To read SKILL.md first, deny and type the `/mcp-skills show` -line in the question; the model never sees that preview. A kept approval -covers that version only, and a changed skill asks again. While a served -skill is loaded, reading another server's resource asks each time. - -[More on Skills](./skills) - -### Server Cards - -Nothing to set up. Start your host and ask: - -> What MCP servers does neon.com publish? - -Then add **Neon Docs** (no sign-in): - -- **Claude Code:** press **Add**. For one behind a sign-in, ask about - buildkite.com; once it's added, the host asks you to sign in. - `claude mcp remove neon-docs -s local` removes Neon Docs again. -- **Codex:** choose "Add it" in its own form. For one behind a sign-in, ask - about buildkite.com; once it's added, the host asks you to sign in. -- **Pi:** `discover_mcp_servers` reads the domain's AI Catalog and checks - each card. Ask "Add Neon Docs". `add_mcp_server` shows "Don't add it" and - "Add it", naming the host, URL, headers, destination `mcp.json` (normally - `~/.pi/agent/mcp.json`) and `pi mcp remove ` to undo it. Only "Add - it" runs `pi mcp add` and registers the server for the session, so it - connects without a restart. Decline or close the dialog and nothing is - added. Checked in Pi 1.6.0. - For a server that needs sign-in, use `/mcp` or `pi mcp login `. -- **OpenCode:** ask "Add Neon Docs". OpenCode asks; in the TUI the prompt - says only "Call tool mcp_server_cards_add", with "Allow once" and "Reject", - and the name and URL are on the model's call line above it. Allowed, the - server is in OpenCode's MCP servers at once, for this project, and OpenCode - connects it. It isn't written to your configuration files. For a server - behind a sign-in, add it the same way, then run `opencode mcp auth ` - in a terminal. Ask OpenCode to remove Neon Docs to take it out again - (`server_cards_remove_mcp_server`). Checked in OpenCode 2.4.1's TUI with - Neon Docs. -- **Antigravity:** approve the addition in Antigravity's approval card. The - plugin then writes the server to `~/.gemini/config/mcp_config.json`. A card - that needs a secret can't be added: Antigravity's personal - `mcp_config.json` reads no `${VAR}`, and the plugin never writes a secret. -- **Copilot CLI:** ask "Add Neon Docs". Copilot asks before it runs each of - the plugin's tools, then shows the plugin's form, naming the host, URL, - headers, the file it writes and the undo command: choose **Add it**. Run - `/mcp reload` (or start a new session) to use it. - `copilot mcp remove neon-docs` removes it again. For a server that needs - sign-in, Copilot offers it when it first connects (`/mcp auth `). -- **Hermes:** ask "Add Neon Docs" and approve the prompt naming the server, - URL, headers with their values (secrets as `${VAR}` references), transport, file and undo action. It writes `mcp_servers` in - `config.yaml`. Run `/reload-mcp` or start a new session to connect it. - `hermes mcp remove neon-docs`, then `/reload-mcp`, removes it again. - If the result names an OAuth challenge, run `hermes mcp login ` - before reloading. The plugin never handles the sign-in. - -[More on Server Cards](./server-cards) - -### ARD in Pi - -Ask "What does buildkite.com list in its ard.json?" `ard_discover` reads the -domain's manifest and checks its cards. To search, name a registry in your -request or set `ARD_DISCOVERY_REGISTRY`: there is no default registry. -`ard_search` asks before sending, naming the exact query and registry -endpoint, and saying that up to three referrals may receive it. "Don't send -it" or closing the dialog sends no query; "Send the search" sends it. - -Adding a result is a separate question through `ard_add_mcp_server`, with -the host, URL, headers, configuration file and undo command, just as for -Server Cards. It has a different tool name because Pi shares tool names -across extensions and keeps the first registration under a name. - -Checked in Pi 1.6.0: reading buildkite.com's `ard.json`, and a search of the -repository's demo registry after approval. Adding is checked by the form's -tests only. -[More on ARD](./ard) - -### ARD in OpenCode - -Ask "What does buildkite.com list in its ard.json?" `ard_discover` reads the -domain's manifest and checks its cards. To search, name a registry in your -request or set `ARD_DISCOVERY_REGISTRY`: there is no default registry. -Before anything is sent, `ard_search` is put to OpenCode's rules on the -registry hosts, and OpenCode asks; nothing is saved, so each search is asked -about on its own. A registry a referral names is asked about in a prompt of -its own before the query goes there; rejected, it gets nothing. - -In OpenCode's TUI, a prompt for a plugin's action says only "Call tool -``" (checked for the other three plugins; ARD was not checked there). Since -nothing is saved, a search's prompt would offer only "Allow once" and -"Reject", as for Server Cards. The query and the registry you named are on -the model's call line above it, but **nothing on screen names a registry a -referral names**, so reject a prompt you can't read. OpenCode Desktop shows a plugin action's -resource in its prompt, here the registry's host; ARD was not checked there -either. - -Adding a result is a separate question through `ard_add_mcp_server`, under -the same action as a Server Cards addition (`mcp_server_cards_add`). - -Checked in OpenCode 2.4.1: reading buildkite.com's `ard.json`, and a search -of the repository's demo registry after OpenCode asked. No public registry -that takes an unauthenticated search was found. Adding is checked by the -form's tests only. -[More on ARD](./ard) - -### ARD in Antigravity - -The Antigravity form carries the Server Cards checks and add step itself; it -needs no other polyfill installed. There is no default registry: name one in -your request, or set `ARD_DISCOVERY_REGISTRY` in the environment Antigravity -starts in. Every registry search, and every addition, is put to you in -Antigravity's approval card. An addition writes -`~/.gemini/config/mcp_config.json`. Checked in the App and the CLI. -[More on ARD](./ard) - -### ARD in Copilot CLI - -Ask "What does buildkite.com list in its ard.json?", then "Add it". Copilot -asks before it runs each tool, then shows the plugin's form. Accept it, run -`/mcp reload`, and sign in when Copilot asks (`/mcp auth buildkite`). To -search, name a registry in your request or set `ARD_DISCOVERY_REGISTRY`: -there is no default registry. Before every search, the form names the -registry and the exact query; only "Send the search" sends it. - -Checked in Copilot CLI 1.0.115: `ard_discover` reading buildkite.com's -catalogs, and a search of the repository's demo registry going out only -after Copilot's tool prompt and **Send the search**. No other registry was -checked. The add step is the Server Cards form's, and is checked by the -form's tests only. -[More on ARD](./ard) - -### ARD in Hermes - -Ask "Use ARD to discover the MCP servers neon.com publishes." Discovery -reads public documents and sends no query to a registry. To search, name a -registry or set `ARD_DISCOVERY_REGISTRY` in the gateway's environment; none -is chosen for you. Hermes's approval names the exact endpoint and query. -Session and always cover only that exact query to that endpoint; different -words ask again. Each referral requires its own call and approval. - -Adding is a separate approval through `ard_add_mcp_server`. The server goes -in `mcp_servers` in `config.yaml`; `/reload-mcp` connects it. -`ard_remove_mcp_server` removes an unchanged entry this plugin added, after -approval, and `/reload-mcp` disconnects it. - -The recorded live run used a scripted model to read buildkite.com's -`ard.json` and card. Search, referrals and additions were checked with local -fixtures in Hermes; no live registry search was sent. -[More on ARD](./ard) - -### Apps - -Apps runs in Claude Code. Availability in each host is listed in the -[polyfills table](./introduction#the-polyfills). The Antigravity App renders -MCP Apps itself (v2.34.0 and later), with no polyfill; its CLI and IDE show -text only. - -```bash -claude mcp add --transport http arcade https://mcp-apps-arcade.idosalomon.workers.dev/mcp -``` +With Server Cards installed, ask **What MCP servers does neon.com publish?** +Select **Neon Docs** and review the server address before approving the addition. +The host handles the connection and any required sign-in. -> Find a shareware game in the arcade and load it. - -The app appears under the tool call. After the first view appears, the plugin -offers to switch Claude Code to its fullscreen layout, the only one that -passes clicks and keys to a view. [More on Apps](./apps) +| To try | Example | +|---|---| +| [Events](./events#try-it) | Create a demo button and have the agent report what you typed when you press it. | +| [Skills](./skills#try-it) | Load Hugging Face’s local-model skill to choose a quantization for a 7B model. | +| [Apps](./apps#try-it) | Open a game from the arcade MCP server in the Claude Code terminal. | +| [ARD](./ard#try-it) | Look up the MCP servers Buildkite publishes through its domain. | ## Servers behind a sign-in -Events and Skills can't use the host's OAuth sign-in; Apps has the same -limit in its available form. A server whose credential is in its -configuration works with Events and Skills: - -- **Claude Code:** a server you sign in to through `/mcp`, or a claude.ai - connector, is out of reach. A header (including `${VAR}`) or a - `headersHelper` works. -- **Codex:** a header written in the config works; a token kept in an - environment variable (`bearer_token_env_var`, `env_http_headers`) is out of - reach, because a plugin's MCP server only sees a fixed few variables. -- **Pi:** a server you sign in to through `/mcp` or `pi mcp login`, or one - using `auth.provider`, is out of reach and the extension says why. An - `Authorization` header in `mcp.json` works, written out or resolved from - `${VARIABLE}` or `!command`. The extensions never read `mcp-auth.json` or - `auth.json`. -- **OpenCode:** a server OpenCode signs in to with OAuth - (`opencode mcp auth`) is out of reach; the polyfill's list tool names each - server it left alone, and why. The headers in a server's OpenCode - configuration work. The plugins never read OpenCode's stored credentials. -- **Antigravity:** a server that needs Antigravity's own sign-in is skipped. - A header works: `agy mcp add --header "Authorization: Bearer " ` - writes it to `~/.gemini/config/mcp_config.json`. The plugins read that - file, header values included, to connect, and never log or show those - values. They never open - `~/.gemini/antigravity/mcp_oauth_tokens.json` or any sign-in store. -- **Copilot CLI:** Events can't use a server you sign in to through Copilot - (`/mcp auth`, OAuth). A header in `mcp-config.json` works, written out or - from `${VAR}`, except variables Copilot strips from extensions - (`GITHUB_TOKEN`, for one). The plugin never reads Copilot's stored - credentials. -- **Hermes:** Events and Skills leave alone `auth: oauth` servers and - entries that take `${VAR}` from Hermes's `.env`. Local commands and URLs - with headers written in `config.yaml` work, if named in the plugin's - `settings.servers`. Neither form reads Hermes's stored credentials. - -Server Cards is different: it adds a server to the host's own config, and the -host connects it with its own sign-in. [How it works](./how-it-works) says -why, and what would fix it. +Events, Skills and Apps plugins that connect to a server independently cannot +reuse OAuth credentials held by the host. Support for configured headers and +environment variables varies by adapter. See the [connection details](./how-it-works) +and [security guide](./security). ARD registry searches send your query to the +selected registry after approval. ## Turning one off diff --git a/site/guide/how-it-works.md b/site/guide/how-it-works.md index b1d0b277..f51c18a1 100644 --- a/site/guide/how-it-works.md +++ b/site/guide/how-it-works.md @@ -200,11 +200,11 @@ headers for the method, or takes them from the caller. - **Claude Code** has nothing like it today. It could be `$.mcp.request(server, method, params)` next to the existing `$.mcp.call`. -- **Codex** already has the hard part. Its MCP client can send any request +- The **Codex** MCP client can send any request (`send_custom_request`), but only Codex itself can use it. It could be an app-server method such as `mcpServer/request { threadId, server, method, params }`, behind `experimentalApi`, returning the raw result. -- **Pi** has the hard part too. Its MCP client (`McpClient.request()` in +- The **Pi** MCP client (`McpClient.request()` in `pi-mcp`) sends any method, but the built-in MCP extension keeps its clients to itself. It could be `pi.getMcpServerSession(name)` in the extension API, provided by whichever extension connects MCP servers, as @@ -213,13 +213,13 @@ headers for the method, or takes them from the caller. the caller the request's JSON-RPC id (push notifications are routed by it), takes per-request `Mcp-*` routing headers, and refuses `tools/call`, so tools stay on Pi's tool pipeline, where permission extensions see them. -- **OpenCode** has the hard part too: its MCP client already sends `events/*` +- The **OpenCode** MCP client sends `events/*` for itself. It could be `ctx.mcp.request({ server, method, params })` beside `ctx.mcp.list`, on the connection OpenCode holds, with its sign-in. - **Antigravity** has nothing like it. Its MCP client is closed, so this would be a new plugin API, for example a method a plugin's MCP server or sidecar can call. -- **Copilot** has the same shape next to it: `session.rpc.mcp.callTool` and +- **Copilot** exposes two related methods: `session.rpc.mcp.callTool` and `resources.read` already go over Copilot's connection "with the existing server admission and tool permission checks". A `session.rpc.mcp.request({ serverName, method, params })` beside them, @@ -644,8 +644,8 @@ has the details: - **Scope.** A plugin could declare in its manifest which extension it implements and which method prefixes it will send (`events/`, `skills/`). Then you see the grant when you install it, and the pipe isn't open-ended. -- **Credentials.** Requests go out with your sign-in. That's the point, and - it's also why the scope above matters. +- **Credentials.** Requests use the host’s authenticated connection. Restrict that access + to the servers and methods granted to the plugin. - **Who may call, in Codex.** An app-server method is open to anything that can reach the socket, so a raw request there needs a per-plugin scope even more than an in-process API does. diff --git a/site/guide/introduction.md b/site/guide/introduction.md index 569daf14..d5692a9d 100644 --- a/site/guide/introduction.md +++ b/site/guide/introduction.md @@ -1,316 +1,49 @@ --- -description: What AgentPolyfill is, which polyfills run in each host, and who it is for. +description: MCP extensions available for each agent host, including built-in support and links to the plugins. --- # Introduction -AgentPolyfill makes polyfills for agent protocols. Bring more of MCP to the -clients you already use. Plugins and extensions add the client side of MCP -extensions to a host that hasn't shipped them yet. The table below shows -what runs in each host, including Agentic Resource Discovery, an open draft -beyond MCP. - -> **An early proof of concept.** Some gaps, like servers behind OAuth, need -> small changes to the hosts' plugin APIs. -> [What's missing](./how-it-works#how-it-works-in-each-host-and-where-it-stops). - -## Why polyfills - -MCP grows through extensions now: Apps, Skills, Events, Server Cards. A server -can adopt one in a day, but every host has to build each one itself, on its -own schedule, so a new extension can sit unused for months. A polyfill closes -that gap from the outside. It implements one published extension's client side -as a plugin or extension, follows that extension's spec (any exception is -listed and can be switched off), and steps aside once the host ships its own. -Servers don't change at all. - -We want this to be an open community around open specs: anyone can use these -extensions in the host they have, bring a polyfill to another host, or propose -a new extension, without waiting on one company's roadmap. +An MCP extension defines behavior for both a server and a client. AgentPolyfill +implements the client side in a host plugin. A server that implements the +extension can work with that host without changing its code. ## The polyfills -| Extension | Spec | Claude Code | Codex | Pi | OpenCode | Antigravity | Copilot CLI | Hermes | -|---|---|---|---|---|---|---|---|---| -| [Events](./events) | [SEP-3415](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/main/seps/3415-events-extension.md), Final | `mcp-events` | `mcp-events` | [extension](https://github.com/idosal/AgentPolyfill/tree/main/polyfills/events/pi) | [plugin](https://github.com/idosal/AgentPolyfill/tree/main/polyfills/events/opencode) | [plugin](https://github.com/idosal/AgentPolyfill/tree/main/polyfills/events/antigravity) | [plugin](https://github.com/idosal/AgentPolyfill/tree/main/polyfills/events/copilot) | [plugin](https://github.com/idosal/AgentPolyfill/tree/main/polyfills/events/hermes) (poll and push; webhook is Hermes's own) | -| [Skills](./skills) | [SEP-2640](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/main/seps/2640-skills-extension.md), Final | built into Claude Code, in beta from 2.1.332 ([changelog](https://code.claude.com/docs/en/changelog)) | `mcp-skills` | [extension](https://github.com/idosal/AgentPolyfill/tree/main/polyfills/skills/pi) | [plugin](https://github.com/idosal/AgentPolyfill/tree/main/polyfills/skills/opencode) | [plugin](https://github.com/idosal/AgentPolyfill/tree/main/polyfills/skills/antigravity) | built into Copilot CLI (1.0.115 declares it to every server) | [plugin](https://github.com/idosal/AgentPolyfill/tree/main/polyfills/skills/hermes) | -| [Server Cards](./server-cards) | [SEP-2127](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/main/seps/2127-mcp-server-cards.md), Final (the extension is Beta) | `mcp-server-cards` | `mcp-server-cards` | [extension](https://github.com/idosal/AgentPolyfill/tree/main/polyfills/server-cards/pi) | [plugin](https://github.com/idosal/AgentPolyfill/tree/main/polyfills/server-cards/opencode) | [plugin](https://github.com/idosal/AgentPolyfill/tree/main/polyfills/server-cards/antigravity) | [plugin](https://github.com/idosal/AgentPolyfill/tree/main/polyfills/server-cards/copilot) | [plugin](https://github.com/idosal/AgentPolyfill/tree/main/polyfills/server-cards/hermes) | -| [Apps](./apps) | [MCP Apps](https://github.com/modelcontextprotocol/ext-apps) 2026-01-26, Stable | `mcp-apps-cli` | not yet | not available | not available | native in the App (v2.34.0+); the CLI and IDE show text | built into VS Code's Copilot harness; none in the terminal | not yet | -| [ARD](./ard) (beyond MCP) | [Agentic Resource Discovery](https://github.com/ards-project/ard-spec) v0.91, a draft | `ard-discovery` | `ard-discovery` | [extension](https://github.com/idosal/AgentPolyfill/tree/main/polyfills/ard/pi) | [plugin](https://github.com/idosal/AgentPolyfill/tree/main/polyfills/ard/opencode) | [plugin](https://github.com/idosal/AgentPolyfill/tree/main/polyfills/ard/antigravity) | [plugin](https://github.com/idosal/AgentPolyfill/tree/main/polyfills/ard/copilot) | [plugin](https://github.com/idosal/AgentPolyfill/tree/main/polyfills/ard/hermes) | - -The Pi forms were tested with Pi 1.6.0 and need Node 22 or newer. -`pi install git:github.com/idosal/AgentPolyfill` installs Events, Skills and -Server Cards together. Pi clones the repository under `~/.pi/agent/git/` -and loads them from there, with nothing to build. Nothing for Pi is -published to npm or Pi's package gallery. A clone is the alternative for -one form, and the way to install ARD separately; -[Getting started](./getting-started#pi) has the steps. - -The OpenCode forms need OpenCode 2.4 or newer and were tested with 2.4.1. -OpenCode runs them itself, so they need no Node. Nothing for OpenCode is -published to npm: OpenCode installs each plugin from this repository on -GitHub, with Git; [Getting started](./getting-started#opencode) has the steps. - -The Antigravity forms are plugins for the App and the CLI (`agy`). Checked -in App v2.35.1 and CLI v1.5.17. They need Node 20 or newer on `PATH`, and the Antigravity CLI -to install them, since the App doesn't ship `agy`. The IDE documents no -plugin hooks, so the forms aren't supported there, and their gated calls are -refused. Nothing is published to Antigravity's Marketplace; -[Getting started](./getting-started#antigravity) has the clone-and-install -steps. - -The Copilot CLI forms were tested with Copilot CLI 1.0.115. Events is a -Copilot extension, so it needs Copilot's experimental mode; Server Cards and -ARD are MCP servers in plugins and need Node 20 or newer. They install from a -clone added as a marketplace. Copilot has Skills over MCP and MCP Apps built -in, so there is no Copilot form of either. -[Getting started](./getting-started#github-copilot-cli) has the steps. - -The Hermes forms were checked in Hermes Agent v0.23.4 and need Node 20 or -newer on the gateway's machine. Each installs from its folder in this -repository. Events and Skills need the servers named in their settings in -`config.yaml`, and Events the grant to start a turn. -[Getting started](./getting-started#hermes-agent) has the steps. +- **[Events](./events)** — Watch an MCP server for events such as failed deployments or new releases. +- **[Skills](./skills)** — List skills an MCP server publishes and load their instructions and files on demand. +- **[Server Cards](./server-cards)** — Find the MCP servers a domain publishes and add a selected server to your host. +- **[Apps](./apps)** — Use an MCP tool’s interface inline in the Claude Code terminal with the mouse and keyboard. +- **[ARD](./ard)** — Look up a domain’s `ard.json` or search an Agentic Resource Discovery registry. -All of them are early. Here is what each one does, and where it stops: +ARD is a draft protocol separate from MCP. Domain lookups read a public catalog. +Registry searches send the query to your chosen registry after approval. -- **Events.** The agent watches events on your MCP servers, by poll, push or - webhook, and an event wakes an idle session. In Codex, a woken session is a - Codex CLI session (the terminal app or `codex exec`): a chat in the ChatGPT - desktop app keeps its events but can't be woken, so ask it for - `recent_events`. A resumed Codex session starts watching at its first Events - tool call. In Pi, each watch asks you first; an event wakes the idle - session with a message starting `[mcp-events]` that says the extension - sent it, and Pi reads the event with `get_event`. In OpenCode, each watch - asks you first too; an event wakes the idle session with a message from the - plugin, which the TUI shows as `◈ mcp-events: new events` and OpenCode - Desktop doesn't show, so there the turn starts with no visible cause. - OpenCode's own client takes push events for its automations, but skips - event types whose schemas it can't check, so the polyfill watches every - type, push included, and tells the model to use a watch or an automation, - not both: a stated departure from the contract's rule 4. In Antigravity, a - watch asks in Antigravity's approval card, and new events reach the - conversation at its next model call, through the plugin's `PreInvocation` - hook (checked in CLI 1.5.17; Antigravity's plugins page doesn't list - `PreInvocation` among plugin hooks). An idle App conversation wakes only - through the plugin's sidecar, which you turn on; CLI conversations can't be - woken. - In Copilot CLI, Events needs experimental mode. Each watch goes through - Copilot's tool prompt and then the plugin's own question, since Copilot can - approve a call without you, in assisted mode (an LLM review, which an - organisation can make the default) or with allow-all. A wake is a turn - Copilot marks as an automation; VS Code's Copilot harness shows it as a - message from the plugin, then the turn. In Hermes, the plugin adds poll and push and leaves - `events: true` servers to Hermes's webhook delivery. Watches go through - Hermes's approval; a wake starts with `[mcp-events]`, and the model reads - the payload with `get_event`. -- **Skills.** In Codex, Pi, OpenCode, Antigravity and Hermes, skills an MCP - server serves show up next to your own, load only after you say yes to each one, - and are checked against the server's digests. Claude Code needs no - polyfill for Skills: it lists skills from MCP servers itself, in beta from - 2.1.332 ([Skills](./skills#claude-code)). Nor does Copilot CLI: it has - Skills over MCP built in. In Codex, served skills appear in Codex's own - skill list after you ask once to list them, from the next turn. - One rule of the spec can't be met in Codex yet: a skill from one server reading another server's resources - isn't put to you first (rule X8), because Codex doesn't let a plugin ask. - In Pi, served skills appear as `mcp--`, marked with their - server. X8 is met: a cross-server read while a served skill is loaded asks - you first, naming both servers, including calls made through codemode. - In OpenCode, served skills appear in OpenCode's own skill list as - `mcp-skills::`, marked with their server, and a load takes two - steps: OpenCode's skill tool returns the plugin's note, then the model asks - the plugin for the skill, and OpenCode asks you. There is no preview of its - `SKILL.md` before you decide. X8 is met there too: once a served skill is - loaded, OpenCode's own read of another server's resource asks first, naming - both servers, including from Code Mode and in subagents. - In Antigravity, served skills appear as placeholder folders in - `~/.gemini/config/skills/`, and loading a new or changed one is put to you - in Antigravity's approval card. X8 isn't met: the plugin's hook asks before - a read from another server while a served skill is loaded, but Antigravity - (CLI 1.5.17, App 2.35.1) ignores that question, and the read goes ahead. - In Hermes, skills - appear as `mcp-skills:-` from the next session. Hermes asks - before loading; to read SKILL.md first, deny and type `/mcp-skills show`. - A kept approval covers that version only. X8 is met: each resource read - from another server asks, naming both. -- **Server Cards.** Name a company and the agent finds the MCP servers its - domain publishes, checks each card against the schema, and adds the one you - pick to the host's own configuration. The host then connects it with its own - sign-in, so servers behind OAuth work. You see the host it connects to - before you add it. In Pi, the extension asks before running `pi mcp add` - and registers the server for the current session, without a restart. In - OpenCode, the plugin adds it to OpenCode's MCP servers after OpenCode asks, - and OpenCode connects it at once. It isn't written to your configuration - files: the plugin keeps it for that project and adds it again each time - OpenCode loads the plugin there. - In Antigravity, the addition is put to you in Antigravity's approval card, - then written to `~/.gemini/config/mcp_config.json`. - In Copilot CLI, Copilot's tool prompt comes first, then the plugin's form; - the server is added with `copilot mcp add` and connects after `/mcp reload`. In Hermes, its own - approval names the change before the plugin writes `mcp_servers` in - `config.yaml`. Hermes connects it after `/reload-mcp`. -- **Apps.** A server's app opens right under the tool call in the terminal - and answers the mouse and keyboard: real pixels in iTerm2, kitty and - Ghostty, text cells everywhere else. There is no Pi form: Pi 1.6.0 leaves - out `ui://` resources and tool `_meta`, so an extension can't get an App's - UI. Nothing for Apps in Pi is built or tested. There is no OpenCode form - either: OpenCode has no MCP Apps support, and a plugin can't read a `ui://` - resource or a tool's `_meta` over OpenCode's connection. An OpenCode form - was assessed, not built. There is no Antigravity form either: its App - renders MCP Apps itself (v2.34.0 and later), and its CLI and IDE show text - only. - Copilot has MCP Apps built in for graphical hosts: VS Code's Copilot - harness turns them on (from its source; no app was drawn there), and the - terminal draws none. There is no Copilot form. Apps has no Hermes form yet. +| Host | Events | Skills | Server Cards | Apps | ARD | +|---|---|---|---|---|---| +| [Claude Code](./getting-started#claude-code) | [Plugin](https://github.com/idosal/AgentPolyfill/tree/main/polyfills/events/claude-code) | Native (beta) | [Plugin](https://github.com/idosal/AgentPolyfill/tree/main/polyfills/server-cards/claude-code) | [Plugin](https://github.com/idosal/AgentPolyfill/tree/main/polyfills/apps/claude-code) | [Plugin](https://github.com/idosal/AgentPolyfill/tree/main/polyfills/ard/claude-code) | +| [Codex](./getting-started#codex) | [Plugin](https://github.com/idosal/AgentPolyfill/tree/main/polyfills/events/codex) | [Plugin](https://github.com/idosal/AgentPolyfill/tree/main/polyfills/skills/codex) | [Plugin](https://github.com/idosal/AgentPolyfill/tree/main/polyfills/server-cards/codex) | — | [Plugin](https://github.com/idosal/AgentPolyfill/tree/main/polyfills/ard/codex) | +| [Pi](./getting-started#pi) | [Plugin](https://github.com/idosal/AgentPolyfill/tree/main/polyfills/events/pi) | [Plugin](https://github.com/idosal/AgentPolyfill/tree/main/polyfills/skills/pi) | [Plugin](https://github.com/idosal/AgentPolyfill/tree/main/polyfills/server-cards/pi) | — | [Plugin](https://github.com/idosal/AgentPolyfill/tree/main/polyfills/ard/pi) | +| [OpenCode](./getting-started#opencode) | [Plugin](https://github.com/idosal/AgentPolyfill/tree/main/polyfills/events/opencode) | [Plugin](https://github.com/idosal/AgentPolyfill/tree/main/polyfills/skills/opencode) | [Plugin](https://github.com/idosal/AgentPolyfill/tree/main/polyfills/server-cards/opencode) | — | [Plugin](https://github.com/idosal/AgentPolyfill/tree/main/polyfills/ard/opencode) | +| [Google Antigravity](./getting-started#antigravity) | [Plugin](https://github.com/idosal/AgentPolyfill/tree/main/polyfills/events/antigravity) | [Plugin](https://github.com/idosal/AgentPolyfill/tree/main/polyfills/skills/antigravity) | [Plugin](https://github.com/idosal/AgentPolyfill/tree/main/polyfills/server-cards/antigravity) | Native in App | [Plugin](https://github.com/idosal/AgentPolyfill/tree/main/polyfills/ard/antigravity) | +| [GitHub Copilot CLI](./getting-started#github-copilot-cli) | [Plugin](https://github.com/idosal/AgentPolyfill/tree/main/polyfills/events/copilot) | Native¹ | [Plugin](https://github.com/idosal/AgentPolyfill/tree/main/polyfills/server-cards/copilot) | VS Code only¹ | [Plugin](https://github.com/idosal/AgentPolyfill/tree/main/polyfills/ard/copilot) | +| [Hermes Agent](./getting-started#hermes-agent) | [Plugin](https://github.com/idosal/AgentPolyfill/tree/main/polyfills/events/hermes) | [Plugin](https://github.com/idosal/AgentPolyfill/tree/main/polyfills/skills/hermes) | [Plugin](https://github.com/idosal/AgentPolyfill/tree/main/polyfills/server-cards/hermes) | — | [Plugin](https://github.com/idosal/AgentPolyfill/tree/main/polyfills/ard/hermes) | -Events and Skills can't use a host's OAuth sign-in. Apps has the same limit -in its available form. In Pi, Events and Skills open their own connections, -so a local (stdio) server runs twice. Headers in `mcp.json` work, including -`${VARIABLE}` and `!command` values; Pi's stored sign-ins and `auth.provider` -are out of reach. Events also needs protocol revision 2026-07-28, while -Pi 1.6.0's own MCP client stops at 2025-11-25. In OpenCode, Events and -Skills open their own connections too, so a local server runs twice. The -headers in a server's OpenCode configuration work; a server OpenCode signs in -to with `opencode mcp auth` is out of reach. In Antigravity, Events and -Skills can't reach servers behind Antigravity's own sign-in, and a Server -Card that needs a secret can't be added. -In Copilot CLI, Events opens its own connection too, so a local server runs -twice. A header in `mcp-config.json` works; Copilot's sign-in (`/mcp auth`) -and variables Copilot strips from extensions are out of reach. In Hermes, Events and -Skills use their own connections to the servers you named in their settings. -Local servers run twice; `auth: oauth` and entries that take `${VAR}` from -Hermes's `.env` are left alone. -[How it works](./how-it-works#how-it-works-in-each-host-and-where-it-stops) -says why, and what would fix it. - -**Beyond MCP**, [`ard-discovery`](./ard) adds -[Agentic Resource Discovery](https://github.com/ards-project/ard-spec) v0.91, -a draft. It finds MCP servers through a domain's `ard.json`, or -by searching an ARD registry you choose, and hands the cards to -`mcp-server-cards`. The Pi form carries the Server Cards checks and its own -add tool, `ard_add_mcp_server`. The Antigravity form carries the Server Cards -checks and add step too. -A search sends the words of your request to that -registry, so every search asks you first and names where it's going. That's -also why it isn't part of the Claude Code `agent-polyfill` bundle or Pi's -one-line install. Install it by name in Claude Code or Codex, from a clone -in Pi or Antigravity, with its own `opencode plugin add` in OpenCode, or with -`hermes plugins install idosal/AgentPolyfill/polyfills/ard/hermes/plugin --enable` -in Hermes. -Checked in Pi 1.6.0: domain discovery, and an approved search of the -repository's demo registry. Adding is checked by the form's tests only. -The OpenCode form carries the Server Cards code and its own add tool, -`ard_add_mcp_server`. Checked in OpenCode 2.4.1: reading buildkite.com's -`ard.json`, and a search of the repository's demo registry after OpenCode -asked. In OpenCode's TUI, the prompt for a registry a referral names doesn't -show that registry. Adding is checked by the form's tests only. In -Antigravity, every registry search and every addition -is put to you in Antigravity's approval card. Checked in Antigravity's -App 2.35.1 and CLI 1.5.17: a search of Hugging Face's own registry goes -to that endpoint only after the approval, and a declined one sends nothing. -The Copilot CLI form works on its own too, with its own `add_mcp_server`; -installing `mcp-server-cards` beside it is optional. Checked in Copilot CLI -1.0.115: `ard_discover` reading buildkite.com's catalogs, and a search of -the repository's demo registry going out only after Copilot's tool prompt -and **Send the search** in the plugin's form. Adding is checked by the -form's tests only. - -The Hermes form also carries its own add tool, `ard_add_mcp_server`, and -can run beside Server Cards. Its live run read buildkite.com's manifest and -card with a scripted model. Search, referrals and additions were tested with -local fixtures; no live registry search was sent. Hermes's search approval -names the endpoint and query. Session and always cover only that exact query -to that endpoint; different words ask again. Referrals need separate -calls and approvals. - -Native support is separate from these polyfills: - -- **Claude Code:** on 23 November 2026 the official - [extension support matrix](https://modelcontextprotocol.io/extensions/client-matrix) - listed Tasks, and none of Events, Apps or Skills (Server Cards isn't in - the matrix). Claude Code's [changelog](https://code.claude.com/docs/en/changelog) lists skills from MCP servers, - as a beta, in 2.1.332 (25 November 2026); a beta may not be on for every - account or server yet. -- **Codex:** doesn't support Events for your own servers, or Skills - (openai/codex#48000). -- **Pi:** 1.6.0 supports none of them itself; its MCP client implements no - MCP extension. The Pi forms can't detect native support themselves, so - remove them or use their off switches when Pi supports an extension. -- **OpenCode:** 2.4 has part of Events itself: its MCP client takes push - events for its automations, but doesn't poll or take webhooks, and skips - event types whose schemas it can't check. 2.4.1 has no support for Skills, - Server Cards or Apps. Remove a polyfill or use its off switch when OpenCode - supports its extension. -- **Antigravity:** its App renders MCP Apps itself (v2.34.0 and later); the - CLI and IDE show text only. The Antigravity forms can't detect native - support: Antigravity tells plugins nothing about its MCP client's - extensions. Disable or uninstall them, or use their off switches, when - Antigravity supports an extension. -- **Copilot CLI:** 1.0.115 declares Skills over MCP to every server (in - its `initialize`), and VS Code's Copilot harness turns MCP Apps on (from its - source; not checked there). It doesn't do Events or ARD, and it doesn't - read Server Cards from a domain; its own catalogue search, by its SDK's - types, accepts the card format, but wasn't checked. The Copilot forms can't detect native support either, so disable or - uninstall them, or use their off switches, when Copilot supports an - extension. -- **Hermes:** v0.23.4 delivers Events by webhook, with `events: true` on a - server. The Events plugin leaves those servers alone and adds poll and - push. There is no native MCP Skills, Server Cards or ARD support at this - version. Disable a form with `hermes plugins disable ` when - Hermes supports it itself. - -Hosts add extensions all the time, so check the matrix for today's picture. - -## Who it is for - -- **If you use an agent host,** see its install steps and first run in - [Getting started](./getting-started). -- **If you build,** the `create-polyfill` and `design-extension` skills and the - contract every polyfill here meets are your starting point. New polyfills, - and existing ones brought to another host, are welcome: - [Build a polyfill](./build-a-polyfill). If you keep one in your own - repository, list it in the [community directory](./community). -- **If you write specs,** a polyfill can be the client half of the two - implementations an extension needs to reach Stable: - [For spec authors](./spec-authors). +¹ Copilot CLI advertises Skills. Its VS Code integration enables Apps. See the [Copilot compatibility notes](https://github.com/idosal/AgentPolyfill/blob/main/polyfills/events/copilot/README.md#skills-and-apps-in-copilot) for the tested scope. ## T3 Code -[T3 Code](https://github.com/pingdotgg/t3code) isn't a host the polyfills -load into: it's an app that runs Codex, Claude Code, OpenCode and other -agents for you. Their plugins load in its threads. Checked with Codex, there -are two differences: it shows MCP Apps itself, and with -Codex it cancels, unseen, the question Skills, Server Cards and ARD ask -before their consequential step. Events has a T3 form, for Codex threads -only. [Getting started](./getting-started#t3-code) has the install. - -## Before you install +T3 Code runs the plugins installed for its underlying agent. Codex threads use a +[dedicated Events adapter](https://github.com/idosal/AgentPolyfill/tree/main/polyfills/events/t3). T3 Code +renders MCP Apps itself. Its Codex integration cancels the approval forms used +by Skills, Server Cards and ARD. See [T3 Code setup](./getting-started#t3-code). -These are third-party plugins and extensions, and they run with your -permissions. None of them reads the host's stored credentials. Pi runs tool -calls without asking unless a permission extension asks; each polyfill adds -its own question before a watch, skill load, registry search or server add. -OpenCode's shipped permission rules allow every action; each OpenCode -polyfill puts its own actions to those rules and asks you by default. -In Antigravity, each polyfill asks through Antigravity's own approval card -before a watch, a new or changed skill load, an addition or a search; its -other tools get Antigravity's usual MCP question, which allow rules can -skip. -In Copilot CLI, each form's tools that act go through Copilot's tool prompt, -and then the plugin asks its own question: Events in a Copilot dialog before -a watch, Server Cards and ARD in a form before adding a server or sending a -search. Copilot can approve a call without you, in assisted mode (an LLM -review, which an organisation can make the default) or with allow-all, so the -plugins don't rely on its prompt alone. -In Hermes, actions go through the host's own approval on the session's -surface. Where Hermes approves without asking (`--yolo`, `/yolo`, `hermes -z`, -`approvals.mode: off`), the plugins refuse a watch, a skill load, a registry -search and a server addition instead; unattended approve modes still approve -them. Events' injection grant is -profile-wide, but the plugin wakes only the session that set the watch. +The [Tasks plugin for Codex](https://github.com/idosal/AgentPolyfill/tree/main/polyfills/tasks/codex) has a separate source install. -Each polyfill's `SECURITY.md` says what it checks and what it doesn't protect -against; [Security](./security) collects them. +## Install a plugin -AgentPolyfill isn't affiliated with Anthropic, OpenAI, GitHub, MCP, ARD or the AAIF. -See [About](/about). +The [installation guide](./getting-started) lists prerequisites and commands +for each host. Each plugin documents its supported specification revision and +known limits. See [how the adapters connect to servers](./how-it-works) for +transport and authentication details, and [security](./security) for permissions +and data handling. diff --git a/site/guide/server-cards.md b/site/guide/server-cards.md index d183cbb3..44efd016 100644 --- a/site/guide/server-cards.md +++ b/site/guide/server-cards.md @@ -28,8 +28,8 @@ extension, which these hosts don't support natively yet: ## Install @@ -69,121 +69,9 @@ hermes plugins install idosal/AgentPolyfill/polyfills/server-cards/hermes/plugin ::: -### In Claude Code - -The terminal form is `claude plugin install mcp-server-cards --marketplace idosal/AgentPolyfill`. -It's also part of the `agent-polyfill` bundle. You need: - -- **Claude Code 2.1.329 or newer**, with mods. -- Nothing else: no helper process, no Node, no account. -- To add a server, it runs the `claude` command. That is found on your `PATH`, - or in the usual install folders. If neither works, it gives you the exact - command to run yourself. - -### In Codex - -Codex 0.170 or newer, with Node 20 or newer. The same discovery and checks, -and a server is added to Codex's config only after you choose "Add it" in -Codex's own form. - -### In Pi - -Pi 1.6.0 (the version tested), with Node 22 or newer. The command above -installs Events, Skills and Server Cards together. -Pi clones the repository under `~/.pi/agent/git/` and loads the three -extensions from there. Nothing is published to npm or Pi's package gallery, -and nothing is built. - -Update installed packages with `pi update --extensions`. Remove all three -and Pi's copy of the repository with -`pi remove git:github.com/idosal/AgentPolyfill`. For one run of all three -without installing, use `pi -e git:github.com/idosal/AgentPolyfill`. - -To install only Server Cards, use a clone: - -```bash -git clone https://github.com/idosal/AgentPolyfill.git -cd AgentPolyfill -pi install ./polyfills/server-cards/pi/extension -``` - -Pi loads the local path where it is, so keep the clone. From the same folder, -`pi remove ./polyfills/server-cards/pi/extension` removes that local install; -`pi -e ./polyfills/server-cards/pi/extension` runs it once without installing. -Use one way per form: Pi tells packages apart by repository address or local -path, so a form installed both ways loads twice. - -[ARD](./ard#install) is left out of the one-line install, as it is from the -Claude Code bundle: its search sends the words of your request to a registry -after asking each time. Install it separately from a clone. - -Removal leaves watches and events in `mcp-events/`, and approvals and skill -stubs in `mcp-skills/`, in Pi's agent folder (`~/.pi/agent`, or -`PI_CODING_AGENT_DIR`); delete those folders too to remove that data. -Servers you added stay in `mcp.json`; remove one with -`pi mcp remove `. - -### In OpenCode - -OpenCode 2.4 or newer (tested with 2.4.1), and nothing else: no account, no -key, no Node. The plugin isn't on npm: the command fetches it from GitHub, -with Git, and adds it to `plugins` in your global -`~/.config/opencode/opencode.json`, so it runs in every project from the next -time OpenCode opens one. A commit in place of `main` pins one version. From a -clone, put the folder `polyfills/server-cards/opencode/plugin` in `plugins` -in an `opencode.json` instead. To remove it, run `opencode plugin remove` -with the same text; OpenCode's downloaded copy stays in -`~/.cache/opencode/npm/` (a `git-AgentPolyfill-…` folder), which you can -delete. Removing it stops adding the servers it added, which were never in -your configuration files. Its list of them stays in OpenCode's plugin storage -(OpenCode's own database) and comes back if you install it again; remove a -server with `server_cards_remove_mcp_server` first to drop it from the list. - -### In Antigravity - -Node 20 or newer on `PATH`. Nothing is published to Antigravity's -Marketplace; install from GitHub, with the Antigravity CLI (the App doesn't -ship `agy`) and Git. `agy plugin install` copies the plugin's folder to -`~/.gemini/config/plugins/mcp-server-cards`, which the App and the CLI both -read. Remove it with `agy plugin uninstall mcp-server-cards`. Servers you -added stay in `~/.gemini/config/mcp_config.json`; remove one with -`agy mcp remove ` (in CLI 1.5.17's own help, not in Antigravity's -docs). - -### In Copilot CLI - -Copilot CLI 1.0.115 (the version tested), with Node 20 or newer on your -`PATH`. The plugin is an MCP server, so it needs no experimental mode. The -install from a clone is the one tested; Copilot loads the plugin where it is, -so keep the clone. From GitHub, -`copilot plugin marketplace add idosal/AgentPolyfill` adds the marketplace. -Checked in Copilot CLI 1.0.105. Not checked in 1.0.115, in the interactive -TUI, or in VS Code. Start a new Copilot session afterwards. -Remove it with `copilot plugin uninstall mcp-server-cards@agent-polyfill`. -Servers you added stay in `~/.copilot/mcp-config.json`; remove one with -`copilot mcp remove `. - -### In Hermes - -Hermes Agent v0.23.4 (the version tested), with Node 20 or newer on the -gateway's PATH. `AGENTPOLYFILL_NODE` can name its executable. The plugin -ships its Python code and bundled helper; no npm install is needed. - -Disable it with `hermes plugins disable mcp-server-cards`. Added servers -stay in `mcp_servers` in `config.yaml`. Ask to remove an unchanged server the -plugin added, or use `hermes mcp remove `, then `/reload-mcp`. The -removal record is `$HERMES_HOME/mcp-server-cards/added.json`; discovery state -lives in memory and must be fetched again after a restart. - -The sections below name the host where behavior differs. Full guides by host: +After installation, start a new session and ask for a domain’s MCP servers. The Pi command installs Events, Skills and Server Cards together. -- [Claude Code](https://github.com/idosal/AgentPolyfill/tree/main/polyfills/server-cards/claude-code) -- [Codex](https://github.com/idosal/AgentPolyfill/tree/main/polyfills/server-cards/codex) -- [Pi](https://github.com/idosal/AgentPolyfill/tree/main/polyfills/server-cards/pi) -- [OpenCode](https://github.com/idosal/AgentPolyfill/tree/main/polyfills/server-cards/opencode) -- [Antigravity](https://github.com/idosal/AgentPolyfill/tree/main/polyfills/server-cards/antigravity) -- [Copilot CLI](https://github.com/idosal/AgentPolyfill/tree/main/polyfills/server-cards/copilot) -- [Hermes](https://github.com/idosal/AgentPolyfill/tree/main/polyfills/server-cards/hermes) +See [Getting started](./getting-started) for host prerequisites and configuration. ## Try it @@ -712,5 +600,4 @@ Server Cards client scenarios. On GitHub, in [`polyfills/server-cards/claude-code`](https://github.com/idosal/AgentPolyfill/tree/main/polyfills/server-cards/claude-code): the full [`README.md`](https://github.com/idosal/AgentPolyfill/blob/main/polyfills/server-cards/claude-code/README.md), -with one row for each client rule and the test that covers it, and the findings -to report upstream. +with one row for each client rule and the test that covers it, and interoperability notes. diff --git a/site/guide/skills.md b/site/guide/skills.md index 9b987f93..99b209db 100644 --- a/site/guide/skills.md +++ b/site/guide/skills.md @@ -18,8 +18,8 @@ over MCP built in: see [Copilot CLI](#copilot-cli). ## Claude Code @@ -51,7 +51,7 @@ has the rest. ## Copilot CLI -There is no Copilot form, on purpose. Copilot CLI 1.0.115 has Skills over MCP +Copilot CLI 1.0.115 has Skills over MCP built in: it declares `io.modelcontextprotocol/skills` to every server it connects, in its `initialize`, and VS Code 1.147.0's Copilot harness has it on by default (from its source). Listing or loading a served skill in @@ -85,100 +85,9 @@ hermes plugins install idosal/AgentPolyfill/polyfills/skills/hermes/plugin --ena ::: -### In Codex - -Codex 0.172 (the version it was tested on), with Node 20 or newer. Served -skills appear in Codex's own `$` skill list from the turn after the plugin's -server starts (if Codex's daemon was already running, after you ask once to -list the served skills), and from the first turn of every later session. They -load after a yes for each one in Codex's own form, and are checked against -the server's digests. One rule of the spec can't be met in -Codex yet: a skill from one server reading another server's resources isn't -put to you first (rule X8), because Codex doesn't let a plugin ask. - -### In Pi - -Pi 1.6.0 (the version tested), with Node 22 or newer. The command above -installs Events, Skills and Server Cards together. -Pi clones the repository under `~/.pi/agent/git/` and loads the three -extensions from there. Nothing is published to npm or Pi's package gallery, -and nothing is built. - -Update installed packages with `pi update --extensions`. Remove all three -and Pi's copy of the repository with -`pi remove git:github.com/idosal/AgentPolyfill`. For one run of all three -without installing, use `pi -e git:github.com/idosal/AgentPolyfill`. - -To install only Skills, use a clone: - -```bash -git clone https://github.com/idosal/AgentPolyfill.git -cd AgentPolyfill -pi install ./polyfills/skills/pi/extension -``` - -Pi loads the local path where it is, so keep the clone. From the same folder, -`pi remove ./polyfills/skills/pi/extension` removes that local install; -`pi -e ./polyfills/skills/pi/extension` runs it once without installing. -Use one way per form: Pi tells packages apart by repository address or local -path, so a form installed both ways loads twice. - -[ARD](./ard#install) is left out of the one-line install, as it is from the -Claude Code bundle: its search sends the words of your request to a registry -after asking each time. Install it separately from a clone. - -Removal leaves watches and events in `mcp-events/`, and approvals and skill -stubs in `mcp-skills/`, in Pi's agent folder (`~/.pi/agent`, or -`PI_CODING_AGENT_DIR`); delete those folders too to remove that data. -Servers you added stay in `mcp.json`; remove one with -`pi mcp remove `. - -### In OpenCode - -OpenCode 2.4 or newer (tested with 2.4.1). OpenCode runs the plugin itself, -so you don't need Node. The plugin isn't on npm: the command fetches it from -GitHub, with Git, and adds it to `plugins` in your global -`~/.config/opencode/opencode.json`, so it runs in every project from the next -time OpenCode opens one. A commit in place of `main` pins one version. From a -clone, put the folder `polyfills/skills/opencode/plugin` in `plugins` in an -`opencode.json` instead. To remove it, run `opencode plugin remove` with the -same text; OpenCode's downloaded copy stays in `~/.cache/opencode/npm/` (a -`git-AgentPolyfill-…` folder), which you can delete. Its log stays in -`~/.local/share/opencode/mcp-skills/` (or `MCP_SKILLS_STATE`); delete that -folder too to remove it. Which skills each session loaded, and the "Allow -always" answers it kept, stay in OpenCode's plugin storage (OpenCode's own -database). No skill content is kept anywhere. - -### In Antigravity - -Node 20 or newer on `PATH`. Nothing is published to Antigravity's -Marketplace; install from GitHub, with the Antigravity CLI (the App doesn't -ship `agy`) and Git. `agy plugin install` copies the plugin's folder to -`~/.gemini/config/plugins/mcp-skills`, which the App and the CLI both read. -Remove it with `agy plugin uninstall mcp-skills`. Its state stays in -`~/.gemini/agentpolyfill/mcp-skills/`, and its placeholders in -`~/.gemini/config/skills/mcp-skills-served--*`; delete those too to remove -them. - -### In Hermes - -Hermes Agent v0.23.4 (the version tested), with Node 20 or newer on the -gateway's PATH. `AGENTPOLYFILL_NODE` can name another executable. Name the -servers in `plugins.entries.mcp-skills.settings.servers` in your profile's -`config.yaml`; the demo below includes this. This is the plugin's own grant, -separate from Hermes's `mcp_allowlist`. - -Remove it with `hermes plugins remove mcp-skills`. Its stubs are kept in -`$HERMES_HOME/mcp-skills/`; what each session loaded is kept in Hermes's -plugin state. - -The sections below name the host where behavior differs. Full guides by host: +Install the plugin for the host where you want the served skills to appear. The Pi command installs Events, Skills and Server Cards together. -- [Codex](https://github.com/idosal/AgentPolyfill/tree/main/polyfills/skills/codex) -- [Pi](https://github.com/idosal/AgentPolyfill/tree/main/polyfills/skills/pi) -- [OpenCode](https://github.com/idosal/AgentPolyfill/tree/main/polyfills/skills/opencode) -- [Antigravity](https://github.com/idosal/AgentPolyfill/tree/main/polyfills/skills/antigravity) -- [Hermes](https://github.com/idosal/AgentPolyfill/tree/main/polyfills/skills/hermes) +See [Getting started](./getting-started) for host prerequisites and configuration. ## Try it diff --git a/site/guide/spec-authors.md b/site/guide/spec-authors.md index 56dc5527..d5d625f7 100644 --- a/site/guide/spec-authors.md +++ b/site/guide/spec-authors.md @@ -10,45 +10,24 @@ client-side and one server-side, that interoperate", carry a conformance scenario, and show that the extension has been in real use ([SEP-3392](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/main/seps/3392-extension-lifecycle.md)). -A polyfill can be that client-side implementation, in hosts that haven't -shipped the extension yet, used by real people against real servers. Each one -here names the spec revision it implements. Events and Skills have a test for -every client rule and run against servers their authors didn't write. Skills -passes the official conformance suite's Skills client scenarios in the Codex, -Pi, Antigravity and Hermes forms; the suite was not run for the OpenCode form. The -shared Events client passes the Events client scenarios proposed -upstream (still an open pull request in the conformance suite); the Pi -end-to-end run has limits listed below. Apps checks the spec requirement by -requirement in its compliance page. Whether a polyfill counts as an independent -implementation for a given SEP is up to that extension's maintainers. - -Events and Skills share their protocol code and its tests in each -extension's `core/`. Host results are listed separately: - -- **Claude Code:** the first table below gives its results. -- **Codex:** each form's README gives its results: - [Events](https://github.com/idosal/AgentPolyfill/tree/main/polyfills/events/codex), - [Skills](https://github.com/idosal/AgentPolyfill/tree/main/polyfills/skills/codex), - [Server Cards](https://github.com/idosal/AgentPolyfill/tree/main/polyfills/server-cards/codex) - and [ARD](https://github.com/idosal/AgentPolyfill/tree/main/polyfills/ard/codex). -- **Pi:** the second table gives its results, checked in Pi 1.6.0. -- **OpenCode:** the third table gives its results, checked in OpenCode - 2.4.1. -- **Antigravity:** the fourth table gives its results, checked in App - v2.35.1 and CLI v1.5.17. -- **Copilot CLI:** the fifth table gives its results, checked in Copilot CLI - 1.0.115. -- **Hermes Agent:** the sixth table gives its results, checked in Hermes Agent - v0.23.4. +Extension maintainers decide which implementations qualify for their SEP. +The tables below link to the client requirements, test suites and independent +servers used for interoperability checks. Shared protocol code is tested +separately from each host’s approval, transport and delivery behavior. + +For Codex, see the adapter results for [Events](https://github.com/idosal/AgentPolyfill/tree/main/polyfills/events/codex), +[Skills](https://github.com/idosal/AgentPolyfill/tree/main/polyfills/skills/codex), +[Server Cards](https://github.com/idosal/AgentPolyfill/tree/main/polyfills/server-cards/codex) and +[ARD](https://github.com/idosal/AgentPolyfill/tree/main/polyfills/ard/codex). ## What each one has been checked against ### Claude Code -| | Revision | Client rules | Someone else's servers or documents | Upstream conformance | +| | Revision | Client rules | Independent servers or documents | Upstream conformance | |---|---|---|---|---| | [Events](./events) | SEP-3415, Final | Every client-side rule, clause by clause, with the code and the test for each ([conformance.md](https://github.com/idosal/AgentPolyfill/blob/main/polyfills/events/claude-code/docs/conformance.md)) | Three interop runs against servers built on Mastra's `@mastra/mcp` | The suite's Events client scenarios (an unmerged pull request): 17 of 17, run on 0.5.0 | -| [Apps](./apps) | MCP Apps 2026-01-26, Stable, plus `ui/download-file` from the draft | Requirement by requirement: each MUST, SHOULD and MAY, with its test where it has one; one MUST, the default CSP, is not met, on purpose ([COMPLIANCE.md](https://github.com/idosal/AgentPolyfill/blob/main/polyfills/apps/claude-code/docs/COMPLIANCE.md)) | Not stated as a separate run | The suite has no client scenarios for MCP Apps yet, so there is nothing of it to run | +| [Apps](./apps) | MCP Apps 2026-01-26, Stable, plus `ui/download-file` from the draft | Requirement by requirement: each MUST, SHOULD and MAY, with its test where it has one; one MUST, the default CSP, is not met ([COMPLIANCE.md](https://github.com/idosal/AgentPolyfill/blob/main/polyfills/apps/claude-code/docs/COMPLIANCE.md)) | Not stated as a separate run | The suite has no client scenarios for MCP Apps yet, so there is nothing of it to run | | [Server Cards](./server-cards) | SEP-2127, Final (extension Beta); ext-server-card at `28db12c9b4`; AI Catalog v0.9 | One row per rule, with the test that covers it (108 tests); two rules are met by design, and the one to check a card against the live server is not met ([README](https://github.com/idosal/AgentPolyfill/blob/main/polyfills/server-cards/claude-code/README.md#client-rules)) | The live catalogs and cards of Buildkite, GitHub, Hugging Face, Neon, Netlify, Notion, Context7, Exa, Supabase and Zapier; ajv with the official schema gives the same verdict on all eleven cards | The suite has no Server Card scenarios | Skills isn't in this table. Claude Code lists skills from MCP servers itself, @@ -61,7 +40,7 @@ talks to servers that advertise events in the form from before SEP-3415, and `MCP_EVENTS_PRE_STANDARD=off` makes it follow the SEP exactly. Apps lists its departures (the default CSP, display modes and `platform`), which have no setting to turn them off. -Server Cards and [ARD discovery](./ard) each list findings to report upstream +Server Cards and [ARD discovery](./ard) document interoperability issues in their READMEs, such as a `specVersion` mismatch between the AI Catalog and the Server Cards discovery doc. diff --git a/site/home.json b/site/home.json index 3672418a..71e5beaf 100644 --- a/site/home.json +++ b/site/home.json @@ -1,5 +1,4 @@ { - "//": "The home page's polyfill cards (polyfills: the MCP extensions; beyond: outside MCP) and audiences. Read by PolyfillCards.vue and scripts/agents.mjs; the audiences only by the latter (the Markdown copies for agents). Every line is taken from the repository's README and each polyfill's README, in the README's order: keep them in step when those change. The recordings are real Claude Code and Codex sessions, and each alt text says which.", "polyfills": [ { "name": "Events", @@ -14,17 +13,9 @@ "Copilot CLI", "Hermes" ], - "id": "io.modelcontextprotocol/events", - "line": "The agent watches events on your MCP servers, by poll, push or webhook, and an event wakes an idle session.", + "line": "Watch an MCP server for events such as failed deployments or new releases.", "cut": "events", - "alt": "In Claude Code, asked to watch the acme-checkout Worker on Cloudflare and say what breaks, Claude starts a watch through Cloudflare's MCP server, run locally with a fix, delivered by webhook through a relay, and the session goes idle. When the Worker throws an error, the idle session wakes by itself with a prompt from the mcp-events plugin, reads the event and says what broke: a SyntaxError, where a request that expected JSON got plain text.", - "addStep": "Try it with the hosted demo server (no sign-in):", - "add": "claude mcp add --transport http feeds https://event-feeds.idosalomon.workers.dev/mcp", - "addCodex": "codex mcp add feeds --url https://event-feeds.idosalomon.workers.dev/mcp", - "addCopilot": "copilot mcp add --transport=http feeds https://event-feeds.idosalomon.workers.dev/mcp", - "addHermes": "mcp_servers:\n feeds:\n url: https://event-feeds.idosalomon.workers.dev/mcp\nplugins:\n entries:\n mcp-events:\n settings:\n servers: [feeds]\n allow_gateway_injection: true", - "ask": "Give me a demo button and tell me what I type when I press it", - "then": "- Codex: a woken session is a Codex CLI session (the terminal app or `codex exec`). A chat in the ChatGPT desktop app keeps its events but can't be woken, so ask it for `recent_events`.\n- Pi: add the demo server with `pi mcp add feeds --url https://event-feeds.idosalomon.workers.dev/mcp`, then ask to watch for new earthquakes. Confirm the watch in Pi's dialog. An event wakes an idle session with a message starting `[mcp-events]` that says the extension sent it; Pi reads the event and answers.\n- OpenCode: add the demo server with `\"mcp\": {\"feeds\": {\"type\": \"remote\", \"url\": \"https://event-feeds.idosalomon.workers.dev/mcp\"}}` in `opencode.json`. OpenCode asks before the watch starts, naming the server and the event type. Press the button: the idle session wakes with a message from the plugin, which the TUI shows as `◈ mcp-events: new events` and OpenCode Desktop doesn't show, and the model reads the event and answers.\n- Antigravity: add the demo server with `agy mcp add feeds https://event-feeds.idosalomon.workers.dev/mcp` (in CLI 1.5.17's own help, not in Antigravity's docs; the App doesn't ship `agy`, so there, use Customizations > Installed > MCP Servers). This demo was not checked in Antigravity. A watch asks in Antigravity's approval card. New events reach the conversation at its next model call, through the plugin's `PreInvocation` hook (checked in CLI 1.5.17; Antigravity's plugins page doesn't list it among plugin hooks), as fixed text with a count and the plugin's own watch ids. To wake an idle App conversation, turn on the plugin's sidecar with `\"sidecars\": {\"mcp-events/wake\": {\"enabled\": true}}` in `~/.gemini/config/config.json`. CLI conversations can't be woken. The IDE documents no plugin hooks, so the forms aren't supported there.\n- Copilot CLI: Events is a Copilot extension, so start `copilot --experimental` (or, per Copilot's help, run `/settings experimental on` once (not checked)). The first session asks once whether the extension may have elevated permissions. A watch asks twice: Copilot's tool prompt for `watch_event`, then the plugin's own dialog, which names the server, the event type, the filters and the note and says events will start turns. An event wakes the idle session with a turn Copilot marks as an automation, whose first line says the plugin sent it; Copilot reads the event with `get_event` and answers.\n- Hermes: add the YAML above to your profile's `config.yaml`, then start `hermes`. Hermes makes a private button page and asks you to approve the watch. Type a message on the page and press the button. The idle session gets a message starting `[mcp-events]`, reads the event and tells you what you typed. The plugin polls and takes push events; servers with `events: true` are left to Hermes's own webhook delivery.", + "alt": "Claude Code watches a Cloudflare Worker. When the Worker throws a JSON parsing error, the idle session wakes and reports the error.", "link": "/guide/events" }, { @@ -38,16 +29,10 @@ "Antigravity", "Hermes" ], - "id": "io.modelcontextprotocol/skills", - "line": "Skills an MCP server serves show up next to your own, load only after you say yes to each one, and are checked against the server's digests.", + "line": "List skills an MCP server publishes and load their instructions and files on demand.", "cut": "skills", - "alt": "In Codex, in the ChatGPT desktop app, asked what skills the Hugging Face MCP server serves, Codex lists its 25 skills, all visible in Codex. Asked which GGUF quantization to use for a 7B model on a 16 GB Mac, Codex asks in its own form whether to load the skill huggingface-local-models from that server, saying its 4 files are each checked against the server's SHA-256 digest when read, with Do not load it, Show me its SKILL.md first, and Load it. After Load it, Codex answers from the skill: Q4_K_M.", - "addStep": "Try it with Hugging Face's public MCP server (no sign-in):", - "addCodex": "codex mcp add huggingface --url https://huggingface.co/mcp", - "addHermes": "mcp_servers:\n huggingface:\n url: https://huggingface.co/mcp\nplugins:\n entries:\n mcp-skills:\n settings:\n servers: [huggingface]", - "ask": "Which GGUF quantization should I use to run a 7B model on a 16 GB Mac?", - "then": "- Codex: the served skills appear in the `$` list after you ask once to list the served skills, from the next turn.\n- Pi: add the server with `pi mcp add huggingface --url https://huggingface.co/mcp`. Skills appear as `mcp-huggingface-`, marked with their server. Loading one asks: \"Don't load it\", \"Show me its SKILL.md first\", or \"Load it\".\n- OpenCode: add the server with `\"mcp\": {\"huggingface\": {\"type\": \"remote\", \"url\": \"https://huggingface.co/mcp\", \"oauth\": false}}` in `opencode.json`. Skills appear in OpenCode's own skill list as `mcp-skills:huggingface:`, marked with their server. Loading one takes two steps: OpenCode's skill tool returns the plugin's note, then the model calls `mcp_skills_load_skill` and OpenCode asks: \"Allow once\", \"Allow always\" or \"Reject\".\n- Antigravity: add the server with `agy mcp add huggingface https://huggingface.co/mcp`, or in the App under Customizations > Installed > MCP Servers. Served skills appear as placeholder folders in `~/.gemini/config/skills/`. Loading a new or changed one is put to you in Antigravity's approval card, yes or no; an approved, unchanged skill gets only Antigravity's usual MCP question, which allow rules can skip.\n- Hermes: add the YAML above to your profile's `config.yaml`, then start `hermes`. The plugin looks at the server during your first turn. From the next session, skills appear as `mcp-skills:huggingface-`, marked with their server; `list_skills` and `load_skill` reach them at once. Hermes asks before a load. To read SKILL.md first, deny and type the `/mcp-skills show` line in the question.", - "note": "Claude Code needs no polyfill for this: it lists skills from MCP servers itself, in beta from 2.1.332. Nor does Copilot CLI: 1.0.115 declares Skills over MCP to every server (in its initialize; listing or loading a served skill in Copilot was not checked). Hermes has a Skills form; its served skills are listed from the next session.", + "alt": "Codex lists skills from Hugging Face. The user approves loading huggingface-local-models, and Codex recommends Q4_K_M for a 7B model on a 16 GB Mac.", + "note": "Claude Code includes native Skills in beta from 2.1.332. Copilot CLI advertises native Skills support.", "link": "/guide/skills" }, { @@ -63,13 +48,9 @@ "Copilot CLI", "Hermes" ], - "id": "", - "line": "Name a company and the agent finds the MCP servers its domain publishes, and adds the one you pick. Servers behind OAuth work.", + "line": "Find the MCP servers a domain publishes and add a selected server to your host.", "cut": "server-cards", - "alt": "In Claude Code, What MCP servers does neon.com publish? lists Neon and Neon Docs from neon.com's own catalog, each with an Add button, and Add on Neon Docs marks it added, with a note to run /mcp to connect or sign in. Then the same in Codex, in the ChatGPT desktop app: Codex lists the two servers, and asked to add Neon Docs, shows its own form naming the host, the URL, the headers (none) and the Server Card it came from, with Don't add it and Add it. After Add it, neon-docs is in Codex's config; codex mcp remove neon-docs undoes it.", - "add": "", - "ask": "What MCP servers does neon.com publish?", - "then": "Then add Neon Docs (no sign-in):\n\n- Claude Code: press Add.\n- Codex: choose \"Add it\" in its form.\n- Pi: choose \"Add it\" in its dialog, which names the host, URL, headers, configuration file and undo command. Pi saves the server and connects it for the current session.\n- OpenCode: ask \"Add Neon Docs\" and allow it when OpenCode asks. In the TUI the prompt says only \"Call tool mcp_server_cards_add\", with \"Allow once\" and \"Reject\"; the name and URL are on the model's call line above it. The server is in OpenCode's MCP servers at once, for this project, and OpenCode connects it.\n- Antigravity: approve the addition in Antigravity's approval card. The plugin then writes the server to `~/.gemini/config/mcp_config.json`.\n- Copilot CLI: Copilot's tool prompt comes first, then the plugin's form, where you choose \"Add it\". Run `/mcp reload` to connect it; `copilot mcp remove neon-docs` removes it again.\n- Hermes: ask \"Add Neon Docs\" and approve Hermes's prompt. The server is saved in `mcp_servers` in `config.yaml`; run `/reload-mcp` to connect it. `hermes mcp remove neon-docs`, followed by `/reload-mcp`, removes it again.", + "alt": "Claude Code and Codex each list the servers published by neon.com. The user selects Neon Docs and approves adding it to the host configuration.", "link": "/guide/server-cards" }, { @@ -79,37 +60,12 @@ "hosts": [ "Claude Code" ], - "id": "io.modelcontextprotocol/ui", - "line": "A server's app opens right under the tool call in the terminal, and answers the mouse and keyboard.", + "line": "Use an MCP tool’s interface inline in the Claude Code terminal with the mouse and keyboard.", "cut": "apps", - "alt": "In Claude Code, Play DOOM opens the game from the hosted arcade server under the tool call, and it is played. A system monitor app draws a live CPU chart with a tooltip under the pointer, and in a terminal with no image support it draws the chart in text. Then a 3D torus knot renders inline and turns when dragged.", - "addStep": "Try it with the hosted arcade (classic shareware games from archive.org):", - "add": "claude mcp add --transport http arcade https://mcp-apps-arcade.idosalomon.workers.dev/mcp", - "ask": "Find a shareware game in the arcade and load it", - "note": "Available only in Claude Code. The Antigravity App shows MCP Apps itself. Apps has no Hermes form yet.", + "alt": "Claude Code displays DOOM, a CPU chart and a draggable 3D model inline. A terminal without image support displays the chart with text characters.", "link": "/guide/apps" } ], - "audiences": [ - { - "title": "If you use an agent host", - "text": "Install steps and a first run for each host. Pi installs Events, Skills and Server Cards with one line from this repository on GitHub, and OpenCode installs each plugin from it with Git; nothing for either is published to npm. Antigravity plugins install from GitHub with the Antigravity CLI (the App doesn't ship `agy`) and Git, and nothing is published to Antigravity's Marketplace. Copilot CLI installs from a clone added as a marketplace. Hermes Agent installs each plugin from its folder in this repository.", - "link": "/guide/getting-started", - "linkText": "Getting started" - }, - { - "title": "If you build", - "text": "The `create-polyfill` and `design-extension` skills, and the contract every polyfill here meets. New polyfills, and existing ones brought to another host, are welcome.", - "link": "/guide/build-a-polyfill", - "linkText": "Build a polyfill" - }, - { - "title": "If you write specs", - "text": "A polyfill can be the client half of the two implementations an extension needs to reach Stable.", - "link": "/guide/spec-authors", - "linkText": "For spec authors" - } - ], "beyond": [ { "name": "ARD discovery", @@ -124,19 +80,11 @@ "Copilot CLI", "Hermes" ], - "id": "", - "line": "Finds MCP servers through a domain's ard.json, or by searching an ARD registry you choose, and hands the cards to Server Cards.", + "line": "Discover servers through a domain’s `ard.json` or search an ARD registry.", "cut": "ard", - "alt": "In Claude Code, What does buildkite.com list via ARD? shows Buildkite's MCP server, listed by buildkite.com, with an Add button. Then a search of a local demo ARD registry for a server that checks CI builds: Claude Code first asks whether to send the query to that registry and up to three it refers to, and after Yes the result lists Buildkite and Netlify, each confirmed by its own domain, and says where the query went.", - "addStep": "Not in the Claude Code bundle or Pi's one-line install. Install it on its own:", - "add": "/plugin install ard-discovery --marketplace idosal/AgentPolyfill", - "addCodex": "codex plugin marketplace add idosal/AgentPolyfill && codex plugin add ard-discovery@agent-polyfill", - "addCopilot": "git clone https://github.com/idosal/AgentPolyfill.git && copilot plugin marketplace add ./AgentPolyfill && copilot plugin install ard-discovery@agent-polyfill", - "addHermes": "hermes plugins install idosal/AgentPolyfill/polyfills/ard/hermes/plugin --enable", - "ask": "What MCP servers does buildkite.com list through ARD?", - "then": "A domain lookup sends no query to a registry. A search sends the words of your request to the registry you chose, so every search asks you first and names where it's going. In OpenCode's TUI, the prompt says only \"Call tool ard_search\": the query and the registry you named are on the model's call line above it, and nothing on screen names a registry a referral names.\n\n- Hermes: approve the prompt naming the endpoint and exact query. \"Session\" and \"always\" cover only that exact query to that endpoint; different words ask again. Each referral needs its own call and approval. Adding a result needs a separate approval, then `/reload-mcp` to connect it. Where Hermes approves without asking (`--yolo`, `/yolo`, `hermes -z`, `approvals.mode: off`), the plugin refuses the search and the addition instead. Hermes's unattended approve modes (`approvals.cron_mode`, `single_query_mode` or `unattended_mode: approve`) still approve them where nobody is present, and a kept \"session\" or \"always\" answer covers its exact search or addition.", + "alt": "Claude Code lists the MCP server published by buildkite.com. The user approves searching a local registry, which returns servers from Buildkite and Netlify.", "link": "/guide/ard", - "note": "Installed separately from the others: a search sends your words to the registry you chose, so every search asks you first." + "note": "Registry searches send your query to the registry you choose and require approval." } ] } diff --git a/site/index.md b/site/index.md index c4161ae9..e1467deb 100644 --- a/site/index.md +++ b/site/index.md @@ -3,11 +3,11 @@ layout: home markdownStyles: false titleTemplate: false title: AgentPolyfill -description: "Polyfills for agent protocols: bring more of MCP to the clients you already use. See which polyfills each host can run." +description: "Plugins for MCP Events, Skills, Server Cards and Apps, with optional Agentic Resource Discovery." hero: name: AgentPolyfill text: Polyfills for agent protocols - tagline: Bring more of MCP to the clients you already use. Find Apps, Skills, Events, Server Cards and ARD for your host below. + tagline: Watch server events, load remote skills, discover MCP servers and use interactive apps in your agent. image: light: /mark-light.svg dark: /mark-dark.svg @@ -26,19 +26,17 @@ hero:
-

An early proof of concept. Some gaps, like servers behind OAuth, need small changes to the hosts' plugin APIs. What's missing.

- -
+

The polyfills

-

Each one implements an MCP extension's client side, to spec, and steps aside once the host ships its own. Servers don't change.

+

Choose an extension to see its supported hosts, install command and examples.

Beyond MCP

-

Building a polyfill, bringing one to another host, or writing a spec? Build a polyfill · Community · For spec authors

+

Build a polyfill · Community plugins · Conformance results

diff --git a/site/media.json b/site/media.json index 32f8223c..4b7fdf4b 100644 --- a/site/media.json +++ b/site/media.json @@ -4,8 +4,8 @@ "file": "launch.mp4", "poster": "launch-poster.jpg", "posterAt": 5.5, - "caption": "Apps, Events, Skills, Server Cards and ARD in real Claude Code and Codex sessions. No sound.", - "description": "Real Claude Code and Codex sessions, no sound. In Claude Code, DOOM from the hosted arcade server runs under a tool call and is played; then a watched Cloudflare Worker throws an error, and the idle session wakes and says what broke (Cloudflare's MCP server, run locally with a fix). In Codex, in the ChatGPT desktop app, Hugging Face's MCP server serves 25 skills, all listed in Codex, and one of them answers which GGUF quantization to use for a 7B model on a 16 GB Mac. Back in Claude Code, the MCP servers neon.com publishes are found from its domain and Add is pressed on one, and ARD lists buildkite.com's server, then asks before it sends a search to a registry. It ends on the install lines for both hosts.", + "caption": "MCP Apps, Events, Skills, Server Cards and ARD in Claude Code and Codex. No sound.", + "description": "In Claude Code, a user plays DOOM and receives a Cloudflare Worker error. Codex lists Hugging Face skills and uses one to recommend a model quantization. Claude Code discovers servers published by Neon and Buildkite and asks before sending an ARD registry search.", "master": "master-real.mp4", "width": 1920, "height": 1080, diff --git a/site/og/og.html b/site/og/og.html index b4c2dfaf..673a1a5b 100644 --- a/site/og/og.html +++ b/site/og/og.html @@ -99,7 +99,7 @@
AgentPolyfill

Polyfills for agent protocols

-

Bring more of MCP to the clients you already use. Plugins add Apps, Skills, Events, Server Cards and ARD to Claude Code and Codex.

+

Watch server events, load remote skills and use interactive MCP Apps in your agent.

agentpolyfill.com
diff --git a/site/public/og.jpg b/site/public/og.jpg index 4d1247f5..6801a996 100644 Binary files a/site/public/og.jpg and b/site/public/og.jpg differ diff --git a/site/scripts/agents.mjs b/site/scripts/agents.mjs index c818faa1..48ddb34c 100644 --- a/site/scripts/agents.mjs +++ b/site/scripts/agents.mjs @@ -3,7 +3,7 @@ // `vitepress build` (npm run build runs it): // // /llms.txt an index of the site in the llms.txt format (llmstxt.org): -// what AgentPolyfill is, how to install it, and a link to +// project and installation links, and a link to // each page's Markdown with one line about it // /llms-full.txt every page's Markdown, one after another // /.md each page as plain Markdown, next to its HTML @@ -35,154 +35,9 @@ const SECTIONS = [ ['Beyond MCP', ['guide/ard']], ['Build', ['guide/build-a-polyfill', 'guide/spec-authors', 'guide/contributing', 'guide/community']], ['Reference', ['guide/how-it-works', 'guide/security']], - ['Optional', ['about']], + ['Project', ['about']], ] -const INSTALL = '/plugin install agent-polyfill --marketplace idosal/AgentPolyfill' -const INSTALL_CLI = 'claude plugin install agent-polyfill --marketplace idosal/AgentPolyfill' -const INSTALL_CODEX = [ - 'codex plugin marketplace add idosal/AgentPolyfill', - 'codex plugin add mcp-events@agent-polyfill', - 'codex plugin add mcp-skills@agent-polyfill', - 'codex plugin add mcp-server-cards@agent-polyfill', -] -const HOSTS = [ - { name: 'Claude Code', command: 'claude', addKey: 'add', form: 'Mod (plugin)', polyfills: 'Events, Server Cards, Apps, ARD; no Skills form: Claude Code lists skills from MCP servers itself, in beta from 2.1.332' }, - { name: 'Codex', command: 'codex', addKey: 'addCodex', form: 'Plugin', polyfills: 'Events, Skills, Server Cards, ARD; no Apps form' }, - { name: 'Pi', command: 'pi', addKey: 'addPi', form: 'Extension', polyfills: 'Events, Skills, Server Cards, ARD; no Apps form' }, - { name: 'OpenCode', command: 'opencode', addKey: 'addOpenCode', config: 'opencode.json', form: 'V2 server plugin', polyfills: 'Events, Skills, Server Cards, ARD; no Apps form' }, - { name: 'Antigravity', command: 'agy', start: 'open the Antigravity App or start `agy`', addKey: 'addAntigravity', form: 'Plugin', polyfills: 'Events, Skills, Server Cards, ARD; no Apps form (the App renders MCP Apps itself)' }, - { name: 'Copilot CLI', command: 'copilot', addKey: 'addCopilot', form: 'Plugin (Events: an extension)', polyfills: 'Events, Server Cards, ARD; no Skills or Apps form: Copilot has both built in' }, - { name: 'Hermes', command: 'hermes', addKey: 'addHermes', config: '~/.hermes/config.yaml', form: 'Plugin (Python and a Node helper)', polyfills: 'Events (poll and push), Skills, Server Cards, ARD; Apps not yet; webhook delivery is Hermes\'s own' }, -] -// Pi's installs and examples, for the Markdown served to agents. -const PI_FORMS = { - 'mcp-events': { - path: 'polyfills/events/pi/extension', - add: 'pi mcp add feeds --url https://event-feeds.idosalomon.workers.dev/mcp', - ask: 'Watch for new earthquakes from the feeds server and tell me where each one was.', - }, - 'mcp-skills': { - path: 'polyfills/skills/pi/extension', - add: 'pi mcp add huggingface --url https://huggingface.co/mcp', - }, - 'mcp-server-cards': { - path: 'polyfills/server-cards/pi/extension', - }, - 'ard-discovery': { - path: 'polyfills/ard/pi/extension', - add: 'git clone https://github.com/idosal/AgentPolyfill.git\ncd AgentPolyfill\npi install ./polyfills/ard/pi/extension', - }, -} -const INSTALL_PI = ['pi install git:github.com/idosal/AgentPolyfill'] -const PI_INSTALL_NOTES = [ - 'The command installs Events, Skills and Server Cards together. Pi clones the repository into its agent folder (under `~/.pi/agent/git/`) and loads the three extensions from there. Nothing is published to npm or Pi\'s package gallery, and nothing is built.', - 'Update installed packages with `pi update --extensions`. Remove all three and Pi\'s copy of the repository with `pi remove git:github.com/idosal/AgentPolyfill`. For one run of all three without installing, use `pi -e git:github.com/idosal/AgentPolyfill`.', - 'ARD is left out for the same reason it isn\'t in the Claude Code bundle: its search sends the words of your request to a registry after asking each time. Install it on its own from a clone.', - 'The clone path also works for any one form alone. Replace `` with `events`, `skills`, `server-cards` or `ard`:', - '```bash\ngit clone https://github.com/idosal/AgentPolyfill.git\ncd AgentPolyfill\npi install ./polyfills//pi/extension\n```', - 'Pi loads a local path where it is, so keep the clone. From the same folder, use `pi -e ./polyfills//pi/extension` for one run without installing, or `pi remove ./polyfills//pi/extension` to remove a local install.', - 'Use one way per form, not both: Pi tells packages apart by repository address or local path, so a form installed both ways loads twice.', - 'Data stays in `mcp-events/` and `mcp-skills/` in Pi\'s agent folder (`~/.pi/agent`, or `PI_CODING_AGENT_DIR`); delete those to remove it. Added servers stay in `mcp.json`; undo with `pi mcp remove `.', -].join('\n\n') -const PI_APPS_LIMIT = 'Apps has no Pi form. Pi 1.6.0 leaves out `ui://` resources and tool `_meta`, so an extension cannot get an App\'s UI through Pi. Its terminal could draw one in principle, but no Pi Apps form is built or tested.' -// OpenCode's installs from GitHub and examples, for the Markdown served to -// agents. A setup that starts with `{` goes in the host's `config` file. -const OPENCODE_FORMS = { - 'mcp-events': { - path: 'polyfills/events/opencode/plugin', - add: '{ "mcp": { "feeds": { "type": "remote", "url": "https://event-feeds.idosalomon.workers.dev/mcp" } } }', - }, - 'mcp-skills': { - path: 'polyfills/skills/opencode/plugin', - add: '{ "mcp": { "huggingface": { "type": "remote", "url": "https://huggingface.co/mcp", "oauth": false } } }', - }, - 'mcp-server-cards': { - path: 'polyfills/server-cards/opencode/plugin', - }, - 'ard-discovery': { - path: 'polyfills/ard/opencode/plugin', - add: "opencode plugin add 'github:idosal/AgentPolyfill#main::path:polyfills/ard/opencode/plugin'", - }, -} -const INSTALL_OPENCODE = Object.values(OPENCODE_FORMS).map(({ path }) => `opencode plugin add 'github:idosal/AgentPolyfill#main::path:${path}'`) -const OPENCODE_INSTALL_NOTES = 'Nothing for OpenCode is published to npm. There is no bundle: install each plugin separately. OpenCode fetches each one from this repository on GitHub with Git, and runs it itself, so no Node is needed. Each command adds the plugin to `plugins` in the global `~/.config/opencode/opencode.json`, so it runs in every project from the next time OpenCode opens one. `#main` installs what the main branch holds; a commit in its place pins one version. From a clone, you can instead add a plugin\'s folder (`polyfills//opencode/plugin`) to `plugins` in the global or a project\'s `opencode.json`. Remove one with `opencode plugin remove` and the same text it was added with. OpenCode keeps its downloaded copy in `~/.cache/opencode/npm/` (a `git-AgentPolyfill-…` folder), which can be deleted. Events leaves its watches, stored events and log in `~/.local/share/opencode/mcp-events/`, and Skills its log in `~/.local/share/opencode/mcp-skills/`; delete those to remove them. "Allow always" answers, the skills each session loaded, and the list of servers Server Cards and ARD added stay in OpenCode\'s plugin storage (its own database). An added server comes back if the plugin is installed again, unless it was removed first, with `server_cards_remove_mcp_server` or `ard_remove_mcp_server`.' -const OPENCODE_APPS_LIMIT = 'Apps has no OpenCode form. OpenCode has no MCP Apps support: a plugin cannot read a `ui://` resource or a tool\'s `_meta` over OpenCode\'s connection, and there is no place to draw in the conversation. The desktop app\'s experimental panels can embed a web view, but an OpenCode Apps form was only assessed, not built.' -// Antigravity's installs from GitHub and examples, for the Markdown served to agents. -const ANTIGRAVITY_GITHUB = 'https://github.com/idosal/AgentPolyfill/tree/main' -const ANTIGRAVITY_FORMS = { - 'mcp-events': { - path: 'polyfills/events/antigravity/plugin', - add: 'agy mcp add feeds https://event-feeds.idosalomon.workers.dev/mcp', - }, - 'mcp-skills': { - path: 'polyfills/skills/antigravity/plugin', - add: 'agy mcp add huggingface https://huggingface.co/mcp', - }, - 'mcp-server-cards': { - path: 'polyfills/server-cards/antigravity/plugin', - }, - 'ard-discovery': { - path: 'polyfills/ard/antigravity/plugin', - add: `agy plugin install ${ANTIGRAVITY_GITHUB}/polyfills/ard/antigravity/plugin`, - }, -} -const INSTALL_ANTIGRAVITY = [ - ...Object.entries(ANTIGRAVITY_FORMS).flatMap(([name, { path }]) => [ - ...(name === 'ard-discovery' ? ['# Beyond MCP: ARD, a draft; every search asks you first'] : []), - `agy plugin install ${ANTIGRAVITY_GITHUB}/${path}`, - ]), -] -const ANTIGRAVITY_INSTALL_NOTES = 'Nothing is published to Antigravity\'s Marketplace; each plugin installs separately, from GitHub. Installing needs the Antigravity CLI (the App doesn\'t ship `agy`) and Git, which `agy` fetches the plugin with. `agy plugin install` copies the plugin\'s folder to `~/.gemini/config/plugins/`, which the App and the CLI both read; run the same line again to update it. From a clone, `agy plugin install ./polyfills//antigravity/plugin` does the same. Uninstall one with `agy plugin uninstall ` (`mcp-events`, `mcp-skills`, `mcp-server-cards` or `ard-discovery`). Events wakes an idle App conversation only through its sidecar, which is off until you add `"sidecars": {"mcp-events/wake": {"enabled": true}}` to `~/.gemini/config/config.json`; the plugin never edits that file. The plugins write only their own folder, `~/.gemini/agentpolyfill//`; Skills\' placeholders, `~/.gemini/config/skills/mcp-skills-served--*`; and, for Server Cards and ARD after your approval, `~/.gemini/config/mcp_config.json`.' -const ANTIGRAVITY_ADD_NOTES = 'To add a server in the CLI: `agy mcp add `, with `--header "Authorization: Bearer "` for a header; `agy mcp remove ` removes it. Both are in CLI 1.5.17\'s own help, not in Antigravity\'s docs, and both edit `~/.gemini/config/mcp_config.json`. The App doesn\'t ship `agy`; there, use Customizations > Installed > MCP Servers or edit that file.' -const ANTIGRAVITY_APPS_LIMIT = 'Apps has no Antigravity form. Antigravity\'s App renders MCP Apps itself (v2.34.0 and later); the CLI and IDE show text only.' -// Copilot CLI's plugins, from a clone added as a marketplace (the install -// that was tested), and what differs per form on the home page's cards. -const COPILOT_FORMS = { - 'mcp-events': { command: 'copilot --experimental' }, - 'mcp-server-cards': {}, - 'ard-discovery': {}, -} -const INSTALL_COPILOT = [ - 'git clone https://github.com/idosal/AgentPolyfill.git', - 'copilot plugin marketplace add ./AgentPolyfill', - ...Object.keys(COPILOT_FORMS).map((plugin) => `copilot plugin install ${plugin}@agent-polyfill`), -] -const COPILOT_INSTALL_NOTES = 'This install, from a clone, is the one tested. Copilot loads a plugin from a local marketplace where it is, so keep the clone; `git pull` there updates it. From GitHub, `copilot plugin marketplace add idosal/AgentPolyfill` adds the same marketplace. Checked in Copilot CLI 1.0.105. Not checked in 1.0.115, in the interactive TUI, or in VS Code. There is no bundle. Events is a Copilot extension, and Copilot loads extensions only in experimental mode (`copilot --experimental`, or, per Copilot\'s help, `/settings experimental on`, not checked); the whole extension API is experimental and may change in any release. Copilot runs the extension with its own Node. Server Cards and ARD are MCP servers in plugins: they need no experimental mode, but need Node 20 or newer. For one run without installing: `copilot --experimental --plugin-dir ./AgentPolyfill/polyfills//copilot/plugin` (`` is `events`, `server-cards` or `ard`). Remove one with `copilot plugin uninstall @agent-polyfill`. Events\' data stays in `~/.copilot/mcp-events/`; delete that folder too to remove it. Added servers stay in `~/.copilot/mcp-config.json`; undo with `copilot mcp remove `. The marketplace stays until `copilot plugin marketplace remove agent-polyfill`.' -const COPILOT_BUILT_IN = 'Copilot has Skills over MCP and MCP Apps built in, so there is no Copilot form of either. Copilot CLI 1.0.115 declares Skills to every server (in its initialize; listing or loading a served skill in Copilot was not checked). VS Code\'s Copilot harness turns MCP Apps on (from its source; not checked there); the terminal draws none.' -const COPILOT_APPS = 'Apps has no Copilot form. Copilot has MCP Apps built in where they can be drawn: VS Code\'s Copilot harness turns them on (from its source; no app was drawn there). The Copilot CLI terminal draws none.' -// Hermes's installs and YAML demo entries, from the forms' READMEs. -const HERMES_FORMS = { - 'mcp-events': { path: 'polyfills/events/hermes/plugin', language: 'yaml' }, - 'mcp-skills': { - path: 'polyfills/skills/hermes/plugin', - language: 'yaml', - ask: 'Use the Hugging Face local-models skill: which GGUF quantization should I use to run a 7B model on a 16 GB Mac?', - }, - 'mcp-server-cards': { path: 'polyfills/server-cards/hermes/plugin' }, - 'ard-discovery': { - path: 'polyfills/ard/hermes/plugin', - ask: 'Use ARD to discover the MCP servers neon.com publishes.', - }, -} -const INSTALL_HERMES = Object.values(HERMES_FORMS).map(({ path }) => `hermes plugins install idosal/AgentPolyfill/${path} --enable`) -const HERMES_INSTALL_NOTES = 'Each plugin installs from its own folder in this repository, with its Python code and bundled Node helper. Node 20 or newer must be on the gateway\'s PATH; `AGENTPOLYFILL_NODE` can name another executable. Events and Skills use only the servers named in `plugins.entries..settings.servers` in your profile\'s `config.yaml`. Events also needs `plugins.entries.mcp-events.allow_gateway_injection: true` to start a turn; without it, watches store events but cannot wake a session. The Events and Skills guides show the configuration entries. Remove Events with `hermes plugins remove mcp-events`, or Skills with `hermes plugins remove mcp-skills`. Events keeps watches, events, cursors, wake counts and its log in `$HERMES_HOME/mcp-events/`; Skills keeps its stubs in `$HERMES_HOME/mcp-skills/` and what each session loaded in Hermes\'s plugin state. Disable Server Cards or ARD with `hermes plugins disable mcp-server-cards` or `hermes plugins disable ard-discovery`. Added servers remain in `mcp_servers` in `config.yaml`; `hermes mcp remove `, then `/reload-mcp`, removes one. Ownership records are in `$HERMES_HOME/mcp-server-cards/added.json` and `$HERMES_HOME/ard-discovery/added.json`.' -const HERMES_BEHAVIOR = 'Events and Skills open their own MCP connections, so a local server runs twice. They leave alone servers signed in through Hermes (`auth: oauth`) and entries that take `${VAR}` from Hermes\'s `.env`. They read no stored credentials. Events leaves `events: true` servers to Hermes\'s webhook delivery; its own poll and push watches resume at the first session or turn after a gateway restart. A wake starts with `[mcp-events]`; Hermes receives it as a user message, so the prefix says the plugin sent it. Skills are listed as `mcp-skills:-` from the next session. Hermes asks before loading; deny and type the `/mcp-skills show` line to read SKILL.md first. A kept approval covers that version only, and another server\'s resource read asks each time. Where Hermes approves without asking (`--yolo`, `/yolo`, `hermes -z` or `approvals.mode: off`), the forms refuse each step that needs your own yes: a watch, a skill load, a registry search and a server addition. Hermes\'s unattended approve modes (`approvals.cron_mode`, `single_query_mode` or `unattended_mode: approve`) still approve these steps where nobody is present, and a kept session or always answer covers its exact step. Server Cards and ARD write `mcp_servers` in `config.yaml`, after Hermes\'s approval; `/reload-mcp` connects the server. ARD has no default registry: name one or set `ARD_DISCOVERY_REGISTRY` in the gateway\'s environment. Its prompt names the exact endpoint and query; session and always cover only that exact query to that endpoint, and different words ask again. Referrals need separate calls and approvals. Neither card form compares the card with live server metadata (S-3).' -const HERMES_APPS = 'Apps has no Hermes form yet.' -// Each host's own installs and examples, where they differ from home.json's. -const FORMS = { Pi: PI_FORMS, OpenCode: OPENCODE_FORMS, Antigravity: ANTIGRAVITY_FORMS, 'Copilot CLI': COPILOT_FORMS, Hermes: HERMES_FORMS } - -// Skills in Claude Code: no polyfill. What Claude Code's changelog says, and no more. -const CLAUDE_CODE_SKILLS = 'There is no Skills polyfill for Claude Code: Claude Code lists skills from MCP servers itself, in beta from 2.1.332 (https://code.claude.com/docs/en/changelog). A beta may not be on for every account or server yet. If you installed the `mcp-skills` plugin for Claude Code before, remove it with `/plugin uninstall mcp-skills@agent-polyfill`.' - -// T3 Code is not a host forms load into: it runs Codex, Claude Code and other agents for you. -const T3_ADD = 'codex mcp add mcp-events-t3 -- node "$PWD/AgentPolyfill/polyfills/events/t3/plugin/dist/server.js"' -const T3_NOTE = 'T3 Code (0.1.11, the version tested) is an app that runs the Codex, Claude Code, OpenCode and other agents on your machine from one interface; it has no plugin layer or MCP client of its own, so install the plugins above for the agent you use in it. What follows was checked with Codex as the agent. Apps: T3 Code shows MCP Apps itself, so the Apps polyfill should not be used there. Skills, Server Cards and ARD: their tools work, but with Codex the one question each asks before its consequential step (an MCP elicitation form: "Load it", "Add it", "Send the search") is cancelled by T3 Code without being shown, because it shows only forms it can answer with Approve or Decline; the step is refused as if you had said no, and nothing is approved for you (checked with Skills; Server Cards and ARD were not checked in T3 Code). Events: use the T3 form, mcp-events-t3, for Codex threads only, added to Codex from a clone (`' + T3_ADD + '`), then Restart agent session in T3 Code; T3 Code tells it which thread it serves, its watcher outlives the agent\'s sessions and T3 Code itself, and an event wakes the thread through T3 Code\'s own `t3 thread send`. The Codex Events plugin should not be used in T3 Code: its wake runs a turn the thread does not show. Claude Code threads cannot use the T3 form, since T3 Code does not tell Claude Code\'s servers which thread they serve. Not checked in T3 Code: anything with Claude Code or OpenCode as the agent, the watch_event approval prompt in a thread whose mode asks, Server Cards and ARD. Remove the T3 form with `codex mcp remove mcp-events-t3` and `node /polyfills/events/t3/plugin/dist/server.js --stop`; its data stays in `~/.codex/mcp-events-t3`. Details: https://github.com/idosal/AgentPolyfill/blob/main/docs/t3-code.md' - -function hostTable() { - return ['| Host | Form | Polyfills |', '|---|---|---|', ...HOSTS.map(({ name, form, polyfills }) => `| ${name} | ${form} | ${polyfills} |`)].join('\n') -} - if (!existsSync(dist)) fail('.vitepress/dist is missing: run vitepress build first') // Every page source must be listed, so a new page is not left out by accident. @@ -334,173 +189,27 @@ function pageMarkdown(page) { // The home page is a layout with components; it is written here from the // same data. function homeMarkdown() { - const { data, body } = frontMatter(readFileSync(join(site, 'index.md'), 'utf8')) - const hero = readFileSync(join(site, 'index.md'), 'utf8') - const text = /^\s+text:\s*(.+)$/m.exec(hero)[1] - const tagline = /^\s+tagline:\s*"?(.+?)"?$/m.exec(hero)[1] - const html = (s) => - s - .replace(/([\s\S]*?)<\/a>/g, (_, href, label) => `[${label}](${resolveLink(href, 'index')})`) - .replace(/([\s\S]*?)<\/code>/g, '`$1`') - .replace(/<[^>]+>/g, '') - .trim() - const section = (heading) => { - const match = new RegExp(`

${heading}

([\\s\\S]*?)`).exec(body) - if (!match) fail(`index.md has no section "${heading}"`) - return match[1] - } - const paragraphs = (chunk) => [...chunk.matchAll(/]*>([\s\S]*?)<\/p>/g)].map((m) => html(m[1])) - const [lede] = paragraphs(section('The polyfills')) - const poc = /

([\s\S]*?)<\/p>/.exec(body) - if (!poc) fail('index.md has no proof-of-concept notice (

)') - const notice = html(poc[1].replace(/([\s\S]*?)<\/strong>/g, '**$1**')) - const card = (p) => { - const cut = media.cuts.find((c) => c.name === p.cut) - const hosts = HOSTS.filter(({ name }) => p.hosts.includes(name)) - const lines = [ - `### ${p.name} (\`${p.plugin}\`)`, - '', - `${p.id ? `\`${p.id}\`, ` : ''}${p.spec}. Early.`, - '', - p.line, - '', - 'Hosts:', - '', - ...hosts.map(({ name }) => `- ${name}`), - ] - const block = (command, language) => [language ? `\`\`\`${language}` : command.startsWith('/') ? '```' : command.startsWith('{') ? '```json' : '```bash', command, '```'] - if (p.addStep) lines.push('', p.addStep) - for (const host of hosts) { - const form = FORMS[host.name]?.[p.plugin] - const add = form?.add ?? p[host.addKey] - const ask = form?.ask ?? p.ask - const command = form?.command ?? host.command - const start = host.start ?? `start \`${command}\`` - lines.push('', `**${host.name}**`, '') - if (add?.startsWith('{') || form?.language === 'yaml') lines.push(`In \`${host.config}\`:`, '') - if (add) lines.push(...block(add, form?.language), '', `Then ${start} and ask: "${ask}"`) - else lines.push(`Nothing to set up. ${start[0].toUpperCase()}${start.slice(1)} and ask: "${ask}"`) - } - if (p.then) lines.push('', p.then) - if (p.note) lines.push('', p.note) - if (p.plugin === 'mcp-apps-cli') lines.push('', PI_APPS_LIMIT, '', OPENCODE_APPS_LIMIT, '', ANTIGRAVITY_APPS_LIMIT, '', COPILOT_APPS) - lines.push('', videoLine({ file: cut.file, seconds: cut.seconds, description: p.alt }), '', `The ${p.name} guide: ${resolveLink(p.link, 'index')}`) - return lines.join('\n') - } - const cards = home.polyfills.map(card) - const beyondCards = home.beyond.map(card) - const audiences = home.audiences.map((a) => `- **${a.title}.** ${a.text} [${a.linkText}](${resolveLink(a.link, 'index')})`) - - return `# ${data.title ?? 'AgentPolyfill'} - -> ${/[.!?]$/.test(text) ? text : `${text}.`} ${tagline} - -${notice} - -${hostTable()} - -## Install - -**Claude Code** (2.1.329 or newer). At the prompt of a \`claude\` session, install every polyfill at once, then start a new session: - -\`\`\` -${INSTALL} -\`\`\` - -The same works in a terminal: \`${INSTALL_CLI}\`. ${CLAUDE_CODE_SKILLS} - -**Codex** (0.170 or newer; Skills was tested on 0.172; Node 20 or newer). In a terminal: - -\`\`\`bash -${INSTALL_CODEX.join('\n')} -\`\`\` - -Apps isn't in Codex yet, and Codex has no bundle. - -**Pi** (1.6.0, the version tested; Node 22 or newer). In a terminal: - -\`\`\`bash -${INSTALL_PI.join('\n')} -\`\`\` - -${PI_INSTALL_NOTES} - -${PI_APPS_LIMIT} - -**OpenCode** (2.4 or newer, tested with 2.4.1; Git). In a terminal: - -\`\`\`bash -${INSTALL_OPENCODE.join('\n')} -\`\`\` - -${OPENCODE_INSTALL_NOTES} - -${OPENCODE_APPS_LIMIT} - -**Antigravity** (App v2.35.1 and CLI v1.5.17; not supported in the IDE, which documents no plugin hooks; Node 20 or newer and Git on \`PATH\`). From GitHub, with the Antigravity CLI: - -\`\`\`bash -${INSTALL_ANTIGRAVITY.join('\n')} -\`\`\` - -${ANTIGRAVITY_INSTALL_NOTES} - -${ANTIGRAVITY_ADD_NOTES} - -${ANTIGRAVITY_APPS_LIMIT} - -**Copilot CLI** (1.0.115, the version tested). In a terminal, from a clone: - -\`\`\`bash -${INSTALL_COPILOT.join('\n')} -\`\`\` - -${COPILOT_INSTALL_NOTES} - -${COPILOT_BUILT_IN} - -**Hermes Agent** (v0.23.4, the version tested; Node 20 or newer on the gateway's machine). In a terminal: - -\`\`\`bash -${INSTALL_HERMES.join('\n')} -\`\`\` - -${HERMES_INSTALL_NOTES} - -${HERMES_APPS} - -**T3 Code.** ${T3_NOTE} - -Beyond MCP, ARD is a draft. Every search asks you first and goes to a registry you choose. Install it separately: - -- **Claude Code:** \`/plugin install ard-discovery --marketplace idosal/AgentPolyfill\`; it isn't in the bundle. -- **Codex:** \`codex plugin add ard-discovery@agent-polyfill\`. -- **Pi:** \`pi install ./polyfills/ard/pi/extension\` from a clone; it is left out of the one-line install. -- **OpenCode:** \`${OPENCODE_FORMS['ard-discovery'].add}\` (included in the commands above). -- **Antigravity:** \`${ANTIGRAVITY_FORMS['ard-discovery'].add}\` (included in the commands above). -- **Copilot CLI:** \`copilot plugin install ard-discovery@agent-polyfill\`, with the marketplace added (included in the commands above). -- **Hermes:** \`hermes plugins install idosal/AgentPolyfill/polyfills/ard/hermes/plugin --enable\` (included in the commands above). - -${videoLine({ file: media.launch.file, seconds: media.launch.seconds, description: media.launch.description })} - -## The polyfills - -${lede} - -${cards.join('\n\n')} - -## Beyond MCP - -${beyondCards.join('\n\n')} - -## Who it is for - -${audiences.join('\n')} - ---- - -This page on the web: ${pageUrl('index')} -` + const installGuide = /^## Install$[\s\S]*?(?=^## (?!#)|^---$)/m.exec(pageMarkdown('guide/getting-started')) + if (!installGuide) fail('getting-started.md needs an Install section') + const cards = [...home.polyfills, ...home.beyond].map((entry) => { + const cut = media.cuts.find((video) => video.name === entry.cut) + return [ + `## ${entry.name}`, + `${entry.line} ${entry.note ?? ''}`.trim(), + `Plugin: \`${entry.plugin}\`. Hosts: ${entry.hosts.join(', ')}. Specification: ${entry.spec}.`, + `[Setup and examples](${resolveLink(entry.link, 'index')})`, + videoLine({ ...cut, description: entry.alt }), + ].join('\n\n') + }) + return [ + '# AgentPolyfill', + description('index'), + `[Install a plugin](${markdownUrl('guide/getting-started')}) · [Host support](${markdownUrl('guide/introduction')})`, + installGuide[0].trim(), + videoLine(media.launch), + ...cards, + `[Contribute a polyfill](${markdownUrl('guide/contributing')}) · [Security](${markdownUrl('guide/security')})`, + ].join('\n\n') + '\n' } // The community directory as Markdown: one item per listed polyfill. @@ -523,138 +232,17 @@ function title(page) { } function llmsTxt() { - const { data } = frontMatter(readFileSync(join(site, 'index.md'), 'utf8')) const sections = SECTIONS.map( ([heading, list]) => `## ${heading}\n\n${list.map((page) => `- [${title(page)}](${markdownUrl(page)}): ${description(page)}`).join('\n')}`, ) return `# AgentPolyfill -> ${data.description} - -AgentPolyfill makes polyfills for agent protocols: it brings more of MCP to the clients you already use, before they support it. Each MCP polyfill implements the client side of one published extension, follows that extension's spec with stated exceptions, and can be removed or disabled once the host ships its own. Servers don't change. - -${hostTable()} - -The MCP polyfills implement Events (SEP-3415), Skills (SEP-2640), Server Cards (SEP-2127) and Apps (MCP Apps 2026-01-26). It's an early proof of concept: some gaps, like servers behind OAuth, need small changes to the hosts' plugin APIs (${origin}/guide/how-it-works.md). ${PI_APPS_LIMIT} ${OPENCODE_APPS_LIMIT} ${ANTIGRAVITY_APPS_LIMIT} ${COPILOT_BUILT_IN} ${HERMES_APPS} - -Beyond MCP, \`ard-discovery\` adds Agentic Resource Discovery v0.91 (a draft). A search sends the words of your request to the ARD registry you choose and asks you first every time, so ARD is installed separately. Checked in Pi 1.6.0: domain discovery, and an approved search of the repository's demo registry. Checked in OpenCode 2.4.1: reading buildkite.com's \`ard.json\`, and a search of the repository's demo registry after OpenCode asked (no public registry that takes an unauthenticated search was found). In Antigravity, every registry search and every addition is put to you in Antigravity's approval card. Checked in Copilot CLI 1.0.115: domain discovery, and a search of the repository's demo registry going out only after Copilot's tool prompt and the plugin's form. In Pi, OpenCode and Copilot CLI, adding through ARD is checked by the forms' tests only. Checked in Hermes v0.23.4: domain discovery of buildkite.com; search, referrals and adding are checked by the form's tests only. - -## Install - -- **Claude Code 2.1.329 or newer:** every MCP polyfill, the \`agent-polyfill\` bundle, from a terminal: \`${INSTALL_CLI}\`. At the prompt of a \`claude\` session it is \`${INSTALL}\`. Start a new session for the plugins to load. ARD is separate: \`/plugin install ard-discovery --marketplace idosal/AgentPolyfill\`. ${CLAUDE_CODE_SKILLS} -- **Codex 0.170 or newer (Node 20 or newer):** from a terminal: \`${INSTALL_CODEX.join(' && ')}\`. ARD is separate: \`codex plugin add ard-discovery@agent-polyfill\`. There is no bundle. -- **Pi 1.6.0 (the version tested; Node 22 or newer):** one line installs Events, Skills and Server Cards together; the commands are below. -- **OpenCode 2.4 or newer (tested with 2.4.1; Git; no Node):** one \`opencode plugin add\` per polyfill, from GitHub, after Pi's below. -- **Antigravity (App v2.35.1 and CLI v1.5.17; not supported in the IDE; Node 20 or newer on \`PATH\`; installing needs the Antigravity CLI):** use the Antigravity clone commands after OpenCode's below. -- **Copilot CLI 1.0.115 (the version tested):** from a terminal, from a clone: \`${INSTALL_COPILOT.join(' && ')}\`. ARD is in those commands. Events needs experimental mode (\`copilot --experimental\`); Server Cards and ARD need Node 20 or newer. There is no bundle; the notes follow Antigravity's below. -- **Hermes Agent v0.23.4 (the version tested; Node 20 or newer on the gateway):** one plugin per form; the commands and required settings follow Copilot's below. -- **T3 Code:** not a host of its own here; see the T3 Code paragraph below. - -\`\`\`bash -${INSTALL_PI.join('\n')} -\`\`\` - -${PI_INSTALL_NOTES} - -In Pi, Events and Skills use their own MCP connections, so a local (stdio) server runs twice. They cannot use Pi's OAuth or \`auth.provider\` sign-ins, and never read Pi's stored credentials. An \`Authorization\` header in \`mcp.json\` works, written out or using \`\${VARIABLE}\` or \`!command\`. Events needs protocol revision 2026-07-28; Pi's own client stops at 2025-11-25. With Pi's MCP support off, Events and Skills stand down too. Servers another extension registers later are reached after \`/reload\`. - -Pi runs tools without asking unless a permission extension asks. Each polyfill asks before its consequential step: a watch, a skill load, a search or an add. Skills meets X8: a cross-server read while a served skill is loaded asks first, naming both servers. There is no per-skill switch in Pi; server-level \`skip\` in \`mcp-skills/settings.json\` leaves out a server's skills. None of the Pi forms detects native support automatically; remove it or use its off switch when Pi supports it itself: - -| Pi form | Off switch | -|---|---| -| Events | \`MCP_EVENTS_OFF=1\` | -| Skills | \`MCP_SKILLS_OFF=1\` | -| Server Cards | \`MCP_SERVER_CARDS_DISABLED=1\` | -| ARD | \`ARD_DISCOVERY_DISABLED=1\` | - -OpenCode, one plugin per polyfill, from a terminal: - -\`\`\`bash -${INSTALL_OPENCODE.join('\n')} -\`\`\` - -${OPENCODE_INSTALL_NOTES} - -In OpenCode, Events and Skills use their own MCP connections, so a local server runs twice. They cannot reach a server OpenCode signs in to with OAuth (\`opencode mcp auth\`), and never read OpenCode's stored credentials; the headers in a server's OpenCode configuration work. Server Cards and ARD add a server to OpenCode's MCP servers for the project, and OpenCode connects it with its own client and sign-in. Only streamable HTTP servers are added, and for a card that needs a secret the answer gives the \`opencode.json\` entry, with \`{env:VAR}\`, to add by hand. Events watches resume when OpenCode next opens the project. Events departs from contract rule 4: OpenCode's own client takes push events for its automations, but doesn't poll or take webhooks and skips event types whose schemas it can't check, so the polyfill watches every type and tells the model to use a watch or an automation for an event type, not both. - -OpenCode's shipped permission rules allow every action. Each polyfill puts its own actions to those rules and asks by default: a watch, a skill load, a read of another server's resource while a served skill is loaded (X8, naming both servers), an addition or a search. A \`deny\` or \`ask\` rule you write wins; with nobody there to answer, OpenCode refuses. The plugin option \`askByDefault: false\`, or the variable below, leaves it to OpenCode's rules alone; an \`allow\` rule you write doesn't skip the question. In OpenCode 2.4.1's TUI, the prompt says only "Call tool ", with the details on the model's call line above it, and a prompt for a registry an ARD referral names shows no host. After a load or a wake, what the model does goes through OpenCode's rules, whose default allows it. When OpenCode supports an extension itself, remove that plugin or use its off switch: - -| OpenCode form | Off switch | Leave it to OpenCode's rules | -|---|---|---| -| Events | \`MCP_EVENTS_OFF=1\` | \`MCP_EVENTS_ASK_BY_DEFAULT=0\` | -| Skills | \`MCP_SKILLS_OFF=1\` | \`MCP_SKILLS_ASK_BY_DEFAULT=0\` | -| Server Cards | \`MCP_SERVER_CARDS_DISABLED=1\` | \`MCP_SERVER_CARDS_ASK_BY_DEFAULT=0\` | -| ARD | \`ARD_DISCOVERY_DISABLED=1\` | \`ARD_DISCOVERY_ASK_BY_DEFAULT=0\` | - -Each also takes the plugin options \`{"off": true}\` and \`{"askByDefault": false}\`, in the object form of its entry in \`plugins\`. - -Antigravity, from GitHub: - -\`\`\`bash -${INSTALL_ANTIGRAVITY.join('\n')} -\`\`\` - -${ANTIGRAVITY_INSTALL_NOTES} - -${ANTIGRAVITY_ADD_NOTES} - -In Antigravity, an MCP server isn't told which conversation calls it, and Antigravity's MCP client cancels every elicitation request without showing it. So each plugin pairs its MCP server with a \`PreToolUse\` hook, which passes the conversation id to the call and asks through Antigravity's own approval card (\`force_ask\`). The hook leaves a one-use ticket for exactly that call, and the server acts only with it. A watch asks in the approval card. New events reach a conversation at its next model call, through the plugin's \`PreInvocation\` hook (checked in CLI 1.5.17; Antigravity's plugins page doesn't list \`PreInvocation\` among plugin hooks), as fixed text with a count and the plugin's own watch ids, nothing a server wrote. Only App conversations can be woken, through the sidecar. A watch restarts when its conversation next calls the plugin, as a resumed CLI conversation did. The IDE documents no plugin hooks, so the forms aren't supported there, and their gated calls are refused. Events and Skills read \`~/.gemini/config/mcp_config.json\`, header values included, and can't reach servers behind Antigravity's own sign-in. A card that needs a secret can't be added: Antigravity's personal \`mcp_config.json\` reads no \`\${VAR}\`, and the plugin never writes a secret. Skills doesn't meet X8: once a served skill is loaded, its hook asks (\`force_ask\`) before a \`read_resource\` from another server, but Antigravity (CLI 1.5.17, App 2.35.1) ignores that question, shows no card and lets the read go ahead. ARD carries the Server Cards checks and add step itself, and has no default registry: name one, or set \`ARD_DISCOVERY_REGISTRY\` in the environment Antigravity starts in. - -Antigravity's own approval system is the boundary. Each form's own actions (a watch, a new or changed skill load, an addition, a registry search) ask in the approval card through \`force_ask\`, yes or no; the App greys out its "always allow" choices, and the CLI's card still lists them and shows only the question's first two lines. Nothing is auto-approved. The other Events tools, an approved unchanged skill load and skill file reads pass with a ticket and then get Antigravity's usual MCP question, which allow rules can skip. By default that question is asked: the interactive CLI starts in auto mode, where an MCP tool call still asks, and headless \`agy -p\` reports \`request-review\` and denies a call nobody answers. Whether \`--dangerously-skip-permissions\` also skips \`force_ask\` hasn't been checked. In CLI 1.5.17 a \`PreToolUse\` hook that fails makes the call fail. Upstream conformance (suite at c8625de): Skills passes all four client scenarios; Events passes 17 of 17 checks of conformance PR #541, through the form's MCP server and its real hook. Editors on \`agy acp\` see the tool and its arguments, not the question. The forms never open \`~/.gemini/antigravity/mcp_oauth_tokens.json\` or any sign-in store. Not checked: a webhook watch, and an addition through ARD in the App. None of them detects native support; Antigravity tells plugins nothing about its MCP client's extensions. Disable or uninstall the plugin (\`agy plugin disable \`), or use its off switch: - -| Antigravity form | Off switch | -|---|---| -| Events | \`MCP_EVENTS_OFF=1\`, or \`{"MCP_EVENTS_OFF": "1"}\` in \`~/.gemini/agentpolyfill/mcp-events/settings.json\` | -| Skills | \`MCP_SKILLS_DISABLED=1\`, or \`"off": true\` in \`~/.gemini/agentpolyfill/mcp-skills/settings.json\` | -| Server Cards | \`MCP_SERVER_CARDS_DISABLED=1\` | -| ARD | \`ARD_DISCOVERY_DISABLED=1\` | - -Copilot CLI, from a clone added as a marketplace: - -\`\`\`bash -${INSTALL_COPILOT.join('\n')} -\`\`\` - -${COPILOT_INSTALL_NOTES} - -In Copilot CLI, Events uses Copilot's extension API, which is experimental: extensions load only in experimental mode, and the API may change in any release. \`copilot --acp\` loads no extensions, and \`copilot -p\` ends the session with the prompt, so nothing is woken there. Events opens its own MCP connection, so a local (stdio) server runs twice. It can't use a sign-in through Copilot (\`/mcp auth\`, OAuth). A header in \`mcp-config.json\` works, written out or from \`\${VARIABLE}\`, except variables Copilot strips from extensions. It reads only the servers Copilot enables for the session, from \`mcp-config.json\` and a trusted project's \`.mcp.json\` or \`.github/mcp.json\`; servers a plugin brings, \`--additional-mcp-config\` and the built-in GitHub server are listed as unavailable. It needs an open session; \`copilot --resume\` picks watches up from their cursors. Server Cards and ARD add a server with \`copilot mcp add\`; it connects after \`/mcp reload\` or in the next session. Copilot declines their form in \`copilot -p\`, even with \`--yolo\`, so adding works in the interactive session only. Neither compares a card with the live server (S-3). Checked in VS Code 1.147.0's Copilot harness: Events end to end, where a wake shows as a message from the plugin, then the turn; and Server Cards adding a server, through VS Code's tool prompt and then the plugin's form, which VS Code shows as one paragraph. ARD's server loads there, but no search was checked through it. - -Copilot can approve a tool call without asking you: in assisted mode (an LLM review, which an organisation can make the default) or with allow-all. So each Copilot form asks its own question after Copilot's tool prompt. \`watch_event\` and \`unwatch_event\` go through Copilot's tool prompt, then, before a watch starts, Events asks in a Copilot dialog, naming the server, the event type, the filters and the note, and saying that events will start turns; **Don't watch it** comes first. Where nobody can be asked (\`copilot -p\`), the watch is refused. \`MCP_EVENTS_ASK_BY_DEFAULT=0\` turns that question off and leaves watches to Copilot's rules alone. This question was not checked in VS Code. \`add_mcp_server\` and \`ard_search\` go through Copilot's tool prompt, then the plugin's form, which Copilot declines where nobody can be asked (\`copilot -p\`, even with \`--yolo\`). \`ard_search\` is marked as not read-only, because Copilot's default mode runs read-only tools without asking. Once you grant it elevated permissions, the Events extension skips the prompt only for its four tools that only read. Events uses only the servers Copilot enables for the session, and lets go of one you switch off. None reads Copilot's stored credentials. None of the Copilot forms detects native support; when Copilot supports an extension itself, uninstall or disable the plugin (\`copilot plugin disable @agent-polyfill\`), or use its off switch: - -| Copilot CLI form | Off switch | -|---|---| -| Events | \`MCP_EVENTS_OFF=1\` | -| Server Cards | \`MCP_SERVER_CARDS_DISABLED=1\` | -| ARD | \`ARD_DISCOVERY_DISABLED=1\` | - -Hermes Agent, one plugin per form: - -\`\`\`bash -${INSTALL_HERMES.join('\n')} -\`\`\` - -${HERMES_INSTALL_NOTES} - -${HERMES_BEHAVIOR} - -When Hermes supports a form itself, disable it with \`hermes plugins disable \`. Events already leaves servers with \`events: true\` to Hermes, from the next turn after the setting changes. - -| Hermes form | Off switch | -|---|---| -| Events | \`hermes plugins disable mcp-events\` | -| Skills | \`hermes plugins disable mcp-skills\` | -| Server Cards | \`hermes plugins disable mcp-server-cards\` | -| ARD | \`hermes plugins disable ard-discovery\` | - -${T3_NOTE} - -Anyone can build a polyfill to the contract, bring an existing one to another host, or list one they keep in their own repository in the community directory (${origin}/guide/community.md). - -By Ido Salomon (https://x.com/idosal1). Not affiliated with Anthropic, OpenAI, GitHub, MCP, Agentic Resource Discovery or the Agentic AI Foundation (AAIF). Source: https://github.com/idosal/AgentPolyfill (Apache-2.0). - -Every page of this site is also plain Markdown at its address plus \`.md\`, and all of them together are at ${origin}/llms-full.txt. +> ${description('index')} -- [Home](${markdownUrl('index')}): what a polyfill does, the install for each host, the polyfills with a demo server and a first question for each, and the launch video. +- [Host support](${markdownUrl('guide/introduction')}#the-polyfills) +- [Install a plugin](${markdownUrl('guide/getting-started')}#install) +- [All guides in one file](${origin}/llms-full.txt) +- [Source](https://github.com/idosal/AgentPolyfill) ${sections.join('\n\n')} `