What is the difference between STDIO and SSE transports in MCP?
STDIO is used for local/command-line integration, while SSE is designed for web-based or network communication. Both use JSON-RPC 2.0 for message formatting.
@cnych
Basic information
claude mcp sse demo with server and client(cli、web)
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"mcp-sse-demo": {
"command": "npx",
"args": [
"@modelcontextprotocol/inspector"
]
}
}
}Tool list not available yet
This listing does not currently have a tool list to display. This does not mean the server has no tools; check its documentation for supported capabilities.
Fetch the live tool list by running this server in a temporary sandbox using the button above.
This project demonstrates how to build an MCP (Model Context Protocol) server using SSE (Server-Sent Events) for communication. It implements an intelligent mall service assistant that exposes product, inventory, and order management tools via SSE transport, allowing clients (e.g., web or CLI) to interact with LLMs through JSON-RPC 2.0 messages.
Set up an Express server with endpoints /sse (SSE connection) and /messages (client message handling). Use SSEServerTransport from the MCP SDK to manage SSE connections. Start the server on port 8083 (configurable via PORT environment variable). For clients, use SSEClientTransport to connect to the SSE endpoint, then list tools and integrate with an LLM (e.g., Anthropic Claude) to handle user queries.
getProducts, getInventory, getOrders, purchase/health) and graceful shutdownSTDIO is used for local/command-line integration, while SSE is designed for web-based or network communication. Both use JSON-RPC 2.0 for message formatting.
Node.js, Express, `@modelcontextprotocol/sdk` (for MCP and SSE transports), `zod` (for schema validation), and `cors`. The project uses TypeScript and ES modules.
Data (products, inventory, orders) is stored in-memory using simulated arrays. It is not persisted to a database; for production use, a database-backed microservice should replace the in-memory store.
The implementation uses mock data and is intended for demonstration or educational purposes. It does not handle authentication, authorization, or large-scale concurrent connections beyond simple in-memory state.
The Express server includes CORS support (configurable via the `ALLOWED_ORIGINS` environment variable). The README does not mention authentication mechanisms; the provided code accepts requests without authentication.
Senso MCP turns a Joomla 5 or 6 site into a remote MCP server. It runs inside Joomla itself (no extra server, no Node.js bridge) and is secured with OAuth 2.1 and Joomla's own ACL. The free pack lets an AI assistant crea
🚀 The fast, Pythonic way to build MCP servers and clients.
This open-source curriculum introduces the fundamentals of Model Context Protocol (MCP) through real-world, cross-language examples in .NET, Java, TypeScript, JavaScript, Rust and Python. Designed for developers, it focuses on practical techniques for building modular, scalable,
Painless E2E Automation for Mobile and Web
不止于 CSS
Comments