fix: add DELETE mapping and .well-known endpoints for Cursor compatibility
Some checks failed
Deploy to OCIWP / deploy (push) Failing after 1m23s

This commit is contained in:
kimhyungsik
2026-07-23 13:05:11 +09:00
parent 541150d3f4
commit 408a3f6b28

View File

@@ -83,5 +83,18 @@ public class DynamicMcpController {
return ResponseEntity.ok() return ResponseEntity.ok()
.header("Mcp-Session-Id", activeSessionId) .header("Mcp-Session-Id", activeSessionId)
.body(emitter); .body(emitter);
@org.springframework.web.bind.annotation.DeleteMapping("/mcp/sse/{category}")
public ResponseEntity<Void> handleDeleteSse(@PathVariable("category") String category) {
return ResponseEntity.ok().build();
}
@GetMapping("/.well-known/oauth-protected-resource")
public ResponseEntity<java.util.Map<String, Object>> handleOauthProtectedResource() {
return ResponseEntity.ok().body(java.util.Map.of());
}
@GetMapping("/.well-known/oauth-protected-resource/**")
public ResponseEntity<java.util.Map<String, Object>> handleOauthProtectedResourceWildcard() {
return ResponseEntity.ok().body(java.util.Map.of());
} }
} }