marker-watch-mcp
marker-watch-mcp
marker-watch-mcp 运行一个常驻命令,并将其输出转换为带版本的快照。开始标记开启一个版本;结束标记关闭该版本。服务器保留最近 20 个已完成的版本,并通过 stdio MCP 对外暴露这些快照。
它不监视文件、不重启命令,也不解析诊断信息。可以使用任何外部监视器,只要它发出标记并转发其子命令的输出。
安装
pnpm install
pnpm build
pnpm testRelated 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 appMCP 客户端示例:
{
"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_COMMAND、MARKER_WATCH_MCP_ARGS(一个 JSON 字符串数组)、MARKER_WATCH_MCP_CWD、MARKER_WATCH_MCP_START_MARKER 和 MARKER_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 再查询。收到 SIGINT、SIGTERM 或 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 appThis server cannot be installed
Maintenance
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
- AlicenseAqualityDmaintenanceAn MCP server that enables coding agents to execute and manage long-running shell commands asynchronously with capabilities for process monitoring, interaction, and lifecycle management.713MIT
- AlicenseNot gradedqualityDmaintenanceProvides 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.230MIT
- AlicenseNot gradedqualityBmaintenanceA lightweight build daemon that exposes project build flows as MCP tools, enabling AI assistants to drive builds, check status, and react to results.MIT
- AlicenseNot gradedqualityBmaintenanceEnables 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
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.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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