3b20b0a35b
The second ai-mcp-proxy binding (added to fix the GET/SSE 502 loop) created a second runtime plugin instance with the same tool config, which ai-mcp-proxy's own duplicate-name detection caught: all three tools (list-customers/get-customer/create-customer) fell back to auto-generated names across both instances. Confirmed via dataplane pod logs right after applying the previous fix. Real fix: one KongRoute for all three MCP HTTP methods (GET/POST/ DELETE) instead of two, one ai-mcp-proxy binding instead of two. ai-mcp-proxy already tolerates multi-method routes (same "skips method selection" notice the existing POST+DELETE route already produces) — extending to GET is the same class of thing, not new risk, and there is now exactly one plugin instance so no duplicate tool names.
54 lines
1.3 KiB
YAML
54 lines
1.3 KiB
YAML
apiVersion: configuration.konghq.com/v1alpha1
|
|
kind: KongPluginBinding
|
|
metadata:
|
|
name: ${NAME}-customers-mcp-openid-connect-binding
|
|
namespace: ${NAMESPACE}
|
|
spec:
|
|
controlPlaneRef:
|
|
type: konnectNamespacedRef
|
|
konnectNamespacedRef:
|
|
name: ${CONTROL_PLANE_REF_NAME}
|
|
pluginRef:
|
|
name: ${NAME}-customers-mcp-openid-connect
|
|
targets:
|
|
serviceRef:
|
|
group: configuration.konghq.com
|
|
kind: KongService
|
|
name: ${NAME}-customers-mcp
|
|
---
|
|
apiVersion: configuration.konghq.com/v1alpha1
|
|
kind: KongPluginBinding
|
|
metadata:
|
|
name: ${NAME}-customers-mcp-ai-mcp-proxy-binding
|
|
namespace: ${NAMESPACE}
|
|
spec:
|
|
controlPlaneRef:
|
|
type: konnectNamespacedRef
|
|
konnectNamespacedRef:
|
|
name: ${CONTROL_PLANE_REF_NAME}
|
|
pluginRef:
|
|
name: ${NAME}-customers-mcp-ai-mcp-proxy
|
|
targets:
|
|
routeRef:
|
|
group: configuration.konghq.com
|
|
kind: KongRoute
|
|
name: ${NAME}-customers-mcp
|
|
---
|
|
apiVersion: configuration.konghq.com/v1alpha1
|
|
kind: KongPluginBinding
|
|
metadata:
|
|
name: ${NAME}-customers-mcp-audit-log-binding
|
|
namespace: ${NAMESPACE}
|
|
spec:
|
|
controlPlaneRef:
|
|
type: konnectNamespacedRef
|
|
konnectNamespacedRef:
|
|
name: ${CONTROL_PLANE_REF_NAME}
|
|
pluginRef:
|
|
name: ${NAME}-customers-mcp-audit-log
|
|
targets:
|
|
serviceRef:
|
|
group: configuration.konghq.com
|
|
kind: KongService
|
|
name: ${NAME}-customers-mcp
|