fix: add DELETE mapping and .well-known endpoints for Cursor compatibility
Some checks failed
Deploy to OCIWP / deploy (push) Failing after 1m23s
Some checks failed
Deploy to OCIWP / deploy (push) Failing after 1m23s
This commit is contained in:
@@ -83,5 +83,18 @@ public class DynamicMcpController {
|
||||
return ResponseEntity.ok()
|
||||
.header("Mcp-Session-Id", activeSessionId)
|
||||
.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());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user