routine_code_deploy
Deploy a specific code version to staging or production environments for routine management within the ESA MCP Server.
Instructions
Deploy a selected code version to the staging or production environment. If version is not exist, should call routine_code_commit first
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"name": "<name>",
"codeVersion": "<codeVersion>",
"env": "<env>"
},
"name": "routine_code_deploy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | The name of the routine, support lowercase English, numbers, and hyphens, must start with lowercase English, length cannot be less than 2 characters | |
| codeVersion | Yes | Version of the routine, must be a valid semantic version | |
| env | Yes | Environment of the routine, must be "production" or "staging". If the user has no special requirements, it will be deployed to the production environment by default |