一键导入
setup
Set up the Rootly plugin. Verifies MCP server connection via OAuth2 or API token and guides through configuration. Run this after installing the plugin.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Set up the Rootly plugin. Verifies MCP server connection via OAuth2 or API token and guides through configuration. Run this after installing the plugin.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Manage incident action items from the terminal. Subcommands - list (default - your open action items) or add <incident> "<summary>" (create one on an incident). Use to capture follow-ups during or after an incident without opening the Rootly UI.
Draft a stakeholder-facing status update for an active incident, then post it after explicit confirmation. Useful for incident commanders pushing public-status-page or internal updates without opening the Rootly UI. Write action - never posts without confirming.
Offer to cover someone else's on-call shift. Lists upcoming shifts on a team or schedule and creates an override placing you on the chosen one after explicit confirmation. Write action - never executes without confirming.
Request someone to cover one of your upcoming on-call shifts. Lists your shifts, helps identify a candidate based on availability, and creates an override after explicit confirmation. Write action - never executes without confirming.
Triage a Rootly alert by short ID. Pulls the alert record, its event timeline, related alerts in the same group, and any incident the alert is attached to. Use when a page comes in and you want context before opening Rootly.
[experimental] Evaluate deployment risk by analyzing code changes against incident history, active incidents, and on-call readiness. Forked-subagent flow may not have MCP access in all Claude Code contexts.
| name | setup |
| description | Set up the Rootly plugin. Verifies MCP server connection via OAuth2 or API token and guides through configuration. Run this after installing the plugin. |
| disable-model-invocation | true |
| allowed-tools | ["Bash","mcp__rootly__*"] |
You are running the first-time setup for the Rootly Claude plugin. Follow these steps in order:
First, test the MCP server connection by calling mcp__rootly__get_server_version.
mcp__rootly__get_server_version.https://mcp.rootly.com.Call mcp__rootly__getCurrentUser to confirm your identity.
Authentication Troubleshooting
This plugin uses OAuth2 by default -- Claude handles the login flow automatically when it connects to the MCP server. No API token is needed for MCP commands.
If OAuth2 is not working:
- Ensure your Rootly organization has OAuth2 enabled
- Try disconnecting and reconnecting the MCP server:
/mcp> find Rootly > disconnect > reconnect- Check that your browser can reach
https://rootly.com/oauth/authorizeFallback: API Token (for hook scripts or environments without browser access)
Hook scripts (active-incident warnings on commit/push) still need an API token:
- Go to your Rootly dashboard: Settings > API Keys
- Create a new API key
- Provide the token through the plugin's userConfig prompt, or
export ROOTLY_API_TOKEN="..."API tokens are optional for MCP commands -- OAuth2 is the recommended auth method.
Then stop here -- no further steps possible without working authentication.
Check if .claude/rootly-config.json exists in the current project directory.
If the file does NOT exist, offer to create it:
.claude/rootly-config.json with the format:
{
"services": ["service-name-1", "service-name-2"],
"team": "team-name"
}
If the file exists, read and display its current configuration.
Once setup is complete, display:
Rootly plugin is ready!
Authentication: OAuth2 (logged in as {user name})
Command Description /rootly:deploy-checkCheck deployment safety before pushing /rootly:respond [incident-id]Investigate and respond to an incident /rootly:oncallView on-call dashboard /rootly:retro [incident-id]Generate post-incident retrospective /rootly:statusService health overview /rootly:ask [question]Ask questions about your incident data /rootly:brief [incident-id]Generate stakeholder brief for executives /rootly:handoff [incident-id]Prepare incident or on-call handoff docs Hooks are active:
- Session start: Connection validation (already ran)
- Pre-commit/push: Active critical incident warnings (requires API token in plugin config)