3
Building and Testing Servers
In this chapter, we will cover the basics of building and testing servers. We will start with a simple server that uses the STDIO transport. The STDIO transport is a simple way to communicate with the server using standard input and output streams. Building STDIO servers is a great way to get started with the Model Context Protocol (MCP) and understand how it works. It should also be added that the STDIO transport is the most common way to communicate with the server, and it’s meant for servers running on your machine.
As part of the chapter, we will also cover different ways of testing the server. It’s important that what we build works as expected. We will cover different tools that can be used visually, in the ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access