MCP Catalogs
Home

mcp.mbt

by colmugx·2·Score 34

Type-safe MCP server implementation in MoonBit with dual transport support (STDIO/HTTP).

developer-toolsai-llmother
0
Forks
0
Open issues
3 mo ago
Last commit
2d ago
Indexed

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:

you:Building custom AI tools for Claude Desktop with MoonBit's type safety
you:Creating MCP servers that need to serve both desktop and web clients
you:Developing production-ready MCP servers with structured error handling
you:What transports are supported?
you:Is this implementation production-ready?

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 README
  • EchoTool

    Echoes back the input text

  • CalculateTool

    Calculator with arithmetic operations

  • TransformTextTool

    Text transformation (uppercase, lowercase, reverse, etc.)

  • AnalyzeTextTool

    Text analysis (word count, character count, etc.)

  • GetTimestampTool

    Get 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

mcpnix-mcpnode-mcp

Installation

moon add colmugx/mcp

For 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/main

FAQ

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

GitHub →

Last updated · Auto-generated from public README + GitHub signals.