Skip to content

Merge main into feature/mcp-legacy-loader-default#2710

Open
aws-toolkit-automation wants to merge 8 commits intofeature/mcp-legacy-loader-defaultfrom
autoMerge/feature/mcp-legacy-loader-default
Open

Merge main into feature/mcp-legacy-loader-default#2710
aws-toolkit-automation wants to merge 8 commits intofeature/mcp-legacy-loader-defaultfrom
autoMerge/feature/mcp-legacy-loader-default

Conversation

@aws-toolkit-automation
Copy link
Copy Markdown
Collaborator

Automatic merge failed

  • Resolve conflicts and push to this PR branch.
  • Do not squash-merge this PR. Use the "Create a merge commit" option to do a regular merge.

Command line hint

To perform the merge from the command line, you could do something like the following (where "origin" is the name of the remote in your local git repo):

git stash
git fetch --all
git checkout origin/feature/mcp-legacy-loader-default
git merge origin/main
git commit
git push origin HEAD:refs/heads/autoMerge/feature/mcp-legacy-loader-default

laileni-aws and others added 2 commits April 28, 2026 15:53
…2708)

* feat(amazonq): add consent prompt for workspace-scoped MCP servers

* fix(amazonq): suppress MCP consent re-prompts within session on deny (#2703)

* test: add consent gate tests for workspace-scoped MCP servers (#2705)

* fix: add missing closing brace in mcpManager.test.ts

* fix: use getGlobalMcpConfigPath for cross-platform path in consent gate test

* fix: addressing review feedback

---------

Co-authored-by: Aseem Sharma <aseemxs@amazon.com>
Co-authored-by: Aseem sharma <198968351+aseemxs@users.noreply.github.com>
@aws-toolkit-automation aws-toolkit-automation requested a review from a team as a code owner April 28, 2026 23:11
laileni-aws and others added 6 commits April 29, 2026 12:37
* feat(amazonq): add consent prompt for workspace-scoped MCP servers

* fix(amazonq): suppress MCP consent re-prompts within session on deny (#2703)

* test: add consent gate tests for workspace-scoped MCP servers (#2705)

* fix: add missing closing brace in mcpManager.test.ts

* fix: use getGlobalMcpConfigPath for cross-platform path in consent gate test

* fix: addressing review feedback

* fix(amazonq): improve MCP consent gate reliability and cleanup

- Fix spurious re-prompts on IDE reload by using OR matching in
  hasApproval: match on (serverName, fingerprint) OR (serverName,
  workspaceHash). The fingerprint can change slightly between reloads
  due to config migration, and the workspaceHash covers that case.
- Add getGlobalPersonaConfigPath to the trusted set so persona configs
  don't trigger unnecessary consent prompts.
- Clear sessionDeniedConsent in close() for consistency with other state.
- Replace non-null assertion with inline Set initialization.
- Evict stale approval entries when config changes for the same server
  and workspace instead of accumulating them.
- Normalize configPath via normalizePathFromUri before consent checks.
- Add removeApproval and call it from removeServer so deleting a
  workspace MCP server clears its persisted approval.
- Improve prompt text to explain persistence semantics to the user.
- Normalize paths with path.resolve and forward slashes for cross-
  platform consistency in fingerprintWorkspace.

---------

Co-authored-by: Aseem Sharma <aseemxs@amazon.com>
Co-authored-by: Aseem sharma <198968351+aseemxs@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
…PI selection (#2713) (#2714)

The onInlineChatPrompt handler was hardcoded to call client.sendMessage()
regardless of the authentication type. This caused Kiro Enterprise
subscription users on Eclipse to get Your subscription does not support
this application errors because SendMessage is not in the Kiro
Enterprise API allowlist.

Route inline chat through getChatResponse() which correctly selects
GenerateAssistantResponse for token-based (SSO/IdC) clients and
SendMessage only for IAM clients, matching the behavior of regular chat.
Co-authored-by: aws-toolkit-automation <>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: aws-toolkit-automation <>
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.

3 participants