GitHub
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
作者提供的说明(英文原文)
SutramX uptime monitoring: monitors, check results, incidents, status pages and uptime/SLO reports.
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
选择你使用的 AI 应用,然后复制设置。
SUTRAMX_API_KEY, SUTRAMX_API_URL, SUTRAMX_READ_ONLY, SUTRAMX_ALLOW_DESTRUCTIVE标为机密的值是你账户的钥匙。千万不要分享给别人,也不要粘贴到聊天里。
你需要
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"sutramx": {
"command": "npx",
"args": [
"-y",
"@sutramx/mcp-server"
],
"env": {
"SUTRAMX_API_KEY": "your-value",
"SUTRAMX_API_URL": "your-value",
"SUTRAMX_READ_ONLY": "your-value",
"SUTRAMX_ALLOW_DESTRUCTIVE": "your-value"
}
}
}
}在终端中运行这条命令
claude mcp add sutramx --env SUTRAMX_API_KEY=your-value --env SUTRAMX_API_URL=your-value --env SUTRAMX_READ_ONLY=your-value --env SUTRAMX_ALLOW_DESTRUCTIVE=your-value -- npx -y @sutramx/mcp-server运行前请先填写空着的值。
粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"sutramx": {
"command": "npx",
"args": [
"-y",
"@sutramx/mcp-server"
],
"env": {
"SUTRAMX_API_KEY": "your-value",
"SUTRAMX_API_URL": "your-value",
"SUTRAMX_READ_ONLY": "your-value",
"SUTRAMX_ALLOW_DESTRUCTIVE": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"sutramx": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@sutramx/mcp-server"
],
"env": {
"SUTRAMX_API_KEY": "your-value",
"SUTRAMX_API_URL": "your-value",
"SUTRAMX_READ_ONLY": "your-value",
"SUTRAMX_ALLOW_DESTRUCTIVE": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
SUTRAMX_API_URL envSUTRAMX_READ_ONLY envSUTRAMX_ALLOW_DESTRUCTIVE env这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月7日
注册名称已通过 GitHub 账户 sutramx 验证,该账户拥有此仓库
我们还没有从 GitHub 读取这个仓库
我们还没有从 GitHub 读取这个仓库
它在你的电脑上运行,没有互联网端点
在你的电脑上运行,改用本地设置
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
你需要填写:SUTRAMX_API_KEY
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
GitHub 仓库最后更新于–,最新版本(0.1.6)于25天前进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。
同一分类中有:GitHub, Desktop Commander, Cloudflare MCP
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
MCP server for terminal commands, file operations, and process management
Cloudflare MCP servers
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
A Model Context Protocol server that lets AI agents and assistants (Claude Code, Claude Desktop and other MCP clients) work with your SutramX workspace: list and change monitors, read check results, handle incidents and manage status pages.
It talks to the public SutramX API with a workspace API key, so it can do exactly what that key can do and nothing more.
| Tool | What it does | Changes data? |
|---|---|---|
sutramx_whoami | Workspace, plan and limits for the key | no |
sutramx_monitor_summary | Counts by status, open incidents, 24h uptime | no |
sutramx_list_monitors | Monitors with live status and uptime; filter by status, tag, text | no |
sutramx_get_monitor | One monitor by id or monitoring-as-code key | no |
sutramx_create_monitor | Create a monitor of any type: http, api, ping, port, udp, dns, multistep, mcp (a remote MCP server: initialize + tools/list, expected tools, tool-list drift) or cron (pass key for an idempotent create-or-update) | yes |
sutramx_update_monitor | Change name, URL, interval, config, tags, regions | yes |
sutramx_pause_monitor / sutramx_resume_monitor | Stop or restart checks (pauses are capped per hour, see Safety limits) | yes |
sutramx_delete_monitor | Delete a monitor and its history (hidden unless deletes are enabled) | yes, destructive |
sutramx_run_check | Run one real check now | records a check |
sutramx_get_check_results | Check history by region and status, paginated | no |
sutramx_list_incidents / sutramx_get_incident | Incidents with confirming regions and acknowledgement | no |
sutramx_explain_incident | "Why is it down?" / "why did this alert fire?": by incident id, monitor id or monitor name/key, the verdict, whose fault it is (yours, external, our checker), each region's vote (blocked and inconclusive regions abstain), the quorum rule and whether it was met, the failure class, vendor signals and the 7/30-day flakiness score; a monitor with no open incident gets its current state plus its most recent incident | no |
sutramx_acknowledge_incident | Acknowledge (stops escalation) | yes |
sutramx_resolve_incident | Resolve by hand with a note | yes |
sutramx_add_incident_note | Add an internal timeline note (public status page updates only in destructive mode) | yes |
sutramx_list_status_pages / sutramx_get_status_page | Status pages and the monitors on them | no |
sutramx_create_status_page / sutramx_update_status_page | Create a page (not public unless destructive mode), or change its title, description, logo_url, accent_color, favicon_url, hide_powered_by, show_response_times; slug and is_public, and any change to a page that is public, only in destructive mode (any other setting is rejected) | yes |
sutramx_set_status_page_monitors | Replace the monitors shown on a page (hidden unless destructive mode; an empty list needs remove_all: true) | yes, destructive |
sutramx_delete_status_page | Delete a page (hidden unless deletes are enabled) | yes, destructive |
sutramx_uptime_report | Uptime %, incidents, MTTR and health score per monitor over 7/14/30/90 days, plus SLO error budgets and burn rates | no |
sutramx_list_maintenance_windows | Maintenance windows (scope, schedule, recurrence); filter by state | no |
sutramx_list_regions | Monitoring locations and their codes | no |
Destructive tools are annotated with destructiveHint, so clients that support it ask before running them. Read tools carry readOnlyHint and openWorldHint: false (they only read your workspace); tools that make SutramX contact outside targets, publish, or notify people carry openWorldHint: true.
Agents can be steered by text they read (prompt injection), so the user, not the agent, chooses which tools the server offers. Tools that are not allowed are not registered at all: the agent never sees them.
| Mode | stdio (env) | HTTP (env for the whole server, or a header per client) | Tools offered |
|---|---|---|---|
| read-only | SUTRAMX_READ_ONLY=true | X-SutramX-Read-Only: true | only the "no" rows above |
| default | (neither set) | (neither set) | everything except the destructive rows; no publishing |
| destructive mode | SUTRAMX_ALLOW_DESTRUCTIVE=true | env only; or X-SutramX-Allow-Destructive: true if the operator set SUTRAMX_HTTP_ALLOW_DESTRUCTIVE_HEADER=true | everything |
Destructive mode covers everything that deletes data or changes what the public sees:
sutramx_set_status_page_monitors (it can take monitors off a page) are registered only in destructive mode;sutramx_update_status_page refuses slug and is_public changes (publishing, unpublishing or moving a page) and any change to a page that is public (title, logo, colours and the rest are visible to everyone), sutramx_create_status_page creates pages not public, and sutramx_add_incident_note refuses public: true (status page updates) outside destructive mode.Notes:
true, 1, yes and on (any case) turn a setting on; anything else leaves it off. No tool argument can change them.SUTRAMX_READ_ONLY=true on the server makes every request read-only whatever the headers say, and X-SutramX-Read-Only: true narrows one client. SUTRAMX_ALLOW_DESTRUCTIVE=true on the server enables destructive mode for every request that is not read-only. X-SutramX-Allow-Destructive: true is ignored unless the operator also set SUTRAMX_HTTP_ALLOW_DESTRUCTIVE_HEADER=true.Tools that change data are rate limited per session (stdio: the process; HTTP: the API key): at most SUTRAMX_MAX_WRITES_PER_MINUTE (default 20) and SUTRAMX_MAX_WRITES_PER_HOUR (default 200) changes, and outside destructive mode at most SUTRAMX_MAX_PAUSES_PER_HOUR (default 10) monitor pauses. Over the limit the tool answers with an error telling the agent to involve the user; the API's own per-key limits apply on top.
In SutramX, open Settings → API keys → Create API key. Keys start with sk_ and are shown once.
Recommended for agents: a Read-only key. It can call every "no" tool above, and the SutramX API itself refuses every change it attempts (403 READ_ONLY_ACCESS), so a leaked key or a prompt-injected agent cannot create, pause, acknowledge, resolve or delete anything. This holds even if the server's own read-only mode is off; combine both (SUTRAMX_READ_ONLY=true hides the write tools from the agent as well). Use a Standard key only for an agent that really needs to change things; it is enough for every tool above.
cd mcp-server
npm install npm run build
Node.js 20 or newer is required.
claude mcp add sutramx \
--env SUTRAMX_API_KEY=sk_your_key \ -- node /absolute/path/to/mcp-server/dist/index.js
Or add it to .mcp.json in a project:
{
"mcpServers": { "sutramx": { "command": "node", "args": ["/absolute/path/to/mcp-server/dist/index.js"], "env": { "SUTRAMX_API_KEY": "sk_your_key" } } } }
Edit claude_desktop_config.json (macOS: ~/Library/Application Support/Claude/claude_desktop_config.json, Windows: %APPDATA%\Claude\claude_desktop_config.json):
{
"mcpServers": { "sutramx": { "command": "node", "args": ["/absolute/path/to/mcp-server/dist/index.js"], "env": { "SUTRAMX_API_KEY": "sk_your_key" } } } }
Restart Claude Desktop. Try: "Which SutramX monitors are down right now, and since when?"
PORT=3333 node dist/index.js --http
The endpoint is POST http://127.0.0.1:3333/mcp (stateless, JSON responses). Every request must send its own SutramX key:
Authorization: Bearer sk_your_key
so one server can serve several users and workspaces. Each key only ever reaches its own workspace. Connect Claude Code to it with:
claude mcp add --transport http sutramx http://127.0.0.1:3333/mcp \
--header "Authorization: Bearer sk_your_key"
When the server listens on loopback (the default, HOST=127.0.0.1), SUTRAMX_API_KEY is used for requests that send no Authorization header (a header that is not a SutramX key is rejected with 401). Browser requests (any request with an Origin header, localhost pages included) are refused unless that origin is listed in MCP_ALLOWED_ORIGINS, so a local dev server or other localhost web app cannot use your key. To use a browser-based client such as the MCP Inspector, list its origin, e.g. MCP_ALLOWED_ORIGINS=http://localhost:6274. The environment key is only lent to requests without an Origin or from an origin listed by name (a * entry admits browsers that send their own key, never the environment key). With any other HOST the environment key is ignored, and you should put the server behind HTTPS. Set MCP_ALLOWED_HOSTS (comma-separated host names) to keep DNS-rebinding protection when binding to 0.0.0.0. GET /health returns the server version.
The hosted server at https://api.sutramx.com/mcp also accepts OAuth 2.1, so clients that cannot store an API key (for example a Claude.ai custom connector) only need the URL. On the first request without credentials the server answers 401 with WWW-Authenticate: Bearer resource_metadata="https://api.sutramx.com/.well-known/oauth-protected-resource/mcp"; the client registers itself (dynamic client registration), sends you to SutramX to approve, and gets an access token (PKCE S256, resource indicator https://api.sutramx.com/mcp).
On the consent page you pick the workspace and the permissions: monitors:read, incidents:read, status_pages:read (on by default) and monitors:write, incidents:write, status_pages:write (off unless you tick them; workspace viewers can only grant read). A token without a write scope gets only the read tools. Destructive tools (deletes, publishing, slug changes, replacing a status page's monitors) stay off on the hosted server; only the server operator can enable them (SUTRAMX_ALLOW_DESTRUCTIVE). OAuth tokens can never manage API keys, team members, billing, SSO or account settings. Access tokens last one hour and are refreshed automatically; revoke an app any time in SutramX → Settings → Authorized apps.
Self-hosting the HTTP server with OAuth: set MCP_RESOURCE_URL to the public URL of your /mcp endpoint and MCP_AUTHORIZATION_SERVER to your SutramX API, and serve /.well-known/oauth-protected-resource* from this server. Set OAUTH_RESOURCE_PROXY_SECRET (at least 16 characters, the value your API expects) so OAuth tokens reach the API with their resource proof. With NODE_ENV=production (the Docker image's default) the HTTP server refuses to start when that secret is missing or shorter than 16 characters, instead of silently sending tokens without it. A server that should accept API keys only sets MCP_OAUTH=off: no protected-resource metadata is served and OAuth access tokens are refused. stdio mode is not affected.
| Variable | Default | Purpose |
|---|---|---|
SUTRAMX_API_KEY | (required for stdio) | Workspace API key |
| SUTRAMX_API_URL | https://api.sutramx.com | API base URL (self-hosted or staging); set by the operator only, never taken from a request or tool argu
只显示了开头部分;其余内容请在仓库中阅读