Skip to main content
Glama

clear_session

Reset all tracked identifiers to start fresh with a new project or clear consistency tracking in the Pyrefly MCP server.

Instructions

Clear all tracked identifiers and start fresh.

Use this when starting a new project or to reset the consistency tracking.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The 'clear_session' tool is defined as an MCP tool and clears the session tracker.
    @mcp.tool()
    async def clear_session(context: Context | None = None) -> dict[str, str]:
        """
        Clear all tracked identifiers and start fresh.
    
        Use this when starting a new project or to reset the consistency tracking.
        """
        session_tracker.clear()
        return {"status": "cleared", "message": "Session tracking has been reset"}

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/kimasplund/mcp-pyrefly'

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