Class McpServiceController
java.lang.Object
fr.tiogars.chat.domains.mcp.controllers.McpServiceController
@RestController
@RequestMapping("/api/mcp/services")
public class McpServiceController
extends Object
REST controller for MCP service operations.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<McpActionResponse> executeAction(String serviceId, @Valid McpActionRequest request) org.springframework.http.ResponseEntity<McpServiceConfig> getService(String serviceId) org.springframework.http.ResponseEntity<List<McpServiceConfig>> org.springframework.http.ResponseEntity<McpServiceConfig> registerService(@Valid McpServiceConfig config)
-
Constructor Details
-
McpServiceController
-
-
Method Details
-
listServices
-
getService
@GetMapping("/{serviceId}") public org.springframework.http.ResponseEntity<McpServiceConfig> getService(@PathVariable String serviceId) -
registerService
@PostMapping public org.springframework.http.ResponseEntity<McpServiceConfig> registerService(@Valid @RequestBody @Valid McpServiceConfig config) -
executeAction
@PostMapping("/{serviceId}/actions") public org.springframework.http.ResponseEntity<McpActionResponse> executeAction(@PathVariable String serviceId, @Valid @RequestBody @Valid McpActionRequest request)
-