mirror of
https://github.com/alibaba/higress.git
synced 2026-05-28 22:57:31 +08:00
fix: fix const McpStreamableProtocol spell mistake (#2405)
This commit is contained in:
@@ -29,7 +29,7 @@ const (
|
|||||||
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
|
||||||
|
|||||||
@@ -59,17 +59,17 @@ var (
|
|||||||
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