Skip to main content
Glama

clear_quantconnect_auth

Remove authentication credentials for the QuantConnect trading platform to reset access or switch accounts.

Instructions

Clear current QuantConnect authentication configuration.

Returns: Dictionary containing operation status

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Handler function for the 'clear_quantconnect_auth' MCP tool. Decorated with @mcp.tool() inside register_auth_tools, clears the authentication instance by setting quantconnect_auth._auth_instance to None.
    @mcp.tool()
    async def clear_quantconnect_auth() -> Dict[str, Any]:
        """
        Clear current QuantConnect authentication configuration.
    
        Returns:
            Dictionary containing operation status
        """
        try:
            from ..auth import quantconnect_auth  # type: ignore
    
            # Clear the auth instance
            quantconnect_auth._auth_instance = None
    
            return {
                "status": "success",
                "message": "QuantConnect authentication cleared successfully",
                "authenticated": False,
            }
    
        except Exception as e:
            return {
                "status": "error",
                "error": str(e),
                "message": "Failed to clear authentication",
            }
  • Registration of auth tools module in the main entry point by calling register_auth_tools(mcp), which defines and registers the clear_quantconnect_auth tool.
    safe_print("🔧 Registering QuantConnect tools...")
    register_auth_tools(mcp)
    register_project_tools(mcp)
    register_file_tools(mcp)
    register_backtest_tools(mcp)
    register_live_tools(mcp)
    register_optimization_tools(mcp)

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/taylorwilsdon/quantconnect-mcp'

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