Skip to content

🤖 mcp

🤖 Start the Capgo MCP (Model Context Protocol) server for AI agent integration.

The MCP server exposes Capgo functionality as tools that AI agents (like Claude, Cursor, or other MCP-compatible clients) can use to manage your live updates programmatically.

Terminal window
npx @capgo/cli@latest mcp

Model Context Protocol (MCP) is an open standard that enables AI assistants to interact with external tools and services. By running the Capgo MCP server, you allow AI agents to:

  • Upload and manage app bundles
  • Create and configure distribution channels
  • Monitor device statistics and logs
  • Request native builds
  • And more…

Add the following to your claude_desktop_config.json:

{
"mcpServers": {
"capgo": {
"command": "npx",
"args": ["@capgo/cli", "mcp"]
}
}
}

Config file locations:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json

The MCP server exposes 21 tools organized into categories:

ToolDescription
capgo_list_appsList all apps registered in your Capgo Cloud account
capgo_add_appRegister a new app in Capgo Cloud
capgo_update_appUpdate settings for an existing app
capgo_delete_appDelete an app from Capgo Cloud
ToolDescription
capgo_upload_bundleUpload a new app bundle for distribution
capgo_list_bundlesList all bundles uploaded for an app
capgo_delete_bundleDelete a specific bundle
capgo_cleanup_bundlesDelete old bundles, keeping only recent versions
capgo_check_compatibilityCheck bundle compatibility with a channel
ToolDescription
capgo_list_channelsList all channels for an app
capgo_add_channelCreate a new distribution channel
capgo_update_channelUpdate channel settings and linked bundle
capgo_delete_channelDelete a channel
capgo_get_current_bundleGet the current bundle linked to a channel
ToolDescription
capgo_list_organizationsList all organizations you have access to
capgo_add_organizationCreate a new organization for team collaboration
ToolDescription
capgo_get_account_idGet the account ID for the current API key
capgo_doctorRun diagnostics on the Capgo installation
capgo_get_statsGet device statistics and logs for debugging
ToolDescription
capgo_request_buildRequest a native iOS/Android build from Capgo Cloud
ToolDescription
capgo_generate_encryption_keysGenerate RSA key pair for end-to-end encryption

Upload a new app bundle to Capgo Cloud for distribution.

ParameterTypeRequiredDescription
appIdstringYesApp ID in reverse domain format (e.g., com.example.app)
pathstringYesPath to the build folder to upload
bundlestringNoBundle version number
channelstringNoChannel to link the bundle to
commentstringNoComment or release notes for this version
minUpdateVersionstringNoMinimum version required to update to this version
autoMinUpdateVersionbooleanNoAutomatically set min update version based on native packages
encryptbooleanNoEnable encryption for the bundle

Update channel settings including linked bundle and targeting options.

ParameterTypeRequiredDescription
appIdstringYesApp ID
channelIdstringYesChannel name/ID to update
bundlestringNoBundle version to link to this channel
statestringNoChannel state: “default” or “normal”
downgradebooleanNoAllow downgrading to versions below native
iosbooleanNoEnable updates for iOS devices
androidbooleanNoEnable updates for Android devices
selfAssignbooleanNoAllow device self-assignment
disableAutoUpdatestringNoBlock updates by type: major, minor, metadata, patch, or none
devbooleanNoEnable updates for development builds
emulatorbooleanNoEnable updates for emulators
devicebooleanNoEnable updates for physical devices
prodbooleanNoEnable updates for production builds

Get device statistics and logs from Capgo backend for debugging.

ParameterTypeRequiredDescription
appIdstringYesApp ID to get stats for
deviceIdsstring[]NoFilter by specific device IDs
limitnumberNoMaximum number of results to return
rangeStartstringNoStart date/time for range filter (ISO string)
rangeEndstringNoEnd date/time for range filter (ISO string)

Delete old bundles, keeping only recent versions.

ParameterTypeRequiredDescription
appIdstringYesApp ID to cleanup bundles for
keepnumberNoNumber of versions to keep (default: 4)
bundlestringNoBundle version pattern to cleanup
forcebooleanNoForce removal without confirmation
ignoreChannelbooleanNoDelete bundles even if linked to channels

Request a native iOS/Android build from Capgo Cloud.

ParameterTypeRequiredDescription
appIdstringYesApp ID to build
platformstringYesTarget platform: “ios” or “android”
pathstringNoPath to project directory

Once configured, you can ask your AI assistant things like:

  • “List all my Capgo apps”
  • “Upload the build in ./dist to the production channel for com.example.app”
  • “Create a new staging channel for my app”
  • “What’s the current bundle on the production channel?”
  • “Clean up old bundles, keep only the last 3 versions”
  • “Show me device stats for the last 24 hours”

The AI will use the appropriate MCP tools to complete these tasks.

If you get authentication errors, make sure you’ve logged in:

Terminal window
npx @capgo/cli login YOUR_API_KEY

Ensure you have Node.js 18+ installed and can run npx commands.

Make sure you’re using the latest version of @capgo/cli:

Terminal window
npx @capgo/cli@latest mcp