Projects & Services

Managing Services

Your agent creates, updates, redeploys, and deletes services through MCP tools

Services are the core unit of deployment in Ink. Your agent manages the full lifecycle through MCP.

Creating a service

Your agent calls create_service with:

  • A name for the service (unique per project)
  • A git repository (Ink managed or GitHub)
  • Optional: build configuration, environment variables, resource allocation
Prompt

Deploy a FastAPI backend called 'api' from the ink/my-api repo

Service properties

PropertyDescriptionDefault
NameUnique within a projectRequired
RepositoryGit repo referenceRequired
BranchBranch to deploy frommain
URLAuto-assigned live URLservice-name.ml.ink
PortPort your app listens on3000
Build packHow the app is builtAuto-detect
MemoryRAM allocation256 MB
vCPUCPU allocation0.5

Updating a service

Your agent calls update_service to change configuration and trigger a redeployment. Any changed parameter triggers a new build:

"Scale up the API to 2GB memory and 2 vCPUs"
→ update_service(name="api", memory="2048Mi", vcpus="2")

Redeploying

Push new code to the tracked branch, or have your agent call update_service. GitHub repos auto-deploy on push via webhooks.

Deleting a service

"Delete the staging service"
→ delete_service(name="staging")

This stops the running container and removes the service. This action is irreversible.

On this page