feat(agentcore): Add AWS Agent Registry discovery tools#3164
Open
pymia wants to merge 1 commit intoawslabs:mainfrom
Open
feat(agentcore): Add AWS Agent Registry discovery tools#3164pymia wants to merge 1 commit intoawslabs:mainfrom
pymia wants to merge 1 commit intoawslabs:mainfrom
Conversation
Add four registry MCP tools to the amazon-bedrock-agentcore-mcp-server
package for discovering and inspecting AgentCore Registry resources:
- search_registry: semantic search across approved registry records
- list_records: list all records in a specific registry
- get_record: get full details of a specific registry record
- list_registries: list all registries in the AWS account
Implementation details:
- New tools/registry.py module with lazy boto3 client initialization
- Two clients: control plane (CRUD) and data plane (semantic search)
- Inline JSON parsing for MCP/A2A/custom descriptors
- Service-enable guard via _is_service_enabled("registry")
- 21 unit tests covering all tools, error handling, and client init
- README updated with tool docs and environment variable reference
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.
Add four registry MCP tools to the amazon-bedrock-agentcore-mcp-server
package for discovering and inspecting AWS Agent Registry resources:
search_registrylist_recordsget_recordlist_registriesImplementation details:
Fixes N/A
Summary
Changes
Add four AWS Agent Registry MCP tools (
search_registry,list_records,get_record,list_registries) to the existingamazon-bedrock-agentcore-mcp-serverpackage. The Registry is a fully managed discovery service within Amazon Bedrock AgentCore that provides a centralized catalog for organizing, curating, and discovering MCP servers, A2A agents, agent skills, and custom resources.New files:
tools/registry.py— Registry tool module with lazy boto3 client initialization (control plane + data plane), inline JSON parsing for MCP/A2A/custom descriptors, and error handling as JSON return valuestests/test_registry.py— 21 unit tests covering all four tools, error paths, MCP descriptor parsing, client initialization, and region configurationModified files:
server.py— Register registry tools behind_is_service_enabled('registry')guardREADME.md— Added tool documentation, feature listing, and environment variable referenceUser experience
Before: Users had no way to discover or inspect AWS Agent Registry resources through the MCP server.
After: Users can:
AGENTCORE_ENABLE_TOOLS/AGENTCORE_DISABLE_TOOLSenvironment variablesChecklist
If your change doesn't seem to apply, please leave them unchecked.
Is this a breaking change? 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.