Open-source status page, incident response and uptime monitoring
TypeScript alertingincident-managementmcpmcp-servermonitoringmonitoring-as-codeobservabilityon-callopen-sourcesrestatus-pagestatuspagesynthetic-monitoringterraformtinybirdtursouptimeuptime-checkeruptime-monitor
// MCP Server Card — SEP-1649 (https://github.com/modelcontextprotocol/modelcontextprotocol/pull/2127).
// Served at /.well-known/mcp/server-card.json.
//
// `OPENSTATUS_MCP_SERVER_VERSION` is read from apps/server/package.json at build time
// in next.config.ts and inlined via Next's `env` config — no manual sync.
const MCP_SERVER_VERSION = process.env.OPENSTATUS_MCP_SERVER_VERSION ?? "0.0.1";
const card = {
$schema: "https://modelcontextprotocol.io/schemas/server-card/draft.json",
serverInfo: {
name: "openstatus",
version: MCP_SERVER_VERSION,
title: "Openstatus",
description:
"Read and update openstatus status pages, status reports, and maintenance windows from any Model Context Protocol client.",
homepage: "https://www.openstatus.dev/tooling/mcp-server",
documentation: "https://www.openstatus.dev/docs/reference/mcp-server/",
vendor: { name: "Openstatus", url: "https://www.openstatus.dev" },
license: "AGPL-3.0",
},
transport: {
type: "streamable-http",
url: "https://api.openstatus.dev/mcp",
},
// The draft schema has no settled shape for OAuth yet, so the card keeps
// the apiKey form and points at the discovery document in prose.
authentication: {
type: "apiKey",
in: "header",
name: "x-openstatus-key",
description:
"OAuth 2.1 is the default: an unauthenticated request answers 401 with WWW-Authenticate, and authorization-server metadata lives at https://api.openstatus.dev/.well-known/oauth-authorization-server (dynamic client registration, PKCE, scopes read and write). The x-openstatus-key header remains for CI and headless agents, using the same API key as the CLI, REST API, and Terraform provider (Settings → API Tokens). Credentials are required for tools; the resources below are readable without one.",
},
capabilities: {
tools: { listChanged: false },
resources: { listChanged: true },
},
tools: [
{
name: "list_status_pages",
description: "List status pages in the workspace.",
},
{
name: "list_status_reports",
description: "List status reports for a given status page.",
},
{
name: "create_status_report",
description:
"Open a new status report (incident). Requires explicit notify: true | false.",
},
{
name: "append_status_report_update",
description:
"Append an update to an open status report. Requires explicit notify: true | false.",
},
{
name: "resolve_status_report",
description:
"Resolve an open status report. Requires explicit notify: true | false.",
},
{
name: "update_status_report",
description: "Edit metadata on an existing status report.",
},
{
name: "create_maintenance",
description:
"Schedule a maintenance window. Requires explicit notify: true | false.",
},
{
name: "update_maintenance",
description: "Adjust a scheduled maintenance window.",
},
],
resources: [
{
name: "openapi-specification",
uri: "https://api.openstatus.dev/openapi.json",
mimeType: "application/json",
description: "Machine-readable description of the openstatus HTTP API.",
},
{
name: "mcp-server-reference",
uri: "https://www.openstatus.dev/docs/reference/mcp-server",
mimeType: "text/markdown",
description:
"Transport, authentication, and the full tool list for this server.",
},
{
name: "site-index",
uri: "https://www.openstatus.dev/llms.txt",
mimeType: "text/plain",
description:
"llms.txt: product context, pricing, and an index of every page.",
},
],
links: {
"service-doc": "https://www.openstatus.dev/docs/reference/mcp-server/",
"service-desc": "https://api.openstatus.dev/openapi.json",
"terms-of-service": "https://www.openstatus.dev/terms",
"privacy-policy": "https://www.openstatus.dev/privacy",
},
};
const body = JSON.stringify(card);
export function GET() {
return new Response(body, {
headers: {
"Content-Type": "application/json",
"Cache-Control": "public, max-age=3600",
},
});
}