resource_create
Scaffold a new service with source, Dockerfile and tests, or register an existing directory that already has a service.json. Run it before starting the resource with up.
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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"name": "<name>"
},
"name": "resource_create"
}
}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). Redis, Qdrant, MinIO, MLflow, MySQL, MongoDB, ClickHouse, NATS, RabbitMQ, Mailpit and stripe-mock are frameworks: type database, queue, storage, mail or payment plus framework | |
| local | No | Frontend or backend only: scaffold it to run on this computer with no Docker or Tilt (a plain Vite config, a command in service.json), the way flisk create does by default | |
| 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. Database: postgres (default, the shared Flisk Postgres), redis, qdrant, mlflow, mysql, mongodb, clickhouse (each its own container; the services that list it in dependsOn get its connection settings). Queue: nats (default), rabbitmq. Storage: minio (default). Mail: mailpit (default, local SMTP and inbox). Payment: stripe-mock (default, Stripe API emulator) | |
| 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. |