talkops-opentelemetry-mcp-server

v0.2.1
talkops-opentelemetry-mcp-server Checked 16 hours ago Published 13 days ago

A 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.

ParameterTypeDescription
detailstringDetail level: 'summary' (compact metadata) or 'full' (includes redacted collector YAML and service endpoint health)
includeOptional sections to include: 'operator', 'collectors', 'instrumentations', 'target_allocators', 'opamp_bridges', 'ebpf_agents', 'backends' (all included if omitted)
namespacesOptional 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'.

ParameterTypeDescription
cursorPagination cursor from previous response
kindsWorkload kinds to scan: 'Deployment', 'StatefulSet', 'DaemonSet' (all three if omitted)
namespacestringKubernetes namespace to scan
page_sizeintegerItems per page (default 50, max 200)
statestringFilter 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.

ParameterTypeDescription
namespace *stringWorkload namespace
workload_name *stringWorkload name
workload_kindstringWorkload 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.

ParameterTypeDescription
name *stringCollector CRD name
namespace *stringCollector namespace
includeOptional diagnostic sections to include: 'status', 'pods', 'service', 'events', 'logs', 'metrics', 'config_lint', 'target_allocator' (all included if omitted)
log_linesintegerNumber 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.

ParameterTypeDescription
checksOptional subset of check categories to run: 'pipeline', 'order', 'filelog', 'sampling', 'cardinality', 'security', 'deprecations', 'rbac' (all run if omitted)
config_yamlRaw OTel Collector YAML string to validate (optional if namespace+name provided)
nameCollector CRD name (when validating a live collector CR)
namespaceCollector namespace (when validating a live collector CR)
target_versionTarget 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.

ParameterTypeDescription
namespaceKubernetes namespace to scan (all namespaces if omitted)
scopeAudit scopes to evaluate: 'collectors', 'instrumentation', 'ebpf', 'rbac' (all four if omitted)