No way to create a cron monitor, so agents send users to the UI

未关闭
#1,845 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

@Chipagosfinest 已经在做这个了。

开始于 2026年11月3日。

  • #1846 来自 @Chipagosfinest —— 未关闭

评估

难度
3/5
预计耗时
1-2 天
新手友好度
15/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
活跃
技术栈
cli, typescript

调研方向

Start with the existing monitor tools: create_uptime_monitor, create_metric_monitor, delete_monitor_environment, and the find_monitors description. The issue offers two paths: a catalog-only create_monitor tool for cron schedules, or a find_monitors note pointing to SDK monitor_config and sentry monitor run --schedule. Pull request #1846 is already open against this, so check it before starting. Done means an MCP-only agent can create a cron monitor, or find_monitors explains how to.

由索引模型根据 Issue 内容生成。

描述

When an agent sets up monitoring, it can create uptime monitors (create_uptime_monitor) and metric monitors (create_metric_monitor), but there's no tool to create or update a cron monitor. The only cron write tool is delete_monitor_environment. So the agent tells the user to create the cron monitor in the UI, or skips it, and the job goes unmonitored.

The CLI can already do this with sentry monitor run --schedule, which upserts the monitor on check-in, and SDK monitor_config does the same. Nothing in the MCP points to either.

Suggested fix: add a catalog-only create_monitor tool (schedule, timezone, check-in margin, max runtime, failure/recovery thresholds) next to create_uptime_monitor. If that isn't wanted, add a line to the find_monitors description saying cron monitors are created with SDK monitor_config or sentry monitor run --schedule.

Acceptance: an agent using only the MCP can create a cron monitor, or is told by find_monitors exactly how to create one.

主要语言
TypeScript
星标
949
派生
171
平均合并
1 天 1 小时
30 天内合并 PR
284

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

getsentry/toolkit 的其他 Issue

查看 getsentry/toolkit 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。