@treedy/lsp-mcp 0.2.5 → 0.2.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 +48 -5
- package/dist/index.js +922 -19
- package/dist/index.js.map +6 -6
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -40,7 +40,7 @@ git_diagnostics
|
|
|
40
40
|
- Language-specific refactor tools where needed:
|
|
41
41
|
- Python: `python_move`, `python_change_signature`, `python_function_signature`
|
|
42
42
|
- TypeScript: `typescript_move`, `typescript_function_signature`
|
|
43
|
-
- Meta/admin tools: `status`, `list_backends`, `check_versions`, `update_backend`, `reload_config`, `switch_workspace`, `switch_workspace_for_language`, `discover_language_workspaces`, `doctor`, `expand_result`
|
|
43
|
+
- Meta/admin tools: `status`, `list_backends`, `check_versions`, `update_backend`, `reload_config`, `switch_workspace`, `switch_workspace_for_language`, `discover_language_workspaces`, `semantic_session_start`, `doctor`, `expand_result`
|
|
44
44
|
- Built-in prompts for agent workflows and best practices
|
|
45
45
|
|
|
46
46
|
## Tool Model (Current)
|
|
@@ -49,8 +49,9 @@ git_diagnostics
|
|
|
49
49
|
|
|
50
50
|
Use these directly; language is inferred from file/path:
|
|
51
51
|
|
|
52
|
-
- Navigation: `hover`, `definition`, `references`, `peek_definition`, `workspace_symbol`
|
|
53
|
-
-
|
|
52
|
+
- Navigation: `hover`, `definition`, `implementation`, `type_definition`, `call_hierarchy`, `type_hierarchy`, `document_highlight`, `selection_range`, `folding_range`, `document_link`, `linked_editing_range`, `semantic_tokens`, `moniker`, `references`, `peek_definition`, `workspace_symbol`
|
|
53
|
+
- Hinting: `inlay_hints`, `inlay_hint_resolve`, `read_file_with_hints`
|
|
54
|
+
- Editing support: `completions`, `signature_help`, `prepare_rename`, `rename`, `code_action`, `run_code_action`, `code_lens`
|
|
54
55
|
- Analysis: `diagnostics`, `git_diagnostics`, `symbols`, `search`, `summarize_file`, `read_file_with_hints`, `project_structure`
|
|
55
56
|
- Sync/edit loop: `update_document`
|
|
56
57
|
|
|
@@ -64,6 +65,7 @@ For large repos, use preview arguments to reduce token usage:
|
|
|
64
65
|
- `search` / `workspace_symbol`: `preview_limit` or `page_size` (default `200`), plus `cursor` for next page
|
|
65
66
|
- `diagnostics`: `preview_limit` or `page_size` (default `200`), `summary_only` (default `false`), plus `cursor`
|
|
66
67
|
- `doctor`: `page_size` (default `50`) plus `cursor` for long environment reports
|
|
68
|
+
- `doctor`: set `check_latest_versions=true` to probe registry latest version drift (slower, network-dependent)
|
|
67
69
|
- `project_structure`: `max_depth` (default `3`), `max_entries` (default `300`)
|
|
68
70
|
- `summarize_file`: `max_symbols` (default `200`)
|
|
69
71
|
- `read_file_with_hints`: `start_line` (default `1`), `max_lines` (default `300`)
|
|
@@ -81,10 +83,48 @@ Paged responses include:
|
|
|
81
83
|
|
|
82
84
|
### Server/meta tools
|
|
83
85
|
|
|
84
|
-
- `status`, `list_backends`, `start_backend`, `update_backend`, `check_versions`, `reload_config`, `switch_python_backend`, `switch_workspace`, `switch_workspace_for_language`, `discover_language_workspaces`, `doctor`, `expand_result`
|
|
86
|
+
- `status`, `list_backends`, `start_backend`, `update_backend`, `check_versions`, `reload_config`, `switch_python_backend`, `switch_workspace`, `switch_workspace_for_language`, `discover_language_workspaces`, `semantic_session_start`, `doctor`, `expand_result`
|
|
85
87
|
- `discover_language_workspaces` input: `root` (optional), `max_depth` (optional, default `2`), `apply` (optional, default `false`)
|
|
88
|
+
- `semantic_session_start` input: `language` (optional), `workspace` (optional), `file` (optional), `start_backend` (optional, default `true`)
|
|
86
89
|
- In mixed-language monorepos, semantic tools require language workspace mapping (set via `switch_workspace_for_language` or `discover_language_workspaces(..., apply=true)`).
|
|
87
90
|
- `doctor` now includes `workspaceDependencyChecks.language_workspace_discovery` with suggested per-language workspace commands.
|
|
91
|
+
- `doctor` includes `backendPackageDrift` to show installed backend version vs latest policy and upgrade next steps.
|
|
92
|
+
- `doctor` includes `backendVersionSummary` (counts + per-language concise status + latest lookup stats) for quick LLM triage.
|
|
93
|
+
|
|
94
|
+
Example fields exposed for client/LLM orchestration:
|
|
95
|
+
|
|
96
|
+
```json
|
|
97
|
+
{
|
|
98
|
+
"backend_runtime_mode": "registry",
|
|
99
|
+
"backend_packages": [
|
|
100
|
+
{
|
|
101
|
+
"language": "typescript",
|
|
102
|
+
"package": "@treedy/typescript-lsp-mcp",
|
|
103
|
+
"package_ref": "@treedy/typescript-lsp-mcp@latest",
|
|
104
|
+
"registry": "npm",
|
|
105
|
+
"resolver": "npx",
|
|
106
|
+
"provider": "typescript-lsp-mcp",
|
|
107
|
+
"install_command": "npx --yes @treedy/typescript-lsp-mcp@latest",
|
|
108
|
+
"update_command": "npx --yes @treedy/typescript-lsp-mcp@latest",
|
|
109
|
+
"default_channel": "latest",
|
|
110
|
+
"auto_update_enabled": true,
|
|
111
|
+
"minimum_supported_version": "0.1.0"
|
|
112
|
+
}
|
|
113
|
+
],
|
|
114
|
+
"backendPackageDrift": {
|
|
115
|
+
"typescript": {
|
|
116
|
+
"installed_version": "0.2.0",
|
|
117
|
+
"minimum_supported_version": "0.1.0",
|
|
118
|
+
"minimum_status": "supported",
|
|
119
|
+
"drift_status": "policy_aligned",
|
|
120
|
+
"latest_registry_version": "0.2.0",
|
|
121
|
+
"latest_status": "up_to_date",
|
|
122
|
+
"next_step": "No action needed.",
|
|
123
|
+
"latest_next_step": "Installed version matches latest policy."
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
```
|
|
88
128
|
|
|
89
129
|
## Prompts (Skills)
|
|
90
130
|
|
|
@@ -109,6 +149,8 @@ You can configure with env vars or `.lsp-mcp.json` in your workspace.
|
|
|
109
149
|
| `LSP_MCP_TYPESCRIPT_ENABLED` | `true` | Enable TypeScript backend |
|
|
110
150
|
| `LSP_MCP_VUE_ENABLED` | `true` | Enable Vue backend |
|
|
111
151
|
| `LSP_MCP_AUTO_UPDATE` | `true` | Update backend packages to latest on startup/update |
|
|
152
|
+
| `LSP_MCP_BACKEND_RUNTIME_MODE` | `registry` | Backend runtime strategy: `registry` (default), `auto`, `bundled` |
|
|
153
|
+
| `LSP_MCP_REQUIRE_BUNDLED_BACKENDS` | `false` | Legacy strict bundled mode (equivalent to runtime mode `bundled`) |
|
|
112
154
|
| `LSP_MCP_EAGER_START` | `false` | Start all enabled backends when server boots |
|
|
113
155
|
| `LSP_MCP_IDLE_TIMEOUT` | `600` | Backend idle timeout in seconds |
|
|
114
156
|
|
|
@@ -123,7 +165,8 @@ When `LSP_MCP_AUTO_UPDATE=true`:
|
|
|
123
165
|
|
|
124
166
|
### Runtime dependency expectations
|
|
125
167
|
|
|
126
|
-
- Lean mode (default): backend packages are fetched when first used.
|
|
168
|
+
- Lean mode (default): backend packages are fetched when first used (`LSP_MCP_BACKEND_RUNTIME_MODE=registry`).
|
|
169
|
+
- Bundled mode: set `LSP_MCP_BACKEND_RUNTIME_MODE=bundled` or `LSP_MCP_REQUIRE_BUNDLED_BACKENDS=true`.
|
|
127
170
|
- Required host tools:
|
|
128
171
|
- TypeScript/Vue/Pyright backends: `node` + `npx`
|
|
129
172
|
- Python backend: `uv` (or `uvx`)
|