[BUG] swift-lsp plugin installed but LSP tools not exposed to Claude

Status Fixed / completed
Reported on v2.1.20
Maintainer reply None cached
Activity 3 comments · opened Jan 27, 2026 · closed Jan 27, 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?

The swift-lsp@claude-plugins-official plugin is installed and the marketplace.json contains valid lspServers configuration, but Claude does not have access to any LSP tools for Swift files.

When I ask Claude to "use LSP to find all references", it responds that no LSP tools are available in its toolset.

What Should Happen?

Claude should have LSP tools (find_references, go_to_definition, hover, etc.) available for .swift files after installing the swift-lsp plugin.

Error Messages/Logs

No explicit error. Claude simply reports:
"I don't have an LSP tool available in my current toolset."

Plugin install directory only contains README.md:
~/.claude/plugins/cache/claude-plugins-official/swift-lsp/1.0.0/
└── README.md  (only file)

But marketplace.json has valid config:
"lspServers": {
  "sourcekit-lsp": {
    "command": "sourcekit-lsp",
    "extensionToLanguage": { ".swift": "swift" }
  }
}

Steps to Reproduce

  1. Install the swift-lsp plugin:

claude plugins install swift-lsp@claude-plugins-official

  1. Verify sourcekit-lsp is available:

which sourcekit-lsp
// Should return /usr/bin/sourcekit-lsp

  1. Open any Swift project in Claude Code
  1. Ask: "use LSP to find all references to [any symbol]"
  1. Claude responds it has no LSP tools available

Claude Model

Opus

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

2.1.20 (Claude Code)

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

iTerm2

Additional Information

Diagnostic findings:

  • sourcekit-lsp binary exists and works: /usr/bin/sourcekit-lsp
  • Plugin shows in installed_plugins.json as v1.0.0
  • Marketplace config at ~/.claude/plugins/marketplaces/claude-plugins-official/.claude-plugin/marketplace.json contains correct lspServers definition
  • But the installed plugin directory only has README.md — no manifest wiring the LSP tools

Hypothesis: Claude Code reads lspServers from marketplace.json but doesn't start the LSP server or expose tools to the model.

Related issues: #14803, #16384

View original on GitHub ↗

3 Comments

github-actions[bot] · 8 months ago

Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/15148
  2. https://github.com/anthropics/claude-code/issues/15202
  3. https://github.com/anthropics/claude-code/issues/16384

This issue will be automatically closed as a duplicate in 3 days.

  • If your issue is a duplicate, please close it and 👍 the existing issue instead
  • To prevent auto-closure, add a comment or 👎 this comment

🤖 Generated with Claude Code

lukelabonte · 8 months ago

#16384 is nearly identical:

  • Same plugin: swift-lsp@claude-plugins-official
  • Same error: "No LSP server available for file type: .swift"
  • Same environment: macOS, sourcekit-lsp via Xcode

#15148 provides the best technical diagnosis:

  • Debug logs show "0 server(s)" registered
  • lspServers config never extracted from marketplace.json
  • Only README.md copied to plugin cache
github-actions[bot] · 8 months ago

This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.