feat: add OAuth credential setup and gateway output parsing to TUI deploy flow#411
Merged
tejaskash merged 3 commits intoaws:feat/gateway-integrationfrom Feb 24, 2026
Conversation
9d12d11 to
00c3c7c
Compare
00c3c7c to
6038460
Compare
6038460 to
6af88f9
Compare
tejaskash
requested changes
Feb 24, 2026
tejaskash
approved these changes
Feb 24, 2026
d655353
into
aws:feat/gateway-integration
14 of 16 checks passed
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.
Description
The CLI deploy command (
agentcore deploy) already handles OAuth credential setup and gateway output parsing, but the TUI deploy flow (the interactive terminal UI) was missing both. This meant users deploying through the TUI wouldn't get their OAuth providers created or their gateway URLs persisted to deployed-state.json.This PR brings the TUI deploy flow to parity with the CLI:
OAuth credential setup in TUI preflight. The
useCdkPreflighthook now runssetupOAuth2Providersduring the identity-setup phase, right after API key setup. OAuth credentials (provider ARN, client secret ARN, callback URL) are collected and passed through to the deploy flow.Gateway output parsing in TUI deploy. After CDK deploy completes,
useDeployFlownow reads the MCP spec to get gateway definitions, callsparseGatewayOutputsto extract gateway URLs from CloudFormation outputs, and passes both gateways and OAuth credentials tobuildDeployedStateso they're persisted correctly.Without this change, users who deploy via the TUI would have working agents but broken gateway URLs and missing OAuth providers in their deployed state.
Related Issue
Part of the MCP Gateway Phase 1 integration (gateway-integration branch). Task 9b.
Type of Change
Testing
npm run test:unitandnpm run test:integnpm run typechecknpm run lintsrc/assets/, I rannpm run test:update-snapshotsand committed the updated snapshotsChecklist