# Microsoft's new Type Server Protocol lets tools query Python type analysis directly

Original title: Microsoft Announces Type Server Protocol, Extension of Language Server Protocol

> Hacker News story 50248371 · language: en · submitted 2026-10-26
> Web version: https://zeli.app/story/50248371
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 264 · by [adamnemecek](<https://news.ycombinator.com/user?id=adamnemecek>) · 💬 174
[original](<https://github.com/microsoft/pylance-release/blob/main/docs/tsp/type-server-protocol.md>) · [HN discussion](<https://news.ycombinator.com/item?id=50248371>)

## Summary

Microsoft has published the Type Server Protocol (TSP), a JSON-RPC protocol that lets clients ask a dedicated type server for Python analysis data: protocol version, snapshots, search paths, import resolution, and computed, declared, or expected types. It borrows LSP data shapes like Position and Range and uses a typeServer/ prefix. An optional multi-connection mode opens extra read-only channels for high-volume queries while the main connection keeps ownership of all state changes.

## Key quote

> Multi-connection mode is an optional performance feature. It lets a client open additional local channels to the same type server for read-only TSP requests, while the main connection continues to own the mutable workspace state.

## HN discussion (174 comments)

### [nikolatt](<https://news.ycombinator.com/item?id=50249708>)

> DetachHead (maintainer of basedpyright) has criticized the TSP before:
>
> \- https://docs.basedpyright.com/v1.40.2/type-server/
>
> \- https://github.com/microsoft/pylance-release/discussions/718...
>
> Ty (the type checker maintained by astral) however will apparently support the TSP: https://github.com/astral-sh/ruff/discussions/23432

### [anonymous908213](<https://news.ycombinator.com/item?id=50249007>)

> This should be called Python Type Server Protocol, no? Seems weird to mine the generic protocol namespace for a protocol that only supports Python. Especially coming from the company behind LSP, which actually is generic.

### [tobz1000](<https://news.ycombinator.com/item?id=50249909>)

> As someone with minimal knowledge of LSP specifics, I'm a bit confused about why this exists. Is it the case that LSP alone does not provide adequate functionality for Python type queries?

### [pipes](<https://news.ycombinator.com/item?id=50249859>)

> Can someone explain what this is to someone like me that doesn't know python very well, but programs a lot in c#?

### [PufPufPuf](<https://news.ycombinator.com/item?id=50252115>)

> I just use the Pyrefly extension in VSCode/Zed, run Pyrefly in the CI, and everything works well. The fragmentation around pyright/pylance/basedpyright/cursor-pyright etc. makes it pretty much unusable, you can't get consistent results across IDEs.

### [Tarean](<https://news.ycombinator.com/item?id=50249161>)

> So basically adding machine readable type-at-point queries as an lsp extension so Pylance and Pywright can be separated?
>
> The 'result types'format is super python specific, like not having a for all binder. I don't think this specific schema will be used for any non-python languages.

### [0cf8612b2e1e](<https://news.ycombinator.com/item?id=50249301>)

> It kept with UTF-16. New protocol is a chance to correct that poor decision.

### [dev_l1x_be](<https://news.ycombinator.com/item?id=50250533>)

> The primary reason i guess is standardizing the type checking, so you can bring your own (3rd party).

---

## Cite

- Page: https://zeli.app/story/50248371
- Date: 2026-10-26
- Source: github.com (https://github.com/microsoft/pylance-release/blob/main/docs/tsp/type-server-protocol.md)
- Hacker News: https://news.ycombinator.com/item?id=50248371

## Other languages

- zh: https://zeli.app/zh/story/50248371 · markdown: https://zeli.app/zh/story/50248371.md
- ja: https://zeli.app/ja/story/50248371 · markdown: https://zeli.app/ja/story/50248371.md
- ko: https://zeli.app/ko/story/50248371 · markdown: https://zeli.app/ko/story/50248371.md
- de: https://zeli.app/de/story/50248371 · markdown: https://zeli.app/de/story/50248371.md
- es: https://zeli.app/es/story/50248371 · markdown: https://zeli.app/es/story/50248371.md
- ru: https://zeli.app/ru/story/50248371 · markdown: https://zeli.app/ru/story/50248371.md
