Support /.well-known/mcp-webhook-receiver.json for callback verification

Aperta
#90 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
go
Ambito
backend, security

Direzione di ricerca

Start with docs/webhooks.md (lines 33-36 and 143): it describes the current allowlist and handshake paths, which are the two code paths to extend. Read the linked spec section on the well-known document and its caching rule, then locate where callback URLs are currently verified and where a per-instance 10-minute handshake result is cached. Done means a receiver publishing /.well-known/mcp-webhook-receiver.json verifies via its declared path prefixes, cached per (principal, url), with tests covering allowlist, handshake and well-known in one deployment.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Problem

superblink-events verifies callback URLs by allowlist or by handshake, never both (docs/webhooks.md).

  • Allowlist: the superblink-events operator must add every receiver origin by hand. That does not scale to Coder deployments, each of which is its own origin.
  • Handshake: success is cached per instance for 10 minutes, so on Vercel "expect a handshake on most renewals" (docs/webhooks.md).

Proposal

Support the fourth option of the spec, a receiver-published /.well-known/mcp-webhook-receiver.json on the callback origin, which declares the path prefixes that accept deliveries (events.mdx L610). A Coder deployment can publish it once at its access URL, and superblink-events can cache the result per (principal, url) as the spec describes (L616). Alternatively, accept allowlist hits and handshakes in the same deployment.


Generated with xum • Model: anthropic:claude-opus-5-5 • Thinking: high

Lingua principale
Go
Stelle
1
Fork
0
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di coder/faucet

Tutte le issue di coder/faucet

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.