genart.dev
CLI

genart agent

MCP server and agent configuration

Start the MCP (Model Context Protocol) server in various modes or configure it for use with AI agent clients. The agent server exposes genart tools for creating, editing, and rendering sketches.

Usage

genart agent <subcommand> [options]

Subcommands

stdio

Start the MCP server using stdio transport. Used when the agent client launches the process directly.

genart agent stdio [options]
FlagTypeDefaultDescription
--base-pathpathBase directory for sketch file operations

http

Start the MCP server as an HTTP endpoint. Used for remote or browser-based agent connections.

genart agent http [options]
FlagTypeDefaultDescription
--portnumber3333Port to listen on
--hoststring127.0.0.1Host to bind to
--base-pathpathBase directory for sketch file operations
--corsbooleanEnable CORS headers

sidecar

Start the MCP server as a sidecar process, communicating over stdio with managed lifecycle.

genart agent sidecar [options]
FlagTypeDefaultDescription
--base-pathpathBase directory for sketch file operations

install

Install the MCP server configuration into an agent client.

genart agent install [client] [options]
ArgumentRequiredDescription
[client]NoTarget client (e.g. claude, vscode, cursor)
FlagTypeDefaultDescription
--allbooleanInstall for all detected clients
--removebooleanRemove the configuration instead of installing
--dry-runbooleanShow what would be written without making changes
--npxbooleanConfigure using npx instead of a global install

doctor

Check the MCP server configuration and diagnose common issues.

genart agent doctor

Examples

Start the MCP server over stdio:

genart agent stdio --base-path ~/sketches

Start an HTTP server on a custom port:

genart agent http --port 8080 --cors

Install configuration for Claude Code:

genart agent install claude

Install for all detected clients using npx:

genart agent install --all --npx

Preview installation changes:

genart agent install claude --dry-run

Remove installed configuration:

genart agent install claude --remove

Check configuration health:

genart agent doctor