Skip to main content
Glama

marker-watch-mcp

marker-watch-mcp is an MCP server for one long-running command. It watches that command's output for a start and end marker, then saves the enclosed output as a numbered build result.

Use it when another tool already reruns your build or check command. This server does not watch files or restart processes.

Install

Node.js 20+ and pnpm are required.

pnpm install
pnpm build
pnpm link -g

Ensure pnpm's global bin directory is on your PATH, then configure your MCP client to run the linked command:

{
  "mcpServers": {
    "marker-watch": {
      "command": "marker-watch-mcp",
      "args": [
        "--cwd", "/absolute/path/to/project",
        "--start-marker", "@@build:start@@",
        "--end-marker", "@@build:end@@",
        "--",
        "your-watcher", "--", "your-check-command"
      ]
    }
  }
}

Everything after -- is the command to run, with its arguments unchanged. You can instead use --command and --args, or the corresponding MARKER_WATCH_MCP_* environment variables. --log-file /tmp/marker-watch.log keeps a raw output log.

Related MCP server: runkeep-mcp

How it works

The command must stay running and write a start marker followed by an end marker for each run. Markers match literal text in complete output lines after terminal color codes are removed. The saved result keeps the original output.

The server keeps the latest 20 completed results. It exposes these MCP tools:

  • get_build_status — current process and build state.

  • get_build — a saved result; omit version for the latest.

  • await_build — wait for the next result after a version.

  • start_build_wait and get_build_wait — start and poll a non-blocking wait.

  • debug_get_live_output — recent raw output for diagnosing a stuck run.

Typical use

get_build_status()                -> latestCompletedVersion: 41
edit files                        -> your watcher runs the check
await_build({ afterVersion: 41 }) -> version 42 and its output

For a long check, call start_build_wait({ afterVersion: 41 }) and poll the returned ID with get_build_wait.

Available Tools

6 tools
await_buildC

Await the build result of the first completed version after afterVersion.

Inputs: timeoutMs, afterVersion.

debug_get_live_outputA

Return recent raw stdout and stderr from build processes. Meant only for debugging stuck builds.

Inputs: tailChars.

get_buildC

Return the build result of the specified version.

Inputs: version.

get_build_statusB

Return the build process state and latest completed version.

Inputs: no named parameters.

get_build_waitC

Return the state or final result of a non-blocking build wait.

Inputs: id (required).

start_build_waitC

Start a non-blocking wait for the first completed version after afterVersion.

Inputs: afterVersion (required), timeoutMs.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.3/5.0

    Scored across 6 tools

    Disambiguation4/5

    Most tools have clearly distinct purposes: status, specific version result, blocking wait, non-blocking wait state, and debug output. The only mild ambiguity is between get_build_status, get_build_wait, and await_build, which all involve build state/results and require reading descriptions carefully.

    Naming Consistency4/5

    The tool names consistently use snake_case and mostly follow a get_/await_/start_ verb pattern. The compound debug_get_live_output deviates slightly, and the repeated get_build_* prefix creates some similarity, but overall the naming is predictable and readable.

    Tool Count5/5

    Six tools is a well-scoped size for a build-monitoring server. Each tool covers a distinct aspect of querying or waiting for build results without redundancy or bloat.

    Completeness5/5

    The surface covers the key workflows: checking overall status, fetching a specific build result, waiting for the next completed build, starting a non-blocking wait, polling that wait, and debugging unresponsive builds. No critical missing operation is apparent for the stated purpose.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      A lightweight build daemon that exposes project build flows as MCP tools, enabling AI assistants to drive builds, check status, and react to results.
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables management of long-running development processes (such as dev servers, compilers, and watchers) from MCP hosts. Provides tools to start, stop, restart, check status, view logs, and send input to managed processes.
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      MCP server for running long-running processes in PTY with real-time output streaming, enabling interactive dev servers, watch modes, and CLI tools.
      21 npm
      MIT
    • F
      license
      A
      quality
      C
      maintenance
      A local STDIO MCP server for running one bounded command and waiting for its final result, eliminating model-driven polling. Designed for builds, test suites, and other trusted foreground commands.
      3
      2
      -