In short.
This GitHub setup guide is for developers adding language servers to Copilot CLI, with local installation and configuration as its main requirement. It explains how to connect language tools that support finding definitions, locating references and renaming symbols. Examples cover TypeScript and JavaScript, Ruby and Python, alongside configuration controls and startup diagnostics. Minimum supported versions, costs and demonstrated project-level results are unknown.
Researched and written by an AI model and checked by a second AI model. How it works
Coverage includes the complete selected article supplied as selected-page.txt at [https://docs.github.com/api/article/body?pathname=/en/copilot/how-tos/copilot-cli/set-up-copilot-cli/add-lsp-servers], including its installation examples, configuration fields, management commands and trusted-source caution. Linked conceptual documentation, skill downloads, server implementations and further reading are excluded. No installation, command, configuration or project behavior was executed or tested.
The overview
Identity
Adding LSP servers for GitHub Copilot CLI is a GitHub Docs how-to about connecting language servers to the coding assistant. Language Server Protocol, or LSP, lets development tools obtain language-aware information from a separate server.
The source is the complete article at [https://docs.github.com/api/article/body?pathname=/en/copilot/how-tos/copilot-cli/set-up-copilot-cli/add-lsp-servers]. The article supplies setup instructions and examples; the linked skill and language-server implementations are separate resources.
Assessment
The guide is useful when an existing Copilot CLI user needs language-aware navigation or symbol changes. It provides package installation commands, complete configuration examples and commands for inspecting server status.
Its strongest practical contribution is connecting installation, configuration and startup diagnosis in one place. The evidence does not establish improvements in accuracy, task completion time or refactoring reliability.
Users
Developers using Copilot CLI can follow concrete examples for TypeScript, JavaScript, Ruby and Python. Beginners need enough familiarity with terminal commands, package installation and JSON editing to complete the manual route.
Repository maintainers can share server configuration with project contributors. Experienced developers working in monorepos can specify a server root below the Git repository root and customize startup behavior.
Capabilities
GitHub describes LSP servers as improving Copilot CLI's ability to navigate to definitions, find references and rename symbols. The TypeScript language-server example supports both TypeScript and JavaScript.
The documented /lsp commands list configured servers, check startup, reload configuration and open live server logs. A repository can also disable a server by its existing name, overriding a lower-priority definition from a plugin or user configuration.
Using it
Requirements
Setup requires Copilot CLI and locally installed language-server software. The installation examples use Node.js and npm for typescript-language-server or Pyright, gem for Ruby servers, and pip for python-lsp-server.
Every server definition needs a unique name containing only letters, numbers, underscores or hyphens, a fileExtensions map, and at least one launch field: command, bash or powershell. The article does not specify minimum Copilot CLI or server versions, account requirements, or a complete operating-system compatibility matrix.
Mechanism
Copilot CLI reads server definitions from the lspServers object in ~/.copilot/lsp-config.json for personal configuration or .github/lsp.json for repository configuration. Each definition maps file extensions to language identifiers and describes how to launch the server.
The command field launches an executable with optional args. Shell-based launches use bash or powershell, and args is ignored for those launches. On Windows, powershell takes precedence over bash when both are set. The cwd field defaults to the project root; rootUri defaults to a dot and identifies the server root relative to the Git root.
Optional controls include environment variables with ${VAR} and ${VAR:-default} expansion, initializationOptions, and process-spawn and warmup timeouts. Requests default to a 90-second timeout, while the startup handshake defaults to 60 seconds. A repository entry containing disabled: true can override an existing server definition.
Setup
For guided setup, the article directs users to download lsp-setup from [https://awesome-copilot.github.com/skills/?q=lsp], unzip it and place the resulting directory in ~/.copilot/skills/ or the repository's .github/skills/. Start Copilot CLI or enter /skills reload, then enter setup lsp and follow the language-specific instructions. Finish with /lsp reload.
For manual setup, install the chosen server using its documentation, then add its definition to the personal or repository configuration file. The article advises installing servers only from trusted sources. It provides examples for typescript-language-server, ruby-lsp and Pyright.
Example
For Python through Pyright, the documented installation command is npm install -g pyright, which requires Node.js.
The corresponding configuration is {"lspServers":{"python":{"command":"pyright-langserver","args":["--stdio"],"fileExtensions":{".py":"python",".pyw":"python",".pyi":"python"}}}}.
Place that definition in the appropriate configuration file, reload the configuration and use /lsp test python to check startup. No observed result is available for this example.
Assessment & evidence
Limitations
The lsp-setup skill is described as supporting a selection of popular languages, but the article does not enumerate that selection. The linked skill and server documentation are outside the available evidence.
The /lsp test command starts a temporary standalone server instance, reports startup success or errors, and then terminates it. That check does not establish correct definition lookup, references or renaming within a particular project.
Nothing was installed, executed or tested. Performance, compatibility with a specific repository and the correctness of resulting code changes remain unassessed.
Reasoning
The guide is a practical fit for someone already using Copilot CLI who can install local tools and maintain configuration. Its concrete launch settings, extension mappings and diagnostics support that setup task.
The likely benefit is access to language-aware operations within the existing CLI session. This is an inference from the documented capabilities; the article supplies no measured comparison of work completed with and without an LSP server.
Alternatives
The article offers two setup routes: the lsp-setup skill and manual installation with JSON configuration. The manual route exposes the server definition directly, while the skill guides installation and configuration for its supported languages.
For Ruby, the page lists ruby-lsp and Solargraph. For Python, it lists Pyright and python-lsp-server. It provides no comparative evidence about their features, performance or suitability for particular projects.
Evidence
The evidence consists of one complete GitHub Docs article containing setup instructions, configuration-field descriptions, example server definitions and an illustrative status display.
This supports describing the documented setup and management commands. The sample output is illustrative; it does not establish a successful installation or working project integration. No independent runtime observations or benchmarks are available.
Access & freshness
Costs
The article provides no prices, subscription requirements, usage allowances or billing conditions for Copilot CLI. It also gives no cost information for lsp-setup or the listed language servers.
Total monetary cost and local CPU, memory or storage requirements are unknown from this evidence.
Rights
The captured article contains no explicit license or redistribution terms for its text, the lsp-setup skill or the named language-server packages. Their respective licenses and usage terms are unknown from this page.
Download links and installation commands alone do not establish permission to redistribute those resources.
Freshness
The source snapshot was captured on 15 November 2026 at 12:40:06.033 UTC. Its source revision is sha256:ff04a229e86103ae44fbf2a76878718f3443b65d6b8fe34f7ba54a2a259a4e4c.
The article provides no publication date, last-update date or applicable Copilot CLI version. The capture timestamp establishes when the snapshot was obtained; continued compatibility with later releases is unknown.
Actions
Choose a server for the project's language and confirm its installation requirements. Decide whether configuration belongs in the personal or repository file, then follow the guided or manual setup route. For a project below the Git root, set rootUri to the relevant subdirectory.
After configuration, use /lsp reload, inspect /lsp list and run /lsp test SERVER-NAME. Use /lsp logs to investigate errors. Separately check definition lookup, references and symbol renaming on representative project files before relying on those operations.
Confirm applicable versions, costs and usage terms from the relevant providers because this article does not establish them.
