log_pilot_mcp 1.1.0
log_pilot_mcp: ^1.1.0 copied to clipboard
MCP (Model Context Protocol) server for log_pilot. Exposes runtime log state to AI coding agents in Cursor, Claude Code, Windsurf, and other MCP-compatible tools.
1.1.0 #
Added: write-uri Command #
log_pilot_mcp write-uri <ws://...>— write the VM service URI to.dart_tool/log_pilot_vm_service_urifrom the host machine. Bridges the gap for Android/iOS where the on-device app cannot write to the host filesystem. Supports--project-rootwhen cwd is not the project root.
Improved: Friendly Error Messages #
- Stale URI errors (e.g.
-32601 Unknown method "getVM") now surface actionable messages like "VM service not responding — the app may have restarted" instead of raw RPC error codes. - WebSocket/connection failures now explain "Cannot connect — is the Flutter app running in debug mode?" with the original error preserved.
- Isolate errors now suggest "try again in a moment" instead of exposing internal VM service state.
Improved: Windows Post-Activation Hint #
--helpon Windows now prints the exactLOCALAPPDATA\Pub\Cache\bin\ log_pilot_mcp.batpath that should be used inmcp.jsonwhen the executable is not on PATH.
Docs: README Restructure & Updates #
- CLI Reference now documents the
write-uricommand. - Android/iOS auto-discovery limitation documented in Quick Start, "When the App Restarts", and Troubleshooting sections.
- Troubleshooting table updated with friendlier error descriptions and an Android/iOS-specific row.
- Moved "Dart MCP vs LogPilot MCP" disambiguation table from the bottom to directly after "How It Works".
- Added "Recommended Debugging Workflow" (6-step guide).
- De-emphasized the dev-dependency Windows Cursor config.
- Added fragility warning to Flutter Web helper scripts.
- Recommended manual URI copy as the primary Flutter Web approach.
1.0.1 #
- Improved pub.dev score and documentation.
- Added Example: Full functioning example in
example/directory. - Improved Documentation: Added missing dartdoc comments for public API members (
LogPilotMcpServer,deduplicateRecords,lastEntryId,levelIndex,parseEntries). - Visuals: Added package banner and thumbnail via
screenshotsmetadata. - Bugfixes: Resolved secondary analyzer warnings in example code.
1.0.0 #
Initial stable release.
Added #
-
9 MCP tools for AI coding agents:
get_snapshot— structured diagnostic summary (errors, timers, config, recent logs, group-by-tag)query_logs— filter log history by level, tag, message substring, trace ID, error presence, metadata key; supports deduplicationexport_logs— full history as human-readable text or NDJSONexport_for_llm— compressed summary optimized for LLM context windowsset_log_level/get_log_level— read and change verbosity at runtimeclear_logs— wipe in-memory log historywatch_logs/stop_watch— stream new entries via MCP log notifications
-
3 MCP resources:
LogPilot://config— current LogPilot configurationLogPilot://session— session and trace IDsLogPilot://tail— latest batch from the active watcher (subscribable)
-
Auto-discovery of the VM service URI from
.dart_tool/log_pilot_vm_service_uri -
Auto-reconnect on hot restart, isolate recycle, and full app restart (file-watcher mode)
-
Exponential backoff retry (up to 3 attempts) on transient connection errors
-
Service-extension mode with automatic fallback to expression evaluation for older
log_pilotversions -
Input sanitization for safe eval interpolation (
_escapeForEval) -
--project-rootflag for reliable auto-discovery on Windows -
--vm-service-uri-fileflag for Flutter Web with a helper-script workflow -
--help/-hflag with full usage documentation -
Pure Dart — no Flutter SDK dependency; lighter install, faster startup
