mcp

command
v0.2.11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 23, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Command mcp is a reference MCP server that exposes gains tools over stdio.

This server demonstrates how to expose a gains tool.Registry as an MCP server, allowing MCP clients (like Claude Desktop or other AI assistants) to discover and use the tools.

Usage:

go run ./cmd/mcp

Configuration for Claude Desktop (~/Library/Application Support/Claude/claude_desktop_config.json):

{
    "mcpServers": {
        "gains-tools": {
            "command": "go",
            "args": ["run", "./cmd/mcp"],
            "cwd": "/path/to/gains"
        }
    }
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL