Skip to content

Add Network Logs tools to dart_mcp_server #269

@davidmigloz

Description

@davidmigloz

The Dart MCP server doesn’t currently expose network logs from the connected app, which makes it hard for agents to debug network traffic. It'd be great to have a network.* tool family that enables/reads network traffic, similar to the Network View tool.

Use cases

  • Agent debugging of network failures: Let AI agents diagnose “why did this request fail?” without switching contexts.
  • Reproducible bug reports: Export a sharable HAR.
  • Performance analysis: Let AI agents measure latency, payload sizes, and headers over time to spot regressions or bottlenecks.
  • etc.

Proposed tools

  • network.start_capture: Enable HTTP timeline logging.
  • network.get_logs: Fetch recent HTTP requests with filters and (optionally) bodies.
    • since
    • limit
    • filters: { urlContains, method, statusMin, statusMax, failedOnly }
    • includeBodies (default: false)
  • network.dump_har: Return a HAR snapshot for easy sharing/analysis.
  • network.clear: Clear profiler buffers.
  • network.stop_capture: Disable HTTP timeline logging.

Inspiration

Open questions

  • How to make these tools seamlessly work in non-web (Dart VM service) and web (Chrome DevTools) apps?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions