get_auth_status
Retrieve authentication status and configuration details to verify user access and system settings on QuantConnect MCP Server for trading strategy orchestration.
Instructions
Get current authentication status and configuration.
Returns: Dictionary containing authentication status information
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- The core handler function for the 'get_auth_status' tool. It checks the current authentication instance and returns status information including whether auth is configured, user details, and setup instructions if not.@mcp.tool() async def get_auth_status() -> Dict[str, Any]: """ Get current authentication status and configuration. Returns: Dictionary containing authentication status information """ try: auth = get_auth_instance() if auth is None: return { "status": "not_configured", "authenticated": False, "message": "QuantConnect authentication not configured", "required_credentials": [ "user_id - Your QuantConnect user ID", "api_token - Your QuantConnect API token", "organization_id - Your organization ID (optional)", ], "setup_instructions": "Use configure_quantconnect_auth tool to set up credentials", } return { "status": "configured", "user_id": auth.user_id, "organization_id": auth.organization_id, "has_organization": auth.organization_id is not None, "api_base_url": auth.base_url, "message": "Authentication configured - use validate_quantconnect_auth to test", } except Exception as e: return { "status": "error", "error": str(e), "message": "Failed to get authentication status", }
- quantconnect_mcp/src/server.py:74-74 (registration)Registration call that invokes register_auth_tools(mcp), which defines and registers the get_auth_status tool among other auth tools.register_auth_tools(mcp)
- quantconnect_mcp/main.py:47-47 (registration)Additional registration call in the main entrypoint that registers the auth tools including get_auth_status.register_auth_tools(mcp)