AgentCore MCP OAuth Facade
Builds a stateless OAuth and MCP protocol facade in front of Bedrock AgentCore Gateway to enable seamless connections with strict MCP clients.
Implements a production-tested, stateless serverless facade using CloudFront, HTTP API, and AWS Lambda to bridge Amazon Bedrock AgentCore Gateway or Runtime with strict Model Context Protocol (MCP) clients like Claude Code, Cursor, and Amazon Quick. This skill resolves critical protocol and authentication gaps including Cognito Dynamic Client Registration (DCR), RFC 9728 and RFC 8414 metadata discovery, redirect URI rewriting, dual session identifier synchronization, SSE response wrapping, schema sanitization, and server-side tool pagination without breaking standard JWT token validation.
主な機能
01Aggregates Bedrock AgentCore Gateway tools/list server-side to resolve 30-tool pagination truncation
02Converts JSON responses to Server-Sent Events (SSE) and seamlessly handles tool name prefixing
0347 GitHub stars
04Synchronizes dual MCP session identifiers and synthesizes Mcp-Session-Id for strict protocol clients
05Fills Cognito OAuth gaps with RFC 9728/8414 discovery metadata, fake DCR, and HMAC-signed redirect rewriting
06Sanitizes Pydantic input schemas and strips null parameters to comply with AgentCore Gateway limits
ユースケース
01Eliminating OAuth discovery failures and DCR errors in MCP connection wizards like Amazon Quick
02Fixing missing tools caused by Gateway list pagination or runtime 404 session routing issues
03Connecting strict MCP clients like Claude Code, Cursor, or mcp-remote to Bedrock AgentCore behind Cognito OAuth