Agent Mesh
Go a2aa2a-protocolagent-meshagentic-aiinferencemcpmeshmesh-networknetwork-securitynetworking-aip2p-network
add everythign mcp for testing all mcp services
Antonio Ojeaf9105c126c00
diff --git a/.github/k8s/sam-node-everything-template.yaml b/.github/k8s/sam-node-everything-template.yamlnew file mode 100644index 00000000..59f725c0--- /dev/null+++ b/.github/k8s/sam-node-everything-template.yaml@@ -0,0 +1,85 @@+apiVersion: v1+kind: ConfigMap+metadata:+ name: sam-canary-everything-config-${ENV_NAME}+ namespace: sam-canary-${ENV_NAME}+data:+ sam-node.yaml: |+ version: "v1alpha1"+ attenuation:+ policies:+ - 'allow if operation("mcp:everything");'+ - 'allow if operation("/sam/catalog");'+ checks: []+ rules: []+ services:+ - type: mcp+ name: everything+ description: "MCP everything test server (tools, resources, prompts)"+ target_url: "http://localhost:3001/mcp"+---+apiVersion: apps/v1+kind: Deployment+metadata:+ name: everything-canary-${ENV_NAME}+ namespace: sam-canary-${ENV_NAME}+spec:+ replicas: 2+ selector:+ matchLabels:+ app: everything-canary-${ENV_NAME}+ template:+ metadata:+ labels:+ app: everything-canary-${ENV_NAME}+ spec:+ serviceAccountName: sam-node-sa+ containers:+ - name: server-everything+ image: node:22-slim+ command: ["npx", "-y", "@modelcontextprotocol/server-everything", "streamableHttp"]+ ports:+ - containerPort: 3001+ name: http-mcp+ resources:+ requests:+ cpu: 50m+ memory: 64Mi+ limits:+ cpu: 200m+ memory: 256Mi+ - name: sam-node+ image: ghcr.io/google/sam-node:${IMAGE_TAG}+ args:+ - "run"+ - "--config=/etc/sam/sam-node.yaml"+ - "--hub=http://sam-hub-${ENV_NAME}.${NAMESPACE}.svc.cluster.local:9090"+ - "--jwt-path=/var/run/secrets/tokens/sam-token"+ - "--api-token=secret-token"+ - "--bind-addr=127.0.0.1:8080"+ ports:+ - containerPort: 8080+ resources:+ requests:+ cpu: 50m+ memory: 64Mi+ limits:+ cpu: 200m+ memory: 256Mi+ volumeMounts:+ - name: config-volume+ mountPath: /etc/sam+ - name: sam-token+ mountPath: /var/run/secrets/tokens+ readOnly: true+ volumes:+ - name: config-volume+ configMap:+ name: sam-canary-everything-config-${ENV_NAME}+ - name: sam-token+ projected:+ sources:+ - serviceAccountToken:+ path: sam-token+ expirationSeconds: 3600+ audience: "sam-hub-audience"diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yamlindex 1ed11086..af4df022 100644--- a/.github/workflows/deploy.yaml+++ b/.github/workflows/deploy.yaml@@ -309,6 +309,7 @@ jobs:envsubst < .github/k8s/sam-node-template.yaml | kubectl apply -f -envsubst < .github/k8s/sam-node-openclaw-template.yaml | kubectl apply -f -envsubst < .github/k8s/sam-node-vllm-template.yaml | kubectl apply -f -+ envsubst < .github/k8s/sam-node-everything-template.yaml | kubectl apply -f -kubectl rollout status deployment/sam-canary-${ENV_NAME} -n ${CANARY_NAMESPACE} --timeout=120s || {@@ -340,3 +341,13 @@ jobs:kubectl rollout status deployment/vllm-canary-${ENV_NAME} -n ${CANARY_NAMESPACE} || trueexit 1}++ kubectl rollout status deployment/everything-canary-${ENV_NAME} -n ${CANARY_NAMESPACE} --timeout=120s || {+ echo "Everything Canary Deployment failed!"+ print_rollout_diagnostics "${CANARY_NAMESPACE}" "everything-canary-${ENV_NAME}" "app=everything-canary-${ENV_NAME}"++ echo "Rolling back Everything Canary deployment..."+ kubectl rollout undo deployment/everything-canary-${ENV_NAME} -n ${CANARY_NAMESPACE}+ kubectl rollout status deployment/everything-canary-${ENV_NAME} -n ${CANARY_NAMESPACE} || true+ exit 1+ }diff --git a/development/examples/everything-mcp/Dockerfile b/development/examples/everything-mcp/Dockerfilenew file mode 100644index 00000000..87cb6fd0--- /dev/null+++ b/development/examples/everything-mcp/Dockerfile@@ -0,0 +1,3 @@+FROM node:22-slim+EXPOSE 3001+CMD ["npx", "-y", "@modelcontextprotocol/server-everything", "streamableHttp"]diff --git a/development/examples/everything-mcp/sam-node-config.yaml b/development/examples/everything-mcp/sam-node-config.yamlnew file mode 100644index 00000000..9f83ae72--- /dev/null+++ b/development/examples/everything-mcp/sam-node-config.yaml@@ -0,0 +1,10 @@+version: "v1alpha1"+attenuation:+ policies:+ - 'allow if operation("mcp:everything");'+ - 'allow if operation("/sam/catalog");'+services:+ - type: "mcp"+ name: "everything"+ description: "MCP everything test server (tools, resources, prompts)"+ target_url: "http://127.0.0.1:3001/mcp"