-
Notifications
You must be signed in to change notification settings - Fork 38.9k
Copilot Chat causes Pylance MCP registration error: 'Collection or definition not found for ms-python.vscode-pylance/pylanceMcp' #273351
Copy link
Copy link
Closed as not planned
Closed as not planned
Copy link
Labels
*caused-by-extensionIssue identified to be caused by an extensionIssue identified to be caused by an extension
Description
Environment
- OS: Windows 11 Home
- VS Code: 1.105.1 (commit 7d842fb, x64)
- Pylance: ms-python.vscode-pylance@2025.9.1
- Copilot Chat: github.copilot-chat@0.32.3
- Other related extensions:
- github.copilot@1.388.0
- ms-python.python@2025.16.0
- ms-python.debugpy@2025.14.1
- ms-python.vscode-python-envs@1.10.0
Reproduction Steps
- Open VS Code with any workspace containing Python files.
- Ensure
ms-python.vscode-pylanceis installed and enabled. - Enable
github.copilot-chatextension. - Reload the window or restart VS Code.
- Open View → Output → select "Log (Extension Host)" from the dropdown.
- Observe error messages related to
pylanceMcpand illegal URI schemes.
Observed Behavior
When GitHub Copilot Chat extension is enabled:
- Extension host shows errors: "Collection or definition not found for ms-python.vscode-pylance/pylanceMcp"
- Additional errors about "Scheme contains illegal characters" appear
- These errors appear consistently on VS Code startup/reload
When GitHub Copilot Chat extension is disabled:
- All MCP-related errors disappear completely
- Pylance functions normally
- No URI scheme errors occur
Expected Behavior
GitHub Copilot Chat should not interfere with Pylance's MCP server registration. Both extensions should coexist without causing extension-host errors.
Additional Investigation
- Root cause: The
github.copilot-chatextension appears to conflict with Pylance'smcpServerDefinitionProviderscontribution (id:"pylanceMcp"). - Reproducibility: 100% reproducible - disabling Copilot Chat immediately resolves the issue, re-enabling it immediately reintroduces the errors.
- Impact: While both extensions appear to function, the constant error logging suggests an underlying integration problem that may affect stability or performance.
Technical Details
Pylance extension defines an MCP server provider in its package.json:
"mcpServerDefinitionProviders": [
{
"id": "pylanceMcp",
...
}
]The conflict appears to be between this MCP provider and some MCP-related functionality in the Copilot Chat extension.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
*caused-by-extensionIssue identified to be caused by an extensionIssue identified to be caused by an extension