@theupsider/lsp-mcp 0.1.4 → 0.1.6
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 +20 -0
- package/mcp.json +12 -0
- package/package.json +4 -2
package/README.md
CHANGED
|
@@ -53,6 +53,26 @@ bun install -g @theupsider/lsp-mcp
|
|
|
53
53
|
|
|
54
54
|
## Quickstart
|
|
55
55
|
|
|
56
|
+
### VS Code / Cursor
|
|
57
|
+
|
|
58
|
+
Add to your **workspace** `.vscode/mcp.json` (recommended — ensures the server runs on the same machine as your code, including SSH remotes, WSL, and Dev Containers):
|
|
59
|
+
|
|
60
|
+
```json
|
|
61
|
+
{
|
|
62
|
+
"servers": {
|
|
63
|
+
"lsp-mcp": {
|
|
64
|
+
"type": "stdio",
|
|
65
|
+
"command": "npx",
|
|
66
|
+
"args": ["-y", "@theupsider/lsp-mcp"]
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
> **Why workspace config?** VS Code runs servers defined in `.vscode/mcp.json` wherever the workspace lives. Servers defined in your user profile always run locally — which breaks LSP when your code is on a remote machine.
|
|
73
|
+
|
|
74
|
+
### CLI
|
|
75
|
+
|
|
56
76
|
```bash
|
|
57
77
|
# Run the server (reads from stdin, writes to stdout)
|
|
58
78
|
lsp-mcp
|
package/mcp.json
ADDED
package/package.json
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theupsider/lsp-mcp",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.6",
|
|
4
4
|
"description": "Universal LSP MCP server",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "commonjs",
|
|
7
|
+
"mcpName": "io.github.theUpsider/lsp-mcp",
|
|
7
8
|
"author": {
|
|
8
9
|
"name": "David Fischer",
|
|
9
10
|
"url": "https://davidfischer.dev"
|
|
@@ -13,7 +14,8 @@
|
|
|
13
14
|
"lsp-mcp": "dist/index.js"
|
|
14
15
|
},
|
|
15
16
|
"files": [
|
|
16
|
-
"dist"
|
|
17
|
+
"dist",
|
|
18
|
+
"mcp.json"
|
|
17
19
|
],
|
|
18
20
|
"scripts": {
|
|
19
21
|
"build": "tsc",
|