moonmcp

Model Context Protocol · MoonBit

A server framework for MoonBit. One server answers both eras of the protocol and speaks Streamable HTTP or stdio. Its capabilities are written as #mcp annotations, registered by hand, or held by a type of their own — and providers, transforms and layers sit around them.

pull up a stool · tap a window

A masonry wood-fired oven: a stone arch over a brick firebox, with a chimney and a stone hearth.

the core, always lit

The board

1130 public items from 19 packages

MCP 2026-07-28 · 2025-11-25 · 2024-11-05

Down to the guide The reference cellar

On the table

order · tools/call add{ "a": 2, "b": 3 }
→ { "sum": 5 }
order · resources/readconfig://app
→ { "theme": "dark" }
recipe · a tool
#mcp.tool(description="Add two numbers")
fn add(a : Double, b : Double) -> Double {
  a + b
}

// and once, before serving
register(mcp)