Documentation
¶
Index ¶
- Constants
- Variables
- func GetExternalKafkaServerInstructions(bootstrapServers string) string
- func GetExternalPulsarServerInstructions(webServiceURL string) string
- func GetMcpContext() (string, string, string)
- func GetStreamNativeCloudServerInstructions(userName string) string
- func KafkaAdminAddGroupsTools(s *server.MCPServer, readOnly bool, features []string)
- func KafkaAdminAddKafkaConnectTools(s *server.MCPServer, readOnly bool, features []string)
- func KafkaAdminAddPartitionsTools(s *server.MCPServer, readOnly bool, features []string)
- func KafkaAdminAddSchemaRegistryTools(s *server.MCPServer, readOnly bool, features []string)
- func KafkaAdminAddTopicTools(s *server.MCPServer, readOnly bool, features []string)
- func KafkaClientAddConsumeTools(s *server.MCPServer, _ bool, logrusLogger *logrus.Logger, features []string)
- func KafkaClientAddProduceTools(s *server.MCPServer, readOnly bool, features []string)
- func PulsarAdminAddBrokerStatsTools(s *server.MCPServer, readOnly bool, features []string)
- func PulsarAdminAddBrokersTools(s *server.MCPServer, readOnly bool, features []string)
- func PulsarAdminAddClusterTools(s *server.MCPServer, readOnly bool, features []string)
- func PulsarAdminAddFunctionsTools(s *server.MCPServer, readOnly bool, features []string)
- func PulsarAdminAddFunctionsWorkerTools(s *server.MCPServer, readOnly bool, features []string)
- func PulsarAdminAddNamespacePolicyTools(s *server.MCPServer, readOnly bool, features []string)
- func PulsarAdminAddNamespaceTools(s *server.MCPServer, readOnly bool, features []string)
- func PulsarAdminAddNsIsolationPolicyTools(s *server.MCPServer, readOnly bool, features []string)
- func PulsarAdminAddPackagesTools(s *server.MCPServer, readOnly bool, features []string)
- func PulsarAdminAddResourceQuotasTools(s *server.MCPServer, readOnly bool, features []string)
- func PulsarAdminAddSchemasTools(s *server.MCPServer, readOnly bool, features []string)
- func PulsarAdminAddSinksTools(s *server.MCPServer, readOnly bool, features []string)
- func PulsarAdminAddSourcesTools(s *server.MCPServer, readOnly bool, features []string)
- func PulsarAdminAddSubscriptionTools(s *server.MCPServer, readOnly bool, features []string)
- func PulsarAdminAddTenantTools(s *server.MCPServer, readOnly bool, features []string)
- func PulsarAdminAddTopicPolicyTools(s *server.MCPServer, readOnly bool, features []string)
- func PulsarAdminAddTopicTools(s *server.MCPServer, readOnly bool, features []string)
- func PulsarClientAddConsumerTools(s *server.MCPServer, _ bool, features []string)
- func PulsarClientAddProducerTools(s *server.MCPServer, _ bool, features []string)
- func RegisterContextTools(s *server.MCPServer, features []string)
- func RegisterPrompts(s *server.MCPServer)
- func ResetContext()
- func ResetMcpContext()
- func SetContext(options *config.Options, instanceName, clusterName string) error
- func SetMcpContext(instance, cluster, organization string)
- func StreamNativeAddLogTools(s *server.MCPServer, _ bool, features []string)
- type ContextKey
- type Feature
- type LogContent
- type LogOptions
- type LogResult
Constants ¶
const ( OptionsKey ContextKey = "snmcp-options" AnnotationStreamNativeCloudEngine = "cloud.streamnative.io/engine" KeyPrefix = "snmcp-token" TokenRefreshWindow = 5 * time.Minute )
const DefaultKafkaPort = 9093
const (
DefaultPulsarPort = 6651
)
Variables ¶
var FunctionConnectorList = []string{"sink", "source", "function", "kafka-connect"}
var McpContextOrganization *string
var McpContextPulsarCluster *string
var McpContextPulsarInstance *string
Functions ¶
func GetMcpContext ¶
func KafkaAdminAddTopicTools ¶
func KafkaClientAddConsumeTools ¶
func KafkaClientAddConsumeTools(s *server.MCPServer, _ bool, logrusLogger *logrus.Logger, features []string)
KafkaClientAddConsumeTools adds Kafka client consume tools to the MCP server
func KafkaClientAddProduceTools ¶
KafkaClientAddProduceTools adds Kafka client produce tools to the MCP server
func PulsarAdminAddBrokerStatsTools ¶
PulsarAdminAddBrokerStatsTools adds broker-stats related tools to the MCP server
func PulsarAdminAddBrokersTools ¶
PulsarAdminAddBrokersTools adds broker-related tools to the MCP server
func PulsarAdminAddClusterTools ¶
PulsarAdminAddClusterTools adds cluster-related tools to the MCP server
func PulsarAdminAddFunctionsTools ¶
PulsarAdminAddFunctionsTools adds a unified function-related tool to the MCP server
func PulsarAdminAddFunctionsWorkerTools ¶
PulsarAdminAddFunctionsWorkerTools adds functions worker-related tools to the MCP server
func PulsarAdminAddNamespacePolicyTools ¶
PulsarAdminAddNamespacePolicyTools adds namespace policy-related tools to the MCP server
func PulsarAdminAddNamespaceTools ¶
PulsarAdminAddNamespaceTools adds namespace-related tools to the MCP server
func PulsarAdminAddNsIsolationPolicyTools ¶
PulsarAdminAddNsIsolationPolicyTools adds namespace isolation policy related tools to the MCP server
func PulsarAdminAddPackagesTools ¶
PulsarAdminAddPackagesTools adds package-related tools to the MCP server
func PulsarAdminAddResourceQuotasTools ¶
PulsarAdminAddResourceQuotasTools adds resource quotas-related tools to the MCP server
func PulsarAdminAddSchemasTools ¶
PulsarAdminAddSchemasTools adds schema-related tools to the MCP server
func PulsarAdminAddSinksTools ¶
PulsarAdminAddSinksTools adds a unified sink-related tool to the MCP server
func PulsarAdminAddSourcesTools ¶
PulsarAdminAddSourcesTools adds a unified source-related tool to the MCP server
func PulsarAdminAddSubscriptionTools ¶
PulsarAdminAddSubscriptionTools adds subscription-related tools to the MCP server
func PulsarAdminAddTenantTools ¶
PulsarAdminAddTenantTools adds tenant-related tools to the MCP server
func PulsarAdminAddTopicPolicyTools ¶
PulsarAdminAddTopicPolicyTools adds topic policy-related tools to the MCP server
func PulsarAdminAddTopicTools ¶
PulsarAdminAddTopicTools adds topic-related tools to the MCP server
func PulsarClientAddConsumerTools ¶
PulsarClientAddConsumerTools adds Pulsar client consumer tools to the MCP server
func PulsarClientAddProducerTools ¶
PulsarClientAddProducerTools adds Pulsar client producer tools to the MCP server
func RegisterContextTools ¶
func RegisterPrompts ¶
func ResetContext ¶
func ResetContext()
func ResetMcpContext ¶
func ResetMcpContext()
func SetMcpContext ¶
func SetMcpContext(instance, cluster, organization string)
Types ¶
type ContextKey ¶
type ContextKey string
type Feature ¶
type Feature string
const ( FeatureAll Feature = "all" FeatureAllKafka Feature = "all-kafka" FeatureAllPulsar Feature = "all-pulsar" FeatureKafkaClient Feature = "kafka-client" FeatureKafkaAdmin Feature = "kafka-admin" FeatureKafkaAdminSchemaRegistry Feature = "kafka-admin-schema-registry" FeatureKafkaAdminKafkaConnect Feature = "kafka-admin-kafka-connect" FeaturePulsarAdmin Feature = "pulsar-admin" FeaturePulsarAdminBrokersStatus Feature = "pulsar-admin-brokers-status" FeaturePulsarAdminBrokers Feature = "pulsar-admin-brokers" FeaturePulsarAdminClusters Feature = "pulsar-admin-clusters" FeaturePulsarAdminFunctions Feature = "pulsar-admin-functions" FeaturePulsarAdminNamespaces Feature = "pulsar-admin-namespaces" FeaturePulsarAdminTenants Feature = "pulsar-admin-tenants" FeaturePulsarAdminTopics Feature = "pulsar-admin-topics" FeaturePulsarAdminFunctionsWorker Feature = "pulsar-admin-functions-worker" FeaturePulsarAdminSinks Feature = "pulsar-admin-sinks" FeaturePulsarAdminSources Feature = "pulsar-admin-sources" FeaturePulsarAdminNamespacePolicy Feature = "pulsar-admin-namespace-policy" FeaturePulsarAdminNsIsolationPolicy Feature = "pulsar-admin-ns-isolation-policy" FeaturePulsarAdminPackages Feature = "pulsar-admin-packages" FeaturePulsarAdminResourceQuotas Feature = "pulsar-admin-resource-quotas" FeaturePulsarAdminSchemas Feature = "pulsar-admin-schemas" FeaturePulsarAdminSubscriptions Feature = "pulsar-admin-subscriptions" FeaturePulsarAdminTopicPolicy Feature = "pulsar-admin-topic-policy" FeaturePulsarClient Feature = "pulsar-client" FeatureStreamNativeCloud Feature = "streamnative-cloud" )
type LogContent ¶
type LogOptions ¶
type LogOptions struct {
ServiceURL string
Organization string
Instance string
Cluster string
Component string
Name string
PulsarTenant string
PulsarNamespace string
Size string
Since string
Timestamp string
Follow bool
Previous bool
InsecureSkipTLSVerifyBackend bool
// contains filtered or unexported fields
}
type LogResult ¶
type LogResult struct {
Total int `json:"total"`
Data []LogContent `json:"data"`
}
Source Files
¶
- auth_utils.go
- context.go
- context_tools.go
- context_utils.go
- features.go
- instructions.go
- kafka_admin_connect_tools.go
- kafka_admin_groups_tools.go
- kafka_admin_partitions_tools.go
- kafka_admin_sr_tools.go
- kafka_admin_topics_tools.go
- kafka_client_consume_tools.go
- kafka_client_produce_tools.go
- prompts.go
- pulsar_admin_brokers_stats_tools.go
- pulsar_admin_brokers_tools.go
- pulsar_admin_cluster_tools.go
- pulsar_admin_functions_tools.go
- pulsar_admin_functions_worker_tools.go
- pulsar_admin_namespace_policy_tools.go
- pulsar_admin_namespace_tools.go
- pulsar_admin_nsisolationpolicy_tools.go
- pulsar_admin_packages_tools.go
- pulsar_admin_resourcequotas_tools.go
- pulsar_admin_schemas_tools.go
- pulsar_admin_sinks_tools.go
- pulsar_admin_sources_tools.go
- pulsar_admin_subscription_tools.go
- pulsar_admin_tenant_tools.go
- pulsar_admin_topic_policy_tools.go
- pulsar_admin_topic_tools.go
- pulsar_client_consume_tools.go
- pulsar_client_produce_tools.go
- streamnative_resources_log_tools.go
- utils.go