fix: Standardize MCP server type to "http" per VS Code specification #8850
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR attempts to address Issue #8847 by standardizing the MCP server type field naming convention.
Problem
Different VS Code extensions use different naming conventions for HTTP-based MCP servers:
streamableHttp(camelCase)streamable-http(kebab-case)streamable_http(snake_case)httpThis inconsistency prevents configuration portability between extensions.
Solution
This PR standardizes on VS Code's official
httptype while maintaining backward compatibility:Changes Made
httpas the primary type for HTTP-based MCP serversstreamable-http(deprecated but still supported)streamable-httpis now transformed tohttpinternally via Zod schema transformationhttpis the preferred typeTechnical Details
streamable-httpconfigurations will continue to workTesting
Migration Path
streamable-httpconfigurations need no immediate actionhttpFeedback and guidance are welcome!
Fixes #8847
Important
Standardizes MCP server type to
httpinMcpHub.ts, maintaining backward compatibility withstreamable-http, and updates tests and error messages accordingly.httpinMcpHub.ts, maintaining backward compatibility withstreamable-http.httpand deprecatestreamable-http.streamable-httptohttpinternally.McpHub.spec.tsto coverhttptype standardization and backward compatibility withstreamable-http.httpandstreamable-httptypes.httptype.validateServerConfiginMcpHub.tsto require explicit type for URL-based configs.This description was created by
for ea374fa. You can customize this summary. It will automatically update as commits are pushed.