snmcp

by StreamNative

Helm chartv0.1.15App v0.1.15

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

ParameterDescription
pulsar.webServiceURLPulsar web service URL (required)

Server Configuration

ParameterDefaultDescription
server.readOnlyfalseEnable read-only mode
server.features[]Features to enable (default: all-pulsar)
server.httpPath/mcpBase path for SSE/message/health endpoints
server.configDir/var/lib/snmcpConfig 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

ParameterDefaultDescription
session.cacheSize100Max cached sessions
session.ttlMinutes30Session TTL before eviction

Pulsar TLS Configuration

ParameterDefaultDescription
pulsar.tls.enabledfalseEnable TLS for Pulsar
pulsar.tls.secretName""Secret containing TLS certs
pulsar.tls.allowInsecureConnectionfalseAllow insecure TLS
pulsar.tls.enableHostnameVerificationtrueVerify hostname

Kubernetes Resources

ParameterDefaultDescription
replicaCount1Number of replicas
service.typeClusterIPService type
service.port9090Service port
ingress.enabledfalseEnable Ingress
serviceAccount.createtrueCreate 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/healthz
  • GET 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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartsnmcp is pinned at v0.1.15 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. 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