@treedy/pyright-mcp 1.1.2 → 1.1.3

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 CHANGED
@@ -1,4 +1,4 @@
1
- # @treedy/pyright-mcp
1
+ # @treedy/pyright-mcp (TypeScript)
2
2
 
3
3
  MCP (Model Context Protocol) server that exposes [Pyright](https://github.com/microsoft/pyright) LSP features for Python code intelligence. Works with Claude Code, Codex, and other MCP-compatible AI tools.
4
4
 
@@ -13,6 +13,8 @@ MCP (Model Context Protocol) server that exposes [Pyright](https://github.com/mi
13
13
  - **rename** - Preview symbol renaming
14
14
  - **search** - Search for patterns in files (ripgrep-style)
15
15
  - **status** - Check Python/Pyright environment status
16
+ - **symbols** - Extract symbols (classes, functions, methods, variables)
17
+ - **update_document** - Update file content for incremental analysis
16
18
 
17
19
  ## Prerequisites
18
20
 
@@ -161,6 +163,15 @@ Tool: diagnostics
161
163
  Arguments: { "file": "/path/to/file.py" }
162
164
  ```
163
165
 
166
+ ### Get Symbols
167
+
168
+ ```
169
+ Tool: symbols
170
+ Arguments: { "file": "/path/to/file.py", "filter": "classes" }
171
+ ```
172
+
173
+ Filter options: `all`, `classes`, `functions`, `methods`, `variables`
174
+
164
175
  ### Search in Files
165
176
 
166
177
  ```
@@ -171,10 +182,6 @@ Arguments: { "pattern": "def main", "path": "/path/to/project", "glob": "*.py" }
171
182
  ## Development
172
183
 
173
184
  ```bash
174
- # Clone the repository
175
- git clone <repo-url>
176
- cd pyright-mcp
177
-
178
185
  # Install dependencies
179
186
  npm install
180
187
 
@@ -204,7 +211,7 @@ After publishing, users can run directly with:
204
211
  npx @treedy/pyright-mcp
205
212
  ```
206
213
 
207
- ## How It Works
214
+ ## Architecture
208
215
 
209
216
  ```
210
217
  ┌─────────────────┐ stdio ┌─────────────────────┐ stdio ┌──────────────────┐