MCP Server SDK

by peter-jerry-ye

5 stars
203 downloads
Not rated
GitHub

Description

# MCP Server SDK A WIP MoonBit implementation to support [Model Context Protocol](https://modelcontextprotocol.io/). Supported backends: - Wasm's Component Model - Native backend and more (as long as an implementation exists for `peter-jerry-ye/async/stream`). The user can use…

About

# MCP Server SDK A WIP MoonBit implementation to support [Model Context Protocol](https://modelcontextprotocol.io/). Supported backends: - Wasm's Component Model - Native backend and more (as long as an implementation exists for `peter-jerry-ye/async/stream`). The user can use this to develop a running MCP server…

Details

Author
peter-jerry-ye
GitHub stars
5
Downloads
203
Categories
Developer Tools

- MoonBit implementation of Model Context Protocol
- Supports Wasm Component Model and Native backends
- Server capabilities: Tools and Prompts
- Client capability: List roots
- Stdio transport support

Refer to the ./example directory for a simple weather MCP server in Wasm, and ./example-c for a simple server using the native backend. The SDK currently supports Stdio transport and implements MCP version 2024-11-05.

MCP Server SDK

A WIP MoonBit implementation to support Model Context Protocol.

Supported backends:

- Wasm's Component Model
- Native backend

and more (as long as an implementation exists for peter-jerry-ye/async/stream).

The user can use this to develop a running MCP server, providing more functionality to their AI models.

Currently Supported Features

Version:
- 2024-11-05

Transport:
- Stdio

Provide server capabilities:
- Tools
- Prompts

Call client capabilities (if provided):
- List roots

Example

See ./example for a simple weather MCP server in Wasm, and ./example-c for a simple MCP server in native backend.

TODO

- Add documentation
- Add tests
- Support more features
- Better error handling and better UX

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.