istio-bug-report-analyzer-mcp

v0.6.1
istio-bug-report-analyzer-mcp Checked 13 hours ago Published 26 days ago

MCP server to analyze istioctl bug-report archives

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

collect_bug_report

Run istioctl bug-report against the current cluster and load the results for analysis

ParameterTypeDescription
contextstringKubeconfig context to use
excludestringComma-separated namespaces to exclude
istio_versionstringIstio version to download (e.g. '1.31.2'). Auto-detected from cluster if omitted.
istioctl_pathstringPath to existing istioctl binary
istioctl_sourcestringDownload source: 'oss' (istio.io) or 'solo' (Solo.io builds)
namespacesstringComma-separated namespaces to include
outputDirstringOutput directory for the archive

load_bug_report

Load an existing istioctl bug-report archive (.tar.gz) or pre-extracted directory for analysis. Archives are extracted to a temporary directory after a free-space check; it is deleted when another report is loaded or the server exits. Gives a data-completeness verdict and warns up front, from file sizes, when a cluster dump will not fit in the server heap.

ParameterTypeDescription
path *stringPath to .tar.gz archive or pre-extracted directory
extract_dirstringExisting directory to extract a .tar.gz into (default: the system temp directory). Use a larger volume for big archives.

get_analyze_results

Get istioctl analyze results (IST codes) with a count per code. Filter by severity or code; results are paged (default 200).

ParameterTypeDescription
codestringFilter by IST code (e.g. IST0101)
limitnumberMax findings to return (default 200)
offsetnumberSkip this many findings (for paging)
severitystringFilter by severity

get_cluster_resources

Query Kubernetes resources from the bug report. Filter by kind, namespace, name. Paged with limit/offset; a page also stops before ~100,000 characters.

ParameterTypeDescription
fullbooleanReturn full objects (JSON) instead of summary table
kindstringResource kind (e.g. VirtualService, Gateway, Pod)
limitnumberMax resources per page (default 50)
namestringResource name filter
namespacestringNamespace filter
offsetnumberSkip this many matching resources (for paging)

get_proxy_config

Get Envoy proxy configuration for a specific pod. Sections: config_dump, listeners, clusters, certs, memory, server_info, stats. Output over ~100,000 characters is paged with offset.

ParameterTypeDescription
namespace *stringPod namespace
pod *stringPod name
offsetnumberCharacter offset to start from (for paging)
sectionstringConfig section (default: config_dump)

get_logs

Get logs from proxy, istiod, operator, or cni components. Supports severity/keyword filtering and tail. Returns the most recent lines unless offset is given; output stops before ~100,000 characters.

ParameterTypeDescription
component *stringWhich component's logs to fetch
keywordstringFilter lines containing this keyword
limitnumberMax output lines (default 500)
namespacestringFilter to namespace
offsetnumberPage forward from this matching line (0 = oldest) instead of returning the most recent lines
podstringFilter to specific pod
severitystringFilter lines containing this severity (error, warn, info)
tailnumberReturn only the last N lines

get_istiod_debug

Get data from istiod debug endpoints (syncz, configz, mesh, push_status, adsz, endpointz, etc.). Output over ~100,000 characters is paged with offset.

ParameterTypeDescription
endpoint *stringDebug endpoint name (e.g. syncz, configz, mesh). Empty to list available.
namespacestringIstiod namespace (default: first found)
offsetnumberCharacter offset to start from (for paging)
podstringSpecific istiod pod name

get_overview

Get a high-level overview of the loaded bug report: versions, pod counts (and proxy dirs with no live pod), analyze result summary, data-completeness verdict, and cluster dump size warnings

get_versions

Get the full version matrix (client, control plane, data plane) with skew detection

run_diagnostics

Run built-in diagnostic templates against the loaded bug report to find known issues. Output starts with the data-completeness verdict: findings that rely on missing data may be absent or wrong.

ParameterTypeDescription
categoriesstringComma-separated categories to check (e.g. 'version,config'). Omit for all.

find_errors

Scan all logs for error/warning lines and group them into patterns (volatile tokens such as timestamps, IPs, ids and durations normalized), with the number of pods per pattern. Errors rank before warnings, then by count; known noise (probe and metrics-scrape failures, etc.) is tagged and listed last. Patterns are paged with limit/offset.

ParameterTypeDescription
componentstringComponent to scan (default: all)
keywordstringFilter to lines containing this keyword
limitnumberMax patterns per page (default 50)
offsetnumberSkip this many patterns (for paging)

estimate_resource_savings

Estimate CPU/memory savings from sidecar-to-ambient migration, or analyze current mesh resource footprint. Reports per-namespace breakdown and optimization opportunities.

ambient_readiness_report

Sidecar-to-ambient readiness: the migration stage, a per-namespace table (pods by capture mode, waypoint, issue counts) and every blocker from the revision-hygiene and ambient checks (L7 policy ztunnel cannot enforce, VirtualService/DestinationRule/EnvoyFilter features with no waypoint, lost egress lockdown, unusable waypoints, ingress bypass, NetworkPolicy and install gaps), each with its fix, then a cutover checklist. Says what breaks; estimate_resource_savings says what is saved. Lists every issue; paged by report entry (one per issue line) with offset.

ParameterTypeDescription
namespacestringOnly this namespace's rows and issues
offsetnumberSkip this many report entries (for paging); the footer gives the next offset

list_files

List all files in the loaded bug report archive. Large archives are paged with offset.

ParameterTypeDescription
offsetnumberSkip this many files (for paging)

get_raw_file

Read a raw file from the bug report archive by its relative path. Files of any size are read by byte range: at most ~100,000 bytes per call, ending on a line boundary, with a footer giving the offset of the next range.

ParameterTypeDescription
path *stringRelative path within the archive (e.g. 'proxies/default/pod-name/istio-proxy.log')
lengthnumberMax bytes to return (default and max 98000)
offsetnumberByte offset to start reading from (default 0)