update_server

Update a server's deploy configuration or metadata, optionally redeploying immediately.

Updates a server's deploy configuration (start command, build command, port, Dockerfile path, root dir) and/or metadata (name, description, tags, production branch).

Deploy-config fields are merged into the existing configuration, only the fields you pass change, the rest are preserved. Config changes don't take effect until the next deployment, so pass redeploy: true to trigger one immediately.

A common use: fix a broken start command (for example, set startCommand to a uvicorn command for a Python MCP server) and redeploy in one call.

Parameters

ParameterTypeRequiredDescription
organizationIdstringYesThe organization that owns the server. From list_organizations.
serverIdstringYesThe server to update. From list_servers.
startCommandstringNoProcess start command for the deploy pipeline.
buildCommandstringNoBuild command. Pass an empty string to clear it.
portnumberNoApplication port the server listens on (1–65535).
dockerfilePathstringNoPath to a non-default Dockerfile, relative to the root dir.
rootDirstringNoRepository subdirectory to build from.
namestringNoServer display name.
descriptionstringNoServer description.
tagsstring[]NoReplacement set of server tags.
productionBranchstringNoGit branch deployed for the production environment.
redeploybooleanNoWhen true, trigger a new deployment after saving (default false).

Returns

The updated server, plus the new deployment when redeploy is true.

On this page