Add 04-fmkb-managed-kb sample (Managed KB via AgentCore Gateway)#1770
Open
shraiyya wants to merge 5 commits into
Open
Add 04-fmkb-managed-kb sample (Managed KB via AgentCore Gateway)#1770shraiyya wants to merge 5 commits into
shraiyya wants to merge 5 commits into
Conversation
Exposes a Bedrock Managed Knowledge Base (FMKB) as an MCP tool via AgentCore Gateway, queried by a Strands agent on AgentCore Runtime. Includes a raw MCP/SigV4 path (01-raw-mcp) and the deployed-agent path (02-strands-agent), plus KB + gateway helpers.
|
Latest scan for commit: Security Scan ResultsScan Metadata
SummaryScanner ResultsThe table below shows findings by scanner, with status based on severity thresholds and dependencies: Column Explanations: Severity Levels (S/C/H/M/L/I):
Other Columns:
Scanner Results:
Severity Thresholds (Thresh Column):
Threshold Source: Values in parentheses indicate where the threshold is configured:
Statistics calculation:
|
Adds images/architecture.png (official AWS Bedrock/IAM icons) and embeds it in the README in place of the ASCII box drawing.
Reformats the sample's Python files to the repo's ruff config (line-length=120). Cosmetic only — no logic changes.
Refreshes images/architecture.png with cleaner node labels and edge-centered labels (white background).
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.
What
Adds a new sample under
01-features/03-connect-your-agent-to-anything/04-fmkb-managed-kbthat exposes a Bedrock Managed Knowledge Base (FMKB) as an MCP tool through AgentCore Gateway, then queries it from a Strands agent on AgentCore Runtime.Follows the same shape as the sibling folders (
01-code-interpreter,02-browser,03-web-search).Layout
01-raw-mcp/— call the gateway directly via MCP + SigV4 (no agent in the loop); handy for isolating gateway → KB plumbing. Includessetup_gateway.py,raw_mcp_call.py,cleanup.py.02-strands-agent/— production shape: Strands agent deployed to Runtime via the AgentCore CLI, with IAM trust/execution policy templates.utils/— helpers to create/reuse a managed KB + S3 source and to create the gateway + KB target.Notes
authorizerType=AWS_IAM; the agent reaches it with SigV4-signed MCP viamcp-proxy-for-aws.bedrock-agentcore1.15.0,strands-agents1.44.0,mcp-proxy-for-aws1.6.2,mcp1.28.0,boto3/botocore1.43.32.${ACCOUNT_ID},111122223333); populated env files are gitignored..env.exampledocuments the variables the sample produces/consumes (force-added past the root.env.*ignore rule, matching existing samples in this repo).