This project provides a blueprint for building MCP servers and clients that communicate using Server-Sent Events (SSE), allowing agents to connect to, use, and disconnect from tools as needed. This decoupled architecture, in contrast to STDIO-based patterns, better fits cloud-native use cases where the client does not need to spawn the server as a subprocess. The included example showcases a weather service server and a client that interacts with it, demonstrating the implementation and usage of this SSE-based pattern.
Key Features
01Demonstrates SSE-based MCP server implementation.
02Provides an example MCP client for interacting with the SSE server.
03Supports tool usage by agents via SSE.
04Offers a decoupled architecture suitable for cloud-native environments.