Skip to content

Example for using Generative AI Toolkit with AWS AgentCore#68

Open
steditt wants to merge 36 commits into
awslabs:mainfrom
steditt:main
Open

Example for using Generative AI Toolkit with AWS AgentCore#68
steditt wants to merge 36 commits into
awslabs:mainfrom
steditt:main

Conversation

@steditt
Copy link
Copy Markdown
Contributor

@steditt steditt commented Oct 26, 2025

Description of changes:

Add example for using GAITK with AWS AgentCore.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

steditt and others added 30 commits October 10, 2025 20:33
- Add weather agent with MCP tools (forecast, alerts, current weather)
- Add MCP server with FastMCP and weather API integration
- Add CDK infrastructure for AgentCore Runtime deployment
- Add minimal agent container example with Generative AI Toolkit
- Add comprehensive test suite for all deployment scenarios
- Include Docker Compose for local development and testing
- Support local, containerized, and AgentCore Runtime deployments
- Add OAuth authentication with McpAuthHelper and ConfigLoader
- Implement integration tests for auth_helper and config_loader
- Add unified test configuration with CDK stack name from .env
…CP session handling

- Replace CDK output fixtures with environment variables in conftest.py
- Add MCP tool manager with proper event loop handling to fix session hangs
- Remove minimal-agent-container and config_loader (deprecated)
- Add comprehensive test suites for agent examples and local integration
- Update pytest configuration to register custom markers
- Streamline test architecture for better performance and maintainability
…mprehensive testing

- Add Pydantic models (WeatherRequest, WeatherForecastRequest) with validation
- Refactor MCP server to use FastMCP with automatic JSON schema generation
- Add comprehensive test suite using SimpleMcpClient for schema validation
- Update Dockerfile and requirements for proper deployment
- Remove outdated documentation and cleanup test files
merge latest updates from upstream project
- Implement JWT bearer token authentication for agent invocations
- Add Cognito User Pool integration with client credentials
- Update tests to work with new JWT authentication requirements
- Replace agent user credentials with JWT token passthrough from client to MCP server
- Remove AgentUser construct and associated Secrets Manager resources
- Update agent.py to extract JWT from request headers and pass to MCP manager
- Simplify simple_mcp_client.py to use JWT tokens directly
- Remove simple_auth.py module and related OAuth environment variables
- Clean up CDK infrastructure, IAM permissions, and Nag suppressions
- Update tests and remove agent user credential handling

This eliminates the need for dedicated service credentials and uses the actual user's JWT token throughout the request chain, simplifying architecture and improving security.
steditt and others added 6 commits October 26, 2025 21:33
- Remove global MCP tool registration at module load time
- Add lazy registration when JWT tokens become available in invoke()
- Reset tools_registered flag when JWT token changes in McpToolManager
- Eliminate confusing startup error messages about missing JWT tokens
- Tools now register on-demand during first authenticated request
@steditt steditt changed the title Example for using Generative AIT Toolkit with AWS AgentCore Example for using Generative AI Toolkit with AWS AgentCore Oct 26, 2025
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.

1 participant