Skip to main content
Glama
nkar123412-hub

Elyan Staking MCP Server

README.md
# Elyan Staking MCP Server

An MCP (Model Context Protocol) server that allows AI agents to interact with the Elyan Staking SDK for self-improvement.

## Features

- **stake_and_acquire**: Initiates a staking request to acquire a new skill.
- **verify_staking_verdict**: Verifies the authenticity of a staking verdict using Ed25519 signatures.

## Installation

```bash
git clone https://github.com/nkar123412-hub/elyan-mcp-server.git
cd elyan-mcp-server
npm install
npm run build
```

## Configuration

The server runs over `stdio`. Add it to your MCP config (e.g., in Claude Desktop):

```json
{
  "mcpServers": {
    "elyan-staking": {
      "command": "node",
      "args": ["/absolute/path/to/elyan-mcp-server/dist/index.js"]
    }
  }
}
```

## How it Works

1. **Staking**: The agent calls `stake_and_acquire` with a skill and bond amount.
2. **Verdict**: The server returns a verdict from the RustChain gate.
3. **Verification**: The agent uses `verify_staking_verdict` to ensure the verdict is genuine before proceeding.