Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.streamnative.io/llms.txt

Use this file to discover all available pages before exploring further.

The Remote StreamNative MCP Server supports root and organization-level sessions in addition to fixed cluster sessions. Use a root or organization-level session when you want an MCP client to discover MCP-enabled clusters, switch cluster context during a session, or manage StreamNative Cloud control-plane resources.

Choose a root or organization endpoint

Use one of the following endpoints:
ModeEndpointUse case
Roothttps://mcp.streamnative.cloud/mcpConnect without putting the organization in the URL. The server resolves the organization from the AuthV2 audience in your token. For interactive OAuth flows, provide X-Organization or select the organization during sign-in.
Organizationhttps://mcp.streamnative.cloud/mcp/x/<organization>Bind the session to one organization in the URL. Use this when your client or automation can store one endpoint per organization.
After connection, the session starts with StreamNative Cloud organization tools. The global identity tool sncloud_context_whoami is available for the session. Other organization tools are controlled by the organization feature set. Cluster-specific Pulsar, Kafka, and log tools become available only after you select a cluster with sncloud_context_use_cluster.
For a fixed cluster session, use https://mcp.streamnative.cloud/mcp/x/<organization>/<instance>/<cluster>. See Remote MCP Access.

Discover and select clusters

Organization-level sessions expose context tools for finding and selecting MCP-enabled clusters.
ToolDescription
sncloud_context_whoamiShow the authenticated StreamNative Cloud identity and current organization context. This tool is global and is not controlled by sncloud_context.
sncloud_context_available_clustersList MCP-enabled Pulsar and Kafka clusters in the current organization, including instance name, cluster name, cluster type, access mode, and endpoint.
sncloud_context_use_clusterSelect a Pulsar or Kafka cluster for the current MCP session. Parameters: instanceName and clusterName.
sncloud_context_resetClear the selected cluster and return to organization-only context.
When you select a cluster, the current MCP session becomes a hybrid session. It keeps organization-level tools and adds static Pulsar or Kafka tools for the selected cluster. The selected cluster overlay also adds sncloud_logs for logs from Functions, Sources, Sinks, and Kafka Connect connectors in the selected cluster. Dynamic tools such as functions-as-tools and agents-as-tools are available on fixed cluster endpoints, but not after in-session cluster switching.

Use StreamNative Cloud prompts

Organization-level sessions also expose StreamNative Cloud prompts that help clients discover and inspect enabled clusters.
PromptDescription
list-sncloud-clustersLists MCP-enabled clusters in the current organization, including the cluster type and endpoint metadata.
read-sncloud-clusterReads one cluster resource. Parameters: name and type. type must be PulsarCluster or KafkaCluster.
Use the clusterType returned by list-sncloud-clusters when you call read-sncloud-cluster. Disabled or non-exposed clusters aren’t returned.

Manage StreamNative Cloud resources

Organization-level sessions expose domain-scoped tools for StreamNative Cloud resources.
FeatureToolsResources
sncloud_byocsncloud_byoc_read, sncloud_byoc_writeCloudConnection, CloudEnvironment, Volume, PoolMember
sncloud_identitysncloud_identity_read, sncloud_identity_writeUser, ServiceAccount, ServiceAccountBinding, Role, RoleBinding, OIDCProvider, IdentityPool
sncloud_clusterssncloud_clusters_read, sncloud_clusters_writeInstance, PulsarInstance, PulsarCluster, PulsarGateway, KafkaCluster
sncloud_workspacessncloud_workspaces_read, sncloud_workspaces_writeWorkspace
Read tools support list and get operations. Write tools support apply and delete operations. get and delete require name. apply requires manifest, a JSON string that contains one StreamNative Cloud resource. After sncloud_context_use_cluster selects a cluster, the session also exposes sncloud_logs for Functions, Sources, Sinks, and Kafka Connect connectors in the selected cluster. All domain tool families can use these schema helpers:
ToolDescription
sncloud_resource_catalogList supported resource kinds for a domain: byoc, clusters, identity, or workspaces.
sncloud_resource_schemaReturn schema guidance for one resource kind. The default summary format is optimized for authoring manifests; example returns an example manifest; jsonschema returns runtime Kubernetes schema when available; all returns summary plus runtime metadata. Use paths such as spec.broker or spec.clusterRefs to keep runtime schema responses small.
Write operations can change organization-level resources. Use dry_run=true before applying changes, and keep the Remote MCP access mode set to Read-Only unless mutation tools are required.
When you create or update a StreamNative Cloud resource through MCP, use this workflow:
  1. Call sncloud_resource_catalog for the resource domain, such as clusters or identity.
  2. Call sncloud_resource_schema for the resource type, such as PulsarCluster, KafkaCluster, or ServiceAccount.
  3. Call the matching read tool to inspect existing resources.
  4. Compose the resource manifest as a JSON string.
  5. Call the matching write tool with operation=apply and dry_run=true.
  6. Review the validation result.
  7. Repeat the apply operation with dry_run=false only when the dry-run result is acceptable.
The manifest argument must be a JSON string. Do not pass YAML or a structured object. Omit status, metadata.managedFields, and other read-only fields copied from read responses. The schema summary is guidance, not a replacement for server-side validation. Runtime OpenAPI schemas do not encode every cross-field or cross-resource constraint.

Control organization tools with features

Use X-MCP-Features to narrow the organization tool catalog. For example, X-MCP-Features: sncloud_context,sncloud_clusters exposes cluster discovery plus cluster-domain resources. If an administrator configured allowed tools for the organization MCP entry, the header can only request a subset of that allow list. If you omit X-MCP-Features, the server uses the configured organization feature set.
Feature IDEnables
streamnative-cloud or cloudAll StreamNative Cloud organization tool families.
sncloud_context or sncloud-contextCluster discovery and context switch tools: sncloud_context_available_clusters, sncloud_context_use_cluster, and sncloud_context_reset.
sncloud_byoc or sncloud-byocBYOC control-plane tools.
sncloud_identity or sncloud-identityIdentity and RBAC resource tools.
sncloud_clusters or sncloud-clustersInstance and cluster resource tools.
sncloud_workspaces or sncloud-workspacesWorkspace resource tools.
For the full header reference, see Remote MCP Headers and Feature Selection.

Manage MCP settings in the Console

Use the StreamNative Cloud Console to manage MCP availability, access mode, and allowed tools for your organization and clusters. The organization settings control root and organization endpoints. Cluster settings control fixed cluster endpoints and cluster tools added after sncloud_context_use_cluster selects a cluster.