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
feat: Add support for Streamable HTTP Transport MCP servers (#4210)
* Implement support for streamable-http transport type mcp servers
* add streamable-http mock in same fashion as sse - which does not seem to currently be actually leveraged
* rename mock to resolve kebabcase vs camelCase
* fix (seemingly unrelatd) test failure in writeToFileTool.test.ts
* fix tests
consttypeErrorMessage="Server type must be either 'stdio'or 'sse'"
51
+
consttypeErrorMessage="Server type must be 'stdio', 'sse', or 'streamable-http'"
51
52
conststdioFieldsErrorMessage=
52
53
"For 'stdio' type servers, you must provide a 'command' field and can optionally include 'args' and 'env'"
53
54
constsseFieldsErrorMessage=
54
55
"For 'sse' type servers, you must provide a 'url' field and can optionally include 'headers'"
56
+
conststreamableHttpFieldsErrorMessage=
57
+
"For 'streamable-http' type servers, you must provide a 'url' field and can optionally include 'headers'"
55
58
constmixedFieldsErrorMessage=
56
-
"Cannot mix 'stdio' and 'sse' fields. For 'stdio' use 'command', 'args', and 'env'. For 'sse' use 'url' and 'headers'"
57
-
constmissingFieldsErrorMessage="Server configuration must include either 'command' (for stdio) or 'url' (for sse)"
59
+
"Cannot mix 'stdio' and ('sse' or 'streamable-http') fields. For 'stdio' use 'command', 'args', and 'env'. For 'sse'/'streamable-http' use 'url' and 'headers'"
60
+
constmissingFieldsErrorMessage=
61
+
"Server configuration must include either 'command' (for stdio) or 'url' (for sse/streamable-http) and a corresponding 'type' if 'url' is used."
58
62
59
63
// Helper function to create a refined schema with better error messages
0 commit comments