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
| Name | Required | Description | Default |
|---|---|---|---|
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", }
- quantconnect_mcp/main.py:46-52 (registration)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)