resource_create
Scaffolds a new service (service.json, Dockerfile, source, tests) or registers an existing directory that already has service.json.
Instructions
Scaffold a new service (service.json, Dockerfile, source and a test) with flisk resource <name> --yes, or register an existing directory that already has a service.json. Returns the command's text output. Without stack it uses the only existing stack or main, and fails when several stacks exist. Do not call it again for a resource that already exists: that rewrites its service.json and can assign it a new port (check with resource_list first). Call up afterwards to start it. Set projectPath when the MCP server is not running from the project root.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Resource name (kebab-case) | |
| port | No | Port within the type's range (default: the next free one) | |
| type | No | Resource type (default backend) | |
| stack | No | Stack to assign the resource to | |
| runtime | No | Agent runtime (type agent only): custom | |
| features | No | Resource features to enable, for example prisma or drizzle | |
| language | No | Backend language: bun (default), python, go, rust, node | |
| framework | No | Frontend: react (default), vue, svelte, preact, lit, solid, qwik, vanilla, tanstack-router, next. Backend: hono (default), express, elysia, fastify, nestjs, koa, h3 | |
| durability | No | Where agent sessions are checkpointed (type agent only): files or postgres | |
| projectPath | No | Absolute path to the Flisk project root; run this operation from that directory. |