mcp.mbt
by colmugx·★ 2·Score 34
Type-safe MCP server implementation in MoonBit with dual transport support (STDIO/HTTP).
Overview
This is a complete MCP server implementation written in MoonBit, providing type safety through the language's static typing system. It supports all core MCP protocol features including tools, resources, and prompts with a clean API design. The server offers dual transport support (STDIO for Claude Desktop and HTTP with SSE streaming), making it versatile for different integration scenarios. While still experimental, the codebase includes thorough documentation with inline examples and 87+ unit tests.
Try asking AI
After installing, here are 5 things you can ask your AI assistant:
When to choose this
Choose this if you're developing in MoonBit and need a type-safe MCP server implementation with support for both STDIO and HTTP transports.
When NOT to choose this
Avoid this if you need production-ready features like structured logging, metrics collection, or authentication, as these are not yet implemented.
Tools this server exposes
5 tools extracted from the READMEEchoToolEchoes back the input text
CalculateToolCalculator with arithmetic operations
TransformTextToolText transformation (uppercase, lowercase, reverse, etc.)
AnalyzeTextToolText analysis (word count, character count, etc.)
GetTimestampToolGet current timestamp in various formats
Note: Tool names were extracted from the 'Examples' section, but detailed signatures weren't provided in the documentation
Comparable tools
Installation
moon add colmugx/mcpFor Claude Desktop integration, add to claude_desktop_config.json:
{
"mcpServers": {
"my-server": {
"command": "moon",
"args": ["run", "path/to/your_server.mbt"]
}
}
}To run the example server:
moon run @examples/cmd/mainFAQ
- What transports are supported?
- The server supports STDIO transport (for Claude Desktop) and HTTP transport with SSE streaming. WebSocket transport is planned but not yet implemented.
- Is this implementation production-ready?
- The project is currently marked as experimental with the API subject to change. While it includes comprehensive testing and core functionality, some advanced features like structured logging, metrics collection, and authentication are still pending.
Compare mcp.mbt with
Last updated · Auto-generated from public README + GitHub signals.