FastMCP stdio server for Pyright code intelligence
This server has 10 well-named tools with consistent naming patterns (verb_noun: document_symbols, definition, type_definition, etc.). All tools have descriptions present (10-90+ chars). However, descriptions are inconsistent in depth and some lack detail on WHEN to use the tool or WHY it differs from similar tools. Parameter descriptions are present but minimal. Output schemas are NOT documented in the visible code, we can infer what these LSP-backed tools return (e.g., definition returns Location objects, references returns a list of Locations), but without explicit schema documentation in the MCP tool registration, LLMs cannot reliably plan downstream operations or validate responses. Error handling guidance is absent, tools don't describe what happens on failure (file not found, symbol not found, position out of range). The server uses FastMCP, which handles much schema scaffolding, but the actual tool definitions in __init__.py and server.py don't show explicit output schema declarations or error recovery paths. Pagination support is present (limit/offset on document_symbols, references, type_info, diagnostics) but lacks total_count or next_cursor fields in responses. Security is good (all tools are READ_ONLY except restart_server which is REVERSIBLE; no secrets exposed). Composition is excellent, tools are single-responsibility and chain well (find a symbol with document_symbols, jump to definition, get type_info, find references). Overall, this is a competent, production-adjacent tool suite, but falls short of A-grade due to missing output schema documentation and sparse error guidance.
Jump to where a symbol is defined
Get type errors and warnings
List all symbols defined in a file
List discovered Python environments and their status
Preview reference-backed rename edits within the active Pyright workspace; never writes files
Find usages of a symbol within the active Pyright workspace/environment
Restart Pyright after config changes
Output schemas not documented. Tools return LSP-native structures (Location, DiagnosticResult, etc.) but MCP tool registration does not include explicit output schema declarations. LLMs cannot reliably plan what fields to expect or extract for downstream tool calls.
Error handling guidance missing. Tool descriptions do not explain what happens on failure (file not found, symbol not found, invalid position, Pyright not initialized). No recovery guidance for LLM ('try calling list_environments first', 'position may be out of range').
Inferred effective spec: <=2025-11-25.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | D | 56 | <=2025-11-25 | v2 |
| 2026-03-09 | D | 55 | - | v1 |
Get type signature and docs for any symbol (via hover)
Jump to the type definition of a symbol
Get type name, fields, and methods for a value (primary tool)
Pagination lacks total_count or next_cursor. Tools accepting limit/offset (document_symbols, references, type_info, diagnostics) do not document whether they return a total count, which makes it hard for LLMs to know if more results exist or plan pagination loops.
Descriptions could be more LLM-optimized. Several tool descriptions are terse (e.g., 'List all symbols defined in a file' for document_symbols) and lack context on WHEN to use this tool vs similar ones or what it reveals about code structure.
preview_rename has complex parameters (prewarm, prewarm_limit, prewarm_timeout_seconds) that are not explained well. What is 'prewarming'? When should LLM set prewarm=false? Under what conditions would changing prewarm_timeout_seconds help?