{"at":"2026-11-23T00:22:20.908Z","dir":"sent","era":"server_discover","message":{"id":1,"jsonrpc":"2.0","method":"server/discover","params":{"_meta":{"io.modelcontextprotocol/clientCapabilities":{},"io.modelcontextprotocol/clientInfo":{"name":"didrun-lab","version":"0.1.0"},"io.modelcontextprotocol/protocolVersion":"2026-07-28"}}}}
{"at":"2026-11-23T00:22:21.331Z","dir":"received","era":"server_discover","message":{"error":{"code":-32601,"message":"Method not found: server/discover"},"id":1,"jsonrpc":"2.0"}}
{"at":"2026-11-23T00:22:21.432Z","dir":"sent","era":"initialize","message":{"id":1,"jsonrpc":"2.0","method":"initialize","params":{"capabilities":{},"clientInfo":{"name":"didrun-lab","version":"0.1.0"},"protocolVersion":"2025-11-25"}}}
{"at":"2026-11-23T00:22:21.837Z","dir":"received","era":"initialize","message":{"id":1,"jsonrpc":"2.0","result":{"capabilities":{"tools":{"listChanged":false}},"protocolVersion":"2025-06-18","serverInfo":{"icons":[{"mimeType":"image/png","sizes":["512x512"],"src":"https://mcp.flisk.sh/icon-512.png"}],"name":"flisk","version":"1.4.56"}}}}
{"at":"2026-11-23T00:22:21.837Z","dir":"sent","era":"initialize","message":{"jsonrpc":"2.0","method":"notifications/initialized"}}
{"at":"2026-11-23T00:22:21.837Z","dir":"sent","era":"initialize","message":{"id":2,"jsonrpc":"2.0","method":"tools/list","params":{}}}
{"at":"2026-11-23T00:22:21.838Z","dir":"received","era":"initialize","message":{"id":2,"jsonrpc":"2.0","result":{"tools":[{"annotations":{"openWorldHint":false,"readOnlyHint":true},"description":"Check whether this machine can run the Flisk stack (Docker, Tilt, ports). Read-only. Optionally set projectPath to include checks for a specific Flisk project. Returns data.ready and data.host.canUp; run it before `up`. For the state of a running stack use `status`; for whether generated files are consistent use `config_verify`.","inputSchema":{"additionalProperties":false,"properties":{"noPing":{"description":"Skip pinging running services' health endpoints","type":"boolean"},"projectPath":{"description":"Absolute path to the Flisk project root; run this operation from that directory.","type":"string"}},"type":"object"},"name":"doctor"},{"annotations":{"destructiveHint":false,"openWorldHint":false,"readOnlyHint":false},"description":"Start the stack (or part of it) detached from the optional projectPath and return without waiting for it to be ready. Poll `status` for data.tilt.readiness.ready. Fails fast on an unknown service, an unsupported host, or a Tilt already running.","inputSchema":{"additionalProperties":false,"properties":{"dryRun":{"description":"Show what would be started without starting","type":"boolean"},"force":{"description":"Replace a Tilt that is already running","type":"boolean"},"only":{"description":"Start only these services plus what they depend on and shared infrastructure","items":{"type":"string"},"type":"array"},"projectPath":{"description":"Absolute path to the Flisk project root; run this operation from that directory.","type":"string"},"stack":{"description":"Only this stack","type":"string"},"waitSeconds":{"description":"How long to watch for an early failure before returning (default 15, max 60)","type":"number"}},"type":"object"},"name":"up"},{"annotations":{"destructiveHint":true,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":false},"description":"Stop the running stack, optionally selecting its project with projectPath. It stops the running services and does not edit the project's files. Use `status` first to see whether a stack is running, set dryRun to preview, and start it again with `up`.","inputSchema":{"additionalProperties":false,"properties":{"dryRun":{"description":"Show what would be stopped without stopping","type":"boolean"},"projectPath":{"description":"Absolute path to the Flisk project root; run this operation from that directory.","type":"string"}},"type":"object"},"name":"down"},{"annotations":{"openWorldHint":false,"readOnlyHint":true},"description":"Show the live state of the stack: its stacks, resources, their ingress URLs and container ports, the stack-level ports, and Tilt readiness (data.tilt.readiness: ready, pending, failures, enabled; null when no Tilt answers). Read-only. Poll it after `up`. For the services a project defines whether or not they run use `resource_list`; for URLs only use `network_list`; for host checks use `doctor`. Optionally select the project with projectPath.","inputSchema":{"additionalProperties":false,"properties":{"projectPath":{"description":"Absolute path to the Flisk project root; run this operation from that directory.","type":"string"}},"type":"object"},"name":"status"},{"annotations":{"openWorldHint":false,"readOnlyHint":true},"description":"A bounded snapshot of recent logs from the running stack (default the last 200 lines, at most 10000), returned as text. Read-only. Optionally select the project with projectPath. Not a stream: call it again for newer lines. Use `status` first to find which service is failing, then pass services to narrow the output.","inputSchema":{"additionalProperties":false,"properties":{"projectPath":{"description":"Absolute path to the Flisk project root; run this operation from that directory.","type":"string"},"services":{"description":"Only these services","items":{"type":"string"},"type":"array"},"since":{"description":"Only logs newer than this, for example 30s, 5m, 1h","type":"string"},"tail":{"maximum":10000,"minimum":1,"type":"integer"}},"type":"object"},"name":"logs"},{"annotations":{"openWorldHint":false,"readOnlyHint":true},"description":"List the selected project's services (resources) with their stack, type and port, whether or not they are running. Read-only. Use `status` for live state, `stack_list` to group them by stack and `agent_list` for agents only. Set projectPath when the MCP server is not running from the project root.","inputSchema":{"additionalProperties":false,"properties":{"projectPath":{"description":"Absolute path to the Flisk project root; run this operation from that directory.","type":"string"},"stack":{"description":"Only this stack","type":"string"}},"type":"object"},"name":"resource_list"},{"annotations":{"destructiveHint":false,"openWorldHint":false,"readOnlyHint":false},"description":"Restart one running resource in the stack (or trigger its rebuild); the other resources are not touched. It needs a running stack: start one with `up`. Names come from `resource_list`. Set projectPath when the MCP server is not running from the project root.","inputSchema":{"additionalProperties":false,"properties":{"projectPath":{"description":"Absolute path to the Flisk project root; run this operation from that directory.","type":"string"},"resource":{"description":"Name of the resource to restart","type":"string"}},"type":"object"},"name":"resource_restart"},{"annotations":{"destructiveHint":true,"openWorldHint":true,"readOnlyHint":false},"description":"Run a one-off command (a seed script, a status check, printenv) with the environment one resource has in the stack, and return its exit code, stdout and stderr (the last 64 KB of each). A container resource must be running (start it with `up`); a local-process resource runs from its folder. No input is passed. Names come from `resource_list`. Set projectPath when the MCP server is not running from the project root.","inputSchema":{"additionalProperties":false,"properties":{"command":{"description":"The program and its arguments, for example [\"printenv\", \"DATABASE_URL\"]","items":{"type":"string"},"type":"array"},"projectPath":{"description":"Absolute path to the Flisk project root; run this operation from that directory.","type":"string"},"resource":{"description":"Name of the resource whose environment the command gets","type":"string"}},"required":["resource","command"],"type":"object"},"name":"resource_run"},{"annotations":{"openWorldHint":false,"readOnlyHint":true},"description":"List AI agent resources (appType: 'agent') in the project with their stack, runtime, durability and port. Read-only. Use `resource_list` for every resource type, and `agent_sessions` to inspect one agent's sessions. Set projectPath when the MCP server is not running from the project root.","inputSchema":{"additionalProperties":false,"properties":{"projectPath":{"description":"Absolute path to the Flisk project root; run this operation from that directory.","type":"string"},"stack":{"description":"Only this stack","type":"string"}},"type":"object"},"name":"agent_list"},{"annotations":{"openWorldHint":false,"readOnlyHint":true},"description":"List the sessions of a running AI agent resource (id, last activity, status, checkpoint size), or read one session's checkpoint when sessionId is set. Set projectPath when the MCP server is not running from the project root.","inputSchema":{"additionalProperties":false,"properties":{"projectPath":{"description":"Absolute path to the Flisk project root; run this operation from that directory.","type":"string"},"resource":{"description":"Name of the agent resource","type":"string"},"sessionId":{"description":"Session ID to read; omit it to list all sessions","type":"string"}},"required":["resource"],"type":"object"},"name":"agent_sessions"},{"annotations":{"openWorldHint":false,"readOnlyHint":true},"description":"List the project's stacks with their resource counts. Read-only. Use `resource_list` for the resources themselves. Set services to include each stack's service names, and verbose for its description. Set projectPath when the MCP server is not running from the project root.","inputSchema":{"additionalProperties":false,"properties":{"projectPath":{"description":"Absolute path to the Flisk project root; run this operation from that directory.","type":"string"},"services":{"description":"Include the service names in each stack","type":"boolean"},"verbose":{"description":"Include each stack's description","type":"boolean"}},"type":"object"},"name":"stack_list"},{"annotations":{"openWorldHint":false,"readOnlyHint":true},"description":"Project root, whether the generated master files exist (data.configured, data.missingFiles), and resource and stack counts. Read-only; a quick first call to learn whether a folder is a configured Flisk project. Use `config_verify` to check that the generated files match, and `status` for the running stack. Set projectPath when the MCP server is not running from the project root.","inputSchema":{"additionalProperties":false,"properties":{"projectPath":{"description":"Absolute path to the Flisk project root; run this operation from that directory.","type":"string"}},"type":"object"},"name":"project_info"},{"annotations":{"openWorldHint":false,"readOnlyHint":true},"description":"List the starter templates project_init can clone (data.templates): each one's key, repo, description and, for a template pinned to a commit, the ref it checks out. Read-only; the same rows as `flisk project --list --json`. Pass a key as project_init's template.","inputSchema":{"additionalProperties":false,"properties":{},"type":"object"},"name":"project_templates"},{"annotations":{"openWorldHint":false,"readOnlyHint":true},"description":"The Traefik URL of every frontend and API service, with its base path, port and whether it answers (running, stopped). Read-only. Use it to find where to open a service; use `status` for full readiness. Set projectPath when the MCP server is not running from the project root.","inputSchema":{"additionalProperties":false,"properties":{"projectPath":{"description":"Absolute path to the Flisk project root; run this operation from that directory.","type":"string"},"stack":{"description":"Only this stack","type":"string"}},"type":"object"},"name":"network_list"},{"annotations":{"openWorldHint":false,"readOnlyHint":true},"description":"Check that the generated files match .flisk/project.json and that every service.json is valid. Returns data.valid, data.errors, data.warnings and data.diffs; a drifted generated file is fixed with config_regenerate. Set projectPath when the MCP server is not running from the project root.","inputSchema":{"additionalProperties":false,"properties":{"projectPath":{"description":"Absolute path to the Flisk project root; run this operation from that directory.","type":"string"}},"type":"object"},"name":"config_verify"},{"annotations":{"openWorldHint":false,"readOnlyHint":true},"description":"Explain one project file: whether Flisk generated it or the user owns it, its source, whether it is edited now, whether editing it blocks `up`, and what to edit instead. Run it before editing a file you did not write. Set projectPath when the MCP server is not running from the project root.","inputSchema":{"additionalProperties":false,"properties":{"file":{"description":"The file, relative to projectPath (or to the server's directory) or absolute; it must be inside the project","type":"string"},"projectPath":{"description":"Absolute path to the Flisk project root; run this operation from that directory.","type":"string"}},"required":["file"],"type":"object"},"name":"config_explain"},{"annotations":{"openWorldHint":false,"readOnlyHint":true},"description":"Read-only. Check that the installed Flisk CLI has its bundled runtime assets (engine, templates). Returns ok, assetRoot and what is missing; a source checkout reports ok: false because the assets exist only in a packaged install. projectPath is optional: a project-local install under its node_modules is checked too.","inputSchema":{"additionalProperties":false,"properties":{"projectPath":{"description":"Absolute path to the Flisk project root; run this operation from that directory.","type":"string"}},"type":"object"},"name":"runtime_check"},{"annotations":{"destructiveHint":true,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":false},"description":"Regenerate the master config files in .flisk/.flisk-out/ from .flisk/project.json. A dry run by default, which returns the planned changes as text; set dryRun to false to write them, which discards hand edits in those generated files. Set projectPath when the MCP server is not running from the project root.","inputSchema":{"additionalProperties":false,"properties":{"dryRun":{"description":"Default true: show what would change. false rewrites the files and discards hand edits in them","type":"boolean"},"projectPath":{"description":"Absolute path to the Flisk project root; run this operation from that directory.","type":"string"}},"type":"object"},"name":"config_regenerate"},{"annotations":{"destructiveHint":true,"openWorldHint":false,"readOnlyHint":false},"description":"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.","inputSchema":{"additionalProperties":false,"properties":{"durability":{"description":"Where agent sessions are checkpointed (type agent only): files or postgres","type":"string"},"features":{"description":"Resource features to enable, for example prisma or drizzle","items":{"type":"string"},"type":"array"},"framework":{"description":"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, minio, mlflow, mysql, mongodb, clickhouse (each its own container; the services that list it in dependsOn get its connection settings). Queue: nats (default), rabbitmq","type":"string"},"language":{"description":"Backend language: bun (default), python, go, rust, node","type":"string"},"local":{"description":"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","type":"boolean"},"name":{"description":"Resource name (kebab-case)","type":"string"},"port":{"description":"Port within the type's range (default: the next free one)","maximum":65535,"minimum":1,"type":"integer"},"projectPath":{"description":"Absolute path to the Flisk project root; run this operation from that directory.","type":"string"},"runtime":{"description":"Agent runtime (type agent only): custom","type":"string"},"stack":{"description":"Stack to assign the resource to","type":"string"},"type":{"description":"Resource type (default backend). Redis, Qdrant, MinIO, MLflow, MySQL, MongoDB, ClickHouse, NATS and RabbitMQ are frameworks: type database or queue plus framework","enum":["backend","frontend","worker","mcp","agent","bring-your-own","inference","database","queue"],"type":"string"}},"required":["name"],"type":"object"},"name":"resource_create"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":false},"description":"Assign resources that have no stack yet to a stack (writes `stack` into their service.json). A resource already in a stack is refused. Returns the command's text output. Set projectPath when the MCP server is not running from the project root.","inputSchema":{"additionalProperties":false,"properties":{"projectPath":{"description":"Absolute path to the Flisk project root; run this operation from that directory.","type":"string"},"resources":{"description":"Names of the resources to assign","items":{"type":"string"},"type":"array"},"stack":{"description":"Stack name (kebab-case)","type":"string"}},"required":["stack","resources"],"type":"object"},"name":"stack_assign"},{"annotations":{"destructiveHint":false,"openWorldHint":true,"readOnlyHint":false},"description":"Create a Flisk project with `flisk project --yes`: in projectPath (an existing directory; default the server's directory) write .flisk/project.json and generate its files, or, with template, clone a starter project into a new directory there (then call project_init again with projectPath set to the clone to configure it). Inside an existing project it refreshes that project's generated files instead and never overwrites its project.json. Returns the command's text output.","inputSchema":{"additionalProperties":false,"properties":{"agentSkills":{"description":"Blank project only: write the Flisk agent skills and AGENTS.md (default true)","type":"boolean"},"path":{"description":"Template only: directory to clone into, relative to projectPath or absolute (default: the template's repository name)","type":"string"},"projectPath":{"description":"Absolute path to an existing directory to create the project in (or to clone the template from)","type":"string"},"template":{"description":"Clone this starter project instead of creating a blank one","enum":["demo","restaurant","saas","erp","user-management","ecommerce","example","agent-stack","swarm","security","super-agent","langgraph","tool-loop","next-postgres","launch","portal","fullstack"],"type":"string"}},"type":"object"},"name":"project_init"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":false},"description":"Write EJECTED.md with `flisk eject --json`: it lists the generated Tilt files and how to run the stack with plain Tilt, and copies, moves or deletes nothing. It changes the project, so it is refused unless confirm is true; dryRun returns the plan (data.generatedFiles, data.created) without confirm. Set projectPath when the MCP server is not running from the project root.","inputSchema":{"additionalProperties":false,"properties":{"confirm":{"description":"Must be true to write EJECTED.md; without it only a dry run is allowed","type":"boolean"},"dryRun":{"description":"List the generated files and what would be written, without writing","type":"boolean"},"projectPath":{"description":"Absolute path to the Flisk project root; run this operation from that directory.","type":"string"}},"type":"object"},"name":"project_eject"},{"annotations":{"destructiveHint":true,"openWorldHint":true,"readOnlyHint":false},"description":"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. Returns data.written and the importer's output. Set projectPath when the MCP server is not running from the project root.","inputSchema":{"additionalProperties":false,"properties":{"dir":{"description":"Directory with the docker-compose.yml, relative to projectPath or absolute (default: projectPath)","type":"string"},"dryRun":{"description":"Print the plan and write nothing","type":"boolean"},"force":{"description":"Overwrite an existing service.json","type":"boolean"},"projectPath":{"description":"Absolute path to the Flisk project root; run this operation from that directory.","type":"string"}},"type":"object"},"name":"project_import"}]}}}
