Skip to content

feat: add PolicyInfo fields to ConnectorResponse#45

Merged
saurabhjain1592 merged 7 commits into
mainfrom
feat/policy-info-fields
Jan 9, 2026
Merged

feat: add PolicyInfo fields to ConnectorResponse#45
saurabhjain1592 merged 7 commits into
mainfrom
feat/policy-info-fields

Conversation

@saurabhjain1592

Copy link
Copy Markdown
Member

Summary

Add PolicyInfo fields to ConnectorResponse for MCP policy enforcement visibility.

New Classes

  • PolicyMatchInfo: Information about a matched policy
  • ConnectorPolicyInfo: Policy evaluation metadata
  • ConnectorResponse updated with:
    • isRedacted(): boolean flag
    • getRedactedFields(): list of JSON paths
    • getPolicyInfo(): ConnectorPolicyInfo instance

Related

Supports axonflow-enterprise #963, #975

Test Plan

  • Compiles successfully
  • CI passes

Add new fields for MCP policy enforcement visibility:
- isRedacted(): boolean flag for redacted responses
- getRedactedFields(): list of JSON paths that were redacted
- getPolicyInfo(): ConnectorPolicyInfo with evaluation metadata
- PolicyMatchInfo: class for matched policy details

Supports axonflow-enterprise #963, #975
Text blocks require Java 15+, but the SDK targets Java 11
Keep existing tests working by adding a 6-parameter constructor that
delegates to the full 9-parameter constructor with default values for
the new policy fields (redacted=false, redactedFields=null, policyInfo=null).
@saurabhjain1592 saurabhjain1592 merged commit 479d361 into main Jan 9, 2026
9 checks passed
@saurabhjain1592 saurabhjain1592 deleted the feat/policy-info-fields branch January 11, 2026 20:59
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.

1 participant