Skip to main content

Using in MCP Host

Applications that support MCP are called MCP Host. The following are some currently available MCP Host:

  • Cursor
  • Claude Desktop
  • Cherry Studio
  • ...

These MCP Hosts all provide an entry point for configuring the MCP Server. Taking Cursor as an example, we can configure the mcp.json file through the following steps to connect to the Cloud Development MCP Server:

  1. Ensure the system has a Node.js environment (recommended version >= 18)
  2. Go to Cloud Development Platform to obtain API KEY
  3. Obtain the cloud hosting service name of the MCP Server
  4. Based on your MCP Server transport type, edit the mcp.json configuration:
{
"mcpServers": {
"your-server-name": {
"command": "npx",
"args": [
"-y",
"@cloudbase/mcp-transformer",
"streamableToStdio",
"--url",
"https://your-env-id.api.tcloudbasegateway.com/v1/cloudrun/your-service-name/messages",
"--token",
"your-token"
]
}
}
}

In the above configuration, replace the following content:

  • your-server-name: MCP Server name
  • your-token: API KEY obtained from the Cloud Development Platform
  • your-env-id: CloudBase environment ID
  • your-service-name: Cloud hosting service name

You can refer to the guidance under the Use MCP Tab on the Cloud Development Platform MCP details page to proceed with the integration.