Math Addition MCP Server
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., "@Math Addition MCP Servercalculate 123 + 456"
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.
Các phương pháp Kiểm thử (Testing)
Phương pháp 1: Debug độc lập bằng MCP Inspector (Khuyên dùng đầu tiên)
Sử dụng công cụ này để kiểm tra logic code và các gói tin JSON-RPC trên giao diện web độc lập trước khi gắn vào ứng dụng thật.
Cách sử dụng:
Chạy lệnh (tại thư mục chứa dự án):
npx @modelcontextprotocol/inspector npx tsx server.tsTruy cập http://localhost:5173 trên trình duyệt (nếu không hiện cửa sổ).
Bấm Connect, chuyển sang tab Tools và nhấp Execute Tool để chạy thử tính tổng.
Phương pháp 2: Kiểm thử với Claude Code (Giao diện CLI)
Thêm MCP server:
claude mcp add my-test-math-server -- npx tsx "C:/Đường/Dẫn/Tuyệt/Đối/server.ts"Kiểm tra trạng thái kết nối:
claude mcp list(Đảm bảo hiển thị Connected)
Bắt đầu test:
Mở chat với Claude Code và gõ:
"Hãy dùng công cụ tính tổng của bạn để tính 4521 + 5479"
Phương pháp 3: Kiểm thử với Claude Desktop (Giao diện App)
Thêm cấu hình vào file claude_desktop_config.json
File nằm ở:
Windows:
%APPDATA%\ClaudeMac:
~/Library/Application Support/Claude/
"mcpServers": {
"my-test-math-server": {
"command": "npx",
"args": [
"tsx",
"C:/Đường/Dẫn/Tuyệt/Đối/server.ts"
]
}
}Các bước thực hiện:
Thoát hẳn (Quit) và khởi động lại ứng dụng Claude Desktop
Tạo cuộc trò chuyện mới (New Chat)
Gõ vào ô chat:
"Tính tổng 1545 và 3423 bằng công cụ của bạn"
📝 Lưu ý quan trọng
Không dùng
console.log()trong luồng code thực thi chính. Nếu cần debug, hãy dùngconsole.error("log message")để tránh làm vỡ định dạng JSON-RPC trên luồng stdio.Luôn sử dụng đường dẫn tuyệt đối (Absolute Path) trỏ tới file
server.tskhi cấu hình.
This server cannot be installed
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Hng2725/MCPTestingWithClaude'
If you have feedback or need assistance with the MCP directory API, please join our Discord server