Claude Tools / LSP Servers / Swift

Illustrative language-server integration

Swift

Provides Swift completion, diagnostics, definitions, and refactoring support.

Swift
PreviewSource shapeAudit notes
$starter/lsp-servers/swift

Template signals

Status

Draft

Audit

Not run

Collection

LSP Servers

Anatomy

What it contains

  • A language identifier and file-extension mapping
  • The language-server command and arguments
  • Initialization or workspace configuration

Lifecycle

How it works

  1. A supported source file is opened
  2. The language server indexes the workspace
  3. The client requests diagnostics or symbol information
  4. Structured language intelligence returns to the agent

Audit lens

What Bear Brown would check

  • The executable and version are documented
  • Workspace scope is constrained
  • Initialization does not run unexpected project code

Content preview

Example configuration

Editable starter content6 lines
{
  "language": "typescript",
  "extensions": [".ts", ".tsx", ".js", ".jsx"],
  "command": "typescript-language-server",
  "args": ["--stdio"]
}

Related

More LSP Servers

← Back to LSP Servers