Skip to main content
Glama
heizaheiza

Charles MCP Server

by heizaheiza

reset_environment

Restore Charles Proxy's saved configuration to reset the environment for consistent network traffic analysis and debugging.

Instructions

Reset the Charles environment and restore the saved configuration.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The implementation of the reset_environment tool. It restores the configuration using the provided dependencies.
    async def reset_environment(ctx: ToolContext) -> str:
        """Reset the Charles environment and restore the saved configuration."""
        deps = get_tool_dependencies(ctx)
        await safe_ctx_log(ctx, "info", "Running manual environment reset...")
        try:
            await deps.restore_config_fn(deps.config)
            return "Environment reset completed"
        except Exception as exc:
            logger.error("Reset environment failed: %s", exc)
            return f"Reset failed: {exc}"
  • The function register_reset_tools registers reset_environment (along with other tools) with the FastMCP server.
    def register_reset_tools(mcp: FastMCP) -> None:

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