[BUG] --tools "" still exposes LSP tool
Resolved 💬 1 comment Opened Apr 30, 2026 by ahalekelly Closed Jun 1, 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?
LSP is still included if you use --tools and don't include it
What Should Happen?
Only tools specified in --tools should be included
Error Messages/Logs
Steps to Reproduce
If you runclaude -p "List your available tools. Reply only with tool names." --strict-mcp-config --mcp-config "" --tools ""
It repliesLSP
You can still disable LSP with --disallowedTools, but that overwrites --tools, so you need to list every tool you don't want in --disallowedTools
Claude Model
Opus
Is this a regression?
Yes, this worked in a previous version
Last Working Version
2.1.75 is working, 2.1.76 has this bug
Claude Code Version
2.1.123
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
_No response_
This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗