Deploy with agents
Agent rules for Coderunner — use gf deploy or MCP, never create an App for a workload.
Coderunner workloads (function, job, schedule, service / Deployment) are deployed with the gf CLI. Use @groundfloorcloud/mcp (docs_get id coderunner) to inspect types and packaging, then run the suggested gf command. Do not create a Groundfloor App for that.
Full decision table (workloads vs Shell apps vs standalone wrap): Deploy with agents.
Agent rules (workload)
- Call
docs_getidcoderunner(or readworkspace_context.coderunner_howto) before create. - App authentication is optional (end-user login). Mode
noneis valid for create/deploy. - Prefer MCP
workspace_context/suggest_cli, thengf deploy, else Control Plane REST/v1/workspaces/{id}/coderunners. - A human must
gf loginonce. MCP uses that session. Do not paste JWTs into mcp.json. Scripts may useGROUNDFLOOR_TOKEN=$(gf token). - Never
POST …/appswithapp_kind=coderunner. - Reuse an existing coderunner when the slug already exists.
serviceis also called Deployment. The ZIP must include a rootDockerfile.- Node packages need
"scripts": { "start": "…" }and must listen onPORT/8080. - Strip
.git,node_modules, and.env*from upload ZIPs. - Local live data:
eval "$(gf env)"and call Control Plane vault/files/secrets withgf token, thengf deploy. - After success, report
coderunner_id,version_id,deployment_id,deployment_url. If deploymentstatus=4, read Process Log (runner_id= deployment id).
gf login
gf workspaces use <workspace-uuid>
gf deploy
gf coderunner run -c <id|slug> --payload '{"hello":"agent"}'Production Control Plane: https://platform.groundfloor.cloud.
If the project is a Shell starter-kit (groundfloor.manifest.json, npm run release), stop and follow Shell app publish — gf apps publish, not gf deploy.