HM

hosttracker/mcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

1 stars 0 forks 质量 83 趋势 13MIT

HostTracker MCP server: connect an AI assistant to your uptime monitoring. Client setup, tool catalogue, registry manifest.

概览

Connect an AI assistant to HostTracker over the Model Context Protocol and let it operate your monitoring account in conversation: run a live check from 300+ global locations, see what is down, create or pause a monitor, schedule a maintenance window, review incidents, manage who gets alerted, wire a webhook, publish a status page update. This repository is the public face of that hosted server: the connection metadata (server.json), the per-client setup guide (CLIENT.md), and the security policy (SECURITY.md) - and, since 2.0.0, the server's own source code in src/, so you can read exactly what runs behind the endpoint or run a copy yourself (see "Run it yourself" below). 1. https://mcp.host-tracker.com/mcp as a connector in your client. 2. The client opens HostTracker's sign-in page, then a consent card listing the permissions it asks for (by default: run checks + read monitors). Press Approve. No token ever appears. 3. "is example.com up right now, checked from Europe and Asia?

README

以下为原文 README 节选,完整内容请查看原文。

HostTracker MCP server

Connect an AI assistant to HostTracker over the Model Context Protocol and let it operate your monitoring account in conversation: run a live check from 300+ global locations, see what is down, create or pause a monitor, schedule a maintenance window, review incidents, manage who gets alerted, wire a webhook, publish a status page update.

Endpoint   https://mcp.host-tracker.com/mcp
Transport  streamable HTTP
Auth       OAuth 2.1 (sign in when your client asks) - or Authorization: Bearer 

This repository is the public face of that hosted server: the connection metadata (server.json), the per-client setup guide (CLIENT.md), and the security policy (SECURITY.md) - and, since 2.0.0, the server’s own source code in src/, so you can read exactly what runs behind the endpoint or run a copy yourself (see “Run it yourself” below).

Connect in two minutes

With OAuth (recommended - Claude.ai, Claude Desktop, Claude Code, ChatGPT and any client with an OAuth-capable connector dialog):

  1. Add the endpoint https://mcp.host-tracker.com/mcp as a connector in your client.
  2. Sign in and approve. The client opens HostTracker’s sign-in page, then a consent card listing the permissions it asks for (by default: run checks + read monitors). Press Approve. No token ever appears.
  3. Ask in plain language: “is example.com up right now, checked from Europe and Asia?”, “which of my monitors are down?”, “pause the staging monitor until tomorrow”.

Claude Code

With OAuth (no token needed):

claude mcp add --transport http hosttracker https://mcp.host-tracker.com/mcp
# then, inside Claude Code: /mcp -> hosttracker -> Authenticate (opens the sign-in + consent page)

Or with a bearer token in the header:

.mcp.json in your project (or ~/.claude.json for a user-wide connector):

{
  "mcpServers": {
    "hosttracker": {
      "type": "http",
      "url": "https://mcp.host-tracker.com/mcp",
      "headers": { "Authorization": "Bearer YOUR_HOSTTRACKER_API_TOKEN" }
    }
  }
}

Or from the command line:

claude mcp add --transport http hosttracker https://mcp.host-tracker.com/mcp \
  --header "Authorization: Bearer YOUR_HOSTTRACKER_API_TOKEN"

Claude.ai and Claude Desktop

在 GitHub 查看完整 README

安装

npx -y mcp-remote https://mcp.host-tracker.com/mcp --header Authorization:${HT_AUTH}
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "hosttracker": { "type": "http", "url": "https://mcp.host-tracker.com/mcp", "headers": { "Authorization": "Bearer YOUR_HOSTTRACKER_API_TOKEN" } } } }