marker-watch-mcp
marker-watch-mcp
marker-watch-mcp は、長時間動作し続ける1つのコマンドを起動し、その出力をバージョン付きスナップショットに変換します。開始マーカーが1つのバージョンを開始し、終了マーカーがそれを閉じます。サーバーは完了した直近20バージョンを保持し、それらを stdio MCP 経由で公開します。
ファイルの監視、コマンドの再起動、診断の解析は行いません。マーカーを出力し、子コマンドの出力を転送する外部ウォッチャーを利用してください。
インストール
pnpm install
pnpm build
pnpm testRelated MCP server: Run Command MCP Server
コマンド契約
設定したコマンドは実行し続け、両方のマーカーを stdout または stderr に書き出さなければなりません。実行が重なってはなりません。1つの開始マーカー、その実行のすべての出力、そして1つの終了マーカー、という順序です。
マーカーは、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? })は最大2分間待機します。afterVersionを省略した場合は、現在完了済みのバージョンから次のバージョンを待機します。start_build_wait({ afterVersion, timeoutMs? })は待機 ID を即時に返します。get_build_wait({ id })はそのpending状態または結果を返します。バックグラウンドの待機は最長1 時間です。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