References

Service Tools

MCP tools for deploying, monitoring, and managing services on Ink

create_service

Create and deploy a service. Use host='ink' (default) for Ink managed repos or host='github' for GitHub.

ParameterTypeRequiredDefaultDescription
namestringyesName for the deployment
repostringyesRepository as returned by create_repo (e.g. ink/myapp or user/myapp)
workspacestringnodefaultWorkspace slug
projectstringnodefaultProject name
hoststringnoinkGit host. Values: ink, github
branchstringnomainBranch to deploy
regionstringnoeu-central-1Cluster region. Values: eu-central-1
build_packstringnorailpackBuild strategy. Values: railpack, dockerfile, static, dockercompose. railpack auto-detects and builds most apps. static serves files as-is with no build step. dockerfile uses a custom Dockerfile. Use railpack with publish_directory for Vite/React/Vue SPAs that need a build step then static serving via nginx.
portintegernoPort the application listens on
env_varsarraynoEnvironment variables. Each element: { "key": "...", "value": "..." }
memorystringno256MiMemory limit. Values: 256Mi, 512Mi, 1024Mi, 2048Mi, 4096Mi
vcpusstringno0.25vCPUs. Values: 0.25, 0.5, 1, 2, 4
build_commandstringnoCustom build command (overrides auto-detected). Only used with build_pack=railpack
start_commandstringnoCustom start command (overrides auto-detected). Only used with build_pack=railpack
publish_directorystringnoDirectory containing built static files (e.g. dist). When set with build_pack=railpack, the app is built then served as static files via nginx. Recommended for Vite/React/Vue SPAs
root_directorystringnoSubdirectory within the repo to use as build context (e.g. frontend or services/api). For monorepo deployments
dockerfile_pathstringnoPath to Dockerfile relative to root_directory (e.g. worker.Dockerfile). Only used with build_pack=dockerfile

Returns: service_id, name, status, repo, message with workflow ID

list_services

List all deployed services with their status and URLs.

ParameterTypeRequiredDefaultDescription
workspacestringnodefaultWorkspace slug

Returns: Array of services with service_id, name, repo, status, url

get_service

Get full service details including status, URL, environment variables, and logs. This is the primary tool for observing and debugging deployed applications.

Status values: queued, building, deploying, active, failed, cancelled, superseded, crashed, completed, removed

ParameterTypeRequiredDefaultDescription
namestringyesService name
workspacestringnodefaultWorkspace slug
projectstringnodefaultProject name
include_envbooleannofalseInclude environment variables in response
deploy_log_linesintegerno0Number of deployment log lines to fetch (max 500)
runtime_log_linesintegerno0Number of runtime log lines to fetch (max 500)

Returns: service_id, name, project, repo, branch, status, error_message, url, created_at, updated_at, deploy_logs, runtime_logs, env_vars, custom_domain

update_service

Update configuration of an existing service and redeploy. Only specify fields you want to change. Can also be used to redeploy without changes (e.g. to pull latest code).

ParameterTypeRequiredDefaultDescription
namestringyesName of the service to update
workspacestringnodefaultWorkspace slug
projectstringnodefaultProject name
repostringnoNew repository name
hoststringnoGit host for new repo. Values: ink, github
branchstringnoBranch to deploy
portintegernoPort the application listens on
env_varsarraynoEnvironment variables (replaces all existing). Each element: { "key": "...", "value": "..." }
build_packstringnoBuild strategy. Values: railpack, dockerfile, static, dockercompose
memorystringnoMemory limit. Values: 256Mi, 512Mi, 1024Mi, 2048Mi, 4096Mi
vcpusstringnovCPUs. Values: 0.25, 0.5, 1, 2, 4
build_commandstringnoCustom build command. Only used with build_pack=railpack
start_commandstringnoCustom start command. Only used with build_pack=railpack
publish_directorystringnoDirectory containing built static files (e.g. dist). When set with build_pack=railpack, the app is built then served as static files via nginx
root_directorystringnoSubdirectory within the repo to use as build context
dockerfile_pathstringnoPath to Dockerfile relative to root_directory. Only used with build_pack=dockerfile

Returns: service_id, name, status, message

delete_service

Permanently delete a service and stop its container. This action is irreversible.

ParameterTypeRequiredDefaultDescription
namestringyesName of the service to delete
workspacestringnodefaultWorkspace slug
projectstringnodefaultProject name

Returns: service_id, name, message

On this page