MCP server
MCP server
The CLI ships a local stdio MCP server that exposes a generate_snippet tool your agent can call directly. Add it to your MCP config:
Claude Code (~/.claude.json)
.mcp.json
{
"mcpServers": {
"getsnapcode": {
"command": "getsnapcode",
"args": [
"mcp"
]
}
}
}Cursor (~/.cursor/mcp.json)
.cursor/mcp.json
{
"mcpServers": {
"getsnapcode": {
"command": "getsnapcode",
"args": [
"mcp"
]
}
}
}Restart the agent after editing the config, then ask it to generate a code screenshot — it will call generate_snippet on its own.