Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MCP Playgroundadd 15 and 27 for me"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MCP Playground
MCP (Model Context Protocol) server với hỗ trợ cả hai phương thức transport:
Pure MCP SDK (Stdio) - Standard input/output transport
SSE Transport (Server-Sent Events) - HTTP-based transport
Tính năng
✅ Hỗ trợ Pure MCP SDK với Stdio transport
✅ Hỗ trợ SSE (Server-Sent Events) transport
✅ Các công cụ (tools) ví dụ: echo, add, get_time, generate_uuid
✅ Các tài nguyên (resources) ví dụ: server info, example data
✅ TypeScript với type safety đầy đủ
✅ Development mode với hot reload
Cài đặt
Sử dụng
1. Stdio Transport (Pure MCP SDK)
Chạy server với stdio transport:
Server sẽ giao tiếp qua stdin/stdout, phù hợp cho việc tích hợp với Claude Desktop hoặc các MCP clients khác.
Cấu hình cho Claude Desktop
Thêm vào file cấu hình Claude Desktop (claude_desktop_config.json):
Hoặc trong development mode:
2. SSE Transport (Server-Sent Events)
Chạy server với SSE transport:
Server sẽ chạy trên http://localhost:3000 với các endpoints:
GET /health- Health checkGET /sse- SSE connection endpointPOST /messages- Client message endpoint
Kết nối với SSE Client
Sử dụng MCP Client để kết nối:
API
Tools (Công cụ)
echo
Phản hồi lại tin nhắn được gửi.
Input:
Output:
add
Cộng hai số với nhau.
Input:
Output:
get_time
Trả về thời gian hiện tại của server.
Input:
Output:
generate_uuid (chỉ SSE)
Tạo UUID ngẫu nhiên.
Input:
Output:
Resources (Tài nguyên)
info://server
Thông tin về MCP server.
data://example
Dữ liệu JSON ví dụ.
stats://connections (chỉ SSE)
Thống kê kết nối.
Cấu trúc dự án
Development
Kiểm thử
Test Stdio Transport
Test SSE Transport
Tài liệu tham khảo
License
MIT