MCP Failure Alerts: Webhooks, Slack and Email

Get told the moment something on your side breaks for one of your MCP server's users: a tool whose API starts failing, a token check that refuses everyone, a sign-in that stops working. Alerts can go to your own webhooks, a Slack channel and email addresses, so you can fix the problem before your users report it.

#

Turn on failure alerts

  1. Open your collection's settings and open the MCP tab.
  2. Under Server settings, find Failure alerts and click Set up.
  3. Add where alerts should go:
    • Webhooks: paste an https:// URL and click Add. Add up to 9. Every alert is sent to each one.
    • Slack: click Connect Slack, sign in to your workspace, pick a channel, then turn Slack on.
    • Email: add one or more email addresses (up to 20) and click Add. Email turns on with the first address. There's nothing to connect: alerts are sent from DocStar ([email protected]), and each address gets its own copy, so no one sees the others.
  4. Click Send test alert. You see the result for each webhook, Slack and email. A test alert is marked TEST.

Your collection needs a slug before you can turn on alerts. Only members who can edit the collection can change these settings.

#

When an alert is sent

What failed Examples
A tool Your API answered 4xx or 5xx, couldn't be reached, or its viaSocket flow failed.
Your token check Your validation URL answered an error, timed out after 5 seconds, or refused a user's token.
Sign-in Your token URL refused a login code or refresh, your session exchange failed, your login page sent a user back with an error, or sign-in isn't fully set up.

Alerts are not sent for problems on DocStar's side, for an AI assistant's own registration problems, or when a user simply hasn't signed in yet.

How often: at most one alert for the same problem (same tool and status) every 10 minutes. Repeats are counted, and the next alert says how many there were.

#

What an alert tells you

Each alert says in plain words:

  • What happened, for example "create_order" failed: your API answered 422
  • What your users see, for example that the AI assistant got the error back and told the user the action failed
  • What to do to fix it
  • The API that failed, with the request your MCP server sent (method, URL, query and body) and the response it got (status, time and body)
  • Which MCP server, tool and AI assistant were involved, and when

Secrets are hidden. Values whose name looks like a password, token, API key, cookie or code show as [hidden], query strings are removed from URLs, and request headers are never included.

#

What your webhook receives

Each webhook gets a POST with Content-Type: application/json as soon as the failure happens. Answer within 5 seconds with any 2xx status. Redirects aren't followed. The body looks like this:

{
  "message": "Acme: \"create_order\" failed: your API answered 422\n...",
  "kind": "tool",
  "title": "\"create_order\" failed: your API answered 422",
  "api": { "method": "POST", "url": "https://api.acme.com/v1/orders" },
  "whatHappened": "POST request to https://api.acme.com/v1/orders answered 422.",
  "whatUsersSee": "The AI gets the error back and may retry, or tell the user the action failed.",
  "whatToDo": "A 4xx often means the AI called the tool with wrong inputs: ...",
  "request": { "method": "POST", "url": "https://api.acme.com/v1/orders", "body": { "quantity": 0, "sku": "A1" } },
  "response": { "status": 422, "durationMs": 312, "body": { "error": "quantity must be > 0" } },
  "mcpServer": { "name": "Acme", "slug": "acme" },
  "tool": "create_order",
  "aiClient": "Claude",
  "status": 422,
  "countSinceLastAlert": 1,
  "at": "2026-11-23T07:52:10.000Z"
}
  • kind is tool, token_check or sign_in.
  • message has everything above as ready-to-read text, so you can forward it to chat or email as it is.
  • Fields that don't apply are left out.
#

Change or stop alerts

Open Failure alerts again:

  • Click × next to a webhook to remove it.
  • Turn Slack or email off to pause it. Click Disconnect to remove the Slack connection, or × to remove an email address.
  • When there are no webhooks and Slack and email are off, no alerts are sent.
#