PR #161 opened: feat(applications): expose destination_uuid in create_* tool schema
Summary
The Coolify v4 API accepts an optional destination_uuid on every application-create endpoint (/applications/public, /applications/private-github-app, /applications/private-deploy-key, /applications/dockerimage). The TypeScript request types in src/types/coolify.ts already declare destination_uuid?: string, so the underlying client surface is ready — but the MCP tool schema in src/lib/mcp-server.ts omits it, so callers of the application tool can't specify which destination (Docker network) on a multi-destination server should host the new app. They get the server's default destination silently, which is wrong on hosts that have more than one Docker network configured in Coolify.
Changes
- Add
destination_uuid: z.string().optional()to theapplicationtool input schema (next to the other*_uuidfields). - Thread
destination_uuid: args.destination_uuidthrough all four create dispatch arms:create_public,create_github,create_key,create_dockerimage. - Add one client test asserting
destination_uuidis passed through to the request body increateApplicationPublic.
No other behavior changes. The field stays optional, so existing callers are unaffected.
Test plan
-
npm run build— clean -
npm test— 263 passed (262 existing + 1 new) -
npm run lint— no new warnings/errors (the 4 pre-existing warnings in unrelated code are unchanged)