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 that runs a language server and provides tools for communicating with it.
4
9
5
10
## Motivation
@@ -78,7 +83,7 @@ Add something like the following configuration to your Claude Desktop settings (
78
83
"--stdio"
79
84
],
80
85
"env": {
81
-
"DEBUG": "1"
86
+
"LOG_LEVEL": "INFO"
82
87
}
83
88
}
84
89
}
@@ -91,7 +96,7 @@ Replace:
91
96
-`/opt/homebrew/bin/pyright-langserver` with the path to your language server (found using `which` command e.g. `which pyright-langserver`)
92
97
- Any aruments after `--` are sent as arguments to your language server.
93
98
- Any env variables are passed on to the language server. Some may be necessary for you language server. For example, `gopls` required `GOPATH` and `GOCACHE` in order for me to get it working properly.
94
-
-`DEBUG=1` is optional. See below.
99
+
-`LOG_LEVEL` is optional. See below.
95
100
96
101
## Development
97
102
@@ -114,6 +119,18 @@ Build:
114
119
go build
115
120
```
116
121
122
+
Run tests:
123
+
124
+
```bash
125
+
go test ./...
126
+
```
127
+
128
+
Update test snapshots:
129
+
130
+
```bash
131
+
UPDATE_SNAPSHOTS=true go test ./integrationtests/...
132
+
```
133
+
117
134
Configure your Claude Desktop (or similar) to use the local binary:
118
135
119
136
```json
@@ -128,7 +145,7 @@ Configure your Claude Desktop (or similar) to use the local binary:
128
145
"/path/to/language/server"
129
146
],
130
147
"env": {
131
-
"DEBUG": "1"
148
+
"LOG_LEVEL": "DEBUG"
132
149
}
133
150
}
134
151
}
@@ -143,11 +160,12 @@ Include
143
160
144
161
```
145
162
env: {
146
-
"DEBUG": 1
163
+
"LOG_LEVEL": "DEBUG",
164
+
"LOG_COMPONENT_LEVELS": "wire:DEBUG"
147
165
}
148
166
```
149
167
150
-
To get detailed LSP and application logs. Please include as much information as possible when opening issues.
168
+
To get detailed LSP and application logs. Setting `LOG_LEVEL` to DEBUG enables verbose logging for all components. Adding `LOG_COMPONENT_LEVELS` with `wire:DEBUG` shows raw LSP JSON messages. Please include as much information as possible when opening issues.
151
169
152
170
The following features are on my radar:
153
171
@@ -162,3 +180,4 @@ The following features are on my radar:
162
180
-[ ] Add LSP server configuration options and presets for common languages
163
181
-[ ] Make a more consistent and scalable API for tools (pagination, etc.)
164
182
-[ ] Create tools at a higher level of abstraction, combining diagnostics, code lens, hover, and code actions when reading definitions or references.
0 commit comments