MCP Integration (AI Agent Tools)

dregg exposes its capabilities as MCP (Model Context Protocol) tools over JSON-RPC 2.0 stdio transport. AI assistants (Claude, GPT, etc.) can discover and invoke tools to interact with the federation.

Running the MCP Server

dregg-node mcp --data-dir ~/.dregg --federation-peers "peer1:8420"

This reads JSON-RPC from stdin and writes responses to stdout. Configure your AI assistant to launch this as a tool server.

Available Tools

The MCP server exposes these tools via tools/list:

Protocol

Implements the MCP subset for tool serving:

The JSON-Schema for each tool's input/output is served from the tools/list endpoint at runtime — point your MCP client at a running dregg-node and read the live schema rather than chasing a copy in these docs. End-to-end transcripts and authorisation patterns (read-only cap, scoped writer, federation observer) are covered in docs/agent-authorization.md.