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

Open
#90 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
go
Domain
backend, security

Research direction

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.

Written by the indexing model from the issue text.

Description

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

Dominant language
Go
Stars
1
Forks
0
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from coder/faucet

All issues in coder/faucet

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.