Subchapter 2.3
references/custom-plugins.mdMarkdown5 KBView on GitHub
web_request AllowlistThe native plugins shipped with this skill that rely on HTTP APIs may have their hosts allowlisted in the Base MCP web_request tool. This matters because Claude and ChatGPT restrict which APIs an agent can call directly from their surface — is what makes those calls possible.
web_requestPlugins differ in how they reach their backend, and each plugin’s own file (../plugins/<name>.md) is the source of truth for its routing. The categories are:
web_request, do not use a user-paste fallback, and do not recommend a separate protocol MCP to work around the lack of a shell. If there is no shell, tell the user the plugin requires CLI access and stop.web_request when that host is allowlisted. Follow the routing in the plugin’s file.web_request and work on every surface, while their write or tx-builder hosts require a CLI harness. On chat-only surfaces, do not retry a write host through web_request and do not fall back to user-paste — follow the plugin file, which typically links the user to the protocol’s web UI instead.Custom or user-supplied plugins are almost certainly not in the allowlist and will be rejected by web_request.
Use this order for every HTTP-based plugin call — native or not. CLI-only plugins follow their plugin file and require shell access. Hybrid plugins follow the CLI/HTTP routing in their own plugin file.
If the current environment lets you call HTTP APIs directly — e.g. Claude Code, Codex, Cursor, or any harness where you have a fetch / curl / shell tool — use that tool first for HTTP-based plugins, even for native plugins. It supports any HTTP method (GET, POST, etc.), avoids the allowlist entirely, and gives you the full response without round-tripping through the MCP.
Only fall back to web_request if you don’t have a usable HTTP tool in the current harness.
If the harness has no direct HTTP capability, first check whether the plugin is CLI-only. If it is, stop and tell the user it requires a CLI harness. Otherwise, route the call through Base MCP’s web_request:
Claude and ChatGPT can fetch GET URLs themselves, but for security reasons they will only fetch URLs that the user has pasted into the chat. The agent cannot freely construct and fetch arbitrary URLs on its own.
That makes the fallback effectively GET-only: there’s no equivalent escape hatch for POST/PUT/DELETE with custom headers and a body, because the user can’t realistically inject those into the chat in a fetchable form.
So for non-native plugins on Claude / ChatGPT consumer surfaces:
| Situation | What to do |
|---|---|
| HTTP-based plugin, harness has an HTTP tool (Claude Code, Codex, Cursor, …) | Use the harness’s HTTP tool first. Any method is fine. Don’t route through web_request when a direct call is available. |
| CLI-only plugin, no shell/terminal tool | Tell the user the plugin requires CLI access and stop. |
| Hybrid plugin’s view-only / read host, no shell | Use web_request if the host is allowlisted (per the plugin file). |
| Hybrid plugin’s write / tx-builder host, no shell | Do not retry through web_request or user-paste. Follow the plugin file — typically link the user to the protocol’s web UI. |
| Native HTTP plugin, no harness HTTP tool | Use web_request if the host is allowlisted. |
| Non-native plugin, no harness HTTP tool (Claude / ChatGPT consumer apps) | GET only. Construct the URL, ask the user to paste it into the chat so you’re allowed to fetch it, then parse the response. If the API needs POST, tell the user this surface can’t support it. |