mirror of
https://github.com/alibaba/higress.git
synced 2026-03-08 02:30:56 +08:00
fix: fix const McpStreamableProtocol spell mistake (#2405)
This commit is contained in:
@@ -24,12 +24,12 @@ const (
|
||||
IstioMcpAutoGeneratedHttpRouteName = IstioMcpAutoGeneratedPrefix + "-httproute"
|
||||
IstioMcpAutoGeneratedMcpServerName = IstioMcpAutoGeneratedPrefix + "-mcpserver"
|
||||
|
||||
StdioProtocol = "stdio"
|
||||
HttpProtocol = "http"
|
||||
HttpsProtocol = "https"
|
||||
DubboProtocol = "dubbo"
|
||||
McpSSEProtocol = "mcp-sse"
|
||||
McpStreambleProtocol = "mcp-streamable"
|
||||
StdioProtocol = "stdio"
|
||||
HttpProtocol = "http"
|
||||
HttpsProtocol = "https"
|
||||
DubboProtocol = "dubbo"
|
||||
McpSSEProtocol = "mcp-sse"
|
||||
McpStreamableProtocol = "mcp-streamable"
|
||||
)
|
||||
|
||||
type McpToolArgsType string
|
||||
|
||||
@@ -56,20 +56,20 @@ const (
|
||||
|
||||
var (
|
||||
supportedProtocols = map[string]bool{
|
||||
provider.HttpProtocol: true,
|
||||
provider.HttpsProtocol: true,
|
||||
provider.McpSSEProtocol: true,
|
||||
provider.McpStreambleProtocol: true,
|
||||
provider.HttpProtocol: true,
|
||||
provider.HttpsProtocol: true,
|
||||
provider.McpSSEProtocol: true,
|
||||
provider.McpStreamableProtocol: true,
|
||||
}
|
||||
protocolUpstreamTypeMapping = map[string]string{
|
||||
provider.HttpProtocol: mcpserver.UpstreamTypeRest,
|
||||
provider.HttpsProtocol: mcpserver.UpstreamTypeRest,
|
||||
provider.McpSSEProtocol: mcpserver.UpstreamTypeSSE,
|
||||
provider.McpStreambleProtocol: mcpserver.UpstreamTypeStreamable,
|
||||
provider.HttpProtocol: mcpserver.UpstreamTypeRest,
|
||||
provider.HttpsProtocol: mcpserver.UpstreamTypeRest,
|
||||
provider.McpSSEProtocol: mcpserver.UpstreamTypeSSE,
|
||||
provider.McpStreamableProtocol: mcpserver.UpstreamTypeStreamable,
|
||||
}
|
||||
routeRewriteProtocols = map[string]bool{
|
||||
provider.McpSSEProtocol: true,
|
||||
provider.McpStreambleProtocol: true,
|
||||
provider.McpSSEProtocol: true,
|
||||
provider.McpStreamableProtocol: true,
|
||||
}
|
||||
mcpServerRewriteProtocols = map[string]bool{
|
||||
provider.McpSSEProtocol: true,
|
||||
|
||||
Reference in New Issue
Block a user