Events webhook: receive and display deliveries in the Inspector (local receiver + user-supplied tunnel)
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 15/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- typescript
- Área
- authentication, backend, frontend, security
Línea de trabajo
Start with the web server in clients/web/server and the existing /health route, which sits outside the /api/* auth gate, as the model for a receiver route outside that gate. Read server/public-address.ts for the address-precedence pattern the base-URL setting should follow, and the subscription code that holds the whsec_ secrets and the id returned by events/subscribe. Done means a signed test POST is verified, appended to the Events tab log, and a bad signature is rejected and shown as an error; docs/test-servers.md describes a manual way to test it.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Summary
The Events extension's webhook delivery mode (#3026, shipped in #3040/#3031) covers subscription management only — subscribe, refresh, deliveryStatus, unsubscribe. The Inspector never stands up anything to actually receive a delivery, so a server author debugging a webhook event type still has to reach for an external tool (RequestBin, a manual ngrok/curl setup, etc.) just to see what's being sent.
This was a deliberate scope cut in #3026, not an oversight:
Webhook receipt is not practical for a local Inspector. The callback must be
httpsand globally routable (the server rejects private addresses for SSRF), and the server must verify the endpoint. So webhook support is subscription management only... Receiving deliveries in-app is a non-goal for this issue.
This issue tracks doing the receiving half anyway, accepting that it needs a tunnel the user supplies themselves.
Precedent. This is not a novel ask:
- MCPJam's Inspector already does this: its local app offers a callback picker — "This machine" (its own local address, plain
http, gated behind an explicit "allow plain HTTP for local dev" opt-in since conformant servers refuse it) or "Custom URL" (a publichttpstunnel/reverse-proxy address, with the forwarding rule to configure shown alongside it). Both have equivalent CLI flags. - n8n's
N8N_WEBHOOK_URLenv var is the same shape we're proposing below: override the public base URL for webhooks, falling back to a value derived from the bind host/port when unset.
Proposed design
Receiver route. A new route on the existing Inspector web server (clients/web/server) — not a separate process. It must live outside the /api/* auth gate: every /api/* route requires x-mcp-remote-auth: Bearer <MCP_INSPECTOR_API_TOKEN> (browser↔backend auth), which the external MCP server delivering a webhook has no way to supply. The Standard Webhooks signature check is the trust boundary for this route instead (same shape as /health already being outside /api/*, for the same can't-authenticate-this-caller reason).
One shared path, not one per subscription. events/subscribe's response id is, per SEP-3415, "deterministic over (principal, delivery.url, name, arguments)... so that the receiver can route deliveries: it appears in the X-MCP-Subscription-Id header on every POST." So a single receiver path demuxes each inbound delivery by that header, matched against the id returned at subscribe time, to find the right subscription record/secret to verify against — no need to mint a per-subscription path segment ourselves.
Base URL configuration, consistent with the existing MCP_SANDBOX_FULL_ADDRESS / MCP_APP_ORIGIN_FULL_ADDRESS precedent (server/public-address.ts) and mirroring n8n's N8N_WEBHOOK_URL:
- A new env var (
MCP_WEBHOOK_PUBLIC_ADDRESSor similar) plus an equivalent launcher/CLI flag, same precedence pattern used elsewhere (flag > env var > default). - Default unset/
null→ falls back to a localhost URL derived from the bind, same as the sandbox/app-origin fallback. - If the tunnel host changes mid-session, that's on the user to handle (restart with a new flag/env var, or re-set it live) — Inspector does not manage the tunnel.
- Also editable at runtime in Inspector-level Settings (not per-server — it's a deployment property, not a connection property), so a user can update it after starting a tunnel without restarting the process.
Verification and display.
- Each inbound POST's Standard Webhooks signature is verified against the
whsec_secret already generated/held for that subscription. A failed/unsigned POST is rejected and surfaced as an error, not silently dropped. - Verified deliveries are appended to the subscription's occurrence/event log in the Events tab — the same place poll/push occurrences already render — payload shown as inert JSON only (deliveries are untrusted input, same rule as live occurrences).
- Docs: note the tunnel requirement and link to the
test-serverswebhook walkthrough (docs/test-servers.md) for a by-hand way to exercise it without a real tunnel.
Out of scope (for this issue)
- Automatically provisioning or managing a tunnel on the user's behalf.
- CLI/TUI support (web only, for now).
- Anything to do with poll/push delivery modes — unaffected by this.
References
- Epic: #3026 (Support the Events extension, SEP-3415)
- Shipped subscription management: #3031 / #3040
- SEP-3415 spec text on
X-MCP-Subscription-Id: https://github.com/modelcontextprotocol/ext-events/blob/main/specification/beta/events/events.mdx - MCPJam's existing implementation: https://docs.mcpjam.com/inspector/events
- n8n precedent:
N8N_WEBHOOK_URL(https://docs.n8n.io/deploy/host-n8n/configure-n8n/basic-configuration/configuration-examples/configure-webhook-urls-with-reverse-proxy)
- Lenguaje dominante
- TypeScript
- Estrellas
- 11.3k
- Forks
- 1.6k
- Merge medio
- 2 h 28 min
- PR fusionados (30 d)
- 111
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de modelcontextprotocol/inspector
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
modelcontextprotocol/inspector#3073 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
modelcontextprotocol/inspector#3072 ·
Los mantenedores suelen responder en 1 día
-
CLI/mcpdo: a timeout above 2147483647 ms fires after 1 ms, and the error says to raise it furtherAbiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
modelcontextprotocol/inspector#3071 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
modelcontextprotocol/inspector#3069 ·
Los mantenedores suelen responder en 1 día
-
CLI --tool-args-json silently sends 1e400 as null (round-trip guard missing; mcpdo rejects it)Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
modelcontextprotocol/inspector#3067 ·
Los mantenedores suelen responder en 1 día
Todos los issues de modelcontextprotocol/inspector
Issues similares
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
yavorsky/unbuilt.app#65 ·
-
CVE security
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
mckinsey/agents-at-scale-ark#4091 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
factory:subtask
Dificultad 1/5 Menos de una hora Aptitud para principiantes 94/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
NUS-Project-SaBai/project-sabai#386 ·
Los mantenedores suelen responder en 3 días
-
android needs clarification
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
super-productivity/super-productivity#12105 · 3 comentarios ·
Los mantenedores suelen responder en 1 día