Skip to content

feat(aws-agentcore): move the power to the AgentCore CLI (@aws/agentcore) - #225

Open
mohitmishra786 wants to merge 1 commit into
kirodotdev:mainfrom
mohitmishra786:86-agentcore-cli
Open

mohitmishra786 wants to merge 1 commit into
kirodotdev:mainfrom
mohitmishra786:86-agentcore-cli

Conversation

@mohitmishra786

Copy link
Copy Markdown

Closes #86.

The power documented the Python starter toolkit (agentcore configure, agentcore launch, .bedrock_agentcore.yaml). It also pointed to manage_agentcore_runtime, manage_agentcore_memory and manage_agentcore_gateway, which the current awslabs.amazon-bedrock-agentcore-mcp-server no longer has, so mcp.json auto-approved tools that don't exist.

Changes, written against @aws/agentcore 1.2.0:

  • POWER.md: project layout, runtimes vs. harnesses, install, rules for running the CLI non-interactively, the current MCP tools, troubleshooting. The readSteering calls now use the power name aws-agentcore (they used agentcore).
  • getting-started.md: new project from a template, bringing existing code in with agentcore add runtime, harnesses, dev, invoke --local, deploy, invoke, logs, teardown.
  • agentcore-memory-integration.md: agentcore add memory, the MEMORY_<NAME>_ID variable the deploy injects, the Strands session manager, local testing via agentcore/.env.local, the agentcore memory inspect commands.
  • agentcore-gateway-integration.md: agentcore add gateway (recommending --authorizer-type AWS_IAM --protocol-type MCP, since the default authorizer is NONE), MCP server, runtime, Lambda and connector targets, a SigV4 MCP client for AGENTCORE_GATEWAY_<NAME>_URL, and the Lambda handler format from the Gateway docs (the old example read event["tool_name"]).
  • mcp.json: auto-approve only the read-only docs and guide tools.

The MCP server's guides still show some older CLI syntax (create --defaults, add agent, positional invoke "prompt"), which 1.2.0 rejects. The power tells the agent to follow agentcore --help when they differ.

How I checked it, in a Linux container with the CLI installed from npm:

  • Every agentcore command and flag in the four files is checked against the CLI's --help.
  • create, add runtime/memory/gateway/gateway-target/gateway-connector/credentials, remove, dev, invoke --local and build all run.
  • The synthesized CloudFormation template sets the documented environment variables on the runtime and grants the InvokeGateway and lambda:InvokeFunction permissions.
  • The Python examples in the memory and gateway files run unchanged. The gateway client sends SigV4-signed requests and lists tools from a local MCP server.

Not tested: agentcore deploy and calls to deployed resources, because I have no AWS account for this. Someone with access should run the deploy steps once before merging.

…ore)

The power documented the Python starter toolkit (agentcore configure,
agentcore launch, .bedrock_agentcore.yaml) and MCP tools that the
AgentCore MCP server no longer provides (manage_agentcore_runtime,
manage_agentcore_memory, manage_agentcore_gateway).

Rewrite POWER.md and the three steering files for the AgentCore CLI
1.2.0: project layout, create/add runtime/dev/deploy/invoke, logs and
teardown, memory and gateway as project resources, and the
MEMORY_<NAME>_ID and AGENTCORE_GATEWAY_<NAME>_* variables the deploy
injects into runtimes. Fix the readSteering calls to use the power name
aws-agentcore, and auto-approve only the read-only docs and guide tools
the current MCP server provides.

Closes kirodotdev#86
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update aws-agentcore power to support new agentcore-cli

1 participant