Back to MCP marketplace
swiftlens/swiftlens
development-it
In Review

swiftlens/swiftlens

Added by github

About

SwiftLens is a Model Context Protocol (MCP) server that provides deep, semantic-level analysis of Swift codebases to any AI models. By integrating directly with Apple's SourceKit-LSP, SwiftLens enables AI models to understand Swift code with compiler-grade accuracy.

Tools

  • get_tool_help
    Get concise help for Swift tools. Pass tool_name for specific help, or None for all tools.
  • swift_analyze_files
    Analyze Swift files and extract symbol structures (supports single or multiple files).
  • swift_check_environment
    Check if Swift development environment is properly configured.
  • swift_lsp_diagnostics
    Comprehensive LSP diagnostics combining environment, health, and performance checks.
  • swift_find_symbol_references_files
    Find all references to a symbol across multiple Swift files. Prefer relative paths (e.g., 'src/MyFile.swift').
  • swift_get_hover_info
    Get hover information for a symbol at the specified position in a Swift file.
  • swift_get_declaration_context
    Get fully-qualified declaration contexts for all symbols in a Swift file.
  • swift_get_symbol_definition
    Find the source location (file + line) where a symbol is defined.
  • swift_get_file_imports
    Extract import statements from a Swift file.
  • swift_summarize_file
    Return counts of classes, functions, enums, and other symbols in a Swift file.
  • swift_get_symbols_overview
    Extract only top-level symbols (classes, structs, enums, protocols) from a Swift file.
  • swift_validate_file
    Validate a Swift file using swiftc type checking and return compilation errors.
  • swift_replace_symbol_body
    Replace the body content of a specified Swift symbol while preserving the declaration.
  • swift_search_pattern
  • swift_build_index
    Build or rebuild Swift project index for better LSP functionality.

Community reviews

Reports from signed-in users. These reviews describe individual experiences and are not security audits.

No published reviews yet. Share a specific setup result to help the next user evaluate this server.

Used this MCP server?

Sign in before writing so your review is never lost.