References
Git Tools
MCP tools for creating repositories and managing git credentials on Ink
create_repo
Create a git repository. Use host='ink' (default) for instant private repos, or host='github' for GitHub. Pass the returned repo value directly to create_service and get_git_token.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
name | string | yes | — | Repository name (e.g. myapp, not username/myapp) |
workspace | string | no | default | Workspace slug |
host | string | no | ink | Git host. Values: ink, github |
description | string | no | — | Repository description |
project | string | no | default | Project name |
Returns: repo (full name), git_remote URL, expires_at, message
Example: Ink managed repo
Tool Call
create_repo(
"name": "my-app"
)The agent then pushes code and deploys with create_service(repo="ink/my-app-a1b2").
get_git_token
Get a temporary git access token for pushing code to a repository.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
name | string | yes | — | Repository as returned by create_repo (e.g. ink/myapp or user/myapp) |
workspace | string | no | default | Workspace slug |
host | string | no | ink | Git host. Values: ink, github |
project | string | no | default | Project name |
Returns: git_remote URL (includes token), expires_at