observability-mcp CLAUDE.md

observability-mcp CLAUDE.md is an instructions file for coding agents from ThoTischner/observability-mcp. It costs 1,961 tokens per session, scanned A, original, Apache-2.0.

Development instructions for an observability system running in Docker. Observability means collecting metrics and logs to understand whether services are working and why they fail.

In plain words
What is it for?
Use them to start the demo stack, rebuild the MCP server, view agent or server logs, and investigate how metric or log anomalies relate to affected services.
Why use it?
They provide a repeatable setup for a demo environment and explain how its services, Kubernetes cluster, metrics, logs, and agent fit together. They also prevent running project dependencies directly on the host.

Instructions file

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/thotischner/observability-mcp/claude-md
Clone the repo
git clone --depth 1 https://github.com/ThoTischner/observability-mcp

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for observability-mcp CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/thotischner/observability-mcp/claude-md.svg)](https://agentmods.dev/instructions/thotischner/observability-mcp/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/thotischner/observability-mcp/claude-md"><img src="https://agentmods.dev/badge/instructions/thotischner/observability-mcp/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 1,961 This file is loaded in full into every session.
When invoked 1,961 The same file — it is already loaded in full.
Security scan A 1 finding. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.01961 $0.01961
Opus 5 $0.00981 $0.00981
Sonnet 5 $0.00392 $0.00392
Haiku 4.5 $0.00196 $0.00196

Measured 4d ago against content hash 01212d9d5109, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

observability-mcp CLAUDE.md scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -X POST http://localhost:8081/chaos/high-cpu
CLAUDE.md · 157 lines

How it starts

The opening of the file, as written. The whole thing — 157 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Observability-MCP Development Guide

Docker-First Development

This project is fully containerized. Never run npm install on the host machine.

Quick Start

docker compose --profile demo up --build

The demo stack brings up:

  • a single-node k3s cluster (rancher/k3s in a privileged container)
  • the three chaos-able example services (api-gateway, payment-service, order-service) as Kubernetes Deployments inside k3s (namespace omcp-demo)
  • Prometheus, Loki, Promtail (on the docker-compose side) scraping k3s NodePorts and pod logs
  • the MCP server with the kubernetes topology source pre-wired against k3s
  • the autonomous agent

The same Deployments that emit metrics and logs are what shows up in the topology graph — that is what lets the agent correlate a metric/log anomaly with the underlying host via get_blast_radius.

Without --profile demo, only mcp-server runs — for production deployments where Prometheus/Loki are managed elsewhere.

Rebuild a Single Service

docker-compose build mcp-server
docker-compose up -d mcp-server

View Logs

docker compose logs -f agent          # Agent detection loop
docker compose logs -f mcp-server     # MCP server

# Example services run inside k3s now — use kubectl to follow their logs:
docker exec observability-mcp-k3s-1 \
  kubectl -n omcp-demo logs -f deployment/payment-service

Run Unit Tests

docker run --rm -w /app -v "$(pwd)/mcp-server:/app" node:20-alpine \
  sh -c "npm install --silent && npx tsx --test src/analysis/*.test.ts"

Trigger Chaos (Demo)

curl -X POST http://localhost:8081/chaos/high-cpu
curl -X POST http://localhost:8081/chaos/error-spike
curl -X POST http://localhost:8081/chaos/slow-responses
curl -X POST http://localhost:8081/chaos/memory-leak
curl -X POST http://localhost:8081/chaos/reset

Chaos modes are correlated: error-spike also increases CPU + latency + error logs. Memory-leak generates OOM warnings.

Read the full file on GitHub · 157 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 157 lines · 1,961 tokens per session scan A 01212d9d5109

Subscribe to this mod's changes

observability-mcp CLAUDE.md is an instructions file published in the GitHub repository ThoTischner/observability-mcp (6 stars, last pushed 4d ago), licensed Apache-2.0. It adds 1,961 tokens to every session, about $0.0098 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.