MCP ExplorerExplorer

Ex Mcp Test

@y86on a year ago
9 MIT
FreeCommunity
AI Systems
Test implementation of mcp server in Elixir

Overview

What is Ex Mcp Test

ex-mcp-test is a test implementation of an MCP (Model Context Protocol) server built using Elixir. It serves as a platform for experimenting with the MCP protocol.

Use cases

Use cases for ex-mcp-test include developing and testing applications that utilize MCP for communication, validating requests and responses against schemas, and integrating with tools that support JSON-RPC.

How to use

To use ex-mcp-test, run the server locally with the command ‘mix run --no-halt’. For production, generate a release using ‘mix release’ and configure it in your ‘claude_desktop_config.json’.

Key features

Key features include JSON-RPC 2.0 compliance, support for standard MCP protocol methods, a pluggable validation and middleware pipeline, schema-driven request/response validation, and included OpenRPC specification.

Where to use

ex-mcp-test can be used in software development environments where testing and experimenting with the MCP protocol is required, particularly in applications that involve RPC (Remote Procedure Call) mechanisms.

Content

ExMCP Test Server

An MCP (Model Context Protocol) server implementation in Elixir that provides a test implementation for experimenting with the protocol.

Features

  • JSON-RPC 2.0 compliant server implementation
  • Standard MCP protocol methods supported
  • Pluggable validation and middleware pipeline
  • Schema-driven request/response validation
  • OpenRPC specification included

Architecture

The server is built using:

  • PhxJsonRpc for the RPC layer
  • ExJsonSchema for schema validation
  • Jason for JSON encoding/decoding

Usage

Run the server locally:

mix run --no-halt

Configuration

The best way to run the model is to generate a release with

mix release

and add it to to your claude_desktop_config.json:

{
  "mcpServers": {
    "ex-mcp-test": {
      "command": "path/to/your/realease/bin/my_app",
      "args": [
        "start"
      ]
    }
  }
}

Development

Requirements:

  • Elixir 1.14+
  • Mix

Install dependencies:

mix deps.get

Run tests:

mix test

API Documentation

The server implements the following MCP methods:

initialize - Initialize the server
notifications/initialized - Handle initialization notification

prompts/list - List available prompts
resources/list - List available resources

tools/list - List available tools
tools/call - Call a specific tool

The OpenRPC specification can be found in priv/static/mcp-openrpc.json.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Tools

No tools

Comments

Recommend MCP Servers

View All MCP Servers