Urgent.News

What's breaking now, across hundreds of outlets.

Tech

10 Things Your Coding Agent Should Be Able to Check on a Running App (via MCP)

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…

The Model Context Protocol (MCP) allows a coding agent to interact with a running application and verify its functionality. Using the MCP protocol, an agent can perform ten checks to ensure the application is operating correctly.

First, the agent should verify if the machine can run the stack at all. If not, it should call the "doctor" command to diagnose the issue. The agent should then use the "resource_list" command to identify which services exist within the application.

The agent should attempt to start the application with the "up" command, but it should be patient and wait for the stack to become ready, otherwise it risks unnecessary retries. Once the stack is ready, the agent must continuously poll the application's status until every resource is reported as ready.

If any service fails, the agent should read the logs from the first failed resource to identify the cause of the failure. The agent should then read the URLs and ports picked by the application from the output of the "up" command. Ports may fall back to default values such as 8080, 8443 or 15433.

The agent should also check if any generated files have been altered. If a file has drifted, the agent should stop the start process, fix the source code, regenerate the file, and then restart the stack. The agent should confirm that the correct version of the application is installed by having the start process stop early with a clear message if it detects an incorrect version.

The agent should verify that the health route of the application is functioning correctly. It should hit the health route, check if the response is accurate, and then potentially break a dependency and hit the health route again to ensure the response changes as expected.

The final check is ensuring the application can stop cleanly. The agent should use the "down" command to gracefully shut down the application, allowing the next run to start from a known state.

To perform these checks, the agent should follow a loop: call the "up" command, poll the status until all resources are ready, read the logs for any failures, and then stop the application. The loop is important because a build can take longer than a single command to complete. This ensures the agent follows the same sequence a human would, exposing the same commands an agent would type.

When setting up the MCP agent, configure it to point at the MCP server in the application's configuration. Then, ask the agent to start the stack and report its readiness. Compare the agent's output with the "flisk status" command to ensure the agent's verification matches your own understanding of the application's state.

Rewritten by urgent.news; may contain errors — check the original.

Source: dev.to

Read the original at dev.to →

Report a problem with this story

More in Tech

Bookmark This: The Local Dev Checklist Before You Say "Works on My Machine"

"Works on my machine" is a claim about one laptop. Here is a short checklist that turns it into a claim about the project. Run it top to bottom once, then keep it next to your README.

  • Replace "works on my machine" with a short checklist for cross-environment compatibility
  • Use single commands to start/stop application and run host checks for Docker, disk space, port usage
  • Pin tool versions, ignore secrets/env files, test resilience by breaking components

10 Things That Break When You Run Many Services on One Laptop (and the Fix for Each)

Running two services locally is easy. Running ten is a different job. Nothing is hard on its own, but the small failures stack up, and they all look like "it just doesn't start".

  • Disk space issues can prevent build process from completing
  • Port conflicts cause Flisk to fallback to free port ranges
  • Starting many services simultaneously causes resource contention

Why Your Local App Is on Port 8080 (and 7 Other Local Port Surprises)

You expected localhost . You got localhost:8080 , or a database on 15433, and the connection string in your notes no longer works. Local ports are quiet sources of confusion. Here are eight surprises.

  • Port 8080 used by Flisk for HTTP and 8443 for HTTPS when 80 is occupied
  • Database port 5432 commonly used for Postgres installations
  • Flisk's --dry-run feature shows ports before building takes place

More from Monday, 30 November 2026 →