webhook: Skill for Cursor

.cursor/skills/build-mcp-server/SKILL.md

build-mcp-server is a skill for Cursor from webhook-co/webhook. It costs 47 tokens per session (960 once invoked), scanned A, original, Apache-2.0.

A guide for designing and scaffolding an MCP server for webhook.co. MCP is a standard way for AI assistants to call tools, and the guide covers how those tools should fit the product’s command-line, API, and web interfaces.

In plain words
What is it for?
Use it when adding MCP tools, extending the MCP interface, deciding how it should be deployed, or connecting webhooks to agents.
Why use it?
It helps prevent a new assistant-facing interface from using different data formats, bypassing tenant security, or exposing sensitive request data incorrectly.

Skill for Cursor

Written for Cursor: installed under .cursor/.

This is webhook-co/webhook's own configuration. It tells Cursor how to work on webhook itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything webhook configures →

Reuse

Borrowing it

Nothing to install: this file belongs to webhook-co/webhook. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/webhook-co/webhook/main/.cursor/skills/build-mcp-server/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/webhook-co/webhook

Made for: Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for build-mcp-server

README.md
[![agentmods](https://agentmods.dev/badge/skills/webhook-co/webhook/build-mcp-server/github.svg)](https://agentmods.dev/skills/webhook-co/webhook/build-mcp-server)
Your own site
<a href="https://agentmods.dev/skills/webhook-co/webhook/build-mcp-server"><img src="https://agentmods.dev/badge/skills/webhook-co/webhook/build-mcp-server/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for build-mcp-server

Your own site · 80×15
<a href="https://agentmods.dev/skills/webhook-co/webhook/build-mcp-server"><img src="https://agentmods.dev/badge/skills/webhook-co/webhook/build-mcp-server.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 47 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 960 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00047 $0.00960
Opus 5.5 $0.00019 $0.00384
Sonnet 5.5 $0.00009 $0.00192
Haiku 4.5 $0.00005 $0.00096

Measured 1mo ago against content hash 85bee513e588, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

build-mcp-server scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.cursor/skills/build-mcp-server/SKILL.md · 76 lines

How it starts

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

Build MCP server

MCP is a first-class, non-negotiable surface here: every capability is reachable identically from CLI / API / web / MCP, and the MCP server ships as a real product surface (including the webhook → agent trigger), not an afterthought. New work lives in apps/mcp and reuses the same shared/ types as the other surfaces — never invent an MCP-only payload shape.

Work through five phases. Don't skip to scaffolding.

Phase 1 — interrogate the use case

Before any code, get crisp answers:

  • What capability is being exposed, and does it already exist on CLI/API/web? If so, mirror its contract; if not, design for all four surfaces from the start (parity is the rule).
  • Who calls it — an interactive agent, an automation, the webhook → agent trigger? What's the auth and tenant context? (Tenant isolation is enforced by Postgres RLS; the MCP layer must carry tenant identity, never bypass it.)
  • What data crosses the boundary, and does any of it carry PII/PHI or raw payloads? Raw payloads live in R2 and are referenced by event id — don't pull bodies through MCP tool output.

Phase 2 — recommend a deployment model

State a recommendation, don't list every option:

  • Remote streamable-HTTP on Workers (default here). Our stack is TypeScript on Cloudflare Workers; host the MCP server as a Worker so it shares auth, bindings, and observability with the rest of the platform. This is the right answer for almost everything.
  • Elicitation when a tool needs to ask the user for a missing input mid-call.
  • MCP app (interactive UI) only when a widget genuinely beats text — see build-mcp-app, and respect the human-UI-testing hard stop.
  • MCPB bundle only for a local stdio server a user installs on their machine — see build-mcpb.
  • Local stdio only when the tool must touch the user's local environment (e.g. the CLI tunnel); otherwise prefer remote.

Phase 3 — select a tool-design pattern

  • One tool per action for a small, stable capability set — clearest for the model and the user.
  • Search + execute when wrapping a large or open-ended API: a search/list tool to discover, then a focused execute tool, so the model isn't drowning in dozens of near-duplicate tools.
  • Name tools for intent, validate every input at the boundary with a schema, and return typed, actionable errors — never leak stack traces, secrets, or tenant data in tool output.

Read the full file on GitHub · 76 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 76 lines · 47 tokens per session scan A 85bee513e588

Subscribe to this mod's changes

build-mcp-server is a skill published in the GitHub repository webhook-co/webhook (0 stars, last pushed 18d ago), licensed Apache-2.0. It adds 47 tokens to every session and 960 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

mcptoon

Compress MCP tool discovery with the mcptoon CLI. Trigger when a session has a large MCP tool catalog (many servers/tools), when the user mentions token cost, tool discovery, mcptoon, or asks to list/call MCP tools efficiently. Also route here when the user says the MCP tool list is too large, the agent context window…

activeing123/mcptoon · 523 tokens

pipefy-ai-agents

Use this skill when the user wants to create, read, update, delete, or troubleshoot AI agents (conversational agents with behaviors). Includes pre-flight validation and pipe-scoped knowledge bases (list, plain text/document/data lookup CRUD, access probe) attached via dataSourceIds. For traditional automations and AI…

pipefy/ai-toolkit · 80 tokens

pipefy-api-fallback

Use this skill when a toolkit operation fails AND the introspection skill could not resolve the problem. This is the last-resort fallback (Tier 3): call the Pipefy GraphQL API directly using curl or httpx, authenticating with the Service Account (OAuth2) or a Personal Access Token (PAT) available as env var. Follow…

pipefy/ai-toolkit · 86 tokens

pipefy-html-interfaces

Use when the user wants to create, read, or rewrite a Pipefy HTML interface: a standalone page whose content is one HTML document, optionally showing live data from pipes and tables. Covers choosing data sources, creating the page, and rewriting it. Needs HTML interfaces enabled on the organization. For the main…

pipefy/ai-toolkit · 88 tokens

stockbit-auth

Log in to Stockbit and capture the session for this server — opens the browser login flow and verifies the token was stored. Use when the user asks to log in or re-authenticate to Stockbit, or after a status check reports the session expired, HTTP 401, or logged out.

INo-xious/stockbit-mcp · 63 tokens

memoire-design-tooling

Use when a task spans interface understanding, design-system memory, UI audits, design CI, Figma, shadcn or Tailwind code generation, research, or agent design workflows and needs the correct Memi capability selected.

memi-design/memi · 51 tokens