observability-mcp: Instructions file for Claude Code

CLAUDE.md

observability-mcp CLAUDE.md is an instructions file for Claude Code 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 for Claude Code

Written for Claude Code: the file is CLAUDE.md.

This is ThoTischner/observability-mcp's own configuration. It tells Claude Code how to work on observability-mcp itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything observability-mcp configures →

Reuse

Borrowing it

Nothing to install: this file belongs to ThoTischner/observability-mcp. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/ThoTischner/observability-mcp/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/ThoTischner/observability-mcp

Made for: Claude Code.

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/github.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/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for observability-mcp CLAUDE.md

Your own site · 80×15
<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="Reviewed on agentmods" width="80" 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. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.01961 $0.01961
Opus 5.5 $0.00784 $0.00784
Sonnet 5.5 $0.00392 $0.00392
Haiku 4.5 $0.00196 $0.00196

Measured 10d ago against content hash 97fdfad305fc, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 10d 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:22-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. 10d ago Changed 97fdfad305fc
  2. 2mo 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 (7 stars, last pushed 3d ago), licensed Apache-2.0. It adds 1,961 tokens to every session, about $0.0078 per session on Opus 5.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.

Related

observability-mcp CLAUDE.md compared with instructions from other repositories

observability-mcp CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
observability-mcp CLAUDE.mdThoTischner/observability-mcpInstructions file73d agoApache-2.0A1,961Claude Code
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode