@last9/mcp-server 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +42 -7
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -26,8 +26,9 @@ Retrieves server-side exceptions over a specified time range.
|
|
|
26
26
|
Parameters:
|
|
27
27
|
|
|
28
28
|
- `limit` (integer, optional): Maximum number of exceptions to return. Default: 20.
|
|
29
|
-
- `
|
|
30
|
-
- `
|
|
29
|
+
- `lookback_minutes` (integer, recommended): Number of minutes to look back from now. Default: 60. Examples: 60, 30, 15.
|
|
30
|
+
- `start_time_iso` (string, optional): Start time in ISO format (YYYY-MM-DD HH:MM:SS). Leave empty to use lookback_minutes.
|
|
31
|
+
- `end_time_iso` (string, optional): End time in ISO format (YYYY-MM-DD HH:MM:SS). Leave empty to default to current time.
|
|
31
32
|
- `span_name` (string, optional): Name of the span to filter by.
|
|
32
33
|
|
|
33
34
|
### get_service_graph
|
|
@@ -37,8 +38,8 @@ Gets the upstream and downstream services for a given span name, along with the
|
|
|
37
38
|
Parameters:
|
|
38
39
|
|
|
39
40
|
- `span_name` (string, required): Name of the span to get dependencies for.
|
|
40
|
-
- `lookback_minutes` (integer,
|
|
41
|
-
- `start_time_iso` (string, optional): Start time in ISO format (YYYY-MM-DD HH:MM:SS).
|
|
41
|
+
- `lookback_minutes` (integer, recommended): Number of minutes to look back from now. Default: 60. Examples: 60, 30, 15.
|
|
42
|
+
- `start_time_iso` (string, optional): Start time in ISO format (YYYY-MM-DD HH:MM:SS). Leave empty to use lookback_minutes.
|
|
42
43
|
|
|
43
44
|
### get_logs
|
|
44
45
|
|
|
@@ -48,8 +49,9 @@ Parameters:
|
|
|
48
49
|
|
|
49
50
|
- `service` (string, optional): Name of the service to get logs for.
|
|
50
51
|
- `severity` (string, optional): Severity of the logs to get.
|
|
51
|
-
- `
|
|
52
|
-
- `
|
|
52
|
+
- `lookback_minutes` (integer, recommended): Number of minutes to look back from now. Default: 60. Examples: 60, 30, 15.
|
|
53
|
+
- `start_time_iso` (string, optional): Start time in ISO format (YYYY-MM-DD HH:MM:SS). Leave empty to use lookback_minutes.
|
|
54
|
+
- `end_time_iso` (string, optional): End time in ISO format (YYYY-MM-DD HH:MM:SS). Leave empty to default to current time.
|
|
53
55
|
- `limit` (integer, optional): Maximum number of logs to return. Default: 20.
|
|
54
56
|
|
|
55
57
|
### get_drop_rules
|
|
@@ -166,7 +168,7 @@ Configure Cursor to use the MCP server:
|
|
|
166
168
|
|
|
167
169
|
## Usage with Windsurf
|
|
168
170
|
|
|
169
|
-
Configure
|
|
171
|
+
Configure Windsurf to use the MCP server:
|
|
170
172
|
|
|
171
173
|
1. Open Windsurf
|
|
172
174
|
2. Go to Settings, then Developer
|
|
@@ -189,3 +191,36 @@ Configure Cursor to use the MCP server:
|
|
|
189
191
|
}
|
|
190
192
|
}
|
|
191
193
|
```
|
|
194
|
+
|
|
195
|
+
## Usage with VS Code
|
|
196
|
+
|
|
197
|
+
Prerequisites:
|
|
198
|
+
- VS Code version 1.99 or later
|
|
199
|
+
|
|
200
|
+
Configure VS Code to use the MCP server:
|
|
201
|
+
|
|
202
|
+
1. Create `.vscode/mcp.json` in your workspace or add to VS Code user settings with the following configuration:
|
|
203
|
+
|
|
204
|
+
```json
|
|
205
|
+
{
|
|
206
|
+
"servers": {
|
|
207
|
+
"last9": {
|
|
208
|
+
"type": "stdio",
|
|
209
|
+
"command": "/opt/homebrew/bin/last9-mcp",
|
|
210
|
+
"env": {
|
|
211
|
+
"LAST9_AUTH_TOKEN": "<auth_token>",
|
|
212
|
+
"LAST9_BASE_URL": "<last9_otlp_host>",
|
|
213
|
+
"LAST9_REFRESH_TOKEN": "<write_refresh_token>"
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
```
|
|
219
|
+
|
|
220
|
+
2. Open Chat view (⌃⌘I on macOS, Ctrl+Alt+I on Windows/Linux)
|
|
221
|
+
3. Select "Agent" mode from dropdown
|
|
222
|
+
4. The Last9 MCP server will now be available in VS Code
|
|
223
|
+
|
|
224
|
+
Note: Replace placeholder values (`<auth_token>`, `<last9_otlp_host>`, and `<write_refresh_token>`) with your actual Last9 credentials.
|
|
225
|
+
|
|
226
|
+
For advanced configuration options and alternative setup methods, see the [official VS Code MCP documentation](https://code.visualstudio.com/docs/copilot/chat/mcp-servers).
|