Skip to content
Back to skills

Relay Setup

ASecurity

Set up the user's own relay for webhook-only MCP event types, on their own Cloudflare account. Run only when the user asks for it.

  • 13 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added November 25, 2026
ai-agentsgonode

Works with

  • claude code
  • mcp

Security analysis

A92/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro shows the line behind each finding and how to fix it

Scanned November 25, 2026

npx -y skills add idosal/AgentPolyfill --skill relay-setup --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Relay Setup?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Relay Setup
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/idosal-relay-setup/badge)](https://www.skillsdirectory.com/skills/idosal-relay-setup)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: relay-setup
description: Set up the user's own relay for webhook-only MCP event types, on their own Cloudflare account. Run only when the user asks for it.
disable-model-invocation: true
---

# Set up a relay for webhook events

Some MCP servers deliver events only by webhook. A webhook needs a public https address, and Claude Code on a laptop has none. The relay is a small Cloudflare Worker that is that address: it keeps each delivery until this plugin collects it, including while Claude Code is closed. It never holds a signing secret, so it cannot make up an event.

This skill deploys the relay to **the user's own Cloudflare account**. Before anything else, tell the user in two or three plain sentences what will happen:

- a Worker named `mcp-events-relay` (with its Durable Objects) is created in their Cloudflare account, at a public `workers.dev` address;
- a random access key is stored as that Worker's secret and in `~/.mcp-events/relay.json` on this machine, readable only by them;
- event payloads their MCP servers send by webhook pass through that Worker and are stored there until collected (for at most a week).

Then ask whether to go ahead. Do nothing else until they say yes.

## Steps

The relay's source is in the `relay` folder of this plugin: from this skill's base directory, `../../relay`. Use that folder's absolute path below.

1. Check Node is 22.18 or newer (`node --version`).
2. Install the relay's tools: `npm install` in the relay folder.
3. Check Cloudflare sign-in: `npx wrangler whoami` in the relay folder. If it is not signed in, **ask the user to run `npx wrangler login` themselves** in that folder (it opens their browser), and wait for them to say it is done. Do not try to sign in for them, and never ask for a token or password.
4. Run `npm run setup` in the relay folder. It deploys, sets the access key, writes the settings file and checks the result. It never prints the key; do not print or read it either.
5. If it fails, show the user the message. Most failures are a sign-in that expired or a `workers.dev` address that needs a minute.
6. Tell the user to restart Claude Code, and that webhook-only event types now work.

## Afterwards

- A new access key: `npm run setup -- --rotate`.
- To remove everything: `npx wrangler delete` in the relay folder, then delete `~/.mcp-events/relay.json`. Only do this if the user asks.

Do not change the relay's limits or set `OPEN_RELAY` unless the user asks for that specifically: an open relay lets anyone who can reach it store data on the user's account.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.