project_import
Import services from a directory's docker-compose.yml into service.json files for a Flisk project, with dry-run previews and controlled overwrites when files already exist.
Instructions
Import the services in a directory's root docker-compose.yml as bring-your-own service.json files with flisk import --json, which runs the pinned flisk-import from npm (the first run needs network access). It writes without asking: set dryRun to get the plan only, and force to overwrite an existing service.json (force needs confirm: true unless dryRun is set). Returns data.written and the importer's output. Set projectPath when the MCP server is not running from the project root.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "project_import"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dir | No | Directory with the docker-compose.yml, relative to projectPath or absolute (default: projectPath) | |
| force | No | Overwrite an existing service.json | |
| dryRun | No | Print the plan and write nothing | |
| confirm | No | Must be true together with force (unless dryRun) to overwrite files | |
| projectPath | No | Absolute path to the Flisk project root; run this operation from that directory. |