Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/main/java/com/getaxonflow/sdk/AxonFlow.java
Original file line number Diff line number Diff line change
Expand Up @@ -1504,7 +1504,7 @@ public MCPCheckInputResponse mcpCheckInput(String connectorType, String statemen
return retryExecutor.execute(() -> {
MCPCheckInputRequest request;
if (options != null) {
String operation = (String) options.getOrDefault("operation", "query");
String operation = (String) options.getOrDefault("operation", "execute");
@SuppressWarnings("unchecked")
Map<String, Object> parameters = (Map<String, Object>) options.get("parameters");
request = new MCPCheckInputRequest(connectorType, statement, parameters, operation);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,13 @@ public final class MCPCheckInputRequest {

/**
* Creates a request with connector type and statement only.
* Operation defaults to "query".
* Operation defaults to "execute".
*
* @param connectorType the MCP connector type (e.g., "postgres")
* @param statement the statement to validate
*/
public MCPCheckInputRequest(String connectorType, String statement) {
this(connectorType, statement, null, "query");
this(connectorType, statement, null, "execute");
}

/**
Expand Down
Loading