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
| Property | Description | Default |
|---|---|---|
| Name | Unique within a project | Required |
| Repository | Git repo reference | Required |
| Branch | Branch to deploy from | main |
| URL | Auto-assigned live URL | service-name.ml.ink |
| Port | Port your app listens on | 3000 |
| Build pack | How the app is built | Auto-detect |
| Memory | RAM allocation | 256 MB |
| vCPU | CPU allocation | 0.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.