How to install the Swift LSP plugin in Claude Code
Use SourceKit-LSP with the toolchain and package or workspace that builds the app.
- Install the language server separately and make sure sourcekit-lsp is available on your PATH.
- Start Claude Code once to register Anthropic’s official marketplace. Then run the install command in your terminal.
- Start a new Claude Code session in a project for the language and open a source file to confirm the server loads.
Claude Code · Install in Claude Code
claude plugin install swift-lsp@claude-plugins-officialTry a first task
Find references to a changed Swift protocol, including implementations in another target. Verify that the diagnostics clear after updating those implementations.
Package components
- Swift language server