[BUG] How can I use the LSP tool in -p mode? I’ve noticed that the LSP tool seems to only work in CLI mode.
Resolved 💬 3 comments Opened Jan 20, 2026 by littlebai3618 Closed Jan 24, 2026
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
How can I use the LSP tool in -p mode?
I’ve noticed that the LSP tool seems to only work in CLI mode. v2.1.12
What Should Happen?
I’ve noticed that the LSP tool seems to only work in CLI mode
Error Messages/Logs
Steps to Reproduce
claude -p "Can you see an LSP tool?" --output-format stream-json --verbose -c --plugin-dir <PLUGIN_DIR>
Claude Model
None
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
2.1.12 (Claude Code)
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
PyCharm terminal
Additional Information
_No response_
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗