xPilot MCP Server Library

by unievo

143 downloads
Not rated
GitHub

About

The xPilot MCP Server Library provides MCP server implementations for xPilot, enabling context and tools for LLMs via the Model Context Protocol. It focuses on MultiversX blockchain services, offering API access and SDK CLI tool resources.

Details

Author
unievo
Downloads
143
Categories
Developer Tools

- MCP servers for MultiversX API, Python SDK CLI, and Rust SDK CLI
- Auto-update on configuration changes
- Configurable via mcp_settings.json with command, args, env, disabled, and autoApprove options
- Open source with server templates for extending functionality
- Requires Node.js, Python, Rust, and MultiversX SDKs (mxpy, sc-meta)

Clone the repository into [HOME]/Documents/xPilot/mcp, install dependencies using npm install in each server directory, and configure xPilot’s mcp_settings.json file to point to the server scripts. xPilot automatically updates the servers when the configuration changes.

xPilot MCP Server Library

The Model Context Protocol is an open protocol that standardizes how applications provide context to LLMs. xPilot can use MCP servers to provide context to the underlying model and add new tools and resources the model can use to complete tasks and requests.

Repo Structure

/
├── servers/                     # Server implementations
├── templates/                   # Server templates
└── mcp_settings.json.example    # Example configuration file for xPilot

This repository contains MCP Server implementations for xPilot in the servers directory.

NOTE: The initial release contains limited functionality. Feel free to contribute in extending them or creating new implementations for other use cases by starting from one of the available templates.

Getting Started

Prerequisites for server use

- Node.js for running the servers
- Python for the SDK CLI tools
- Rust for the Rust SDK CLI
- MultiversX mxpy Python SDK CLI
- MultiversX sc-meta Rust SDK CLI

Installation

1. Clone the repository (xPilot uses this default path: [HOME]/Documents/xPilot/mcp):

   cd [HOME]/Documents/xPilot/mcp
   git clone https://github.com/unievo/xpilot-mcp-library.git
   

2. Install dependencies using the following command in each server's directory:

   cd [HOME]/Documents/xPilot/mcp/servers/{server_name}
   npm install
   

3. Configure xPilot's MCP Server library:

mcp_settings

The Configure MCP Servers button will open xPilot's mcp_settings.json configuration file. You can copy and paste the contents of the mcp_settings.json.example file into xPilot's configuration file.

[Important]: Make sure to update the paths to the server files in the configuration file so node can run them.
Replace [HOME] with the actual path to your home directory.

For example: [HOME]/Documents/xPilot/mcp/servers/mx-api-service/index.js

   On Mac/Linux:
   
   /Users/{username}/Documents/xPilot/mcp/servers/mx-api-service/index.js

On Windows:

C:\Users\{username}\Documents\xPilot\mcp\servers\mx-api-service\index.js

xPilot monitors the configuration file for changes and will automatically update the servers when the configuration is updated.

Available MCP Servers

The implementation includes the following servers:

1. MultiversX API Service: Implementation handling MultiversX API service requests and responses
2. MultiversX Python SDK CLI: Resources explaining CLI tools implemented in Python (mxpy)
3. MultiversX Rust SDK CLI: Resources explaining the Rust SDK CLI tools (sc-meta)

Configuration

The mcp_settings.json file contains server configurations for each server. The configuration structure is as follows:

{
  "mcpServers": {
    "mx-api-service": {
      "command": "node",
      "args": ["path/to/index.js"],
      "env": {},
      "disabled": false,
      "autoApprove": []
    }
    // Similar configuration for other servers in the configuration file
  }
}

Configuration Options

- command: The command to run the server (e.g., node)
- args: Arguments to pass to the command
- env: Environment variables for the server (API keys, etc.)
- disabled: Boolean flag to enable/disable the server
- autoApprove: List of auto-approved actions

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

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.