-
Book Overview & Buying
-
Table Of Contents
Learn Model Context Protocol with TypeScript
By :
So far, you’ve seen how you can build MCP servers using STDIO as transport. That’s a great choice of transport for servers meant to run locally. However, if you want to connect to servers remotely via HTTP or if you want responses from LLMs streamed, then there’s another transport called Server-Sent Events (SSE) better suited to this scenario.
SSE transport has been deprecated in favor of Streamable HTTP transport per May 2025. However, there are still more than 2000+ MCP servers built using SSE transport, so it’s important to keep that in mind should you encounter such servers in the wild and need to integrate or maintain them.
In this chapter, we’ll focus on building and testing MCP servers using SSE as transport.
The chapter covers the following topics:
Let’s dive...