cf_start_app
Starts a Cloud Foundry application using its app GUID, enabling prompt activation of cloud apps.
Instructions
Start a Cloud Foundry application
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app_guid | Yes |
Implementation Reference
- src/tools/cloud-foundry/index.ts:19-23 (handler)The handler for the 'cf_start_app' tool. It calls assertWriteAllowed to check write permissions, then POSTs to the CF v3 apps actions/start endpoint.
server.tool("cf_start_app", "Start a Cloud Foundry application", { app_guid: z.string(), }, async (p) => safeTool(async () => { w(); return client.post(`${base}/v3/apps/${p.app_guid}/actions/start`, {}); })); - Input schema for cf_start_app: requires 'app_guid' as a string (Zod validation).
server.tool("cf_start_app", "Start a Cloud Foundry application", { app_guid: z.string(), }, async (p) => safeTool(async () => { w(); - src/tools/cloud-foundry/index.ts:19-23 (registration)Registration of the 'cf_start_app' tool via server.tool() inside registerCloudFoundryTools().
server.tool("cf_start_app", "Start a Cloud Foundry application", { app_guid: z.string(), }, async (p) => safeTool(async () => { w(); return client.post(`${base}/v3/apps/${p.app_guid}/actions/start`, {}); })); - src/server.ts:89-89 (registration)Top-level registration: registerCloudFoundryTools is called from createServer() to register all CF tools including cf_start_app.
registerCloudFoundryTools(server, client, config); - src/lib/utils.ts:14-18 (helper)assertWriteAllowed helper used by the handler to guard write operations when allowWrite is false.
export function assertWriteAllowed(allowWrite: boolean): void { if (!allowWrite) { throw new WriteNotAllowedError(); } }