View Javadoc
1   package fr.tiogars.chat.domains.mcp.models;
2   
3   import io.swagger.v3.oas.annotations.media.Schema;
4   import jakarta.validation.constraints.NotBlank;
5   
6   import java.util.Map;
7   
8   /**
9    * Request to execute an action on an MCP service.
10   */
11  @Schema(description = "Request to execute an MCP action")
12  public record McpActionRequest(
13          @NotBlank
14          @Schema(description = "ID of the MCP service", example = "filesystem")
15          String serviceId,
16  
17          @NotBlank
18          @Schema(description = "Action to execute", example = "list_resources")
19          String action,
20  
21          @Schema(description = "Parameters for the action")
22          Map<String, Object> parameters
23  ) {
24  }