Files
python-sdk/pkg/hanzo-tools-lsp
zooqueenandHanzo Dev 20a2178e61 auth: the two key shapes are pk- and sk-, and one sentence says so
Cloud's APIKeyPrefixes admits pk- and sk- only (auth_identity.go, 4b030b77).
The lsp tool still told the user to set an hk- key, which cloud resolves to no
principal — following the message produced a key that could never authenticate.

The message is now a single NO_KEY beside the resolver that mints it, exported
from hanzo_tools.core, so a second tool reporting it cannot spell it differently.
Resolution order is untouched: HANZO_API_KEY, then ~/.hanzo/config.json .apiKey,
then the CLI's IAM session.

vector_index names the split cloud actually draws: pk- publishable for read,
sk- secret for write.

Co-authored-by: Hanzo Dev <[email protected]>
2026-08-08 15:04:19 -07: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