Calculator Learning Demo
Demonstrates the Model Context Protocol's deprecated HTTP + Server-Sent Events (SSE) transport for educational purposes.
关于
Serves as a reference implementation of an MCP server utilizing the deprecated HTTP + Server-Sent Events (SSE) transport, specifically designed for educational purposes. This example highlights the complexities and limitations of the classic two-endpoint communication pattern, contrasting it with modern alternatives. It includes an optional, configurable echo tool to help users understand basic Model Context Protocol tool registration and execution, alongside demonstrating asymmetric channels, ephemeral session state, and the lack of resumability inherent to this legacy approach.
主要功能
- Demonstrates legacy HTTP + SSE transport with asymmetric channels (GET for events, POST for commands)
- 0 GitHub stars
- Provides ephemeral, in-memory session state for each client connection
- Includes a basic calculator tool for arithmetic operations and related functions
- Exposes session-specific resources like calculation history and usage statistics
- Offers a configurable educational echo tool for learning MCP concepts
使用案例
- Learning and understanding deprecated Model Context Protocol transport mechanisms
- Examining the complexities and limitations of two-endpoint server communication patterns
- Educational example for why modern, single-endpoint transports are preferred