Python: Surface A2A preview consent URLs - #7606
Open
LeoZhaoo (LobsterQBA) wants to merge 3 commits into
Open
Conversation
LeoZhaoo (LobsterQBA)
deployed
to
github-app-auth
August 10, 2026 19:02 — with
GitHub Actions
Active
LeoZhaoo (LobsterQBA)
had a problem deploying
to
github-app-auth
August 10, 2026 19:02 — with
GitHub Actions
Error
LeoZhaoo (LobsterQBA)
deployed
to
github-app-auth
August 10, 2026 19:02 — with
GitHub Actions
Active
LeoZhaoo (LobsterQBA)
deployed
to
github-app-auth
August 10, 2026 19:03 — with
GitHub Actions
Active
LeoZhaoo (LobsterQBA)
deployed
to
github-app-auth
August 10, 2026 19:04 — with
GitHub Actions
Active
LeoZhaoo (LobsterQBA)
deployed
to
github-app-auth
August 10, 2026 19:04 — with
GitHub Actions
Active
Contributor
There was a problem hiding this comment.
Pull request overview
Extends Foundry Hosting consent extraction to support Work IQ A2A-preview sources while preserving MCP behavior.
Changes:
- Allows
mcpanda2a_previewconsent sources. - Adds an A2A-preview parser regression test.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
_responses.py |
Expands the consent source allowlist. |
test_responses.py |
Adds configurable test data and A2A-preview coverage. |
💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Tao Chen (TaoChenOSU)
deployed
to
github-app-auth
August 12, 2026 22:38 — with
GitHub Actions
Active
Tao Chen (TaoChenOSU)
deployed
to
github-app-auth
August 12, 2026 22:39 — with
GitHub Actions
Active
Contributor
Python Test Coverage Report •
Python Unit Test Overview
|
||||||||||||||||||||||||||||||
Tao Chen (TaoChenOSU)
approved these changes
Aug 12, 2026
Giles Odigwe (giles17)
approved these changes
Aug 13, 2026
Contributor
|
LeoZhaoo (@LobsterQBA) please agree to the Contributor License Agreement above |
Giles Odigwe (giles17)
enabled auto-merge
August 13, 2026 17:10
Author
|
@microsoft-github-policy-service agree |
Author
@microsoft-github-policy-service agree |
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.
Motivation & Context
When a Work IQ tool source returns
CONSENT_REQUIREDwithtype: "a2a_preview", the Foundry Hosting responses server currently ignores the consent URL because it only acceptsmcpsources. This leaves callers without the URL needed to complete consent.Description & Review Guide
consent_url_from_errorto recognize bothmcpanda2a_previewconsent sources, and add a regression test for the latter.Prepared with AI assistance; the change was reviewed and validated locally by the contributor.
Related Issue
Fixes #7227
Contribution Checklist
breaking changelabel (or add "[BREAKING]" to the title prefix, before or after any language prefix) — a workflow keeps the label and title prefix in sync automatically.