istio-bug-report-analyzer-mcp
v0.6.1MCP 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
| Parameter | Type | Description |
|---|---|---|
context | string | Kubeconfig context to use |
exclude | string | Comma-separated namespaces to exclude |
istio_version | string | Istio version to download (e.g. '1.31.2'). Auto-detected from cluster if omitted. |
istioctl_path | string | Path to existing istioctl binary |
istioctl_source | string | Download source: 'oss' (istio.io) or 'solo' (Solo.io builds) |
namespaces | string | Comma-separated namespaces to include |
outputDir | string | Output 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.
| Parameter | Type | Description |
|---|---|---|
path * | string | Path to .tar.gz archive or pre-extracted directory |
extract_dir | string | Existing 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).
| Parameter | Type | Description |
|---|---|---|
code | string | Filter by IST code (e.g. IST0101) |
limit | number | Max findings to return (default 200) |
offset | number | Skip this many findings (for paging) |
severity | string | Filter 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.
| Parameter | Type | Description |
|---|---|---|
full | boolean | Return full objects (JSON) instead of summary table |
kind | string | Resource kind (e.g. VirtualService, Gateway, Pod) |
limit | number | Max resources per page (default 50) |
name | string | Resource name filter |
namespace | string | Namespace filter |
offset | number | Skip 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.
| Parameter | Type | Description |
|---|---|---|
namespace * | string | Pod namespace |
pod * | string | Pod name |
offset | number | Character offset to start from (for paging) |
section | string | Config 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.
| Parameter | Type | Description |
|---|---|---|
component * | string | Which component's logs to fetch |
keyword | string | Filter lines containing this keyword |
limit | number | Max output lines (default 500) |
namespace | string | Filter to namespace |
offset | number | Page forward from this matching line (0 = oldest) instead of returning the most recent lines |
pod | string | Filter to specific pod |
severity | string | Filter lines containing this severity (error, warn, info) |
tail | number | Return 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.
| Parameter | Type | Description |
|---|---|---|
endpoint * | string | Debug endpoint name (e.g. syncz, configz, mesh). Empty to list available. |
namespace | string | Istiod namespace (default: first found) |
offset | number | Character offset to start from (for paging) |
pod | string | Specific 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.
| Parameter | Type | Description |
|---|---|---|
categories | string | Comma-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.
| Parameter | Type | Description |
|---|---|---|
component | string | Component to scan (default: all) |
keyword | string | Filter to lines containing this keyword |
limit | number | Max patterns per page (default 50) |
offset | number | Skip 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.
| Parameter | Type | Description |
|---|---|---|
namespace | string | Only this namespace's rows and issues |
offset | number | Skip 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.
| Parameter | Type | Description |
|---|---|---|
offset | number | Skip 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.
| Parameter | Type | Description |
|---|---|---|
path * | string | Relative path within the archive (e.g. 'proxies/default/pod-name/istio-proxy.log') |
length | number | Max bytes to return (default and max 98000) |
offset | number | Byte offset to start reading from (default 0) |