TowerWatch Ops Agent MCP Server

TowerWatch Ops Agent MCP Server

Exposes network-monitoring tools (query metrics, analyze windows, compare, logs, status, runbooks, speed tests) as an MCP server for agentic workflows. Designed with evaluation suites, cost-aware model routing, and semantic tool retrieval.

Category
访问服务器

README

TowerWatch Ops Agent

An agent layer over TowerWatch — the network-quality monitoring project — built to demonstrate the three capabilities an enterprise agent-engineering loop needs: evaluation suites, cost/latency-aware model choice, and tool retrieval. One repo, one coherent story:

"I took my public monitoring project and built the agent layer an enterprise would need around it: an instrumented MCP server with defined SLIs, an eval harness in CI that catches seeded regressions, a cost-aware model router, and semantic tool retrieval with measured selection precision."

At a glance

  • Runtime: Python 3 + FastMCP, managed with uv.
  • Domain: TowerWatch's network-monitoring data, exposed as agent tools.
  • Transport: stdio first; stateless streamable HTTP as a stretch goal.
  • Observability: OpenTelemetry from the first tool call, into a Prometheus/Grafana stack.
  • Tool surface: seven tools — query_metrics, analyze_window, compare, query_log_events, get_monitor_status, get_runbook, run_speedtest. Contracts in docs/design/.
  • Status: 🟡 Contracts locked, implementation not started — requirements, tool contracts, and decisions are committed; no code yet. See Status.

Why this project

It fills the gap between "I read about agent evaluation and routing" and "I built and measured it." Every artifact — eval tables, benchmark numbers, precision@k charts — is a number personally collected, not a claim from study. The domain is real data from a project the author already owns, so the story is "I extended my own production-style system," not "I did a tutorial."

The build runs under the author's own Agent Collaboration Principles: every phase's definition-of-done is a set of independently checkable artifacts — a command that runs, a file that exists, a dashboard that renders. No "trust me, it works."


The three phases

The project is one build in three strictly-sequenced phases. Full specs live in docs/specs/; the build plan is the index. Requirements were defined upfront in a planning process and built to as a contract — the specs came first, the tool contracts were derived from them, and the ADRs record every decision that shaped the surface.

Phase Ships Spec
1 Instrumented MCP server over TowerWatch data + defined SLIs + cross-model cost/latency bench spec-phase1-mcp-server.md
2 Golden-set + rubric eval harness in CI that catches a seeded regression spec-phase2-eval-harness.md
3 Cost-aware model router + semantic tool retrieval with measured selection precision spec-phase3-router-and-retrieval.md
Cross-cutting Agent-facing docs, in-repo skills, ADRs, and a measured onboarding eval — incremental alongside the phases, never blocking spec-ai-native-repo-layer.md

Sequence is strict: Phase 2's evals score Phase 3's router. Don't reorder. The cross-cutting layer is the exception — it lands incrementally and gates nothing.


Repository layout

towerwatch-ops-agent/
├── README.md                       # this file — human-facing
├── CLAUDE.md                       # agent-facing anchor (read first if you're an agent)
├── pyproject.toml                  # PEP 621 single source of truth — deps, tooling config
├── docs/
│   ├── architecture.md             # intended shape (stub — not built yet)
│   ├── specs/                      # the governing build plan + 4 requirement specs
│   ├── design/                     # locked tool contracts (00–09) — authoritative
│   ├── adr/                        # architecture decision records
│   └── production-path.md          # personal-scale choices vs. enterprise needs
├── src/towerwatch_ops_agent/       # package (marker only this pass)
└── tests/                          # pytest suite (marker only this pass)

Quick start

Nothing runs yet — this is a scaffold. These are the intended mechanics once Phase 1 lands, recorded here so the toolchain is unambiguous.

# From repo root. uv manages the environment and lockfile.
uv sync                            # create .venv, install deps from pyproject.toml
uv run python -m towerwatch_ops_agent   # (Phase 1) launch the MCP server over stdio

Testing the server interactively (Phase 1) uses the MCP Inspector:

npx @modelcontextprotocol/inspector uv run python -m towerwatch_ops_agent

Status

🟡 Contracts locked, implementation not started. Requirements, tool contracts, and decisions are complete and committed; no code has been written yet. Present:

  • [x] Directory skeleton, pyproject.toml, .gitignore, MIT license
  • [x] README, CLAUDE.md (with binding invariants), architecture stub
  • [x] The build plan and all four requirement specs in docs/specs/
  • [x] Locked tool contractsdocs/design/ 00–09: conventions, seven tool docs, skills interfaces, span schema
  • [x] Fixture manifest + eval design10-fixture-manifest.md (curated-export model, provenance, frozen clock, answer key) and 11-eval-design.md (positive-control pairing, answer-key timing)
  • [x] ADRsdocs/adr/, the decisions behind the tool surface
  • [x] PR template requesting verification receipts

Deferred (not yet built — see CLAUDE.md for the phase gates):

  • [ ] Phase 1 — MCP server, tools, SLIs, cross-model bench
  • [ ] Phase 2 — eval harness + CI + seeded-regression showpiece
  • [ ] Phase 3 — model router + semantic tool retrieval
  • [ ] Curated fixture corpus — the deterministic data behind tests and evals
  • [ ] In-repo skills under .claude/skills/diagnose-rca, evidence-pack, plus the golden-path skills (add-tool, run-evals) created when first walked manually
  • [ ] Measured onboarding eval (docs/onboarding-eval.md) — first run after Phase 1
  • [ ] def_tokens.md — the tool-def token budget measurement (lands with Phase 1)
  • [ ] CI workflow (.github/workflows/) — lands with Phase 1, when there's code to lint

For AI assistants

If you're an agent working in this repo, read CLAUDE.md first. It carries the phase sequence, the stateless-gates working standard, and — important while the repo is a scaffold — an explicit map of what exists versus what is still a stub, so you don't reason about code that isn't there yet.

推荐服务器

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 模型以安全和受控的方式获取实时的网络信息。

官方
精选