Portstack DocsGitHub

Connect an agent

In Agent connections, select Test MCP connection to start a real stdio handshake, discover the tools and read the stack status. Choose Register with Codex, or choose the read-only option for an agent that only needs inspection. Open a new Codex chat after registration.

.\portstack.exe agents test
.\portstack.exe agents register
.\portstack.exe agents status

For another client, copy JSON or TOML from the same screen. Portstack fills in the executable path and selected workspace at runtime. Configure the client to launch that executable with the argument mcp over standard input and output. After moving drives, repair or re-register the entry and start a fresh client session.

Start a project from an agent

  1. Call list_projects to find an imported checkout.
  2. Call preview_project with its name. Read the commands, services, runtime pins and URL with the user.
  3. Pass the returned profile_digest and the name to start_project. If the file has changed, preview it again and review the change before starting.
  4. Use project_status, project_log and stop_project for follow-up.

A client dedicated to inspection of one checkout can launch portstack.exe mcp --read-only --project shop. The scope applies to tool discovery and execution.

Services, databases and skills

Agents can inspect stack status, check releases, install and update runtimes, start or stop services, inspect logs, and list project sites. The database tools are db_list, db_create and db_backup. Run interactive SQL in a human terminal. Use the desktop or CLI to verify and restore a backup.

Registration installs the bundled portstack-projects, portstack-services and portstack-databases skills. Open bundled skills shows the copies shipped with your installation.

In Portstack 0.5, check_update, install_package and update_package also accept the package names heidisql and windows-terminal. Installing a tool makes it available for a person to launch from the desktop or CLI.