Wireshark Network Analysis - Model Context Protocol (MCP) Server for direct integration with Claude
Three tools are explicitly defined with schemas and descriptions in mcp_server.py. Tool naming is action-verb correct (capture_*, analyze_*, get_*). Descriptions are present and reasonably detailed (40-80 chars each). However, critical gaps limit this to a D grade: (1) Parameter descriptions exist but are minimal and lack enforcement hints (e.g., no mention of valid interface names, no constraint on duration/max_packets ranges). (2) Output schemas are partially documented inline but not formally specified in machine-readable form, descriptions say 'Returns Dict containing analysis results' but don't enumerate all returned fields or their types. (3) Error handling is present (file not found check in analyze_pcap, protocol enum validation) but lacks recovery guidance, errors return bare dicts without actionable next steps. (4) No tool annotations (readOnlyHint, destructiveHint, idempotentHint) despite all three being read-only operations. (5) Dependencies between tools not documented (e.g., 'analyze_pcap works with files generated by capture_live_traffic'). (6) No rate limiting, timeout specs, or operational constraints documented.
Analyze an existing pcap file
Capture live network traffic using tshark (Wireshark CLI)
Get a list of supported protocols for filtering
Output schemas not formally documented. Tools return Dict with fields that are only discoverable by reading the code. LLM cannot predict structure and must infer from examples.
Parameter constraints not specified in descriptions. No ranges for duration/max_packets, no guidance on interface names, no enum constraint for focus_protocols. Invites invalid LLM inputs.
Error messages lack recovery guidance. 'File not found: {file_path}' and 'Unknown protocol: {p}' tell the LLM an error occurred but not what to do next. Should suggest alternatives or next steps.
No tool annotations. All three tools are read-only (no side effects, retryable) but lack readOnlyHint annotation. Agents cannot infer safety from definition alone.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | D | 56 | <=2025-11-25 | v2 |
| 2026-03-09 | F | 40 | - | v1 |
Dependencies between tools not documented. No mention that analyze_pcap accepts capture_live_traffic output, or that get_protocol_list is useful before calling analyze_pcap with focus_protocols.
No operational constraints documented. No timeout specs, no max file size for pcap analysis, no guidance on resource consumption for long captures. Agents may inadvertently create runaway operations.
focus_protocols parameter in analyze_pcap uses Protocol enum under the hood but description says 'list of protocol names' without clarifying format (uppercase? case-insensitive matching?). Enum constraint should be explicit.
capture_live_traffic has external dependency (tshark command-line tool). No documentation of prerequisite or error guidance if tshark is not installed. subprocess.run will throw exception, not caught.