feat(aws-msk-mcp-server): add ListTopics, DescribeTopic, DescribeTopicPartitions APIs & tests #1879
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.
Fixes
N/A
Summary
Changes
get_topic_infounderawslabs/aws_msk_mcp_server/tools/read_topic. This exposes three MSK Topic APIs:list_topics— wrapper forkafka.list_topics(supportsMaxResults/ pagination).describe_topic— wrapper forkafka.describe_topic.describe_topic_partitions— wrapper forkafka.describe_topic_partitions(supportsMaxResults/ pagination).get_topic_infoin__init__.py.test_list_topics.py,test_describe_topic.py,test_describe_topic_partitions.py) which mock the boto3 kafka client to validate success and error paths.README.mdto add a "Topic Operations" section with usage examples forget_topic_info.README.mdto note MSK topic viewing capability in the servers table.pytest-asyncioin the development venv to satisfy existing pytest configuration.User experience
Before:
MCP clients had cluster-level MSK read tools but no dedicated topic-level helpers exposed as a read tool.
After:
MCP clients can invoke
get_topic_infowithaction=list|describe|partitionsto:This improves observability and enables LLM-driven workflows that require specific topic or partition data.
Checklist
If your change doesn't seem to apply, please leave them unchecked.
Is this a breaking change? (Y/N)
N
RFC issue number: N/A
Checklist:
Acknowledgment
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of the project license.