snmcp
by StreamNative
A Helm chart for StreamNative MCP Server with Multi-Session Pulsar support
About this chart
StreamNative MCP Server Helm Chart
This Helm chart deploys the StreamNative MCP Server on Kubernetes with Multi-Session Pulsar mode.
Prerequisites
- Kubernetes 1.19+
- Helm 3.0+
- External Pulsar cluster accessible from the Kubernetes cluster
Installation
helm install snmcp ./charts/snmcp \
--set pulsar.webServiceURL=http://pulsar.example.com:8080
Configuration
Required Parameters
| Parameter | Description |
|---|---|
pulsar.webServiceURL | Pulsar web service URL (required) |
Server Configuration
| Parameter | Default | Description |
|---|---|---|
server.readOnly | false | Enable read-only mode |
server.features | [] | Features to enable (default: all-pulsar) |
server.httpPath | /mcp | Base path for SSE/message/health endpoints |
server.configDir | /var/lib/snmcp | Config directory for snmcp state (must be writable) |
The container listens on port 9090. Use service.port or Ingress to expose a different port.
Session Configuration
| Parameter | Default | Description |
|---|---|---|
session.cacheSize | 100 | Max cached sessions |
session.ttlMinutes | 30 | Session TTL before eviction |
Pulsar TLS Configuration
| Parameter | Default | Description |
|---|---|---|
pulsar.tls.enabled | false | Enable TLS for Pulsar |
pulsar.tls.secretName | "" | Secret containing TLS certs |
pulsar.tls.allowInsecureConnection | false | Allow insecure TLS |
pulsar.tls.enableHostnameVerification | true | Verify hostname |
Kubernetes Resources
| Parameter | Default | Description |
|---|---|---|
replicaCount | 1 | Number of replicas |
service.type | ClusterIP | Service type |
service.port | 9090 | Service port |
ingress.enabled | false | Enable Ingress |
serviceAccount.create | true | Create ServiceAccount |
Examples
Basic Installation
helm install snmcp ./charts/snmcp \
--set pulsar.webServiceURL=http://pulsar:8080
With Ingress
helm install snmcp ./charts/snmcp \
--set pulsar.webServiceURL=http://pulsar:8080 \
--set ingress.enabled=true \
--set ingress.hosts[0].host=mcp.example.com \
--set ingress.hosts[0].paths[0].path=/ \
--set ingress.hosts[0].paths[0].pathType=Prefix
Read-Only Mode with Limited Features
helm install snmcp ./charts/snmcp \
--set pulsar.webServiceURL=http://pulsar:8080 \
--set server.readOnly=true \
--set server.features="{pulsar-admin,pulsar-client}"
With Pulsar TLS
# First create a secret with TLS certs
kubectl create secret generic pulsar-tls \
--from-file=ca.crt=./ca.crt \
--from-file=tls.crt=./tls.crt \
--from-file=tls.key=./tls.key
helm install snmcp ./charts/snmcp \
--set pulsar.webServiceURL=https://pulsar:8443 \
--set pulsar.tls.enabled=true \
--set pulsar.tls.secretName=pulsar-tls \
--set pulsar.tls.trustCertsFilePath=/etc/snmcp/tls/ca.crt
Authentication
This chart runs MCP Server in Multi-Session Pulsar mode. Each client request must include a valid Pulsar JWT token:
curl -H "Authorization: Bearer <PULSAR_TOKEN>" http://localhost:9090/mcp/sse
Health endpoints do not require authentication and can be used for liveness/readiness:
GET http://localhost:9090/mcp/healthzGET http://localhost:9090/mcp/readyz
License
Apache License 2.0
Deploy snmcp with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has snmcp on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartsnmcp is pinned at v0.1.15 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below opentenant validate opentenant.yaml terraform init && terraform apply