mcp-server

v1.0.8
@drift-workbench/mcp-server Checked 2 hours ago Published 1 month ago

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

ParameterTypeDescription
modestringbaseline=1 stream, turbo=N streams, boost=both+gain%
secondsintegerTest duration in seconds
streamsintegerNumber 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.

ParameterTypeDescription
secondsintegerTest duration in seconds
streamsintegerParallel 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.

ParameterTypeDescription
secondsintegerTest duration per phase
streamsintegerParallel 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.

ParameterTypeDescription
secondsintegerTest duration per phase in seconds
streamsintegerNumber 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.

ParameterTypeDescription
secondsintegerTest 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.

ParameterTypeDescription
countintegerNumber of ping probes

jitter

Measure network jitter — the variance in packet arrival times. High jitter causes stuttering in video calls and online games.

ParameterTypeDescription
countintegerNumber 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.

ParameterTypeDescription
url *stringURL of the file to download
outputstringOutput filename (default: derived from URL)
streamsintegerNumber 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.

ParameterTypeDescription
mbps *numberCeiling in Mbps (0.5-10000, nothing may exceed it)
secondsintegerHold 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.

ParameterTypeDescription
includeEcoBloatbooleanInclude lightweight eco-bufferbloat estimate
includeWifibooleanAlso fetch WiFi info (RSSI/noise/channel)
speedSecondsintegerDuration for the speed test phase
speedStreamsintegerStreams 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.

ParameterTypeDescription
analysis *stringanalyser name, e.g. root_cause
history_pathstringJSON history file (netmax-history-*.json) in the Drift Workbench history directory
inputstringJSON object of measurements
prettyboolean

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.

ParameterTypeDescription
workflow_name *stringName 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.

ParameterTypeDescription
records *arrayArray 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.

ParameterTypeDescription
action *stringAction to perform
peer_alias *stringAlias of the fleet peer to target (must be in NETMAX_FLEET_ALLOWLIST)