mayros mcp-setup
Register Mayros as an MCP server in Claude Desktop or Claude Code with a single command. Resolves absolute paths to node and mayros.mjs automatically.
Options
| Option | Description |
|---|---|
--desktop | Configure Claude Desktop (writes config file) |
--stdio | Use stdio transport (default) |
--http | Use HTTP transport (connect to pre-running server) |
--port <port> | HTTP port (default: 19100) |
--host <host> | HTTP host (default: 127.0.0.1) |
Targets
Claude Code (default)
bashmayros mcp-setup
Runs claude mcp add mayros -- mayros serve --stdio to register the server. If Claude Code is not found, prints the manual command.
For HTTP transport:
bashmayros mcp-setup --http --port 19100
Runs claude mcp add mayros -s http --url http://127.0.0.1:19100/mcp.
Claude Desktop
bashmayros mcp-setup --desktop
Writes to the Claude Desktop configuration file:
| Platform | Config path |
|---|---|
| macOS | ~/Library/Application Support/Claude/claude_desktop_config.json |
| Windows | %APPDATA%/Claude/claude_desktop_config.json |
| Linux | ~/.config/Claude/claude_desktop_config.json |
The command:
- Resolves the absolute path to
node(viawhich nodeor common fallback paths) - Resolves the absolute path to
mayros.mjs(global npm install or local source) - Reads existing config and merges the
mayrosentry intomcpServers - Writes the updated config
Restart Claude Desktop after running this command.
Examples
bash# Register with Claude Code (stdio) mayros mcp-setup # Register with Claude Desktop mayros mcp-setup --desktop # Register HTTP transport with custom port mayros mcp-setup --http --port 8080 # Register HTTP transport with custom host mayros mcp-setup --http --host 0.0.0.0 --port 19100
Related
- serve — start the MCP server
- MCP Server — feature overview and tool reference
- MCP Client — connect to external MCP servers