-
Notifications
You must be signed in to change notification settings - Fork 1.9k
.github/lsp.json and .github/mcp.json do not work #1886
Copy link
Copy link
Closed
Labels
area:mcpMCP server configuration, discovery, connectivity, OAuth, policy, and registryMCP server configuration, discovery, connectivity, OAuth, policy, and registryarea:toolsBuilt-in tools: file editing, shell, search, LSP, git, and tool call behaviorBuilt-in tools: file editing, shell, search, LSP, git, and tool call behavior
Description
Activity
Metadata
Metadata
Assignees
Labels
area:mcpMCP server configuration, discovery, connectivity, OAuth, policy, and registryMCP server configuration, discovery, connectivity, OAuth, policy, and registryarea:toolsBuilt-in tools: file editing, shell, search, LSP, git, and tool call behaviorBuilt-in tools: file editing, shell, search, LSP, git, and tool call behavior
Describe the bug
I have the following
.github/lsp.json:{ "lspServers": { "fsautocomplete": { "command": "dotnet", "args": ["fsautocomplete", "--stdio"], "fileExtensions": { ".fs": "fsharp", ".fsx": "fsharp" } } } }and
.github/mcp.json:{ "mcpServers": { "mslearn-mcp": { "type": "http", "url": "https://learn.microsoft.com/api/mcp", "headers": {}, "tools": ["*"] } } }When I run
copilotfrom the project root, neither of these work.If I use these exact same configs in
.copilot/lsp-config.jsonand.copiloty/mcp-config.jsonthey do work, and if I explicitly say--additional-mcp-config @.github/mcp.jsonit also works. Moving the mcp config to.mcp.jsonat the project root also gets picked up.You will also notice that the fsautocomplete lsp is being detected (so clearly its finding the file) yet its missing a word in the format, which you can see in this example where I have it working in copilot config but failing in github config (in this case attempting to use
fsautocompletedirectly as a globally installed dotnet tool instead of a local one viadotnet fsautocomplete:Affected version
GitHub Copilot CLI 1.0.2
Steps to reproduce the behavior
.githubdirectorycopilotfrom the directory above/lsp test fsautocompleteand inspect/mcp showto see the problem occurringExpected behavior
These files are documented as though they should work as is. Intended behaviour is the lsp starting up successfully and the mslearn mcp connecting as normal.
Additional context
I have attempted this on Windows, Debian WSL, and an Ubuntu based image in a Github Codespace, and all behave the same.