-
Notifications
You must be signed in to change notification settings - Fork 0
feat: add mcpCheckInput and mcpCheckOutput methods#101
Merged
saurabhjain1592 merged 7 commits intomainfrom Feb 28, 2026
Merged
Conversation
Member
Summary
- Add
mcpCheckInputandmcpCheckOutputmethods (sync + async CompletableFuture variants) - Add
MCPCheckInputRequest,MCPCheckInputResponse,MCPCheckOutputRequest,MCPCheckOutputResponsePOJOs - 403 responses treated as valid policy-blocked results, not errors
Context
Standalone policy-check endpoints (getaxonflow/axonflow-enterprise#1258) allow external orchestrators to use AxonFlow as a policy gate.
Test plan
-
mvn compilepasses - CI passes
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
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
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
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
...ests
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.
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.
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.