| | |
| | | return R.ok().add(aiMcpMountService.testConnectivity(id, getLoginUserId(), getTenantId())); |
| | | } |
| | | |
| | | @PreAuthorize("hasAnyAuthority('system:aiMcpMount:save','system:aiMcpMount:update')") |
| | | @PostMapping("/aiMcpMount/connectivity/validate-draft") |
| | | public R testDraftConnectivity(@RequestBody AiMcpMount mount) { |
| | | mount.setTenantId(getTenantId()); |
| | | return R.ok().add(aiMcpMountService.testDraftConnectivity(mount, getLoginUserId(), getTenantId())); |
| | | } |
| | | |
| | | @PreAuthorize("hasAuthority('system:aiMcpMount:update')") |
| | | @PostMapping("/aiMcpMount/{id}/tool/test") |
| | | public R testTool(@PathVariable("id") Long id, @RequestBody AiMcpToolTestRequest request) { |