BeClaude

swift-lsp

30.2kOfficial PluginDevelopmentby Anthropic

Swift language server (SourceKit-LSP) for code intelligence

Python3272 forks747 issuesUpdated 6/16/2026First seen 4/17/2026

Summary

This skill integrates SourceKit-LSP into Claude Code, providing real-time code intelligence for Swift projects.

  • It enables features like code completion, diagnostics, and symbol navigation, making Swift development more efficient within the Claude environment.

Install & Usage

1
Add a marketplace
/plugin marketplace add <org/repo>
2
Install the plugin

Add the configuration to /plugin install swift-lsp@<marketplace>

3
Manage with /plugin
/plugin

Use Cases

Get code completions and suggestions while writing Swift code in Claude Code.
View real-time diagnostics and errors for your Swift source files.
Navigate to symbol definitions and references across your Swift project.
Perform refactoring actions like renaming symbols with SourceKit-LSP support.
Access documentation and type information for Swift APIs inline.
Debug and fix Swift code by leveraging LSP-based code analysis.

Usage Examples

1

/swift-lsp complete 'func greet(name: String) -> String { return "Hello, \(name)" }'

2

/swift-lsp diagnostics 'path/to/MyFile.swift'

3

/swift-lsp definition 'MyClass.myMethod' in 'Sources/App/MyClass.swift'

View source on GitHub
lspclaude-codemcpskills

Security Audits

LicenseUnknownSourcePassRepositoryPass

Frequently Asked Questions

What is swift-lsp?

This skill integrates SourceKit-LSP into Claude Code, providing real-time code intelligence for Swift projects. It enables features like code completion, diagnostics, and symbol navigation, making Swift development more efficient within the Claude environment.

How to install swift-lsp?

To install swift-lsp: add a marketplace (/plugin marketplace add <org/repo>), then add the config to /plugin install swift-lsp@<marketplace>. Finally, /plugin in Claude Code.

What is swift-lsp best for?

swift-lsp is a plugin categorized under Development. It is designed for: lsp. Created by Anthropic.

What can I use swift-lsp for?

swift-lsp is useful for: Get code completions and suggestions while writing Swift code in Claude Code.; View real-time diagnostics and errors for your Swift source files.; Navigate to symbol definitions and references across your Swift project.; Perform refactoring actions like renaming symbols with SourceKit-LSP support.; Access documentation and type information for Swift APIs inline.; Debug and fix Swift code by leveraging LSP-based code analysis..