Bir AI agent'ın, LLM işlerini senkron mu yoksa toplu kuyruklar (batch queues) üzerinden mi çalıştırmaya karar vermesi için gerçek zamanlı kuyruk bekleme dağılımlarını ve koşullarını sorgulamasını sağlar.
Ayrıca bilinen adı batchwatch/client
- Yıldızlar
- 0
- Araçlar
- 6
- İndirmeler, 30 gün
- —
- En son sürüm
- 0.1.1
- Son commit
- 31 Ağu 2026
- Lisans
- —
batchwatch MCP nedir?
batchwatch bir MCP sunucusudur. Bir AI agent'ın, LLM işlerini senkron mu yoksa toplu kuyruklar (batch queues) üzerinden mi çalıştırmaya karar vermesi için gerçek zamanlı kuyruk bekleme dağılımlarını ve koşullarını sorgulamasını sağlar. 6 araç sunar; örneğin should_i_batch, estimate_batchtime, conditions.
Özet, projenin README dosyasından oluşturuldu
batchwatch MCP sunucusu hakkında
batchwatch-mcp; Claude, Cursor veya Cline gibi AI agent kullanan geliştiricilerin, LLM işlerini senkron mu yoksa toplu kuyruklar üzerinden mi çalıştırmaları gerektiğine karar vermelerini sağlar. Tahmin yürütmek yerine bir agent, bilinçli yönlendirme kararları vermek için gerçek zamanlı kuyruk bekleme dağılımlarını ve mevcut koşulları sorgulayabilir. Sunucu; güven, temel ve güncellik gibi metrikleri içeren batchwatch API'sinden gelen ham JSON verilerini, sayı uydurmadan veya ETA üretmeden aktaran sadık bir proxy görevi görür.
Kullanıcılar, sunucuyu stdio aracılığıyla MCP uyumlu istemcilerine bağlarlar. Canlı veriler için bir BATCHWATCH_TOKEN gereklidir, ancak token sağlanmasa bile 15 dakikalık gecikmeyle halka açık veriler sunulmaya devam eder. Sunucu; bir kuyruğun maksimum bekleme süresine uyup uymadığını kontrol etmek için should_i_batch, bekleme dağılımlarını görüntülemek için estimate_batchtime ve mevcut durumları son normlarla karşılaştırmak için conditions gibi özel araçlar içerir. API iletişimini yönetmek için BATCHWATCH_URL ve BATCHWATCH_TIMEOUT_MS ayarlarına dayanır.
Neler yapabilirsiniz
- 1Optimal iş yönlendirmesini belirleyinBelirli bir model işinin toplu bir kuyruğa mı gönderilmesi yoksa senkron mu çalıştırılması gerektiğine karar vermesi için bir agent'a danışın.
- 2Potansiyel bekleme sürelerini tahmin edinBelirli bir işin kuyrukta ne kadar süre beklemesinin muhtemel olduğuna dair bir dağılım talep edin.
- 3Kuyruk sağlığını izleyinMevcut kuyruk koşullarının son normlardan sapıp sapmadığını kontrol edin.
- 4Sağlayıcı kullanılabilirliğini doğrulayınHangi sağlayıcı ve model kombinasyonlarının şu anda kullanılabilir veriye sahip olduğunu belirleyin.
Projenin README dosyasından alınmıştır. Her kullanım durumu, oradaki bir alıntı ile kontrol edilir.
batchwatch MCP nasıl yüklenir
Biçimler 10 Kas 2026 tarihinde doğrulandıCursor'a ekleGoose'a eklebatchwatch MCP'yi Claude Code içine yükleyin
$ claude mcp add batchwatch-mcp -- npx -y batchwatch-mcpbatchwatch MCP'yi Cursor içine yükleyin
~/.cursor/mcp.json
{
"mcpServers": {
"batchwatch-mcp": {
"command": "npx",
"args": [
"-y",
"batchwatch-mcp"
]
}
}
}batchwatch MCP'yi VS Code içine yükleyin
.vscode/mcp.json
{
"servers": {
"batchwatch-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"batchwatch-mcp"
]
}
}
}batchwatch MCP'yi VS Code CLI içine yükleyin
$ code --add-mcp '{"name":"batchwatch-mcp","type":"stdio","command":"npx","args":["-y","batchwatch-mcp"]}'batchwatch MCP'yi Claude Desktop içine yükleyin
claude_desktop_config.json
{
"mcpServers": {
"batchwatch-mcp": {
"command": "npx",
"args": [
"-y",
"batchwatch-mcp"
]
}
}
}batchwatch MCP'yi Codex içine yükleyin
$ codex mcp add batchwatch-mcp -- npx -y batchwatch-mcpbatchwatch MCP'yi Codex config.toml içine yükleyin
~/.codex/config.toml
[mcp_servers.batchwatch-mcp] command = "npx" args = ["-y", "batchwatch-mcp"]
batchwatch MCP'yi Gemini CLI içine yükleyin
$ gemini mcp add -s user batchwatch-mcp npx -- -y batchwatch-mcpbatchwatch MCP'yi Gemini settings.json içine yükleyin
~/.gemini/settings.json
{
"mcpServers": {
"batchwatch-mcp": {
"command": "npx",
"args": [
"-y",
"batchwatch-mcp"
]
}
}
}batchwatch MCP araçları 6
README dosyasından algılandıshould_i_batchestimate_batchtimeconditionsdistributioncoveragewait
| should_i_batch | — | |
| estimate_batchtime | — | |
| conditions | — | |
| distribution | — | |
| coverage | — | |
| wait | — |
Yapılandırma
BATCHWATCH_LIVEBATCHWATCH_TOKEN
| Ad | Açıklama | Sunucu |
|---|---|---|
| BATCHWATCH_LIVE | — | |
| BATCHWATCH_TOKEN | — |
Otomatik kontroller
Çalıştırıldı 14 Kas 2026Tam rapor →Otomatik kontrollerimizden geçti. Bu bir güvenlik denetimi değildir: kodu okuyun ve sunucuya ihtiyaç duyduğu en dar erişimi verin. Kontroller nasıl çalışır · Daha fazla puan için nelerin düzeltileceği
- Kaynak deposu bağlantılı ve erişilebilirbatchwatch/client is public and reachablegithub.com/batchwatch/client ↗Geçti
- Paket, bu depoyu kaynağı olarak gösteriyorbatchwatch-mcp names batchwatch/client as sourcenpmjs.com/package/batchwatch-mcp ↗Geçti
- Derleme kökeni (Sigstore onayı)No build attestation published for this releaseKontrol edilmedi
- Açık kaynak lisansı (OSI)No licenseBulgu
- Son bir yıl içinde commit veya sürüm mevcutLast commit or release 2026-08-31github.com/batchwatch/client ↗Geçti
- OpenSSF ScorecardKontrol edilmedi
- Paket adı popüler bir pakete yakın değilNo popular package one edit away from batchwatch-mcpGeçti
- Pakette veya bağımlılıklarında kritik uyarı yok99 resolved dependencies checked; no critical advisoryosv.dev ↗Geçti
- Modele yönelik gizli talimat yok6 tool descriptions and the README read; no override phrases, credential paths or hidden charactersGeçti
- Yıkıcı araçlar etiketlenmişNo tool named like delete, drop or execGeçti
- Uzak uç nokta MCP el sıkışmasına yanıt veriyorKontrol edilmedi
batchwatch MCP server
Let an AI agent ask batchwatch "should I batch this job?" instead of guessing.
When a developer asks Claude, Cursor, Cline or any MCP-speaking agent "should I send this to the batch queue or run it synchronously?", this server lets the agent call batchwatch and get the real queue evidence — the measured wait distribution, the current conditions, a graded confidence, and how fresh the data is.
It wraps batchwatch's existing read routes as MCP tools. It is a thin,
faithful proxy: it makes no decision and invents no numbers. Every answer
is the provider's own JSON, passed through verbatim, carrying the n,
confidence, why, basis and freshness the API already returns. If the API
is down or slow, the tool returns an error — never a fabricated figure.
Access & tiers — the same gate as the rest of batchwatch
Because it is a faithful proxy, the server runs on the same tiers as the
batchwatch API — there is no separate MCP plan and no MCP fast lane. Each
tool carries your BATCHWATCH_TOKEN and earns exactly the tier that key earns
anywhere else:
- No token → you read the public data, delayed 15 minutes. You still get every answer — the distribution, the conditions, the verdict — as fresh as the open API serves them.
- A token → the agent earns that key's tier and its freshness, volume and
livebehaviour. Live figures are what let an agent route real traffic on the answer, and they are bought here the same way they are bought at the API.
One access model, gated in one place — the batchwatch tier system (see the
Tiers, delay, quota and the free trial reference in the batchwatch API docs).
Tools
Each tool maps to a real route in src/index.js (there is deliberately no
tradeoff tool — /v1/tradeoff is named in the KRAVSPEC but not built yet, and
a tool for a route that does not answer would be exactly the fabricated
capability this project refuses to ship).
| Tool | Route | What it answers |
|---|---|---|
should_i_batch |
GET /v1/should-i-batch |
Given a model and your own max_wait, does the batch queue currently honour it? The verdict. |
estimate_batchtime |
GET /v1/estimate-batchtime |
How long is my job likely to wait? A distribution, never a single ETA. |
conditions |
GET /v1/conditions |
Current conditions vs the recent norm — "is it me or them?" |
distribution |
GET /v1/distribution |
The full measured wait distribution (the raw evidence). |
coverage |
GET /v1/coverage |
Which provider+model combos have data, and how answerable each is. |
wait |
GET /v1/wait |
The public "is the queue moving now?" reading (delayed without a key). |
batchwatch reports distributions and current conditions, not point ETAs. A personal history of 3-minute medians once produced a 480-minute job; "your job finishes at 14:32" is a lie the one time it matters. The tools' descriptions say so, so the calling model uses the answer correctly.
Install & run
cd mcp
npm install
node index.js # speaks MCP over stdio
Requires Node ≥ 18 (uses the built-in fetch).
Configuration (environment)
| Var | Default | Meaning |
|---|---|---|
BATCHWATCH_URL |
https://batchwatch.dev |
API base. |
BATCHWATCH_TOKEN |
(unset) | Optional API key. Without it the data is delayed, not absent — you still get answers, just older ones. |
BATCHWATCH_TIMEOUT_MS |
8000 |
Per-call timeout. On timeout the tool errors; it never guesses. |
Wiring into a client
Claude Desktop / Cursor / Cline mcpServers entry:
{
"mcpServers": {
"batchwatch": {
"command": "node",
"args": ["/absolute/path/to/batchwatch/mcp/index.js"],
"env": { "BATCHWATCH_TOKEN": "tk_your_key_optional" }
}
}
}
Tests
npm test # offline unit tests (mocked fetch) — deterministic
BATCHWATCH_LIVE=1 npm test # also runs the live smoke against BATCHWATCH_URL
The unit tests assert the load-bearing properties: omitted numeric fields are
never sent as 0; the provider JSON is passed through unchanged; only the real
routes are exposed (no tradeoff); and an API error yields an error, never a
number.
Publishing (registry reach — the point of #57)
The highest-leverage distribution channel for a 2026 dev tool is being the
answer an agent reaches for by default. Once this is published so agents can
install it, batchwatch wins the call instead of merely being mentioned. Targets:
the Anthropic MCP registry, Smithery, and
mcp.so. The package is publish-ready (bin: batchwatch-mcp,
zero build step); registry submission is tracked on Vikunja task #57.
Why this exists
batchwatch measures how long jobs actually wait in LLM providers' async batch queues. Batch is half price, but "done within 24 hours" cannot be planned around, so most callers pay full price out of habit. This server puts the queue evidence one tool-call away from the agent that is about to make that choice.
batchwatch MCP soruları
batchwatch MCP'yi Claude Code'a nasıl eklerim?
Terminalinizde claude mcp add batchwatch-mcp -- npx -y batchwatch-mcp komutunu çalıştırın. Her projede kullanılabilir olması için --scope user ekleyin.
batchwatch MCP'yi Cursor'a nasıl eklerim?
~/.cursor/mcp.json dosyasını açın ve yukarıdaki yükleme bölümünde gösterilen Cursor yapılandırmasını kullanarak sunucuyu mcpServers altına ekleyin.
batchwatch MCP hangi araçları sunar?
6 araç sunar; bunlar arasında should_i_batch, estimate_batchtime, conditions, distribution, coverage yer alır.
batchwatch kullanmak için bir API anahtarına ihtiyacım var mı?
Hayır, halka açık verileri okumak için bir token olmadan kullanabilirsiniz, ancak veriler 15 dakika gecikmeli olacaktır.
Sunucu, iş tamamlanması için belirli ETA değerleri sağlıyor mu?
Hayır, doğruluk sağlamak adına sunucu tek bir nokta ETA yerine ölçülen bekleme dağılımlarını ve mevcut koşulları raporlar.
batchwatch API'sine ulaşılamazsa ne olur?
Araç, uydurma veya tahmin edilmiş bir rakam sunmak yerine hata döndürecektir.