You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add mcpCheckInput and mcpCheckOutput methods (#101)
* feat: add mcpCheckInput and mcpCheckOutput methods
Add standalone policy-check methods and request/response POJOs for external
orchestrators to use AxonFlow as a policy gate. Includes sync and async
(CompletableFuture) variants. 403 responses are treated as valid
policy-blocked results, not errors.
Refs: getaxonflow/axonflow-enterprise#1258
* test: add tests for MCP check-input/check-output methods
Cover mcpCheckInput and mcpCheckOutput SDK methods and their
associated request/response types to restore JaCoCo coverage
above the 73% threshold.
Tests added:
- mcpCheckInput: basic call, with options, 403 blocked result,
500 error, null validation, async variant
- mcpCheckOutput: basic call, with options, 403 blocked result,
exfiltration info, 500 error, null validation, async variant
- MCPCheckInputRequest: construction, serialization, equals/hashCode
- MCPCheckInputResponse: construction, deserialization, equals/hashCode
- MCPCheckOutputRequest: construction, serialization, equals/hashCode
- MCPCheckOutputResponse: construction, deserialization, equals/hashCode
* docs: add MCP policy-check endpoints to changelog
* fix: allow null responseData in mcpCheckOutput for execute-style requests
The API contract allows check-output requests with message only (no
response_data) for execute-style validation. Removed the
Objects.requireNonNull check on responseData and updated the test to
verify execute-style requests with null responseData work correctly.
* fix: add missing HashMap import in AxonFlowTest
* docs: set v3.7.0 release date in changelog
* docs: improve v3.7.0 changelog entry
Copy file name to clipboardExpand all lines: CHANGELOG.md
+13Lines changed: 13 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,19 @@ All notable changes to the AxonFlow Java SDK will be documented in this file.
5
5
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
8
+
## [3.7.0] - 2026-02-28
9
+
10
+
### Added
11
+
12
+
-**MCP Policy-Check Endpoints** (Platform v4.6.0+): Standalone policy validation for external orchestrators (LangGraph, CrewAI) to enforce AxonFlow policies without executing connector queries
13
+
-`mcpCheckInput(connectorType, statement)`: Validate SQL/commands against input policies (SQLi detection, dangerous query blocking, PII in queries, dynamic policies). Returns `MCPCheckInputResponse` with `isAllowed()` or `getBlockReason()`
14
+
-`mcpCheckOutput(connectorType, responseData)`: Validate MCP response data against output policies (PII redaction, exfiltration limits, dynamic policies). Returns original or redacted data with `PolicyInfo`
15
+
- New types: `MCPCheckInputRequest`, `MCPCheckInputResponse`, `MCPCheckOutputRequest`, `MCPCheckOutputResponse`
16
+
- Sync + async variants with overloads for additional options (`parameters`, `operation`)
17
+
- Supports both query-style (`responseData`) and execute-style (`message` + `metadata`) output validation
0 commit comments