本项目是一个 MCP-over-XDSv3 gRPC 服务器的样例实现,专为 Istio 打造,为相关开发和应用提供了实用的参考。
要构建并发布容器镜像,并将服务器部署到 Kubernetes 中,你需要在本地安装 ko,然后应用部署清单:
ko apply -f deploy.yaml
在完成上述部署后,你需要配置服务器作为 istiod 的 configSource,示例配置如下:
apiVersion: install.istio.io/v1alpha1
kind: IstioOperator
spec:
profile: minimal
meshConfig:
configSources:
- address: xds://mcp-sample.default.svc.cluster.local:15010
- address: k8s://
# ...