chimera.lsp
chimera.lsp provides a stdlib-only LSP client so tools can ask a
language server for diagnostics, completions, hovers, and renames.
Top-level exports
Section titled “Top-level exports”from chimera.lsp import ( LSPClient, LSPSession, LSPManager, LSPTool,)| Symbol | Module | Purpose |
|---|---|---|
LSPClient | chimera.lsp.base | JSON-RPC client over server stdio. Methods: initialize, did_open, definition, references, rename, diagnostics, completion, hover. |
LSPSession | chimera.lsp.session | One server’s lifecycle (initialize → requests → shutdown). |
LSPManager | chimera.lsp.manager | Registry of LSPSession keyed by language id; routes requests to the right server. |
LSPTool | chimera.lsp.tool | BaseTool wrapper exposing definition_lookup, find_references, rename_symbol to the agent. |
Bundled servers (chimera.lsp.servers)
Section titled “Bundled servers (chimera.lsp.servers)”Per-language launch configurations: pylsp (Python), typescript-language-server (TS/JS),
rust-analyzer (Rust), gopls (Go), clangd (C/C++).
See also
Section titled “See also”chimera.tools—definition_lookupis the tool-level surface that wrapsLSPTool.