AI agents (MCP)
An AI agent or editor that speaks the Model Context Protocol can work on the platform as you: find templates, create, change, start, stop and delete workspaces, volumes and clusters, set variables, read and write the files of a running workspace, and check and save template drafts. The platform serves it in two ways.
From the platform
The platform answers MCP over Streamable HTTP at /v1/mcp, for example https://idekube.example.org/v1/mcp. Give the agent that address and an API token in the header Authorization: Bearer idk_….
The agent is offered only the tools its token allows. A Read-only token gets tools that read, but not those of variables or of a workspace's files, which take Read & write as they do in the API. The token's permissions add tools of their own: admin_inspect_workers with worker:read, admin_inspect_usage with worker:read, workspace:read or storage:read, admin_inspect_jobs with job:read, and admin_query_audit with audit:read. The platform's administrators may offer only tools that read, withhold the tools of files or of administration, or turn the endpoint off, which then answers mcp_disabled; see the mcp settings.
On your machine
idk mcp serve runs the same server on your machine, over standard input and output, as the context you signed in to with the idk command line. Configure the agent to start it as a command.
- It adds
workspace_exec, which runs a command in a running workspace over SSH, signing in with your keys asidk port-forwarddoes. --read-onlyoffers only the tools that read,workspace_execnot among them;--no-execleaves outworkspace_execalone.--workspace <name>is the workspace the tools act on when the agent names none.
The platform's mcp settings do not reach it: it may do what its token may.
What it offers
| Kind | Names |
|---|---|
| Tools that read | get_current_user, inspect_teams, list_locations, list_templates, check_template, list_workspaces, get_workspace, list_volumes, list_clusters, list_variables, workspace_list_files, workspace_read_file, workspace_get_tasks |
| Tools that change | create_workspace, update_workspace, set_workspace_power, delete_workspace, manage_volume, manage_cluster, set_variable, save_template_draft, workspace_write_file, workspace_delete_file |
| Resources | idekube://me, idekube://teams, idekube://locations, idekube://workspaces/{workspace}, idekube://templates, idekube://template-language |
| Prompts | launch-dev-environment, diagnose-workspace, author-idekube-template, and platform-health-triage for holders of worker:read or job:read |