Skip to main content
Glama
heizaheiza

Charles MCP Server

by heizaheiza

list_sessions

View historical network session files captured by Charles Proxy to analyze past traffic patterns and debugging data.

Instructions

List historical session files via the legacy tool name.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The list_sessions tool implementation, which lists historical session files.
    async def list_sessions(ctx: ToolContext) -> list[dict]:
        """List historical session files via the legacy tool name."""
        logger.info("Tool called: list_sessions()")
        deps = get_tool_dependencies(ctx)
    
        recordings = deps.history_service.list_recordings_result()
        if not recordings.items:
            return [{"message": "No recordings available"}]
        return [item.model_dump() for item in recordings.items]

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