clear_quantconnect_auth
Remove the current authentication configuration for QuantConnect to reset or update access credentials securely.
Instructions
Clear current QuantConnect authentication configuration.
Returns: Dictionary containing operation status
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- The main handler function for the 'clear_quantconnect_auth' tool. It clears the global QuantConnectAuth instance by setting quantconnect_auth._auth_instance to None and returns a status dictionary.@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", }
- quantconnect_mcp/main.py:46-52 (registration)Registers all tool sets with the MCP server, including the auth_tools which contains the clear_quantconnect_auth handler via register_auth_tools(mcp). This is called during server initialization in the main entry point.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)