jira-alerts-mcp
jira-alerts-mcp
一个面向 Jira Service Management Operations REST API 的 MCP 服务器——用于告警与值班(on-call)。
为什么存在
**告警不是工作项。**它们位于另一套 API 之后——/jsm/ops/api,即重新托管后的 Opsgenie 界面——拥有自己的作用域、自己的 id 格式,以及自己的异步写入语义。MCP Registry 列出了 30 个 Jira 服务器;它们全部只针对工作项。没有哪一个能告诉你此刻是什么正在寻呼你。
官方的 Atlassian MCP 服务器并没有填补这一空白。atlassian/atlassian-mcp-server 覆盖了 Jira、Confluence、Jira Service Management 请求、Bitbucket、Compass 和 Teamwork Graph。它没有任何用于告警、排班或值班的工具。它同时也是一个托管式的封闭服务器——该仓库只存放 manifests 和 skills,而不存放 handlers——因此这个空白只能由 Atlassian 自己来填补,不是一次贡献就能修复的。
那些确实存在的 Opsgenie MCP 服务器,所对接的 API 是有终止日期的。giantswarm/mcp-opsgenie、burakdirin/opsgenie-mcp-server 和 daviddykeuk/opsgenie-mcp 都使用 GenieKey 调用 api.opsgenie.com。Opsgenie 已于 2025 年 6 月 4 日停止销售,并将于 2027 年 4 月 5 日关闭,届时这些 REST API 将停止响应。相关功能已迁移到 Jira Service Management 中。
本服务器面向的正是取代它们的 API 表面:使用 OAuth 或 Atlassian API token 访问 api.atlassian.com/jsm/ops/api/{cloudId}。你可以搜索告警、读取告警的备注与活动时间线、确认 / 关闭 / 添加备注 / 添加响应人,并查询当前和下一个值班的人是谁。
Related MCP server: pagerduty-mcp
兼容性
适用于拥有 JSM Operations 的 Atlassian Cloud 租户——也就是已从独立 Opsgenie 迁移出来的站点,或是在合并之后新开通的站点。如果你的团队仍然登录 app.opsgenie.com 并使用 GenieKey 认证,本服务器将无法访问你的数据;上面提到的某个 Opsgenie 服务器可以,但只能用到 2027 年。
基础 URL:https://api.atlassian.com/jsm/ops/api/{cloudId}/v1
工具
工具 | 端点 | 读/写 |
|
| 读 |
|
| 读 |
|
| 读 |
|
| 读 |
|
| 读 |
|
| 写 |
|
| 写 |
|
| 写 |
|
| 写 |
|
| 读 |
|
| 读 |
|
| 读 |
刻意不实现:DELETE /v1/alerts/{id} 和告警创建。删除告警会销毁审计历史且无法撤销;而告警创建属于集成 API(/jsm/ops/integration/v2/alerts)的职责范围——它需要 integration key,而不是交互式代理该做的事。如果你有具体需求,请提交 issue。
工具描述中写明的三个 API 行为
这些是会悄无声息地破坏天真集成的细节,因此它们被明确写进了工具描述里,模型实际会读到这些内容:
**写入是异步的。**每个变更端点都会立即返回
{ result, requestId, took },并在带外应用更改。刚执行确认(ack)后立刻重新读取告警,往往仍会显示为未确认。jsm_get_request_status是正确的验证路径,每个写入工具都会指向它。**
tinyId不是 id。**JSM UI 中的短编号(#4821)会被/v1/alerts/{id}拒绝——该端点只接受完整的uuid-timestamp格式 id。别名则需要一个完全不同的端点(/v1/alerts/alias?alias=)。schema 描述和 404 处理器都明确说明了这一点,因此模型会自我纠正,而不是重试同一个调用。搜索窗口上限为 20,000。
offset + limit必须保持在该值以下。jsm_list_alerts会在本地拒绝更深的翻页,并提示模型收窄查询范围,而不是在注定返回 400 的调用上浪费一次往返。
设置
需要 Node ≥ 22。
git clone https://github.com/rrvrs/jira-alerts-mcp.git
cd jira-alerts-mcp
npm install
npm run build配置
复制 .env.example 作为参考。请注意,服务器不会自己读取 .env——MCP 服务器由其客户端启动,环境由客户端掌管。请将该文件作为客户端 env 块的核对清单;本地开发时也可以使用 set -a; source .env; set +a。
变量 | 是否必需 | 说明 |
| 是 | 你的 Atlassian 站点的 cloud id(一个 UUID) |
| 二选一 | |
| 二选一 | OAuth 3LO bearer;若已设置则优先使用 |
| 否 |
|
| 否 | HTTP 传输;默认值为 |
| 否 | 逗号分隔的 |
凭据会在启动时进行校验,因此错误的配置会立即失败并给出可操作的提示,而不是在第一次工具调用时才报错。
**查找你的 cloud id。**在登录状态下打开 https://<your-site>.atlassian.net/_edgeAuth/tenantInfo,或者使用你的 token 调用 GET https://api.atlassian.com/oauth/token/accessible-resources。
**所需作用域。**读取工具需要 read:ops-alert:jira-service-management;写入工具需要 write:ops-alert:jira-service-management。仅授予读取作用域是受支持的配置——此时写入工具会以 403 失败,并指出缺失的作用域。
该账号还需要具备相关团队的 JSM Operations 访问权限。告警和排班都挂在团队的 Operations 页面上,因此无法看到该团队的凭据会得到空列表,而不是报错。
接入 Claude Code
claude mcp add jsm-alerts \
--env JSM_CLOUD_ID='your-cloud-id' \
--env JSM_EMAIL='you@example.com' \
--env JSM_API_TOKEN="${JSM_API_TOKEN}" \
-- node /absolute/path/to/jira-alerts-mcp/dist/index.js有两个容易踩坑的地方:服务器名称是第一个位置参数,位于任何标志之前;另外在 zsh 中 ${VAR} 需要加引号。对于通过 GUI 启动的会话,token 必须放在 ~/.claude/settings.json 的 env 块中——shell 环境不会被继承。
测试
npm test # offline test suite — no network, no tenant
npm run inspect # MCP Inspector against dist/index.js — needs credentials进行真实环境检查时,先从 jsm_list_schedules 开始。它不需要任何 id,一次调用就能确认认证、作用域和团队可见性。
端点验证状态
这些路径都对照着 JSM ops REST API 参考文档 逐一核实过,而不是凭空假设:
已在官方文档中确认:
/v1/alerts、/v1/alerts/{id}、/v1/alerts/alias、/v1/alerts/requests/{id}、/v1/alerts/{id}/acknowledge、/v1/alerts/{id}/close、/v1/alerts/{id}/responders、/v1/alerts/{id}/notes、/v1/schedules/{id}/on-calls、/v1/schedules/{id}/next-on-calls。与 Opsgenie 保持一致,值得在首次运行时确认:
GET /v1/alerts/{id}/logs以及备注/日志翻页的确切查询参数(order、offset游标)。JSM Operations 是 Opsgenie API 的重新托管版,这些内容在那里没有变化;但文档站点采用客户端渲染,无法端到端地完整读取。集合封装(collection envelope):Atlassian 在集合是返回在
data下还是values下这一点上并不一致。JsmClient.getCollection两者都接受并会进行归一化,因此无论哪种情况都无需改动——但如果某个列表工具在你确信数据存在时返回零条记录,那么这个归一化器就是首先要检查的地方。
架构
src/
├── index.ts # transports and startup credential validation
├── server.ts # assembles the tool domains
├── constants.ts # API root, limits
├── types.ts # JSM API interfaces
├── schemas/common.ts # Zod fragments shared across domains
├── services/
│ ├── client.ts # auth, request, envelope normalisation, error mapping
│ └── format.ts # markdown rendering, truncation, result envelopes
└── tools/
├── define.ts # defineTool() + registerTools()
├── list-executor.ts # the shared list pipeline
├── alerts/ # read tools — one file per tool, plus shapes.ts
├── actions/ # write tools, all via execute-action.ts
└── oncall/ # schedules and on-call每个文件对应一个工具。一个工具模块只拥有自己的输入结构(input shape)、描述和处理器,仅此而已——最大的也只有约 100 行。server.ts 负责拼接三个域导出的数组;index.ts 只关心传输层。
在你扩展它时,有三条约定值得保留:
每个列表工具都经由
executeList(tools/list-executor.ts)。它负责数据获取、空结果分支、截断至 25,000 字符、分页块以及格式切换。这段逻辑曾经分散在每个工具各自的副本中,也因此出现过两个 bug——空页面返回了被 SDK 拒绝的结果,以及next_offset跳过了因截断而被丢弃的记录。现在只有一份,这是有意为之。每个写入操作都经由
executeAction(tools/actions/execute-action.ts),因此异步回执(async-receipt)约定不会在四个写入工具之间产生偏差。分页报告的是实际交付的内容,而不是获取到的内容。
count和next_offset描述的是响应中实际存在的记录;当 API 返回的数据超出了可容纳范围时,truncated会做出标记。
关于 inputSchema 的说明
MCP TypeScript SDK 的 registerTool 期望的是原始的 Zod shape(一个由 Zod 类型组成的普通对象),而不是 z.object(...)。正如一些示例所展示的,传入 z.object 会失败。这里的工具定义的是普通 shape,并通过 z.infer<z.ZodObject<typeof shape>> 推导其输入类型。由此带来的一个后果:.strict() 无法应用于原始 shape,因此未知键会被剥离而不是被拒绝。
与此相关,ToolResult 是类型别名(type alias),而不是接口(interface):SDK 的 CallToolResult 带有索引签名(index signature),而 TypeScript 只会隐式地将索引签名授予类型别名。
贡献
开发循环、值得保留的约定以及如何新增工具,请参阅 CONTRIBUTING.md。Issue 和 PR 中不得包含 cloud id、token 或真实的告警数据。
安全
本服务器持有 Atlassian 凭据,且 HTTP 传输层本身不执行任何认证——威胁模型、加固建议以及如何私下报告漏洞,请参阅 SECURITY.md。
许可证
Available Tools
28 toolsjsm_acknowledge_alertAcknowledge a JSM alertAIdempotent
Acknowledge an open JSM alert, stopping further escalation notifications for it.
Acknowledging signals that a human has picked the alert up. It does not resolve the alert — use jsm_close_alert for that. Acknowledging an already-acknowledged alert is a no-op.
Args:
alert_id (string): the full alert id (not the tinyId)
Returns: { "requestId": string, "result": string, "alert_id": string }
IMPORTANT: this action is asynchronous. The response confirms the request was accepted, not that the alert changed. Verify with jsm_get_request_status using the returned requestId.
Examples:
"Ack the Redis latency alert, I'm on it" -> alert_id=, note="Investigating, RVS"
Inputs: alert_id (required). Returns: result, alert_id, requestId
jsm_add_alert_extra_propertiesAttach key/value properties to a JSM alertADestructiveIdempotent
Attach arbitrary key/value context to a JSM alert, or overwrite properties already on it.
Extra properties are the structured half of an alert, next to the prose in its description: a runbook link, the region, the deploy that preceded it, a trace id. Unlike a note they can be read back programmatically by whatever picks the alert up next.
Args:
alert_id (string): the full alert id (not the tinyId)
extra_properties (object): key/value pairs; values may be strings, numbers or booleans
Returns: { "requestId": string, "result": string, "alert_id": string }
IMPORTANT: this action is asynchronous. Verify with jsm_get_request_status using the returned requestId.
This merges by key: keys not mentioned are left alone, and a key that already exists is overwritten without warning. Read the alert first with jsm_get_alert if you need to know what a key currently holds.
Examples:
"Note the runbook on this alert" -> extra_properties={"runbook": "https://wiki/runbooks/db-failover"}
Inputs: alert_id (required), extra_properties (required). Returns: result, alert_id, requestId
jsm_add_alert_noteAdd a note to a JSM alertA
Append a note to a JSM alert's activity timeline without changing its state.
Use this to record triage findings, link a runbook or dashboard, or leave context for the next responder. It does not acknowledge, close, or reassign the alert.
Args:
alert_id (string): the full alert id (not the tinyId)
note (string): the note text
user (string, optional): actor name/email; defaults to the credential owner
source (string, optional): source label for the activity log
Returns: { "requestId": string, "result": string, "alert_id": string }
IMPORTANT: this action is asynchronous. Verify with jsm_get_request_status using the returned requestId.
Examples:
"Note that this correlates with the 14:02 deploy" -> alert_id=, note="Correlates with deploy 4412 at 14:02 UTC"
Inputs: note (required), alert_id (required). Returns: result, alert_id, requestId
jsm_add_alert_responderAdd a responder to a JSM alertAIdempotent
Add a responder (user, team, escalation or schedule) to an existing JSM alert so they are notified and become accountable for it.
Use this to pull in another team once triage shows the alert belongs elsewhere. Responders are additive — this does not remove the existing ones.
Args:
alert_id (string): the full alert id (not the tinyId)
responder_id (string): id of the user/team/escalation/schedule to add
responder_type ('user' | 'team' | 'escalation' | 'schedule'): what responder_id refers to
Returns: { "requestId": string, "result": string, "alert_id": string }
IMPORTANT: this action is asynchronous. Verify with jsm_get_request_status using the returned requestId.
Examples:
"Page the database team on this" -> responder_id=, responder_type="team"
Error handling:
HTTP 422 or a failed request status usually means responder_id doesn't exist or its type is wrong. Team and schedule ids can be found with jsm_list_schedules or the JSM UI.
Inputs: alert_id (required), responder_id (required), responder_type (required). Returns: result, alert_id, requestId
jsm_add_alert_tagsAdd tags to a JSM alertAIdempotent
Add one or more tags to a JSM alert. Tags are additive — existing ones stay.
Tags are how alerts get grouped and found later: jsm_list_alerts can filter on them (tag:"db"), and they are what turns a scattering of individual alerts into "the seventeen from last night's storage incident".
Args:
alert_id (string): the full alert id (not the tinyId)
tags (string[]): one or more tag names
Returns: { "requestId": string, "result": string, "alert_id": string }
IMPORTANT: this action is asynchronous. Verify with jsm_get_request_status using the returned requestId.
Tags are case-sensitive. 'DB' and 'db' are two tags, and searches will not find one by the other — so match whatever the team already uses rather than inventing a casing.
Examples:
"Tag this as part of the storage incident" -> tags=["incident-2026-09-05", "storage"]
Inputs: tags (required), alert_id (required). Returns: result, alert_id, requestId
jsm_assign_alertAssign a JSM alert to a personAIdempotent
Make one person the owner of a JSM alert, so it is clear who is working it.
Assigning names an owner; jsm_add_alert_responder adds people to notify without taking ownership away. Reach for this when triage has decided whose problem it is, and for that one alert rather than a class of them — routing rules, not assignment, are how a class of alerts finds its team.
Args:
alert_id (string): the full alert id (not the tinyId)
account_id (string): Atlassian account id of the assignee
Returns: { "requestId": string, "result": string, "alert_id": string }
IMPORTANT: this action is asynchronous. Verify with jsm_get_request_status using the returned requestId.
account_id is an Atlassian account id, not an email address and not a display name. It looks like '712020:9ae5385e-6a4c-4f0e-9c02-6f8a1e21d7b1'. Both other forms are rejected. To find one: jsm_get_on_call and jsm_get_alert both return account ids for the people they name, so read the id from there rather than guessing from a name.
Examples:
"Assign this to whoever is on call for payments" -> jsm_get_on_call first, take the account id from the result, then assign
Constraints and errors:
HTTP 422 or a failed request status usually means the account id is wrong, or the account has no JSM Operations access on that team.
Inputs: alert_id (required), account_id (required). Returns: result, alert_id, requestId
jsm_close_alertClose a JSM alertADestructiveIdempotent
Close a JSM alert, marking it resolved and ending all notifications for it.
Closing is how an alert leaves the open queue. Treat it as effectively one-way: a closed alert cannot be reopened through this API, and a recurring condition will create a fresh alert (or increment a deduplicated one) rather than reviving this record. Prefer jsm_acknowledge_alert while work is still in progress.
Args:
alert_id (string): the full alert id (not the tinyId)
Returns: { "requestId": string, "result": string, "alert_id": string }
IMPORTANT: this action is asynchronous. Verify with jsm_get_request_status using the returned requestId.
Examples:
"Close it, the deploy fixed it" -> alert_id=, note="Resolved by rollback of build 4412"
Don't use when: the alert is still being worked — acknowledge instead.
Inputs: alert_id (required). Returns: result, alert_id, requestId
jsm_create_alertCreate a JSM alertA
Create a new alert in Jira Service Management Operations.
This pages people. A created alert enters the team's routing and escalation rules exactly as one raised by a monitoring integration would, so someone's phone may ring. Create one when a human wants an incident tracked and escalated — not to leave a note, which is jsm_add_alert_note, and not to record something nobody needs to act on.
Args:
message (string): one-line summary. The ONLY required field.
alias (string, optional): de-duplication key — see below
description (string, optional): longer detail, impact, what to try
priority ('P1'..'P5', optional): P1 highest; omit to let routing rules decide
responders (array, optional): [{ id, type }] with type 'user' | 'team' | 'escalation' | 'schedule'
visible_to (array, optional): [{ id, type }] with type 'user' | 'team'; max 50
entity (string, optional): what the alert is about, e.g. 'payments-api'
tags (string[], optional)
actions (string[], optional): names of custom actions configured in your org
extra_properties (object, optional): arbitrary key/value context
note (string, optional): note recorded on the new alert's timeline
source (string, optional): where the alert came from, e.g. 'claude-mcp'
There is no 'user' argument, unlike the other write tools: this endpoint has no actor override, and the alert is created as the owner of the credentials.
Returns: { "requestId": string, "result": string, "alias": string }
IMPORTANT: this is asynchronous, and it does not return the new alert's id. The response confirms the request was accepted, not that an alert exists. Unusually for this API the status code is 200 rather than 202, which does not make it synchronous. To get the id: call jsm_get_request_status with the returned requestId, or — if you set an alias — jsm_get_alert with identifier_type='alias'.
Alias is the de-duplication key, and it is the difference between a safe retry and a silent no-op. Creating with an alias that already has an OPEN alert does not create a second alert; it increments the existing one's count and leaves everything else alone. That makes a retried create safe. It also means reusing an alias from an earlier, still-open incident quietly does nothing visible — so make aliases specific to the occurrence, not to the check.
Examples:
"Raise a P1 for the payments API being down" -> message="Payments API returning 503", priority="P1", entity="payments-api"
Retryable create -> alias="payments-api-503-2026-09-05T11:00"
Constraints and errors:
Needs write:ops-alert:jira-service-management alongside the read scope. A token with only read scopes gets 403.
Responders bypass the team's routing rules. Omit them unless you specifically want to route around routing.
HTTP 422 usually means a responder id doesn't exist or its type is wrong.
Inputs: message (required), note, tags, alias, +8 more. Returns: alias, result, requestId
jsm_delete_alertPermanently delete a JSM alertADestructiveIdempotent
Permanently delete a JSM alert and everything recorded on it.
This is almost never the right tool. Closing an alert with jsm_close_alert takes it out of the open queue and keeps the record: who was paged, what they tried, when it resolved. Deleting throws that away, for everyone, with no undo — the notes, the activity log, the attachments and the timing all go with it. A closed alert costs nothing to keep.
The cases that justify it are narrow: an alert containing credentials or personal data that must not persist, or a flood of alerts from a misconfigured integration that never represented anything real.
Args:
alert_id (string): the full alert id (not the tinyId)
Returns: { "requestId": string, "result": string, "alert_id": string }
IMPORTANT: this action is asynchronous. Verify with jsm_get_request_status using the returned requestId.
Before calling this, read the alert back with jsm_get_alert and show the user what they are about to lose — its message, its state and how many notes it carries — and get an explicit yes. Never call it to tidy up, to clear a queue, or in a loop over search results.
Constraints and errors:
Needs delete:ops-alert:jira-service-management, a separate grant from write:ops-alert. A token that can close alerts usually cannot delete them, and that is a deliberate configuration rather than a problem to work around.
Inputs: alert_id (required). Returns: result, alert_id, requestId
jsm_delete_alert_noteDelete a note from a JSM alertADestructiveIdempotent
Permanently remove a note from a JSM alert's timeline.
Reach for this only for a note that should never have been written — a pasted credential, someone's personal information, a note on the wrong alert. Not for a note that turned out to be wrong: that is what jsm_update_alert_note is for, and being able to see what a responder believed at the time is most of what the timeline is worth.
Args:
alert_id (string): the full alert id (not the tinyId)
note_id (string): id of the note to delete, from jsm_list_alert_notes
Returns: { "deleted": true, "note_id": string }
There is no undo, and no confirmation step at the API. The note is gone the moment this returns. Confirm with the user before calling it, and quote the note's text back to them first so they are deleting the thing they think they are.
Unlike most alert writes this is synchronous: the API answers 204 with no body, so there is no requestId to verify.
Constraints and errors:
Needs delete:ops-alert:jira-service-management, which is a separate grant from write:ops-alert. A token that can edit notes may still get 403 here.
Inputs: note_id (required), alert_id (required). Returns: deleted, note_id
jsm_escalate_alertEscalate a JSM alert through an escalation policyAIdempotent
Push a JSM alert into an escalation policy immediately, rather than waiting for it to escalate on its own.
Use this when an alert is not getting picked up and waiting out the escalation timer is not acceptable. It pages the next people in that policy now.
Args:
alert_id (string): the full alert id (not the tinyId)
escalation_id (string): id of the escalation policy to run
Returns: { "requestId": string, "result": string, "alert_id": string }
IMPORTANT: this action is asynchronous. Verify with jsm_get_request_status using the returned requestId.
This pages people out of band, ahead of the schedule they agreed to. Confirm with the user before escalating on their behalf.
escalation_id is an escalation policy id — not a team id and not a schedule id. The three are separate objects with separate ids, and passing the wrong one fails with 422 rather than escalating to something adjacent.
Examples:
"Nobody has picked this up, escalate it" -> get the escalation id for the team, then escalate
Constraints and errors:
HTTP 422 or a failed request status usually means escalation_id is not an escalation, or belongs to a different team than the alert.
Inputs: alert_id (required), escalation_id (required). Returns: result, alert_id, requestId
jsm_execute_alert_actionRun a custom action on a JSM alertADestructive
Run one of your organisation's own custom alert actions — the buttons a team wires up on an integration, like "Restart service" or "Roll back deploy".
What these do is entirely up to whoever configured them, and this server cannot see it. An action name is a request to run somebody's automation against production.
Args:
alert_id (string): the full alert id (not the tinyId)
action_name (string): the configured action's name, exactly as configured
Returns: { "requestId": string, "result": string, "alert_id": string }
IMPORTANT: this action is asynchronous. Verify with jsm_get_request_status using the returned requestId.
Do not guess an action name. There is no endpoint that lists them, so a plausible-sounding guess is exactly as likely to be a real destructive automation as it is to be nothing. An unrecognised name is accepted and silently does nothing, which means a successful receipt is not evidence that anything ran. Ask the user which action they mean, and confirm before running it.
Constraints and errors:
Names are configured per integration, so an action that exists for one alert's source may not exist for another's.
Inputs: alert_id (required), action_name (required). Returns: result, alert_id, requestId
jsm_get_alertGet JSM alert detailsARead-onlyIdempotent
Retrieve the full detail of a single JSM alert, including its description, custom details/extraProperties, responders, tags and dedupe count.
Use this after jsm_list_alerts when you need the payload an integration attached to the alert (host, service, metric values, runbook links) — the list endpoint returns a thinner record without the description or details map.
Args:
identifier (string): the full alert id, or an alias when identifier_type='alias'
identifier_type ('id' | 'alias'): default 'id'
response_format ('markdown' | 'json'): default 'markdown'
Returns (json format): a single alert object with id, tinyId, message, description, status, acknowledged, snoozed, priority, source, owner, tags, responders, details (custom key/value map), extraProperties, count, createdAt, updatedAt, lastOccurredAt, and a report block with acknowledgedBy/closedBy. Responder ids are resolved to names where the credentials allow it.
Examples:
"What does alert #4821 actually say?" -> resolve the id via jsm_list_alerts, then call with identifier=
"Look up the alert our pipeline created with alias 'redis-latency-prod'" -> identifier="redis-latency-prod", identifier_type="alias"
Error handling:
HTTP 404 usually means a tinyId was passed instead of the full id. Resolve it with jsm_list_alerts first.
Aliases only resolve against OPEN alerts; a closed alert must be fetched by id.
Inputs: identifier (required), identifier_type, response_format. Returns: alert
jsm_get_next_on_callGet who is on-call nextARead-onlyIdempotent
Return the responders who take over the next shift on a JSM schedule, and when that shift begins.
Use this for handover messages and for deciding whether an alert can wait for the next rotation.
Args:
schedule_id (string): schedule id, or name if schedule_identifier_type='name'
schedule_identifier_type ('id' | 'name'): default 'id'
date (string, optional): ISO 8601 reference point; "next" is computed relative to it. Defaults to now
flat (boolean): default true — flat list of user identifiers; false shows rotation/escalation nesting
response_format ('markdown' | 'json'): default 'markdown'
Returns (json format): { "next_on_call": { ... }, // the API response, unmodified "participants": [ // resolved, and the field to read { "id": string, "type": string, "displayName": string, "emailAddress": string } ] }
Responders are Atlassian account ids; this tool resolves them to names for you. If the credentials lack the Jira user scope the ids are still returned, with a note saying so.
Examples:
"Who picks up after this shift?" -> schedule_id=
"Who is on after the shift that covers Thursday?" -> date="2026-08-27T12:00:00Z"
"Draft a handover note" -> combine with jsm_list_alerts query="status:open"
Error handling:
HTTP 401 here while alert tools work means the token is missing read:ops-config:jira-service-management — schedules and on-call sit behind a different scope from alerts, so this is a scope gap, not a bad credential.
Inputs: schedule_id (required), date, flat, response_format, +1 more. Returns: shift, next_on_call, participants
jsm_get_on_callGet who is on-call nowARead-onlyIdempotent
Return the responders currently on-call for a JSM schedule, optionally evaluated at a past or future timestamp.
This is the tool for "who do I wake up?" and, with the 'date' argument, for "who was on-call when this incident started?" — which is often the more useful question during a post-incident review.
Args:
schedule_id (string): schedule id, or name if schedule_identifier_type='name'
schedule_identifier_type ('id' | 'name'): default 'id'
date (string, optional): ISO 8601 timestamp to evaluate at; defaults to now
flat (boolean): default true — flat list of user identifiers; false shows rotation/escalation nesting
response_format ('markdown' | 'json'): default 'markdown'
Returns (json format): { "on_call": { ... }, // the API response, unmodified "participants": [ // resolved, and the field to read { "id": string, "type": string, "displayName": string, "emailAddress": string } ] }
Responders are Atlassian account ids; this tool resolves them to names for you, so there is no need to look an id up elsewhere. If the credentials lack the Jira user scope the ids are still returned, with a note saying so.
Examples:
"Who's on-call for platform right now?" -> schedule_id="platform", schedule_identifier_type="name"
"Who was on-call at 03:14 UTC yesterday?" -> date="2026-08-20T03:14:00Z"
Error handling:
An empty result means nobody is rostered at that moment — a real and important answer, not a failure.
HTTP 404 means the schedule id/name is wrong; list them with jsm_list_schedules.
HTTP 401 here while alert tools work means the token is missing read:ops-config:jira-service-management — schedules and on-call sit behind a different scope from alerts, so this is a scope gap, not a bad credential.
Inputs: schedule_id (required), date, flat, response_format, +1 more. Returns: shift, on_call, participants
jsm_get_request_statusCheck JSM async request statusARead-onlyIdempotent
Check whether an asynchronous alert action actually succeeded.
Every JSM alert write (acknowledge, close, add note, assign, snooze) returns immediately with a requestId and does NOT apply the change synchronously. Pass that requestId here to confirm the action landed — this is the correct way to verify a write, rather than immediately re-reading the alert and finding it unchanged.
Args:
request_id (string): the requestId returned by a write tool
response_format ('markdown' | 'json'): default 'markdown'
Returns (json format): { "action": string, // e.g. "Acknowledge" "isSuccess": boolean, "status": string, // human-readable outcome, e.g. "Alert acknowledged" "processedAt": string, // ISO 8601 "alertId": string, "alias": string }
Examples:
After jsm_acknowledge_alert returns requestId "d383c6e9-..." -> request_id="d383c6e9-..."
Error handling:
HTTP 404 shortly after a write usually means the request is still queued; wait a second and retry.
Inputs: request_id (required), response_format. Returns: request
jsm_get_schedule_timelineGet a schedule's shift boundariesARead-onlyIdempotent
Return the on-call rotation periods for a JSM schedule — who covers each shift, and exactly when each shift starts and ends.
This is the tool for any question about shift boundaries rather than a single moment: "when does the current shift end?", "when is the handover?", "who covers the weekend?", "show me next week's rota". Answering those by calling jsm_get_on_call at guessed timestamps takes many calls and still cannot find a boundary exactly; this takes one.
Responders are resolved to names, so periods come back with people rather than bare account ids.
Args:
schedule_id (string): schedule id, or name if schedule_identifier_type='name'
schedule_identifier_type ('id' | 'name'): default 'id'
date (string, optional): ISO 8601 instant the window should cover; defaults to now
response_format ('markdown' | 'json'): default 'markdown'
Returns (json format): { "shifts": [ { "start": string, // ISO 8601 "end": string, // ISO 8601 "rotation_name": string, "type": "base" | "override" | "forwarding" | "historical", "responders": [ { "id": string, "displayName": string, "emailAddress": string } ] } ] }
The window spans roughly three weeks around the requested date, so both the shift in progress and the ones on either side of it are included.
Examples:
"When does the current on-call shift end?" -> schedule_id=
"Who has the rota next week?" -> date=
"When did the handover happen on Tuesday?" -> date="2026-08-25T00:00:00Z"
Error handling:
Periods of type 'historical' are in the past; 'override' means someone swapped in.
HTTP 401 here while alert tools work means the token is missing read:ops-config:jira-service-management — the same scope the other on-call tools need.
Inputs: schedule_id (required), date, response_format, schedule_identifier_type. Returns: shifts
jsm_list_alert_logsList JSM alert activity logsARead-onlyIdempotent
List the system activity log for a JSM alert — every state transition, notification, escalation and automated action, newest first by default.
Use this to answer "why did nobody get paged?" or "when was this escalated and to whom?". Logs are system-generated; human comments live in jsm_list_alert_notes instead.
Args:
alert_id (string): the full alert id (not the tinyId)
limit (number): 1-100, default 20
order ('asc' | 'desc'): default 'desc'
offset (string, optional): opaque cursor from a previous response's next_cursor
response_format ('markdown' | 'json'): default 'markdown'
Returns (json format): { "logs": [{ "log": string, "owner": string, "createdAt": string, "type": string, "offset": string }], "pagination": { "count": number, "has_more": boolean, "next_cursor": string } }
Examples:
"Trace the escalation path for this alert" -> alert_id=, order="asc", limit=100
"Who acked this and when?" -> alert_id=, limit=20
Inputs: alert_id (required), limit, order, offset, +1 more. Returns: logs, pagination
jsm_list_alert_notesList JSM alert notesARead-onlyIdempotent
List the notes (human comments) recorded on a JSM alert's activity timeline, newest first by default.
Notes are where responders write triage context, and where integrations append re-fire and resolution updates for a deduplicated alert. Read them before acting on an alert so you don't repeat work someone already did.
Args:
alert_id (string): the full alert id (not the tinyId)
limit (number): 1-100, default 20
order ('asc' | 'desc'): default 'desc'
offset (string, optional): opaque cursor from a previous response's next_cursor
response_format ('markdown' | 'json'): default 'markdown'
Returns (json format): { "notes": [{ "note": string, "owner": string, "createdAt": string, "offset": string }], "pagination": { "count": number, "has_more": boolean, "next_cursor": string } }
Examples:
"Has anyone looked at this alert yet?" -> alert_id=, limit=10
"Read the full triage history oldest first" -> order="asc", limit=100
Note: these endpoints page with opaque cursors, not numeric offsets — pass next_cursor back as 'offset'.
Inputs: alert_id (required), limit, order, offset, +1 more. Returns: notes, pagination
jsm_list_alertsSearch JSM alertsARead-onlyIdempotent
Search and list alerts in Jira Service Management Operations.
This is the entry point for almost every alert workflow: use it to find open or unacknowledged alerts, filter by priority/team/tag, and to resolve a short tinyId (as shown in the JSM UI) into the full alert id that every other alert tool requires. It reads only — it never creates or modifies alerts.
Args:
query (string, optional): field:value search, e.g. "status:open AND priority:P1"
limit (number): 1-100, default 20
offset (number): records to skip, default 0
sort (string): field to sort by, default "createdAt"
order ('asc' | 'desc'): default "desc"
response_format ('markdown' | 'json'): default "markdown"
Returns (json format): { "alerts": [ { "id": string, // full alert id — pass this to other tools "tinyId": string, // short id shown in the JSM UI "message": string, "status": "open" | "closed", "acknowledged": boolean, "priority": "P1".."P5", "count": number, // dedupe count "tags": string[], "owner": string, "createdAt": string, // ISO 8601 "lastOccurredAt": string } ], "pagination": { "count": number, "offset": number, "has_more": boolean, "next_offset": number } }
Examples:
"What's on fire right now?" -> query="status:open AND acknowledged:false", sort="createdAt"
"Show P1s from the Payments team" -> query="priority:P1 AND teams:Payments"
"Find the alert about Redis latency" -> query="message:Redis"
Constraints and errors:
offset + limit must stay below 20000; the API refuses to page deeper.
A malformed query returns HTTP 400 — field names are case-sensitive.
Inputs: sort, limit, order, query, +2 more. Returns: alerts, pagination
jsm_list_capabilitiesList this server's toolsetsARead-onlyIdempotent
Report every toolset this server knows about, whether it is currently loaded, and how to load one that is not.
Call this before telling the user something is impossible. This server carries far more of the Jira Service Management Operations API than any one install registers — the operator chooses which families load, so an absent tool usually means "not enabled here", not "not supported". This tool tells you which of the two it is, and names the exact environment variable to change.
It takes no arguments, makes no API call, and needs no credentials, so it also answers when the token is missing or wrong.
Args: none beyond response_format.
response_format ('markdown' | 'json'): default "markdown"
Returns (json format): { "requested": string[], // the names this process was configured with "read_only": boolean, "tool_count": number, // tools actually registered "toolsets": [ { "name": string, "enabled": boolean, // whether any of its tools are registered "selected": boolean, // whether the selection asked for it; false enabled with true // selected means read-only mode withheld the tools "summary": string, "scopes": string[], // OAuth scopes this family needs "tool_count": number, "tools": string[], "unverified": string // present only when the family was never seen to work } ] }
A toolset carrying unverified ships but no profile loads it, 'all' included — it has to be named on its own, as JSM_TOOLSETS=all,. The string says what blocked it: a JSM plan that excludes the feature, or a permission no credential on the test site held. Enabling it is allowed and may well work on a different site, but say what the limit was before suggesting it.
Examples:
User asks for something no loaded tool covers -> call this, then tell them which toolset covers it and that JSM_TOOLSETS needs to include it.
Tool exists but its toolset is unverified -> say so plainly, quote the reason, and let the user decide whether their plan differs.
"What can you do here?" -> call this rather than guessing from your tool list.
Note: changing JSM_TOOLSETS requires restarting the server. You cannot enable a toolset from inside a conversation.
Inputs: response_format. Returns: toolsets, code_mode, read_only, requested, +2 more
jsm_list_schedulesList JSM on-call schedulesARead-onlyIdempotent
List the on-call schedules configured in JSM Operations, with their ids, owning teams and timezones.
Start here when you need a schedule id for jsm_get_on_call or jsm_get_next_on_call, or when you want to know which rotations exist at all.
Args:
limit (number): 1-100, default 20
offset (number): records to skip, default 0
response_format ('markdown' | 'json'): default 'markdown'
Returns (json format): { "schedules": [ { "id": string, "name": string, "description": string, "timezone": string, "enabled": boolean, "ownerTeam": { "id": string, "name": string } } ], "pagination": { "count": number, "offset": number, "has_more": boolean, "next_offset": number } }
Examples:
"What on-call rotations do we have?" -> no args
"Find the schedule id for the platform rotation" -> then match on name
Error handling:
HTTP 401 here while alert tools work means the token is missing read:ops-config:jira-service-management — schedules and on-call sit behind a different scope from alerts, so this is a scope gap, not a bad credential.
Inputs: limit, offset, response_format. Returns: schedules, pagination
jsm_remove_alert_extra_propertiesRemove key/value properties from a JSM alertADestructiveIdempotent
Remove properties from a JSM alert by key.
Args:
alert_id (string): the full alert id (not the tinyId)
keys (string[]): the property keys to remove — keys, not values
Returns: { "requestId": string, "result": string, "alert_id": string }
IMPORTANT: this action is asynchronous. Verify with jsm_get_request_status using the returned requestId.
A key that is not present is not an error, so a receipt here does not prove anything was removed. Read the alert back if that matters.
Constraints and errors:
Needs delete:ops-alert:jira-service-management, a separate grant from write:ops-alert.
Inputs: keys (required), alert_id (required). Returns: result, alert_id, requestId
jsm_remove_alert_tagsRemove tags from a JSM alertADestructiveIdempotent
Remove one or more tags from a JSM alert.
Args:
alert_id (string): the full alert id (not the tinyId)
tags (string[]): the tag names to remove
Returns: { "requestId": string, "result": string, "alert_id": string }
IMPORTANT: this action is asynchronous. Verify with jsm_get_request_status using the returned requestId.
Removal matches exactly and is case-sensitive, so removing 'DB' leaves 'db' in place. Read the alert's current tags with jsm_get_alert first rather than guessing the casing — a removal that silently matches nothing still returns a successful receipt.
Constraints and errors:
Needs delete:ops-alert:jira-service-management, a separate grant from write:ops-alert. Adding tags can work where removing them returns 403.
Inputs: tags (required), alert_id (required). Returns: result, alert_id, requestId
jsm_snooze_alertSnooze a JSM alert until a given timeAIdempotent
Silence a JSM alert's notifications until a specific instant, after which it resumes as if untouched.
Snoozing is the right tool for "we know, and there is nothing to do until the maintenance window ends" — it stops the paging without pretending the alert is resolved. Closing it would remove it from the open queue and lose the fact that it is still an open problem.
Args:
alert_id (string): the full alert id (not the tinyId)
end_time (string): ISO 8601 instant with an offset, e.g. "2026-09-05T18:30:00Z"
Returns: { "requestId": string, "result": string, "alert_id": string }
IMPORTANT: this action is asynchronous. Verify with jsm_get_request_status using the returned requestId.
Time handling is the sharp edge here. end_time is an absolute instant, not a duration — "snooze for two hours" means computing the instant yourself from the current time. A past instant is accepted, and the alert un-snoozes immediately, which looks exactly like the call having failed. Send an explicit offset ('Z' or '+05:30') rather than a bare local time.
Examples:
"Snooze this until the deploy finishes at 6pm UTC" -> end_time="2026-09-05T18:00:00Z"
"Give it an hour" -> compute now + 1h as an ISO instant, then pass it
Constraints and errors:
Snoozing a closed alert has no useful effect; close is terminal for notification purposes.
Inputs: alert_id (required), end_time (required). Returns: result, alert_id, requestId
jsm_unacknowledge_alertTake back an acknowledgement on a JSM alertAIdempotent
Return an acknowledged JSM alert to unacknowledged, so escalation notifications resume.
Use this when someone acked an alert they cannot actually work — picked it up by mistake, or got pulled onto something else — and it needs to go back into the escalation path so the next responder is paged. It does not close, snooze or reassign the alert.
Args:
alert_id (string): the full alert id (not the tinyId)
Returns: { "requestId": string, "result": string, "alert_id": string }
IMPORTANT: this action is asynchronous. Verify with jsm_get_request_status using the returned requestId.
This restarts paging. Say so before doing it on someone's behalf — the practical effect is that a phone rings.
Examples:
"I can't take this one after all, put it back" -> alert_id=, note="Handing back, on another incident"
Constraints and errors:
Unacknowledging an alert that was never acknowledged is a no-op, not an error.
Inputs: alert_id (required). Returns: result, alert_id, requestId
jsm_update_alert_fieldUpdate a JSM alert's priority, message or descriptionADestructiveIdempotent
Overwrite one field on an existing JSM alert: its priority, its message, or its description.
This is how an alert gets corrected once triage knows more than the integration that raised it did — a P3 that turns out to be customer-facing, a message that says "check failed" when it should say which check, a description that should carry what has been tried.
Args:
alert_id (string): the full alert id (not the tinyId)
field ('priority' | 'message' | 'description'): which field to overwrite
value (string): the new value
There are no 'user' or 'source' arguments here, unlike the other write tools: these three endpoints take only the value.
Returns: { "requestId": string, "result": string, "alert_id": string }
IMPORTANT: this action is asynchronous. Verify with jsm_get_request_status using the returned requestId.
This overwrites, it does not append. Reading the current value first with jsm_get_alert is the difference between adding context to a description and destroying what someone else wrote in it. If you mean to add to the record without replacing anything, use jsm_add_alert_note instead — notes are additive and are what the activity timeline is for.
For field='priority', value must be exactly one of P1, P2, P3, P4, P5 — not "high", not "1", not "p1".
Examples:
"This is worse than we thought, make it a P1" -> field="priority", value="P1"
"Fix the alert title to name the failing endpoint" -> read it first, then field="message"
Constraints and errors:
Raising priority may change who is paged, since routing and escalation rules read it.
Inputs: field (required), value (required), alert_id (required). Returns: result, alert_id, requestId
jsm_update_alert_noteEdit a note on a JSM alertADestructiveIdempotent
Replace the text of an existing note on a JSM alert.
Use it to correct a note you just wrote — a wrong hostname, a stale conclusion. Prefer adding a new note with jsm_add_alert_note for anything that reads as a development rather than a correction: the timeline is the record of what responders knew and when, and editing history out of it costs more than an extra line.
Args:
alert_id (string): the full alert id (not the tinyId)
note_id (string): id of the note to edit, from jsm_list_alert_notes
note (string): the replacement text
Returns the updated note: { "alert_id", "note_id", "note", "owner", "createdAt", "updatedAt" }
Unlike every other alert write, this one is synchronous. It answers with the note itself, so there is no requestId and nothing to verify with jsm_get_request_status.
This replaces the note's whole text. There is no append. Read the note first if you mean to add to it.
Examples:
"Fix my last note, the host is db-3 not db-2" -> jsm_list_alert_notes, take the id, then update with the corrected text
Constraints and errors:
HTTP 404 means the note id does not belong to that alert. Note ids come from jsm_list_alert_notes, not from the note's text.
Inputs: note (required), note_id (required), alert_id (required). Returns: id, note, owner, note_id, +3 more
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 28 tools
Almost every tool targets a distinct resource+action, and the descriptions actively disambiguate the risky pairs (close vs delete, assign vs add_responder, ack vs unack, note vs extra_properties). The only soft overlaps are within the on-call family (get_on_call / get_next_on_call / get_schedule_timeline) and the responder-type overlap between assign, add_responder and escalate, but the prose makes the intended choice clear.
Every tool is namespaced with the `jsm_` prefix and follows a verb_noun pattern (list_alerts, get_alert, create_alert, acknowledge_alert, add_alert_note, delete_alert_note). Sub-resources are consistently qualified with the parent noun (jsm_add_alert_tags, jsm_list_alert_logs), so the surface reads predictably.
28 tools is heavy for one server and sits at the top of the acceptable band; the granular pairs (add/remove tags, add/remove extra properties, unacknowledge, get_next_on_call) could plausibly be collapsed. Each tool does map to a real API operation, so nothing is truly redundant, but the surface is larger than a typical agent session needs.
Alert lifecycle, note CRUD, tags, extra properties and on-call read coverage are thorough, but there are notable dead ends: jsm_escalate_alert requires an escalation_id yet no tool lists escalation policies or teams, and jsm_add_alert_responder has no matching remove_alert_responder. Schedule management is read-only (list/get/timeline, no create or override), which is workable but limiting.
Maintenance
Related MCP Connectors
Manage incidents and on-call: list/create/update incidents, who is on call, on-call overrides.
Read incidents, services, teams, on-call schedules; acknowledge, resolve and note incidents.
Read SIGNL4 alerts, teams, users and duty schedules; raise, acknowledge, close and annotate alerts.
Read on-call schedules and incidents; create and update incidents and notes in Zenduty.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables comprehensive Opsgenie alert management including listing, creating, acknowledging, and closing alerts, as well as managing alert notes, logs, and custom properties through natural language.937 npmMIT
- AlicenseNot gradedqualityDmaintenanceEnables PagerDuty incident response operations including listing incidents, acknowledging and resolving incidents, looking up on-call schedules, and listing services.MIT
- AlicenseAqualityDmaintenanceEnables issue search, creation, updates, comments, status transitions, and project listing in Jira, purpose-built for security incident management and SOC workflows.98 npmApache 2.0
- FlicenseNot gradedqualityCmaintenanceMCP server for Opsgenie (Atlassian's incident/alert management and on-call platform) exposing the full public Opsgenie REST API as MCP tools.-