Skip to content

Add MCP support to Mithril - #266

Closed
NeerajGodiyal wants to merge 18 commits into
Overclock-Validator:alpenglow-devfrom
NeerajGodiyal:feature/mcp
Closed

Add MCP support to Mithril#266
NeerajGodiyal wants to merge 18 commits into
Overclock-Validator:alpenglow-devfrom
NeerajGodiyal:feature/mcp

Conversation

@NeerajGodiyal

@NeerajGodiyal NeerajGodiyal commented Aug 22, 2026

Copy link
Copy Markdown
Collaborator

Overview

This PR adds an MCP server to Mithril. It works with Codex, Claude Code, Cursor, VS Code, and other clients that support stdio MCP.

The server can read Mithril's RPC, metrics, logs, replay state, rewards, and host health. The default profile has 17 read-only tools. An optional diagnostic profile adds account inspection, transaction simulation, and profiling.

The default profile is read-only, and tool calls are bounded to protect node resources.

Connect a client

Codex:

mithril mcp setup codex

Claude Code:

mithril mcp setup claude

VS Code:

mithril mcp setup vscode

mithril mcp config prints the server command and arguments for Cursor and other stdio clients. The MCP guide also covers remote SSH, connection checks, and optional project instructions.

Checks run

  • Affected Go package tests
  • MCP race tests
  • go vet ./...
  • Staticcheck on the MCP packages
  • Govulncheck with no reachable vulnerabilities
  • Module tidy and checksum verification
  • Clean mithril binary build

Pull requests also run the MCP tests, vet, Govulncheck, the Go build, and the Nix build in CI.

@NeerajGodiyal NeerajGodiyal changed the title Add MCP support for Mithril node monitoring Add MCP support to Mithril Aug 22, 2026
@NeerajGodiyal
NeerajGodiyal force-pushed the feature/mcp branch 2 times, most recently from 0e6233b to 10e5335 Compare August 22, 2026 09:50
@NeerajGodiyal
NeerajGodiyal marked this pull request as ready for review August 22, 2026 09:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant