Files
python-sdk/pkg/hanzo-tools-lsp
zeekay 8c05bf99d6 fix(ci): pin black <26.1 to avoid internal error, lower requires-python to 3.12
Black 26.1.0 crashes on multiple exception types in parentheses.
The requires-python bump to 3.14 broke CI which runs Python 3.12.
2026-03-01 16:01:16 -08:00
..
2025-12-27 15:00:11 -08:00

hanzo-tools-lsp

Language Server Protocol tools for Hanzo MCP.

Installation

pip install hanzo-tools-lsp

Tools

lsp - Language Server Protocol

Code intelligence via LSP servers.

Go to definition:

lsp(action="definition", file="/path/to/file.py", line=10, character=15)

Find references:

lsp(action="references", file="/path/to/file.py", line=10, character=15)

Hover information:

lsp(action="hover", file="/path/to/file.py", line=10, character=15)

Code completion:

lsp(action="completion", file="/path/to/file.py", line=10, character=15)

Diagnostics:

lsp(action="diagnostics", file="/path/to/file.py")

Rename symbol:

lsp(action="rename", file="/path/to/file.py", line=10, character=15, new_name="newName")

Check status:

lsp(action="status")  # Check LSP server status

Supported Languages

  • Go (gopls)
  • Python (pyright)
  • TypeScript/JavaScript (typescript-language-server)
  • Rust (rust-analyzer)
  • Java (jdtls)
  • C/C++ (clangd)
  • Ruby (solargraph)
  • Lua (lua-language-server)

Language servers are automatically installed as needed.

License

MIT