observer-launch-mcp

observer-launch-mcp

Gives Claude live access to your Observe tenant, enabling natural language queries about errors, logs, and metrics without writing OPAL pipelines.

Category
访问服务器

README

observer-launch-mcp

Ask Claude questions about your Observe data -- recent errors, common failures, log volume by pod -- without writing OPAL by hand. This is an MCP server that gives Claude direct, live access to your Observe tenant.

Setup (2 steps)

1. Run the setup wizard. It asks for your Observe credentials and dataset aliases, then registers itself with Claude Code automatically:

npx @aryanbansal-launch/observer-launch-mcp init

You'll be asked for:

  • Observe customer ID -- a number, found in your Observe URL.
  • Observe API key -- create one at Manage account → My API tokens. (Not an ingest/datastream token -- those look similar but don't work here.)
  • Cluster -- e.g. eu-1. Leave blank if you're on the default US tenant.
  • Dataset aliases (optional) -- friendly names for datasets you'll ask about often, e.g. launch-management → 41249178. Find the ID in the Observe UI: open a dataset, it's in the URL. You can skip this and use raw dataset IDs instead, or add aliases later.

2. Restart Claude Code (or start a new session) so it picks up the new server. Confirm it worked:

Is the Observe connection working?

That's it -- the other tools below are now available in chat.

<details> <summary>Prefer to register it by hand instead of the wizard?</summary>

claude mcp add observe -s user \
  -e OBSERVE_CUSTOMER_ID=<your id> \
  -e OBSERVE_API_KEY=<your token> \
  -e OBSERVE_CLUSTER=eu-1 \
  -e OBSERVE_DATASETS='{"launch-management":"41249178"}' \
  -- node <path to installed server.js>

Run npx @aryanbansal-launch/observer-launch-mcp init once first if you just want that absolute path -- it prints the exact command it would run, right before running it. Use a direct node <path> command, not npx <package> as the final entry -- Claude Code spawns registered servers with a bare environment (no PATH), and npx's own shebang needs PATH to find node, so npx-as-command silently shows "Failed to connect." The wizard already avoids this for you. </details>

What you can ask

Once it's set up, just talk to Claude naturally:

  • "Is the Observe connection working?"
  • "What service/dataset aliases do I have configured?"
  • "Show me recent errors from launch-management in the last hour"
  • "What's our most common error in launch-nginx this week?"
  • "Which pods are logging the most in launch-management-bg right now?"
  • "How much stderr output is launch-nginx producing in the last 6 hours?"
  • "Count log lines per pod in launch-telemetry over the last hour"
  • "Pull the last 20 raw log lines from launch-logs-bg-exporter"

For anything not covered by a specific question shape, just describe what you want -- Claude will write the OPAL pipeline for you using the general query tool.

Tools reference

Tool Use for
observe_health_check "Is the connection working?"
list_known_services "What datasets/aliases do I have?"
get_service_errors Recent raw errors for one service, most recent first
get_error_summary Top recurring errors ranked by count -- fast even over days/weeks
get_log_stats Log counts grouped by pod/node/container/stream/namespace
run_opal_query Anything else -- arbitrary OPAL pipeline against any dataset

get_error_summary and get_log_stats aggregate server-side, so they stay fast regardless of the time window. get_service_errors and run_opal_query will add a warning if you query a 6h+ window without aggregating, since raw row dumps over a wide window risk Observe's 100k row cap.

Configuration reference

Variable Required Description
OBSERVE_CUSTOMER_ID yes Your Observe customer ID (numeric).
OBSERVE_API_KEY yes A bearer token from Manage account → My API tokens (or a service account token for long-lived use).
OBSERVE_CLUSTER no e.g. eu-1. Leave unset for the default (US) tenant.
OBSERVE_BASE_URL no Full override if your tenant doesn't follow the {id}.{cluster}.observeinc.com pattern.
OBSERVE_LOOKUP_TIMEOUT_SEC no Query timeout in seconds (default 300).
OBSERVE_DATASETS no Inline JSON mapping alias → dataset ID, e.g. {"logs":"41001999"}.
OBSERVE_DATASETS_FILE no Path to a JSON file with the same shape, for larger configs.

Dataset IDs are tenant-specific and intentionally not bundled with this package. Without any configured, alias lookups fall through and you can still pass raw numeric dataset IDs directly to any tool.

Troubleshooting

  • Health check fails → your API key is probably an ingest/datastream token, not one from Manage account → My API tokens. Regenerate it.
  • claude mcp list shows "Failed to connect" on a manually-registered entry → check the command is node <path>, not npx <package> (see the callout above).
  • A tool returns "Unknown service/dataset" → run list_known_services to see what's configured, or pass a raw numeric dataset ID instead.
  • get_service_errors/get_error_summary return nothing useful → these assume your logs have a JSON log column shaped like {"level":"error","message":"...","context":"..."}. If your schema differs, adjust the pipeline in src/run-server.ts.

Contributing

npm install
npm run build   # tsc, then chmod +x on the bin entry
npm publish      # only if you intend to ship a new version

Copy the get_error_summary/get_log_stats pattern in src/run-server.ts for other recurring OPAL queries (e.g. cost-by-service, latency percentiles) -- give the tool a descriptive name/description so Claude picks it over run_opal_query when appropriate.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选