Skip to main content
Glama
heizaheiza

Charles MCP Server

by heizaheiza

start_live_capture

Initiate a live network traffic capture session for incremental polling and debugging. Returns a capture ID required for subsequent live analysis tools. Use adopt_existing to take over ongoing Charles sessions without clearing data.

Instructions

Start or adopt a live capture session for incremental polling. Returns a capture_id required by all other live tools. Use adopt_existing=true to take over an ongoing Charles session without clearing it.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
reset_sessionNo
include_existingNo
adopt_existingNo

Implementation Reference

  • The handler for the start_live_capture tool, which triggers the live service start method.
    async def start_live_capture(
        ctx: ToolContext,
        reset_session: bool = True,
        include_existing: bool = False,
        adopt_existing: bool = False,
    ) -> LiveCaptureStartResult:
        """Start or adopt a live capture session for incremental polling.
        Returns a capture_id required by all other live tools.
        Use adopt_existing=true to take over an ongoing Charles session without clearing it."""
        deps = get_tool_dependencies(ctx)
        try:
            return await deps.live_service.start(
                reset_session=reset_session,
                include_existing=include_existing,
                adopt_existing=adopt_existing,
            )
        except Exception as exc:
            raise ValueError(str(exc)) from exc

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/heizaheiza/Charles-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server