An agent that only reads code guesses. An agent that can start the app and look at it can check. The Model Context Protocol (MCP) is how you give it that. Here are ten questions an agent should be able to answer about a running app, and the kind of tool that answers each.

flisk mcp runs an MCP server over stdio. It exposes the same commands you type, so the agent follows the same sequence a person would.

The ten checks

  1. Can this machine run the stack at all? Call doctor. Machine-readable output means the agent can stop and explain instead of retrying.
  2. Which services exist? resource_list.
  3. Start it. up. It returns before the stack is ready.
  4. Is it ready? Poll status until every resource is ready. This is the step agents skip most.
  5. What failed first? logs, read from the first failed resource.
  6. What URLs and ports did it pick? Read them from up output. Ports may fall back to 8080, 8443 or 15433.
  7. Did a generated file drift? The start stops and names the file, so the agent fixes the source and regenerates.
  8. Is the right version installed? A pinned version stops the start early with a clear message.
  9. Does the health route tell the truth? The agent hits it, then breaks a dependency and hits it again.
  10. Can it stop cleanly? down, so the next run starts from a known state.

The loop

Call up, poll status, read logs for any failure, then stop. That is all. The poll matters because a build can outlast one command.

What an agent should not do

Do not let it hand-edit generated files, do not let it retry a failed host check in a loop, and do not let it call "up returned" a success.

Setup

Point your agent at the MCP server in its config (Claude Code and Codex both support stdio servers), then ask it to start the stack and report readiness. Compare what it says with flisk status yourself the first time.