from api_connection import post
from models import LeanVersionsResponse
def register_lean_version_tools(mcp):
# Read
@mcp.tool(
annotations={'title': 'Read LEAN versions', 'readOnlyHint': True}
)
async def read_lean_versions() -> LeanVersionsResponse:
"""Returns a list of LEAN versions with basic information for
each version.
"""
return await post('/lean/versions/read')
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/i-dream-of-ai/quantconnect-mcp-jwt'
If you have feedback or need assistance with the MCP directory API, please join our Discord server