Choose a Transport Method
mainThe server supports three transport methods:
stdio(Default): Supports automatic project inference and switching as you move between Lean projects.streamable-http: HTTP streaming. RequiresLEAN_PROJECT_PATHat startup and does not support project switching.sse: Server-sent events (legacy). RequiresLEAN_PROJECT_PATHat startup.
Use the --transport flag to specify the method. For HTTP/SSE, you can also specify --host and --port.
uvx lean-lsp-mcp --transport stdio # Default transport
uvx lean-lsp-mcp --transport streamable-http # Available at http://127.0.0.1:8000/mcp
uvx lean-lsp-mcp --transport sse --host localhost --port 12345 # Available at http://localhost:12345/sse