Skip to main content
Glama

marker-watch-mcp

marker-watch-mcp 运行一个常驻命令,并将其输出转换为带版本的快照。开始标记开启一个版本;结束标记关闭该版本。服务器保留最近 20 个已完成的版本,并通过 stdio MCP 对外暴露这些快照。

它不监视文件、不重启命令,也不解析诊断信息。可以使用任何外部监视器,只要它发出标记并转发其子命令的输出。

安装

pnpm install
pnpm build
pnpm test

Related MCP server: Run Command MCP Server

命令约定

配置的命令必须保持运行,并将两个标记都写入 stdout 或 stderr。不得重叠运行:一个开始标记,随后该次运行的全部输出,然后一个结束标记。

标记是字面子字符串,在移除 ANSI 控制序列后与完整的输出行进行匹配。返回的快照保留原始文本。

配置

-- 之前传入服务器选项;-- 之后的内容全部成为命令及其精确参数。

node dist/index.js \
  --cwd /absolute/path/to/repo \
  --start-marker '@@build:start@@' \
  --end-marker '@@build:end@@' \
  -- watcher --watch-paths 'src/**/*.ts' -- clyde lint tsc --no-watch app

MCP 客户端示例:

{
  "mcpServers": {
    "marker-watch": {
      "command": "node",
      "args": [
        "/absolute/path/to/marker-watch-mcp/dist/index.js",
        "--cwd", "/absolute/path/to/repo",
        "--start-marker", "@@build:start@@",
        "--end-marker", "@@build:end@@",
        "--",
        "watcher", "--watch-paths", "src/**/*.ts", "--",
        "clyde", "lint", "tsc", "--no-watch", "app"
      ]
    }
  }
}

环境变量替代项为 MARKER_WATCH_MCP_COMMANDMARKER_WATCH_MCP_ARGS(一个 JSON 字符串数组)、MARKER_WATCH_MCP_CWDMARKER_WATCH_MCP_START_MARKERMARKER_WATCH_MCP_END_MARKER

传入 --log-file /tmp/marker-watch.log 或设置 MARKER_WATCH_MCP_LOG_FILE,即可将收到的原始输出写入文件。服务器启动时该文件会被截断。

MCP 工具

  • get_build_status 返回进程状态、活动版本和最新版本。

  • get_build({ version? }) 返回缓存的快照;省略 version 时返回最新版本。

  • await_build({ afterVersion?, timeoutMs? }) 最多等待两分钟。省略 afterVersion 时,它会使用当前已完成的版本,并等待下一个版本。

  • start_build_wait({ afterVersion, timeoutMs? }) 立即返回一个等待 ID;get_build_wait({ id }) 返回其 pending 状态或结果。后台等待最长持续一小时。

  • get_live_output({ tailChars? }) 返回最近的原始 stdout 和 stderr,包括尚未到达结束标记的活动版本。

客户端流程

get_build_status()                    -> latestCompletedVersion: 41
change files (the external watcher starts a run)
await_build({ afterVersion: 41 })     -> version 42 and full output

对于长时间运行的场景,将最后的调用替换为 start_build_wait,稍后根据 ID 再查询。收到 SIGINTSIGTERM 或 MCP 传输关闭时,服务器会停止该命令及其 Unix 进程组。

手动 Inspector 检查

pnpm build
pnpm dlx @modelcontextprotocol/inspector \
  node /absolute/path/to/marker-watch-mcp/dist/index.js \
  --cwd /absolute/path/to/repo \
  --start-marker '@@build:start@@' \
  --end-marker '@@build:end@@' \
  -- watcher --watch-paths 'src/**/*.ts' -- clyde lint tsc --no-watch app
F
license - not found
Not graded
quality - not tested
B
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    Not graded
    quality
    D
    maintenance
    Provides tools for executing shell commands both synchronously and asynchronously with real-time output streaming and process management capabilities. It enables users to start background tasks, monitor progress, and manage long-running processes via Stdio or HTTP transports.
    230
    MIT
  • A
    license
    Not graded
    quality
    B
    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
    B
    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

View all related MCP servers

Related MCP Connectors

  • AI Reasoning Cache & Consensus Layer with 11 MCP tools via Streamable HTTP.

  • Remote MCP for Android CLI agent build gate, structured receipts, audit logs, and reviewer-ready evi

  • Remote MCP server for RunComfy Serverless API (ComfyUI): deployments and async inference.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/foxfirecodes/marker-watch-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server