Specify one or more MCP servers using a comma-separated list:
+Note: Server names with spaces will be automatically converted to use underscores.
+ + } + /> + )} )} {React.Children.map(children, child => { @@ -153,7 +172,11 @@ const MCPConnect: React.FC = () => { }; if (serverHeaders[type]?.length > 0) { - headers["x-mcp-servers"] = JSON.stringify(serverHeaders[type]); + // Format server names (replace spaces with underscores) + const formattedServers = serverHeaders[type].map(s => s.replace(/\s+/g, '_')); + + // Use comma-separated format + headers["x-mcp-servers"] = formattedServers.join(','); } return headers;