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 Details

    • McpServiceController

      public McpServiceController(McpService mcpService)
  • Method Details

    • listServices

      @GetMapping public org.springframework.http.ResponseEntity<List<McpServiceConfig>> 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)