Sandbox Timer

Flags idle agent sandboxes (E2B, Vercel, Daytona, Modal), shows idle cost, returns kill calls.

我该使用它吗

质量与安全性

A
描述质量
100%
模式完整度
64%
命名质量
88%
投毒风险
100%
权限匹配度
100%
协议合规性
100%

基于对工具定义和协议合规性的自动分析。

上下文开销

~1,027token 数(工具定义)
~1.6 KB典型响应大小
对注意力有中等影响(占 128k 上下文窗口的 0.80%)

这是每次将服务器的工具加载到模型上下文窗口时所消耗的大致 token 数。数值越高,可用于其他任务的注意力就越少。

安装

一键安装

将以下内容添加到你的 `claude_desktop_config.json` 文件中:

{
  "mcpServers": {
    "timer": {
      "url": "https://timer.cloudforbots.com/mcp"
    }
  }
}

远程端点

https://timer.cloudforbots.com/mcpstreamable-http

它能做什么

工具清单

工具(5)

🟢 只读🟡 写入🔴 删除⚪ 未知
🟡track_sessions(fleet, sessions, idle_minutes, max_lifetime_minutes, rates_per_hour, ...)

Send your agent's running sandbox sessions (up to 200; call it on a heartbeat, e.g. every 5 minutes) and get back which are idle past your threshold or over their max lifetime, the dollars idle time has cost at the hourly rates you pass, and what to do. Pro acts: returns a ready-to-run kill call per idle sandbox for its provider (E2B kill, Vercel Sandbox stop, Daytona stop, Modal terminate) and POSTs one alert per sandbox to your webhook. Free watch-only returns would_kill and sends nothing. We never hold provider keys and never kill anything ourselves: your agent runs the call with its own key.

输入模式

{
  "type": "object",
  "properties": {
    "fleet": {
      "type": "string",
      "description": "A stable name for this group of sandboxes, e.g. \"my-agent\". State and rules are kept per fleet."
    },
    "sessions": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Sandbox id as your provider returns it (E2B sandboxId, Vercel sandbox name, Daytona id or name, Modal object_id)."
          },
          "provider": {
            "type": "string",
            "description": "e2b, vercel, daytona, modal, or any other name."
          },
          "idle_minutes": {
            "type": "number",
            "description": "Minutes since the sandbox last did work (a command, a request). Or pass last_activity_at."
          },
          "last_activity_at": {
            "type": "string",
            "description": "ISO time of the last work in the sandbox (instead of idle_minutes)."
          },
          "age_minutes": {
            "type": "number",
            "description": "Minutes since it started (or pass started_at). Used for max lifetime."
          },
          "started_at": {
            "type": "string",
            "description": "ISO start time (instead of age_minutes)."
          },
          "rate_per_hour": {
            "type": "number",
            "description": "What this sandbox costs you per hour in USD, from your provider's price page or bill. Optional; without it we count minutes, not dollars."
          },
          "status": {
            "type": "string",
            "description": "running (default), paused or stopped. Paused and stopped sessions are skipped."
          },
          "label": {
            "type": "string",
            "description": "Optional human name, e.g. \"repo-tests\"."
          },
          "session_id": {
            "type": "string",
            "description": "Vercel only: the current session id, used in the REST stop call."
          }
        },
        "required": [
          "id"
        ]
      }
    },
    "idle_minutes": {
      "type": "integer",
      "description": "Idle minutes before a sandbox counts as idle. Default 15 (or your saved Pro rule)."
    },
    "max_lifetime_minutes": {
      "type": "integer",
      "description": "Optional: flag sandboxes running longer than this, idle or not."
    },
    "rates_per_hour": {
      "type": "object",
      "description": "Optional default USD per hour by provider, e.g. {\"e2b\": 0.17}. Your own numbers; per-session rate_per_hour wins."
    },
    "alert_webhook": {
      "type": "string",
      "description": "https URL Pro posts the idle alert (with the kill call) to."
    }
  },
  "required": [
    "sessions"
  ]
}
⚪idle_report(fleet, days)

Which sandboxes were flagged idle and what idle time cost, per provider, from what track_sessions has seen. Without an API key pass fleet. With a key: every fleet on it. Free shows 7 days, Pro 30.

输入模式

{
  "type": "object",
  "properties": {
    "fleet": {
      "type": "string",
      "description": "A stable name for this group of sandboxes, e.g. \"my-agent\". State and rules are kept per fleet."
    },
    "days": {
      "type": "integer",
      "description": "1-30 (free max 7)."
    }
  }
}
🟡set_idle_rules(fleet, idle_minutes, max_lifetime_minutes, rates_per_hour, alert_webhook)

Pro: save the rules track_sessions applies to a fleet: idle_minutes threshold, max_lifetime_minutes, default rates_per_hour by provider, and alert_webhook. Free returns a preview of the rules and saves nothing (pass the same values on each track_sessions call instead).

输入模式

{
  "type": "object",
  "properties": {
    "fleet": {
      "type": "string",
      "description": "A stable name for this group of sandboxes, e.g. \"my-agent\". State and rules are kept per fleet."
    },
    "idle_minutes": {
      "type": "integer"
    },
    "max_lifetime_minutes": {
      "type": "integer"
    },
    "rates_per_hour": {
      "type": "object"
    },
    "alert_webhook": {
      "type": "string"
    }
  }
}
🟢weekly_report

Plain-English summary of the last 7 days: sandboxes watched, how many sat idle, dollars idle time cost at your rates, kill calls returned (Pro) or that would have been (free). Read-only; sends nothing. Needs a free API key.

输入模式

{
  "type": "object",
  "properties": {}
}
🟢usage_and_upgrade

Show today's usage for your key or IP and the $9/month upgrade link. Free tier: 500 calls/day. Not metered.

输入模式

{
  "type": "object",
  "properties": {}
}

社区

评价此服务器

证据

最近观测

已验证未记录版本5 个工具