Microsoft Pylance Releases Type Server Protocol (TSP) Specification Document
The Microsoft pylance-release repository has published the Type Server Protocol (TSP) specification, a JSON-RPC-based protocol for querying Python analysis data from a type server, covering protocol version, snapshots, Python search paths, import resolution, and computed/declared/expected type queries. TSP reuses LSP data shapes such as Position and Range, with all methods uniformly using the typeServer/ prefix; the current version is 0.4.1, which adds multi-connection negotiation and the typeServer/connection control request. Multi-connection mode is an optional performance feature that requires both parties to negotiate typeServerMultiConnection in the LSP initialize and share an ipc transport; the server must still work properly in single-connection mode.