talkops-opentelemetry-mcp-server
v0.2.1A Model Context Protocol (MCP) server for OpenTelemetry Kubernetes observability.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
otel_survey_cluster Survey Cluster OpenTelemetry Topology
Survey the cluster's complete OpenTelemetry posture in a single call. Aggregates OpenTelemetry Operator health, OpenTelemetryCollector CRs, Instrumentation CRs, TargetAllocator CRs, OpAMPBridge CRs (read-only), eBPF/OBI agents, and backend observability services (Jaeger, Tempo, Prometheus, VictoriaMetrics, Mimir, Loki, OpenSearch), along with structured diagnostic findings.
| Parameter | Type | Description |
|---|---|---|
detail | string | Detail level: 'summary' (compact metadata) or 'full' (includes redacted collector YAML and service endpoint health) |
include | Optional sections to include: 'operator', 'collectors', 'instrumentations', 'target_allocators', 'opamp_bridges', 'ebpf_agents', 'backends' (all included if omitted) | |
namespaces | Optional list of Kubernetes namespaces to scope the survey (surveys all namespaces if omitted) |
otel_list_workloads List Workloads & Instrumentation Status
List Kubernetes workloads and their OpenTelemetry instrumentation state. Scans Deployments, StatefulSets, and DaemonSets in the target namespace, detects programming language, auto-instrumentation annotations, injected initContainers, conflicting OTEL_* env vars, and classifies each workload as 'instrumented', 'uninstrumented', or 'broken'.
| Parameter | Type | Description |
|---|---|---|
cursor | Pagination cursor from previous response | |
kinds | Workload kinds to scan: 'Deployment', 'StatefulSet', 'DaemonSet' (all three if omitted) | |
namespace | string | Kubernetes namespace to scan |
page_size | integer | Items per page (default 50, max 200) |
state | string | Filter workloads by instrumentation state: 'any', 'instrumented', 'uninstrumented', or 'broken' |
otel_query_a2ui OpenTelemetry A2UI Pipelines
Retrieve the status of all OpenTelemetry Collectors and their pipelines. This tool aggregates collector configurations and deep pipeline metrics across the cluster and formats the result precisely for the frontend A2UI Status Datatable schema. Returns: - Dict[str, Any]: A JSON object matching the A2UI `kind: "otel"` schema (title, columns, rows). When NOT to use: - Do not use for general collector discovery or programmatic state checks; use `otel_survey_cluster` instead. - Do not use to patch or modify collector state. Side effects: - None — read-only operation. Common errors: - Kuberne…
otel_verify_instrumentation Verify Workload Auto-Instrumentation
Verify end-to-end auto-instrumentation for a workload in a single call. Correlates workload pod template annotations, Instrumentation CR existence in the namespace, live pod initContainers, injected OTEL_* env vars, pod creation timestamps vs. CR creation timestamps, and Operator webhook logs to explain whether and why instrumentation is working or failing.
| Parameter | Type | Description |
|---|---|---|
namespace * | string | Workload namespace |
workload_name * | string | Workload name |
workload_kind | string | Workload kind: 'Deployment', 'StatefulSet', or 'DaemonSet' |
otel_diagnose_collector Diagnose Collector Runtime & Pipeline Health
Perform a comprehensive single-call runtime and configuration diagnosis of a collector. Correlates OpenTelemetryCollector CR status, pod container states (OOMKilled, CrashLoopBackOff), Kubernetes Service endpoint readiness, namespace events, redacted pod logs (auth/TLS/DNS errors), internal Prometheus metrics (:8888/metrics), RBAC bindings, and configuration linter checks into prioritized Finding objects.
| Parameter | Type | Description |
|---|---|---|
name * | string | Collector CRD name |
namespace * | string | Collector namespace |
include | Optional diagnostic sections to include: 'status', 'pods', 'service', 'events', 'logs', 'metrics', 'config_lint', 'target_allocator' (all included if omitted) | |
log_lines | integer | Number of redacted pod log tail lines to analyze (default 50) |
otel_validate_collector_config Validate Collector Configuration
Validate a live OpenTelemetryCollector CR or raw YAML configuration. Runs all static configuration linter checks (referential integrity, processor ordering, double batching, exporter queues, filelog safety, tail_sampling trace affinity, spanmetrics cardinality, v0.123+ deprecations, GOMEMLIMIT, inline secrets) and correlates with live RBAC and Secret existence when a live collector is specified.
| Parameter | Type | Description |
|---|---|---|
checks | Optional subset of check categories to run: 'pipeline', 'order', 'filelog', 'sampling', 'cardinality', 'security', 'deprecations', 'rbac' (all run if omitted) | |
config_yaml | Raw OTel Collector YAML string to validate (optional if namespace+name provided) | |
name | Collector CRD name (when validating a live collector CR) | |
namespace | Collector namespace (when validating a live collector CR) | |
target_version | Target Collector version for deprecation checks (e.g., '0.152.1') |
otel_audit_security_posture Audit Observability Security Posture
Audit the security posture of OpenTelemetry collectors, instrumentation, eBPF/OBI agents, and RBAC. Detects inline plaintext secrets, insecure exporters, TLS skip-verify, privileged eBPF pods, SYS_ADMIN capability usage, hostPID usage, writable /var/log hostPath mounts, root container execution, and wildcard RBAC rules.
| Parameter | Type | Description |
|---|---|---|
namespace | Kubernetes namespace to scan (all namespaces if omitted) | |
scope | Audit scopes to evaluate: 'collectors', 'instrumentation', 'ebpf', 'rbac' (all four if omitted) |