You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: en/ai-sre/sessions.mdx
+12-1Lines changed: 12 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -48,6 +48,17 @@ Dimensions available in the filter panel:
48
48
49
49
The panel footer provides **Reset** (restore default filters) and **Done** (close the panel).
50
50
51
+
### Session Visibility and Permissions
52
+
53
+
The account is the hard access boundary for sessions: sessions are never accessible across accounts. Within the same account, personal sessions and team sessions use different rules for reading, continuing, and managing the conversation:
54
+
55
+
| Session type | Can read / continue the conversation | Can rename, archive, delete, or attach an incident |
56
+
|---|---|---|
57
+
| Personal session (no team bound) | Only the creator | Only the creator |
58
+
| Team session (team bound) | Members in the same account who have the session ID | Session creator, account owner / admin, or members of the bound team |
59
+
60
+
Pinning is a personal preference and does not modify the session itself; if you can read a session, you can pin or unpin it for yourself. Account owners and admins can manage team sessions, but they cannot read or manage another member's personal session.
61
+
51
62
### Per-Session Actions
52
63
53
64
Hover over a session row to reveal the pin and archive actions. A pinned session displays a persistent pin icon to the left of its name.
@@ -285,7 +296,7 @@ The response `Content-Type` is `application/x-ndjson`. The **first line is alway
285
296
If an error occurs after streaming has already begun, the server cannot switch to a standard JSON error envelope. Instead, a JSON-encoded error object is appended as the final line of the stream. Consumers must inspect this last line to determine whether the stream completed successfully.
286
297
</Warning>
287
298
288
-
**Permissions**: the export endpoint uses the same access gate as sending messages (`CanChatSession`), meaning the caller must have message-send permission on the session — read-only access is not sufficient.
299
+
**Permissions**: the export endpoint uses the same access gate as sending messages (`CanChatSession`), meaning the caller must have message-send permission on the session — read-only access is not sufficient. Personal sessions can be exported only by their creator; team sessions can be exported by same-account members who can access the session.
Flashduty MCP Server is a [Model Context Protocol (MCP)](https://modelcontextprotocol.io/introduction) server that connects the Flashduty API seamlessly into MCP-capable AI tools (such as Cursor and Claude Desktop). With it, you can let an LLM query, acknowledge, and close incidents, retrieve channels and members, and validate notification templates directly — embedding incident management and automation into your AI workflow.
9
9
10
10
<Info>
11
-
Flashduty MCP Server is built on the [go-flashduty SDK](/en/developer/go-sdk); every tool is a thin wrapper over the Flashduty Open API.
11
+
Flashduty MCP Server provides a curated, task-oriented toolset; it does not mirror the full Flashduty Open API. For 1:1 coverage of every Open API operation, use the [Flashduty CLI](/en/developer/cli); agents with shell access can call the CLI directly.
12
12
</Info>
13
13
14
14
## Use cases
@@ -224,6 +224,21 @@ The server provides **8 toolsets and 23 tools** in total, all enabled by default
224
224
Toolset names (`incidents`, `status_page`, etc.) are internal program identifiers; keep them in English when configuring.
225
225
</Note>
226
226
227
+
### Pagination Parameters
228
+
229
+
List-style query tools use one shared pagination contract: `limit` is the number of items per page, default `20`, max `100`; `page` is a 1-based page number, default `1`. When more results remain, the response includes `truncated: true` and a `hint` that names the next page to request, such as `page:2`.
230
+
231
+
The following tools support `limit` / `page`:
232
+
233
+
| Tool | Pagination behavior |
234
+
|---|---|
235
+
|`query_incidents`| Normal list queries use `limit` / `page`; direct lookup with `incident_ids` ignores other filters and does not page |
236
+
|`query_incident_alerts`|`page` applies to every requested incident's alert list; when one incident still has more alerts, that incident entry carries `truncated` and `hint`|
237
+
|`query_channels`| Name search and `channel_ids` filtering use the same paginated list endpoint, so both support `limit` / `page`|
238
+
|`query_members`| Name or email search supports pagination; direct lookup with `person_ids` returns the requested members and does not page |
239
+
|`query_teams`| Name search supports pagination; direct lookup with `team_ids` returns the requested teams and does not page |
240
+
|`query_changes`| Normal filtered queries support pagination; with `change_ids`, the tool filters the current page client-side, reports the matched count, and does not add a pagination hint |
241
+
227
242
The tools in each toolset are as follows:
228
243
229
244
<AccordionGroup>
@@ -251,7 +266,8 @@ The tools in each toolset are as follows:
251
266
|`severity`| string | Filter by severity: `Info`, `Warning`, `Critical`. |
Flashduty MCP Server 是一个 [Model Context Protocol (MCP)](https://modelcontextprotocol.io/introduction) 服务端,将 Flashduty API 无缝接入支持 MCP 的 AI 工具(如 Cursor、Claude Desktop)。借助它,您可以让大模型直接查询故障、确认与关闭故障、检索协作空间与成员、校验通知模板,把故障管理与自动化能力嵌入 AI 工作流。
9
9
10
10
<Info>
11
-
Flashduty MCP Server 底层基于 [go-flashduty SDK](/zh/developer/go-sdk) 实现,所有工具均是对 Flashduty 开放 API 的薄封装。
11
+
Flashduty MCP Server 提供的是经过整理的任务型工具集,并不完整镜像 Flashduty 开放 API。需要 1:1 覆盖全部开放 API 时,请使用 [Flashduty CLI](/zh/developer/cli);具备 shell 权限的 Agent 也可以直接调用 CLI。
0 commit comments