Skip to content

About

Polyfills for MCP support across hosts (Claude Code, Codex, Copilot, Pi, OpenCode, etc.)

Topics

Resources

Contributing

Security policy

Stars

10 stars

Watchers

0 watching

Forks

Repository files navigation

AgentPolyfill

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.

Five MCP workflows in Claude Code and Codex, including DOOM in the terminal and a Cloudflare error waking an idle agent.

Watch the full demo (48 s) · Installation · Supported hosts · Documentation

Install

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.

/plugin install agent-polyfill --marketplace idosal/AgentPolyfill

Codex · With Codex 0.170+ and Node.js 20+, add the marketplace once, then install Events and Skills for the examples below.

codex plugin marketplace add idosal/AgentPolyfill
codex plugin add mcp-events@agent-polyfill
codex plugin add mcp-skills@agent-polyfill

Cursor · Server Cards runs in the Cursor IDE with Node.js 20+. Install the local plugin.

Pi · With Pi 1.6.0 and Node.js 22+, one command installs Apps, Events, Skills, Server Cards and Tasks.

pi install git:github.com/idosal/AgentPolyfill

Muse Code · From the root of a clone, with Node.js 22.18+, add the local catalog, then install and approve the plugins you want. All five install names.

muse plugins marketplace add agent-polyfill "$PWD/muse-marketplace.json"
muse plugins install mcp-skill-reference@agent-polyfill
muse plugins approve mcp-skill-reference

The installation guide covers prerequisites, setup and removal for each host, including OpenCode, Antigravity, Copilot CLI, Hermes, T3 Code and Grok Bot.

Try it

Play DOOM with MCP Apps

Add the arcade server from your shell, then start Claude Code.

claude mcp add --transport http arcade https://mcp-apps-arcade.idosalomon.workers.dev/mcp

Load shareware DOOM from the arcade.

Play the game inside the Claude Code terminal, right below the tool call.

Wake an idle session with MCP Events

Add the demo feed for your host, then start a new session.

# 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

Give me a demo button and tell me what I type when I press it.

Open the link the agent gives you, type a message, and press the button. The idle session wakes up and tells you what you sent. To finish, ask it to stop watching the demo button.

Pick a local model quantization with Skills over MCP

Add Hugging Face's MCP server from your shell, then start Codex.

codex mcp add huggingface --url https://huggingface.co/mcp

Which GGUF quantization should I use to run a 7B model on a 16 GB Mac?

Approve the huggingface-local-models skill when prompted. Codex loads it from Hugging Face and uses its reference files to answer.

Muse Code and Grok Bot have adapters for Skills, Tasks, Events, Server Cards and ARD. The guide describes what each host can do and includes recordings. Muse Personal Agent and Grok Build were not tested.

Polyfills

Select a host adapter for its install commands, examples and limits.

Polyfill What you can do Host adapters
Apps Play DOOM or explore a chart inside a tool call. Claude Code · Pi
Events Wake an idle agent when a deployment fails. Claude Code · Codex · Pi · OpenCode · Antigravity · Copilot CLI · Hermes · T3 Code · Muse Code · Grok Bot (local watcher)
Skills Load a skill from Hugging Face to choose a model quantization. Codex · Pi · OpenCode · Antigravity · Hermes · Muse Code · Grok Bot (experimental discovery)
Server Cards Find the MCP servers published by neon.com and add Neon Docs. Claude Code · Codex · Cursor IDE · Pi · OpenCode · Antigravity · Copilot CLI · Hermes · Muse Code · Grok Bot (reviewed setup)
A2A delegation Delegate work to a configured Agent2Agent peer, answer its questions, and receive the result in the same chat. Codex Desktop demo · Verified hosts
Tasks Start a long-running MCP tool and return to the session when it finishes or needs input. Codex · Pi · T3 Code with Pi · Copilot CLI (opt-in fallback) · OpenCode terminal and Desktop · Hermes · Native support · Muse Code · Grok Bot (enabled jobs)
ARD Find Buildkite’s MCP server by domain or search an ARD registry. Claude Code · Codex · Pi · OpenCode · Antigravity · Copilot CLI · Hermes · Muse Code · Grok Bot (directory lookup)

Agentic Resource Discovery (ARD) is a separate draft protocol. Its plugin asks before sending your query to a registry.

Claude Code 2.1.332+ includes native Skills in beta. Migrating from the older plugin. The Antigravity App renders MCP Apps natively. Copilot CLI advertises Skills and its VS Code integration enables Apps. Copilot compatibility notes.

T3 Code uses the underlying agent’s plugins and has a dedicated Events adapter for Codex threads.

Compatibility and security

  • Events, Skills and Apps adapters that open a separate connection to a server cannot reuse the host’s OAuth session. Host API limitations
  • Pi Apps uses the originating Pi connection, including its OAuth refresh. Pi Apps coverage and limits
  • Codex cannot prompt before a loaded skill reads resources from another server. Skills in Codex
  • When an app omits ui.csp, the Claude Code adapter uses a more permissive default content security policy. Apps conformance

Security and vulnerability reporting · Interoperability results

Contributing

To add a host adapter or implement an extension, see the contributing guide and polyfill contract. Independently maintained plugins can be listed in the community directory.

License

Apache-2.0.

About

Polyfills for MCP support across hosts (Claude Code, Codex, Copilot, Pi, OpenCode, etc.)

Topics

Resources

Contributing

Security policy

Stars

10 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages