mirror of
https://gitee.com/270580156/weiyu.git
synced 2026-05-22 18:57:49 +00:00
update
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
* @Author: jackning 270580156@qq.com
|
||||
* @Date: 2024-05-11 18:14:28
|
||||
* @LastEditors: jackning 270580156@qq.com
|
||||
* @LastEditTime: 2025-08-26 14:13:08
|
||||
* @LastEditTime: 2025-09-04 12:23:24
|
||||
* @Description: bytedesk.com https://github.com/Bytedesk/bytedesk
|
||||
* Please be aware of the BSL license restrictions before installing Bytedesk IM –
|
||||
* selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license.
|
||||
@@ -20,7 +20,6 @@ import jakarta.persistence.Column;
|
||||
import jakarta.persistence.Entity;
|
||||
// import jakarta.persistence.EntityListeners;
|
||||
import jakarta.persistence.Table;
|
||||
import java.time.ZonedDateTime;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
@@ -96,20 +95,20 @@ public class McpServerEntity extends BaseEntity {
|
||||
@Column(columnDefinition = TypeConsts.COLUMN_TYPE_TEXT)
|
||||
private String serverConfig;
|
||||
|
||||
/**
|
||||
* Last health check time
|
||||
*/
|
||||
private ZonedDateTime lastHealthCheck;
|
||||
// /**
|
||||
// * Last health check time
|
||||
// */
|
||||
// private ZonedDateTime lastHealthCheck;
|
||||
|
||||
/**
|
||||
* Last connection time
|
||||
*/
|
||||
private ZonedDateTime lastConnected;
|
||||
// /**
|
||||
// * Last connection time
|
||||
// */
|
||||
// private ZonedDateTime lastConnected;
|
||||
|
||||
/**
|
||||
* Last error message
|
||||
*/
|
||||
@Column(columnDefinition = TypeConsts.COLUMN_TYPE_TEXT)
|
||||
private String lastError;
|
||||
// /**
|
||||
// * Last error message
|
||||
// */
|
||||
// @Column(columnDefinition = TypeConsts.COLUMN_TYPE_TEXT)
|
||||
// private String lastError;
|
||||
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* @Author: jackning 270580156@qq.com
|
||||
* @Date: 2024-05-11 18:26:12
|
||||
* @LastEditors: jackning 270580156@qq.com
|
||||
* @LastEditTime: 2025-09-04 12:12:21
|
||||
* @LastEditTime: 2025-09-04 12:23:14
|
||||
* @Description: bytedesk.com https://github.com/Bytedesk/bytedesk
|
||||
* Please be aware of the BSL license restrictions before installing Bytedesk IM –
|
||||
* selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license.
|
||||
@@ -55,12 +55,5 @@ public class McpServerResponse extends BaseResponse {
|
||||
* - autoStart and other settings
|
||||
*/
|
||||
private String serverConfig;
|
||||
|
||||
|
||||
private java.time.ZonedDateTime lastHealthCheck;
|
||||
|
||||
private java.time.ZonedDateTime lastConnected;
|
||||
|
||||
private String lastError;
|
||||
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* @Author: jackning 270580156@qq.com
|
||||
* @Date: 2025-08-26 11:17:42
|
||||
* @LastEditors: jackning 270580156@qq.com
|
||||
* @LastEditTime: 2025-08-26 11:18:07
|
||||
* @LastEditTime: 2025-09-04 12:23:58
|
||||
* @Description: bytedesk.com https://github.com/Bytedesk/bytedesk
|
||||
* Please be aware of the BSL license restrictions before installing Bytedesk IM –
|
||||
* selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license.
|
||||
@@ -494,10 +494,10 @@ public class McpServerService {
|
||||
|
||||
private void updateEntityStatus(McpServerEntity server, McpServerStatusEnum status, String error) {
|
||||
server.setStatus(status.name());
|
||||
server.setLastError(error);
|
||||
if (McpServerStatusEnum.ACTIVE.equals(status)) {
|
||||
server.setLastConnected(ZonedDateTime.now());
|
||||
}
|
||||
// server.setLastError(error);
|
||||
// if (McpServerStatusEnum.ACTIVE.equals(status)) {
|
||||
// server.setLastConnected(ZonedDateTime.now());
|
||||
// }
|
||||
mcpServerRestService.save(server);
|
||||
}
|
||||
|
||||
|
||||
3
modules/ai/src/main/resources/ai/mcp_servers.json
Normal file
3
modules/ai/src/main/resources/ai/mcp_servers.json
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user