mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
## Problem The `typescript-language-server` MCP server in `.mcp.json` launched the language server via `pnpx`, but `pnpx` is not installed in the workspace (only `pnpm` is available). As a result the server failed to start and appeared inactive/broken. ## Fix Swap `pnpx` for the pnpm equivalent, `pnpm dlx`, so the language server is fetched and run correctly: ```diff "-lsp", -"pnpx", +"pnpm", "--", +"dlx", "typescript-language-server", "--stdio" ``` ## Verification - `pnpm dlx typescript-language-server@latest --version` returns `5.3.0`. - Ran the full chain `go run github.com/isaacphi/mcp-language-server@latest -workspace ./site/ -lsp pnpm -- dlx typescript-language-server --stdio`. It logged `Successfully registered all MCP tools` and stayed up cleanly until terminated. --- _This PR was generated by Coder Agents on behalf of @jeremyruppel._
42 lines
681 B
JSON
42 lines
681 B
JSON
{
|
|
"mcpServers": {
|
|
"go-language-server": {
|
|
"type": "stdio",
|
|
"command": "go",
|
|
"args": [
|
|
"run",
|
|
"github.com/isaacphi/mcp-language-server@latest",
|
|
"-workspace",
|
|
"./",
|
|
"-lsp",
|
|
"go",
|
|
"--",
|
|
"run",
|
|
"golang.org/x/tools/gopls@latest"
|
|
],
|
|
"env": {}
|
|
},
|
|
"typescript-language-server": {
|
|
"type": "stdio",
|
|
"command": "go",
|
|
"args": [
|
|
"run",
|
|
"github.com/isaacphi/mcp-language-server@latest",
|
|
"-workspace",
|
|
"./site/",
|
|
"-lsp",
|
|
"pnpm",
|
|
"--",
|
|
"dlx",
|
|
"typescript-language-server",
|
|
"--stdio"
|
|
],
|
|
"env": {}
|
|
},
|
|
"storybook": {
|
|
"type": "http",
|
|
"url": "http://localhost:6006/mcp"
|
|
}
|
|
}
|
|
}
|