Integrate Codegen with AI editors like Cursor using the Model Context Protocol
Cmd/Ctrl + ,
to open settings~/Library/Application Support/Cursor/User/globalStorage/mcp.json
%APPDATA%\Cursor\User\globalStorage\mcp.json
~/.config/Cursor/User/globalStorage/mcp.json
generate_codemod
create_agent_run
get_organizations
get_users
claude_desktop_config.json
:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
generate_codemod
title
: The title of the codemod (hyphenated format)task
: Description of what the codemod should accomplishcodebase_path
: Absolute path to your codebase directorycreate_agent_run
org_id
: Your organization IDprompt
: The task/prompt for the agent to executerepo_name
: Repository name (optional)branch_name
: Branch name (optional)get_agent_run
org_id
: Organization IDagent_run_id
: Agent run IDget_organizations
page
: Page number (default: 1)limit
: Number of organizations per page (default: 10)get_users
org_id
: Organization IDpage
: Page number (default: 1)limit
: Number of users per page (default: 10)get_user
org_id
: Organization IDuser_id
: User IDcodegen --version
codegen mcp
command works: codegen mcp --help
codegen
command is in your system PATHCODEGEN_API_KEY
environment variable is setcodegen
command is executablecodegen
command location: which codegen
get_agent_run
tool to monitor the progress and results of your agent runs
system://agent_prompt
: Information about the Codegen SDK and platformsystem://setup_instructions
: Environment setup instructionssystem://manifest
: Server metadata and version informationcodegen mcp
works independently