You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: Standardize MCP server type to "http" per VS Code specification
- Add support for "http" as the primary type for HTTP-based MCP servers
- Maintain backward compatibility with "streamable-http" (deprecated)
- Update validation logic to normalize "streamable-http" to "http" internally
- Update error messages to reflect the new preferred type
- Add comprehensive test coverage for HTTP type standardization
Fixes#8847
consttypeErrorMessage="Server type must be 'stdio', 'sse', or 'streamable-http'"
69
+
consttypeErrorMessage="Server type must be 'stdio', 'sse', or 'http' (preferred) / 'streamable-http' (deprecated)"
70
70
conststdioFieldsErrorMessage=
71
71
"For 'stdio' type servers, you must provide a 'command' field and can optionally include 'args' and 'env'"
72
72
constsseFieldsErrorMessage=
73
73
"For 'sse' type servers, you must provide a 'url' field and can optionally include 'headers'"
74
+
consthttpFieldsErrorMessage=
75
+
"For 'http' type servers, you must provide a 'url' field and can optionally include 'headers'"
74
76
conststreamableHttpFieldsErrorMessage=
75
-
"For 'streamable-http' type servers, you must provide a 'url' field and can optionally include 'headers'"
77
+
"For 'http'/'streamable-http' type servers, you must provide a 'url' field and can optionally include 'headers'"
76
78
constmixedFieldsErrorMessage=
77
-
"Cannot mix 'stdio' and ('sse' or 'streamable-http') fields. For 'stdio' use 'command', 'args', and 'env'. For 'sse'/'streamable-http' use 'url' and 'headers'"
79
+
"Cannot mix 'stdio' and ('sse' or 'http') fields. For 'stdio' use 'command', 'args', and 'env'. For 'sse'/'http' use 'url' and 'headers'"
78
80
constmissingFieldsErrorMessage=
79
-
"Server configuration must include either 'command' (for stdio) or 'url' (for sse/streamable-http) and a corresponding 'type' if 'url' is used."
81
+
"Server configuration must include either 'command' (for stdio) or 'url' (for sse/http) and a corresponding 'type' if 'url' is used."
80
82
81
83
// Helper function to create a refined schema with better error messages
0 commit comments