Advanced Servers
In Chapter 3, you saw how you can build MCP servers. However, there’s another way to build these servers – namely, by using a more advanced approach. The reason for using this more advanced approach is that you want to be more in control.
In this chapter, you will learn how to do the following:
- Use context managers to manage the lifecycle of your server
- Improve the architecture of your server
- Understand low-level access to MCP servers
The chapter covers the following topics:
- Why this low-level approach?
- Context managers
- Context managers in MCP servers
- Low-level access
- Organizing your architecture