@last9/mcp-server 0.0.9 → 0.1.1
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 +59 -9
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,19 +1,26 @@
|
|
|
1
1
|
# Last9 MCP Server
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+

|
|
4
|
+
|
|
5
|
+
A [Model Context Protocol](https://modelcontextprotocol.io/) server implementation for [Last9](https://last9.io/mcp/) that enables AI agents to seamlessly bring real-time production context — logs, metrics, and traces — into your local environment to auto-fix code faster.
|
|
6
|
+
|
|
7
|
+
- [View demo](https://www.youtube.com/watch?v=AQH5xq6qzjI)
|
|
8
|
+
- Read our [announcement blog post](https://last9.io/blog/launching-last9-mcp-server/)
|
|
4
9
|
|
|
5
10
|
## Status
|
|
6
11
|
|
|
7
|
-
Works with Claude desktop app. Implements two MCP [tools](https://modelcontextprotocol.io/docs/concepts/tools):
|
|
12
|
+
Works with Claude desktop app, or Cursor, Windsurf, and VSCode (Github Copilot) IDEs. Implements two MCP [tools](https://modelcontextprotocol.io/docs/concepts/tools):
|
|
8
13
|
|
|
9
|
-
- get_exceptions
|
|
10
|
-
- get_servicegraph
|
|
14
|
+
- `get_exceptions`: Get list of execeptions
|
|
15
|
+
- `get_servicegraph`: Get Service graph for an endpoint from the exception
|
|
16
|
+
- `get_logs`: Get logs filtered by service name and/or severity level
|
|
11
17
|
|
|
12
18
|
|
|
13
19
|
## Installation
|
|
14
20
|
|
|
15
|
-
You can install the Last9 MCP server using either
|
|
21
|
+
You can install the Last9 Observability MCP server using either:
|
|
16
22
|
|
|
23
|
+
### Homebrew
|
|
17
24
|
```
|
|
18
25
|
# Add the Last9 tap
|
|
19
26
|
brew tap last9/tap
|
|
@@ -22,6 +29,15 @@ brew tap last9/tap
|
|
|
22
29
|
brew install last9-mcp
|
|
23
30
|
```
|
|
24
31
|
|
|
32
|
+
### NPM
|
|
33
|
+
```bash
|
|
34
|
+
# Install globally
|
|
35
|
+
npm install -g @last9/mcp-server
|
|
36
|
+
|
|
37
|
+
# Or run directly with npx
|
|
38
|
+
npx @last9/mcp-server
|
|
39
|
+
```
|
|
40
|
+
|
|
25
41
|
## Configuration
|
|
26
42
|
|
|
27
43
|
### Environment Variables
|
|
@@ -31,10 +47,18 @@ The service requires the following environment variables:
|
|
|
31
47
|
- `LAST9_AUTH_TOKEN`: Authentication token for Last9 MCP server (required)
|
|
32
48
|
- `LAST9_BASE_URL`: Last9 API URL (required)
|
|
33
49
|
|
|
50
|
+
Signup at [Last9](https://app.last9.io/) and get your env variable keys [here](https://app.last9.io/integrations?integration=OpenTelemetry).
|
|
51
|
+
|
|
34
52
|
## Usage with Claude Desktop
|
|
35
53
|
|
|
36
54
|
Configure the Claude app to use the MCP server:
|
|
37
55
|
|
|
56
|
+
1. Open the Claude Desktop app
|
|
57
|
+
2. Go to Settings, then Developer, click Edit Config
|
|
58
|
+
3. Open the `claude_desktop_config.json` file
|
|
59
|
+
4. Copy and paste the server config to your existing file, then save
|
|
60
|
+
5. Restart Claude
|
|
61
|
+
|
|
38
62
|
```bash
|
|
39
63
|
code ~/Library/Application\ Support/Claude/claude_desktop_config.json
|
|
40
64
|
```
|
|
@@ -57,10 +81,36 @@ code ~/Library/Application\ Support/Claude/claude_desktop_config.json
|
|
|
57
81
|
|
|
58
82
|
Configure Cursor to use the MCP server:
|
|
59
83
|
|
|
60
|
-
1.
|
|
61
|
-
2.
|
|
62
|
-
3. Click Add
|
|
63
|
-
4.
|
|
84
|
+
1. Navigate to Settings, then Cursor Settings
|
|
85
|
+
2. Select MCP on the left
|
|
86
|
+
3. Click Add new global MCP server at the top right
|
|
87
|
+
4. Copy and paste the server config to your existing file, then save
|
|
88
|
+
5. Restart Cursor
|
|
89
|
+
|
|
90
|
+
```json
|
|
91
|
+
{
|
|
92
|
+
"mcpServers": {
|
|
93
|
+
"last9": {
|
|
94
|
+
"command": "/opt/homebrew/bin/last9-mcp",
|
|
95
|
+
"env": {
|
|
96
|
+
"LAST9_AUTH_TOKEN": "your_auth_token",
|
|
97
|
+
"LAST9_BASE_URL": "https://otlp.last9.io"
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
## Usage with Windsurf
|
|
105
|
+
|
|
106
|
+
Configure Cursor to use the MCP server:
|
|
107
|
+
|
|
108
|
+
1. Open Windsurf
|
|
109
|
+
2. Go to Settings, then Developer
|
|
110
|
+
3. Click Edit Config
|
|
111
|
+
4. Open the `windsurf_config.json` file
|
|
112
|
+
5. Copy and paste the server config to your existing file, then save
|
|
113
|
+
6. Restart Windsurf
|
|
64
114
|
|
|
65
115
|
```json
|
|
66
116
|
{
|