fix: fix const McpStreamableProtocol spell mistake (#2405)

This commit is contained in:
EricaLiu
2025-06-12 15:35:39 +08:00
committed by GitHub
parent 38068ee43d
commit 86934b3203
2 changed files with 16 additions and 16 deletions

View File

@@ -24,12 +24,12 @@ const (
IstioMcpAutoGeneratedHttpRouteName = IstioMcpAutoGeneratedPrefix + "-httproute" IstioMcpAutoGeneratedHttpRouteName = IstioMcpAutoGeneratedPrefix + "-httproute"
IstioMcpAutoGeneratedMcpServerName = IstioMcpAutoGeneratedPrefix + "-mcpserver" IstioMcpAutoGeneratedMcpServerName = IstioMcpAutoGeneratedPrefix + "-mcpserver"
StdioProtocol = "stdio" StdioProtocol = "stdio"
HttpProtocol = "http" HttpProtocol = "http"
HttpsProtocol = "https" HttpsProtocol = "https"
DubboProtocol = "dubbo" DubboProtocol = "dubbo"
McpSSEProtocol = "mcp-sse" McpSSEProtocol = "mcp-sse"
McpStreambleProtocol = "mcp-streamable" McpStreamableProtocol = "mcp-streamable"
) )
type McpToolArgsType string type McpToolArgsType string

View File

@@ -56,20 +56,20 @@ const (
var ( var (
supportedProtocols = map[string]bool{ supportedProtocols = map[string]bool{
provider.HttpProtocol: true, provider.HttpProtocol: true,
provider.HttpsProtocol: true, provider.HttpsProtocol: true,
provider.McpSSEProtocol: true, provider.McpSSEProtocol: true,
provider.McpStreambleProtocol: true, provider.McpStreamableProtocol: true,
} }
protocolUpstreamTypeMapping = map[string]string{ protocolUpstreamTypeMapping = map[string]string{
provider.HttpProtocol: mcpserver.UpstreamTypeRest, provider.HttpProtocol: mcpserver.UpstreamTypeRest,
provider.HttpsProtocol: mcpserver.UpstreamTypeRest, provider.HttpsProtocol: mcpserver.UpstreamTypeRest,
provider.McpSSEProtocol: mcpserver.UpstreamTypeSSE, provider.McpSSEProtocol: mcpserver.UpstreamTypeSSE,
provider.McpStreambleProtocol: mcpserver.UpstreamTypeStreamable, provider.McpStreamableProtocol: mcpserver.UpstreamTypeStreamable,
} }
routeRewriteProtocols = map[string]bool{ routeRewriteProtocols = map[string]bool{
provider.McpSSEProtocol: true, provider.McpSSEProtocol: true,
provider.McpStreambleProtocol: true, provider.McpStreamableProtocol: true,
} }
mcpServerRewriteProtocols = map[string]bool{ mcpServerRewriteProtocols = map[string]bool{
provider.McpSSEProtocol: true, provider.McpSSEProtocol: true,