Repository navigation
Add Azure Foundry IQ retrieval connector - #78937
Conversation
Support bounded native MCP string arrays and fixed API versions, with offline conformance coverage and a staged consumer. Co-authored-by: Copilot App <[email protected]>
|
🧠 Matt Pocock Skills Reviewer is reviewing this pull request using Matt Pocock's engineering skills... |
|
✅ PR Specification Reviewer completed successfully! Commit pushed: PR Specification ReviewerOutcome: The agent completed and reported one or more actions. The no-op output is a completion signal, not a claim that no action was taken. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
|
✅ Design Decision Gate 🏗️ completed the design decision gate check. See the comment below for the result and any generated ADR draft.
|
|
✅ PR Code Quality Reviewer completed the code quality review. PR Code Quality ReviewerOutcome: The agent completed and reported one or more actions. The no-op output is a completion signal, not a claim that no action was taken. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
|
✅ Ponytail Reviewer completed successfully! Ponytail ReviewerOutcome: The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
|
✅ Test Quality Sentinel completed test quality analysis. Test Quality SentinelOutcome: The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
There was a problem hiding this comment.
Reviewed the changed connector runtime, Go validation/transport, schemas, tests, and workflow declaration. I found no actionable correctness, security, performance, or maintainability issues in the changed lines. The advisory specialist pass was unavailable because its diff-file reads were denied; this review is therefore based on my independent static analysis. No tests were run per the static-review constraint.
🔎 Code quality review by PR Code Quality Reviewer · copilot · gpt50 · ~3 AIC · ⌖ ~1 AIC · ⊞ 1.5K
Comment /review to run again
Comment MemoryPeek at saved memory (review-history)History |
Co-authored-by: Copilot <[email protected]>
There was a problem hiding this comment.
Reviewed PR head b0401e6 against Connector Specification v1.0.0 and the changed hosted HTTP MCP contract. The bounded string-array and literal api-version additions are intentionally synchronized across declaration validation, Go/Node runtimes, schemas, docs, and focused tests; no conformance regression found. The normative spec edits lacked a version/changelog update, so I added focused v1.1.0 metadata and changelog on the same-repository branch; publication is queued via safe output. No live Azure calls were performed.
Generated by PR Specification Reviewer for #78937 · copilot · gpt50 · ~6 AIC · ⌖ ~2 AIC · ⊞ 1.7K
Comment /review-specs to run again
|
Warning The ADR Required: draft addedGate result: ADR enforcement applies. The PR has no ADR check: The PR body links no ADR, and no ADR for this PR exists in Draft ADR: Draft decision summary
Next action: A maintainer should review the draft, resolve the
|
Comment MemoryPeek at saved memory (spec-review-history)History |
There was a problem hiding this comment.
🟡 Changes recommended
The invalid-argument test can pass even when credential resolution is reached because its predicate accepts the generic error that replaces the proxy exception.
1 open issue
What changed in this PR
Adds Azure Foundry IQ retrieval to gh-aw’s declarative connector system without installing a plugin or adding a provider-specific runtime handler.
Changes:
- Introduces a read-only connector with exact approved-query grants, an agent-phase bearer credential and bounded responses.
- Extends shared Go and Node contracts with bounded string arrays and a fixed
api-versionURL parameter. - Adds authentication guidance, a staged GitHub issue example and offline compilation/runtime coverage. Live Azure compatibility remains unverified.
| File | Description |
|---|---|
pkg/workflow/connector_scenario_compile_test.go |
Adds Foundry IQ to compilation scenarios. |
pkg/workflow/connector_documentation_scan_test.go |
Updates the expected declaration count. |
pkg/workflow/connector_authoring_metadata_test.go |
Includes the new declaration in authoring checks. |
pkg/workflow/azure_foundry_iq_connector_test.go |
Adds documentation, argument, transport and runtime checks. |
pkg/connectors/values.go |
Validates string-array arguments and every item’s grant. |
pkg/connectors/validate.go |
Validates array contracts and rejects REST array inputs. |
pkg/connectors/validate_capabilities.go |
Permits constrained MCP arrays and literal API-version queries. |
pkg/connectors/string_array_test.go |
Covers array constraints, grants and endpoint query validation. |
pkg/connectors/spec.go |
Adds array fields to the shared input model. |
pkg/connectors/schema.go |
Defines reusable input schemas for array items. |
pkg/connectors/mcp.go |
Emits array constraints in MCP tool schemas. |
pkg/cli/workflows/azure-foundry-iq-golden.md |
Adds a manually triggered, staged issue-handoff example. |
pkg/cli/connectors_command_test.go |
Updates the public declaration validation count. |
docs/src/content/docs/specs/connector-specification.md |
Specifies hosted MCP arrays and allowed URL queries. |
docs/src/content/docs/reference/connectors.md |
Documents Foundry IQ setup, authentication and limitations. |
actions/setup/js/connector_runtime.test.cjs |
Tests Node array validation and fixed API-version transport. |
actions/setup/js/connector_runtime.cjs |
Implements matching Node contract validation. |
.github/workflows/connectors/azure-foundry-iq.md |
Declares the connector, credential, grants and embedded documentation. |
Review effort: Max (adaptive)
Match the provider CI selector in Foundry IQ test names and use the bundled connector XML source-reference format. Co-authored-by: Copilot App <[email protected]>
Count secret reads and assert each expected validation error so generic MCP failures cannot hide credential resolution in the bundled Node conformance test. Co-authored-by: Copilot App <[email protected]>
Co-authored-by: Copilot App <[email protected]>
|
Acknowledged as a review-start notification. This comment contains no actionable finding, so no code change is needed. |
|
Already addressed by b58629b, which is present in this branch. Connector Specification 1.1.0 includes the bounded-array and fixed api-version changelog, so no duplicate edit is needed. |
|
Reviewed the detailed design-gate result separately. Added the missing Draft ADR and linked it in the PR body; maintainer acceptance remains pending. |
|
Acknowledged the completion report; the associated historical ledger records no findings for b0401e6. This status notice requires no code change. |
|
This is an informational no-action report, not a concrete change request or proof of merge readiness. No code change is needed for this comment. |
|
This test-analysis completion notice contains no actionable finding. No change is needed for this comment; validation of the current changes is handled separately. |
|
This ledger records a historical no-findings result for b0401e6, not a fresh review of the current revision. No code change or modification of automation-managed history is needed. |
|
The specification update recorded here is already present in b58629b. No duplicate specification edit or ledger modification is needed. |
|
🎉 This pull request is included in a new release. Release: |

Summary
Enable agentic workflows to retrieve grounding from an existing Azure Foundry IQ knowledge base through its hosted MCP endpoint, without installing the Copilot CLI plugin or adding a provider-specific runtime handler.
azure-foundry-iqconnector exposing only nativeknowledge_base_retrieve, with exact approved-query grants, a fixed knowledge-base endpoint and a 256 KiB response bound.api-versionURL parameter. Arguments and every query grant are checked before credentials or network access; REST operations still reject arrays.Authentication and security
AZURE_FOUNDRY_IQ_SEARCH_ACCESS_TOKENnames an externally provisioned, current Azure Search Entra bearer token. The identity requires Search Index Data Reader. The connector does not acquire or refresh tokens, exchange GitHub OIDC JWTs, accept API-key fallbacks or forward delegated source-authorization headers.The new secret is agent-phase only and restricted to the approved fixed MCP endpoint. No new Actions dependencies are introduced; redirects remain prohibited. Retrieval can disclose private grounding to the agent and incur Azure/model charges even when the GitHub output is staged. Document identity, freshness, completeness and source permissions are not independently verified. No live Azure compatibility or token-validity claim is made.
Validation
make fmt,make recompile,make compile-cli-workflowsandmake check-workflow-driftpassed; all 15 connector golden consumers compiled and all 366 workflow locks remained in sync.go test ./pkg/connectors -count=1andgo test ./pkg/workflow ./pkg/cli -run '^(TestFoundryIQ.*|TestConnector.*)' -count=1passed.npm test -- --run connector_runtime.test.cjsinactions/setup/jspassed all 249 tests, plus TypeScript and session-schema checks.make agent-report-progressrun passed impacted unit tests but stopped on lint findings and missing lint dependencies. Those were corrected and the affected lint, compilation, focused tests and workflow-drift components were rerun successfully without repeatingtest-unit.Live Azure calls and workflow dispatches were not performed.
Design record
ADR-78937: Extend Declarative Connectors for Foundry IQ Retrieval is Draft, with deciders and maintainer acceptance pending.