validate_quantconnect_auth
Verify QuantConnect authentication settings to ensure configuration integrity. Returns a dictionary with validation results for secure trading strategy execution.
Instructions
Validate current QuantConnect authentication configuration.
Returns: Dictionary containing authentication validation results
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- The handler function that implements the core logic of the 'validate_quantconnect_auth' tool. It retrieves the auth instance, calls validate_authentication on it, and returns the validation status.@mcp.tool() async def validate_quantconnect_auth() -> Dict[str, Any]: """ Validate current QuantConnect authentication configuration. Returns: Dictionary containing authentication validation results """ try: auth = get_auth_instance() if auth is None: return { "status": "error", "error": "Authentication not configured", "message": "Use configure_quantconnect_auth to set up credentials first", "authenticated": False, } # Validate authentication is_valid, message = await auth.validate_authentication() return { "status": "success" if is_valid else "error", "authenticated": is_valid, "message": message, "user_id": auth.user_id, "organization_id": auth.organization_id, "has_organization": auth.organization_id is not None, } except Exception as e: return { "status": "error", "error": str(e), "message": "Failed to validate authentication", "authenticated": False, }
- quantconnect_mcp/src/server.py:74-74 (registration)The call to register_auth_tools which registers the validate_quantconnect_auth tool (among others) to the MCP server instance.register_auth_tools(mcp)