Skip to content

Commit d2ac4a1

Browse files
authored
Merge pull request #19 from OpsLevel/kr/readme
Create README.md
2 parents bec7fe4 + db06ee8 commit d2ac4a1

File tree

1 file changed

+113
-0
lines changed

1 file changed

+113
-0
lines changed

README.md

Lines changed: 113 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,113 @@
1+
This MCP ([Model Context Protocol](https://modelcontextprotocol.io/introduction)) server provides AIs with tools to interact with your OpsLevel account.
2+
3+
![mcp_image](https://github.com/user-attachments/assets/dd936eef-80c2-42a5-8d04-9ca9c2de8e76)
4+
5+
# Setup
6+
7+
1. Install the MCP Server
8+
1. Homebrew - `brew install opslevel/tap/opslevel-mcp`
9+
2. Docker - `docker pull public.ecr.aws/opslevel/mcp:latest`
10+
You can also used a pinned version [check out the gallery for the available tags](https://gallery.ecr.aws/opslevel/mcp)
11+
3. Manual - Visit our [GitHub releases page](https://github.com/OpsLevel/opslevel-mcp/releases) and download the binary for your operating system.
12+
2. You will need an [API Token](https://app.opslevel.com/api_tokens) to authorize the MCP Server to talk to your account via an environment variable.
13+
3. Setup MCP configuration for the AI tool of your choice.
14+
15+
## Claude
16+
17+
[Claude Desktop](https://modelcontextprotocol.io/quickstart/user)
18+
19+
1. Edit the file at the specified path based on the Claude Desktop docs
20+
1. Mac OS - `${HOME}/Library/Application\\ Support/Claude/claude_desktop_config.json`
21+
2. Windows - `%APPDATA%\Claude\claude_desktop_config.json`
22+
2. Start (or restart) Claude Desktop
23+
24+
```json
25+
{
26+
"mcpServers": {
27+
"opslevel": {
28+
"command": "opslevel-mcp",
29+
"env": {
30+
"OPSLEVEL_API_TOKEN": "XXXXXXX"
31+
}
32+
}
33+
}
34+
}
35+
```
36+
37+
## VS Code
38+
39+
[VS Code User Settings](https://code.visualstudio.com/docs/copilot/chat/mcp-servers#_finding-mcp-servers)
40+
41+
1. Open the Settings menu (Command + Comma) and select the correct tab atop the page for your use case
42+
1. Workspace - configures the server in the context of your workspace
43+
2. User - configures the server in the context of your user
44+
2. Select Features → Chat
45+
3. Ensure that "Mcp" is Enabled
46+
1. You may need to have your Github administrator enable "preview" features in the CoPilot settings for the organization.
47+
4. Click "Edit in settings.json" under "Mcp > Discovery" to have the below config
48+
1. Can also edit the file directly
49+
1. (Mac OS) `${HOME}/Library/Application\\ Support/Code/User/settings.json`
50+
5. Start (or restart) VS Code
51+
52+
```json
53+
{
54+
"chat.agent.enabled": true,
55+
"chat.mcp.discovery.enabled": true,
56+
"mcp": {
57+
"inputs": [
58+
{
59+
"type": "promptString",
60+
"id": "opslevel_token",
61+
"description": "OpsLevel API Token",
62+
"password": true
63+
}
64+
],
65+
"servers": {
66+
"opslevel": {
67+
"type": "stdio",
68+
"command": "opslevel-mcp",
69+
"env": {
70+
"OPSLEVEL_API_TOKEN": "${input:opslevel_token}"
71+
}
72+
}
73+
}
74+
}
75+
}
76+
```
77+
78+
## Cursor
79+
80+
[Cursor](https://docs.cursor.com/context/model-context-protocol)
81+
82+
1. Open the Cursor menu and select Settings → Cursor Settings → MCP
83+
2. Click "Add new global MCP server"
84+
3. Add the config below
85+
86+
```json
87+
{
88+
"mcpServers": {
89+
"opslevel": {
90+
"command": "opslevel-mcp",
91+
"env": {
92+
"OPSLEVEL_API_TOKEN": "XXXXXX"
93+
}
94+
}
95+
}
96+
}
97+
```
98+
99+
### Docker
100+
101+
If you didn't install the binary directly and instead pulled the docker image you'll need to adjust the above MCP configurations to support running the server via docker
102+
103+
```
104+
"command": "docker",
105+
"args": [
106+
"run",
107+
"-i",
108+
"--rm",
109+
"-e",
110+
"OPSLEVEL_API_TOKEN",
111+
"public.ecr.aws/opslevel/mcp:latest"
112+
],
113+
```

0 commit comments

Comments
 (0)