mcp-server
v1.0.8MCP server for Drift Workbench - network diagnostics (speed test, DNS ranking, bufferbloat, WiFi) as AI coding agent tools
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
measure_speed
Run a network speed test — measures download throughput with 1 or more parallel streams. Use 'boost' mode to see baseline vs multi-stream gain.
| Parameter | Type | Description |
|---|---|---|
mode | string | baseline=1 stream, turbo=N streams, boost=both+gain% |
seconds | integer | Test duration in seconds |
streams | integer | Number of parallel TCP streams (turbo/boost only) |
dns_ranking
Rank public DNS resolvers (Cloudflare 1.1.1.1, Google 8.8.8.8, Quad9 9.9.9.9) by median latency — finds the fastest resolver for your location.
bufferbloat
Measure bufferbloat — how much your latency increases under network load. Grades A+ (excellent) to F (severe). High bufferbloat means web pages lag and video calls stutter when you're downloading.
| Parameter | Type | Description |
|---|---|---|
seconds | integer | Test duration in seconds |
streams | integer | Parallel download streams to load the connection |
full_diagnostics
Run the full Drift Workbench diagnostic suite: speed test (baseline+boost), DNS ranking, bufferbloat grade, and TCP tuning notes in one shot.
| Parameter | Type | Description |
|---|---|---|
seconds | integer | Test duration per phase |
streams | integer | Parallel streams for turbo/boost |
boost
Run baseline + turbo parallel-stream speed test and compute the gain percentage — shows how much headroom your connection has under contention. Higher gain = more room to improve with multi-stream downloads.
| Parameter | Type | Description |
|---|---|---|
seconds | integer | Test duration per phase in seconds |
streams | integer | Number of parallel TCP streams for the turbo phase |
upload_speed
Measure upload speed to a remote server in Mbps. Useful for checking if your ISP delivers the advertised upload rate.
| Parameter | Type | Description |
|---|---|---|
seconds | integer | Test duration in seconds |
packet_loss
Measure packet loss percentage. High packet loss causes retransmissions that slow down every connection — checked by pinging a remote server.
| Parameter | Type | Description |
|---|---|---|
count | integer | Number of ping probes |
jitter
Measure network jitter — the variance in packet arrival times. High jitter causes stuttering in video calls and online games.
| Parameter | Type | Description |
|---|---|---|
count | integer | Number of ping samples |
wifi_info
Get current WiFi diagnostics: signal strength (RSSI), noise level, channel, and other wireless interface data from system profiler.
download_file
Accelerated file download using multi-stream chunking — splits a ranged HTTP resource into N parallel byte-range chunks for faster transfers.
| Parameter | Type | Description |
|---|---|---|
url * | string | URL of the file to download |
output | string | Output filename (default: derived from URL) |
streams | integer | Number of parallel download streams |
eco_bloat
Quick eco-friendly bufferbloat estimate using only ~100 KB of data. Less accurate than the full test but uses negligible bandwidth.
diagnostic_summary
Quick network health overview — runs a baseline speed test, DNS ranking, and eco-bufferbloat estimate together. A minimal all-in-one check.
strict_limit
Enforce a system-wide download ceiling in Mbps for N seconds — kernel-level (dnctl+pf, macOS), shapes ALL apps and devices on this machine's pipe, not just test traffic. Loopback is never shaped. REQUIRES the MCP server to run as root (sudo); otherwise fails with the engine's sudo instructions.
| Parameter | Type | Description |
|---|---|---|
mbps * | number | Ceiling in Mbps (0.5-10000, nothing may exceed it) |
seconds | integer | Hold duration in seconds (5-150; capped so the call finishes inside the tool timeout) |
parallel_diagnostics
Run multiple independent network tests (speed, DNS, bloat, WiFi) CONCURRENTLY in a single tool call. Faster than running them one by one. Returns results from all tests.
| Parameter | Type | Description |
|---|---|---|
includeEcoBloat | boolean | Include lightweight eco-bufferbloat estimate |
includeWifi | boolean | Also fetch WiFi info (RSSI/noise/channel) |
speedSeconds | integer | Duration for the speed test phase |
speedStreams | integer | Streams for turbo/boost speed test |
ai_analyze
Run an AI-assisted diagnosis over measurements you already have. Pass `analysis` (see list_analyses) and `input` (JSON object of the measurements), or `history_path` to replay a saved JSON history file (`netmax-history-*.json` in the Drift Workbench history directory — the engine rejects any other path). Analysis only: it never runs a measurement or changes your system.
| Parameter | Type | Description |
|---|---|---|
analysis * | string | analyser name, e.g. root_cause |
history_path | string | JSON history file (netmax-history-*.json) in the Drift Workbench history directory |
input | string | JSON object of measurements |
pretty | boolean |
list_analyses
List the AI analyses ai_analyze can run, with the module and method each one dispatches to.
session_info
Show how long the MCP server has been running and how many tools have been called this session. Server lifetime equals the DSH session lifetime.
policy_bound_workflow
Execute a named policy-bound workflow: a fixed, envelope-checked sequence of measurements. Available workflows: network_baseline, dns_audit.
| Parameter | Type | Description |
|---|---|---|
workflow_name * | string | Name of the registered workflow to execute |
evidence_export
Export measurement records as a structured, redacted evidence bundle (JSON). Pass an array of record IDs (rec-<index> over the canonical history) to include.
| Parameter | Type | Description |
|---|---|---|
records * | array | Array of measurement record IDs to export (rec-<index>) |
fleet_drift_workbench
Initialise a fleet drift baseline or trigger a peer check. Use 'init_baseline' to snapshot current peer metrics (20 probes), or 'trigger_check' to compare current state against the saved baseline. Drift is confirmed after 3 consecutive breaches (>20% latency rise or >1% probe failures). Probes only target peers in NETMAX_FLEET_ALLOWLIST.
| Parameter | Type | Description |
|---|---|---|
action * | string | Action to perform |
peer_alias * | string | Alias of the fleet peer to target (must be in NETMAX_FLEET_ALLOWLIST) |