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: README.md
+27-17Lines changed: 27 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,6 @@
6
6
> [!WARNING]
7
7
> This MCP Server is currently in **beta**. Features and tools may change, and stability is not guaranteed. Feedback and contributions are most welcome!
8
8
9
-
10
9
## Overview
11
10
12
11
The Perses MCP Server is a local [Model Context Protocol (MCP)](https://modelcontextprotocol.io/introduction) Server that enables the LLM hosts(Claude Desktop, VS Code, Cursor) to interact with the Perses Application in a standardized way.
For example, `percli login https://demo.perses.dev`.
49
+
For example, `percli login https://demo.perses.dev`.
50
50
51
-
Or `percli login http://localhost:8080` if you are running [perses/perses](https://github.com/perses/perses) locally from the source code or from the perses image.
51
+
Or `percli login http://localhost:8080` if you are running [perses/perses](https://github.com/perses/perses) locally from the source code or from the perses image.
52
52
53
53
2. After successful login, retrieve your token:
54
+
54
55
```bash
55
56
percli whoami --show-token
56
57
```
58
+
57
59
Copy the token to use in your MCP server configuration.
58
60
59
61
**WARNING: Your login will automatically expire in 15 minutes**. If you want to extend the token duration, you can change the `access_token_ttl` setting in the Perses app [configuration](https://perses.dev/perses/docs/configuration/configuration/?h=configu), then restart the app (if running locally) or rebuild the Docker image.
@@ -67,7 +69,7 @@ To add this MCP server to [Claude Desktop](https://claude.ai/download):
You can easily access this file via the Claude Desktop app by navigating to `Claude > Settings > Developer > Edit Config`.
72
74
73
75
2. Get the binary
@@ -87,9 +89,10 @@ You have two options to obtain the MCP server binary:
87
89
88
90
**Option B: Build from Source**
89
91
90
-
```bash
91
-
make build
92
+
```bash
93
+
make build
92
94
```
95
+
93
96
This should create a `bin` directory which contains the binary named `mcp-server`. Copy the absolute path to the binary to use in your MCP server configuration.
94
97
95
98
3. Add the following JSON block to the configuration file:
@@ -102,6 +105,7 @@ This should create a `bin` directory which contains the binary named `mcp-server
102
105
"args": [
103
106
"--perses-server-url",
104
107
"<PERSES_SERVER_URL>"
108
+
// Add "--read-only" here for read-only mode
105
109
],
106
110
"env": {
107
111
"PERSES_TOKEN": "<PERSES_TOKEN>"
@@ -118,6 +122,7 @@ This should create a `bin` directory which contains the binary named `mcp-server
118
122
To integrate the MCP server with VS Code GitHub Copilot, follow these steps:
119
123
120
124
1. Open User Settings (JSON) in VS Code:
125
+
121
126
- Press `Cmd + Shift + P` (on macOS) or `Ctrl + Shift + P` (on other platforms).
122
127
- Type `Preferences: Open User Settings (JSON)` and select it.
123
128
@@ -139,6 +144,7 @@ To integrate the MCP server with VS Code GitHub Copilot, follow these steps:
139
144
"args": [
140
145
"--perses-server-url",
141
146
"http://localhost:8080"
147
+
// Add "--read-only" here for read-only mode
142
148
],
143
149
"env": {
144
150
"PERSES_TOKEN": "${input:perses-token}"
@@ -152,32 +158,35 @@ To integrate the MCP server with VS Code GitHub Copilot, follow these steps:
152
158
153
159
## Tools
154
160
161
+
> [!NOTE]
162
+
> When running in read-only mode (`--read-only` flag), only tools that retrieve information are available. Write operations like `create_project`, `create_dashboard`, `create_global_datasource`, `update_global_datasource`, and `create_project_variable` are disabled in read-only mode.
0 commit comments