mcp-server-experiments-rescript
1
The HyperIndex MCP Server is an implementation of the Model Context Protocol using ReScript, focusing on server best practices including initialization, tool management, and error handling. It is designed to be extended with additional tools following defined patterns.
HyperIndex MCP Server in ReScript
This project is a Model Context Protocol (MCP) server implementation written in ReScript. The server demonstrates best practices such as server initialization, configuration, tool registration, error handling, logging, and resource cleanup.
Prerequisites
- Node.js 18+
- pnpm, npm, or yarn
Getting Started
- Install dependencies.
- Build the ReScript files.
- Start the server.
Development
Supports automatic rebuilding and the MCP inspector.
Project Structure
src/MCP_SDK.res
- ReScript bindings for the SDKsrc/Index.res
- Main server entry pointsrc/examples/
- Example tool implementations
Adding New Tools
- Define a schema.
- Implement the handler function.
- Register the tool with the server.