Skip to content

Enable LSP tool to connect to installed language servers #15619

@cosmicflow-space

Description

@cosmicflow-space

Feature Request

The Claude Code CLI has an LSP tool (LSP with operations like goToDefinition, findReferences, hover, etc.), but it currently returns "No LSP server available for file type" even when language servers are installed globally.

Current Behavior

LSP tool call: goToDefinition on .ts file
Result: "No LSP server available for file type: .ts"

This occurs even with typescript-language-server and pyright installed globally via npm.

Requested Behavior

The LSP tool should:

  1. Auto-discover installed language servers (typescript-language-server, pyright, gopls, etc.)
  2. Or allow configuration in ~/.claude/settings.json to specify server paths
  3. Enable faster, type-aware code navigation vs. grep-based searches

Use Case

When working on large codebases, LSP provides:

  • Precise "Go to Definition" (not just text matching)
  • Type-aware "Find References"
  • Hover documentation
  • Call hierarchy analysis

This would significantly speed up code exploration tasks.

Environment

  • Claude Code CLI (latest)
  • macOS with globally installed: typescript-language-server, pyright
  • Projects: TypeScript/Next.js, Python

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions