mirror of
https://github.com/alibaba/higress.git
synced 2026-05-29 07:07:37 +08:00
fix: fix const McpStreamableProtocol spell mistake (#2405)
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user