Repository navigation
fix(mcp): use the cluster endpoint for Pulsar admin and Kafka Connect, not the StreamNative proxy - #108
Open
ciiiii wants to merge 1 commit into
Open
fix(mcp): use the cluster endpoint for Pulsar admin and Kafka Connect, not the StreamNative proxy#108ciiiii wants to merge 1 commit into
ciiiii wants to merge 1 commit into
Conversation
…, not the StreamNative proxy
freeznet
approved these changes
Nov 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The MCP server now sends Pulsar admin and Kafka Connect requests to the cluster endpoint directly, not through the proxy.
Changes
getBasePath(proxyLocation, org, clusterID)→getWebServiceURL(dnsName):https://<cluster service endpoint>.<proxy>/admin/kafkaconnect/→https://<cluster service endpoint>/admin/kafkaconnect/. This matches what snctl uses for direct connections.--proxy-locationandproxy-locationconfig stay for compatibility, but the Pulsar context no longer uses them.Testing
go build ./...,go vet ./pkg/mcp/,go test ./pkg/mcp/pass. NewTestClusterEndpointURLs.Release note
snctl mcpembeds this module (cloud-cli pins v0.1.10), so snctl needs a dependency bump after this is released.