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
A Model Context Protocol (MCP) server for Rootly API. This server dynamically generates MCP resources based on Rootly's OpenAPI (Swagger) specification.
4
+
5
+
## Features
6
+
7
+
- Dynamically generated MCP tools based on Rootly's OpenAPI specification
8
+
- Authentication via Rootly API token
9
+
- Default pagination (10 items) for incidents endpoints to prevent context window overflow
10
+
- Easy integration with Claude and other MCP-compatible LLMs
11
+
12
+
## Prerequisites
13
+
14
+
- Python 3.12 or higher
15
+
-`uv` package manager
16
+
```bash
17
+
# Install UV if you haven't already
18
+
curl -LsSf https://astral.sh/uv/install.sh | sh
19
+
```
20
+
- Rootly API token
21
+
22
+
## Setup
23
+
24
+
1. Create and activate a virtual environment:
25
+
```bash
26
+
# Create a new virtual environment
27
+
uv venv
28
+
29
+
# Activate the virtual environment
30
+
# On macOS/Linux:
31
+
source .venv/bin/activate
32
+
# On Windows:
33
+
.venv\Scripts\activate
34
+
```
35
+
36
+
2. Install the package in development mode:
37
+
```bash
38
+
# Install all dependencies
39
+
uv pip install -e .
40
+
41
+
# Install dev dependencies (optional)
42
+
uv pip install -e ".[dev]"
43
+
```
44
+
45
+
3. Set your Rootly API token:
46
+
```bash
47
+
export ROOTLY_API_TOKEN="your-api-token-here"
48
+
```
49
+
50
+
## Running the Server
51
+
52
+
Start the server:
53
+
```bash
54
+
rootly-mcp
55
+
```
56
+
57
+
## MCP Configuration
58
+
59
+
The server configuration is defined in `mcp.json`. To use this server with Claude or other MCP clients, add the following configuration to your MCP configuration file:
60
+
61
+
```json
62
+
{
63
+
"mcpServers": {
64
+
"rootly": {
65
+
"command": "uv",
66
+
"args": [
67
+
"run",
68
+
"--directory",
69
+
"/path/to/rootly-mcp-server",
70
+
"rootly-mcp"
71
+
],
72
+
"env": {
73
+
"ROOTLY_API_TOKEN": "YOUR_ROOTLY_API_TOKEN"
74
+
}
75
+
}
76
+
}
77
+
}
78
+
```
79
+
80
+
Replace `/path/to/rootly-mcp-server` with the absolute path to your project directory.
0 commit comments