feat(binding-mcp-kafka): implement mcp_kafka proxy binding#1714
Open
jfallows wants to merge 4 commits into
Open
feat(binding-mcp-kafka): implement mcp_kafka proxy binding#1714jfallows wants to merge 4 commits into
jfallows wants to merge 4 commits into
Conversation
Implements the foundational mcp binding module with server kind handler, McpBeginEx IDL type, JSON schema patch, config adapters, and module-info. Closes #1668 https://claude.ai/code/session_0174raBeXFTgt98bp4DTyRDm
…upOffsets APIs; extend KafkaMetaDataEx and KafkaDescribeBeginEx - #1698: extend KafkaMetaDataEx with KafkaPartitionMetadata (replicas, isr arrays) and replicationFactor - #1699: add KafkaResourceType enum to KafkaDescribeBeginEx, rename topic->name, replace KafkaConfig with KafkaConfigDetail (isDefault, isSensitive) - #1700: add ListGroups (API key 16) support with KafkaListGroupsRequestBeginEx/ResponseBeginEx - #1701: add DescribeGroups (API key 15) support with KafkaDescribeGroupsRequestBeginEx/ResponseBeginEx - #1702: add AlterConsumerGroupOffsets (API key 53) support with request/response begin extensions Implements #1698, #1699, #1700, #1701, #1702 https://claude.ai/code/session_0174raBeXFTgt98bp4DTyRDm
…ncements' into feature/1671-mcp-kafka
Adds a new mcp_kafka proxy binding that bridges MCP (Model Context Protocol) streams to Apache Kafka, exposing Kafka broker operations as intrinsic MCP tools. Supports produce, consume, list_topics, describe_topic, create_topic, delete_topic, list_consumer_groups, describe_consumer_group, reset_offsets, list_brokers, describe_cluster, cluster_overview, describe_configs, and alter_configs tools. https://claude.ai/code/session_0174raBeXFTgt98bp4DTyRDm
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
Closes #1671
Adds a new
mcp_kafkaproxy binding that bridges MCP (Model Context Protocol) streams to Apache Kafka, exposing Kafka broker operations as intrinsic MCP tools.Supported tools
producemergedstream withPRODUCE_ONLYcapabilityconsumemergedstream withFETCH_ONLYcapabilitylist_topicsmetastreamdescribe_topicmetastreamcreate_topicrequest/createTopicsdelete_topicrequest/deleteTopicslist_consumer_groupsrequest/listGroupsdescribe_consumer_grouprequest/describeGroupsreset_offsetsrequest/alterConsumerGroupOffsetslist_brokersrequest/describeClusterdescribe_clusterrequest/describeClustercluster_overviewrequest/describeClusterdescribe_configsdescribestreamalter_configsrequest/alterConfigsNew modules
runtime/binding-mcp-kafka/— proxy binding implementationspecs/binding-mcp-kafka.spec/— spec module with MCP IDL and JSON schema patchImplementation notes
McpKafkaProxyFactoryfollows the standard flyweight-on-factory pattern (all*RO/*RWfields on the factory, non-static inner stream classes)McpKafkaStateprovides bitmask helpers for initial/reply open/close lifecyclemcp_kafka(underscore convention for multi-word binding types)when[].toolorwhen[].resourceconditions viaMcpKafkaConditionConfigAdaptermodule-info.java); allinternal.*packages unexported; SPI registered via bothMETA-INF/services/andprovides...with...in module-infohttps://claude.ai/code/session_0174raBeXFTgt98bp4DTyRDm