同步平台业务模块能力

This commit is contained in:
baiyanyun
2026-07-13 09:13:30 +08:00
parent e612f5e434
commit a1a38f62d8
224 changed files with 22331 additions and 1224 deletions

View File

@@ -106,6 +106,9 @@ public class McpConfigApplicationServiceImpl implements McpConfigApplicationServ
}
if (mcpDto.getMcpConfig() != null && mcpDto.getMcpConfig().getComponents() != null) {
for (McpComponentDto componentDto : mcpDto.getMcpConfig().getComponents()) {
if (StringUtils.isNotBlank(componentDto.getToolName())) {
continue;
}
String key = componentDto.getType().name() + "_" + componentDto.getTargetId();
McpComponentDto component = componentMap.get(key);
//存在则使用

View File

@@ -364,10 +364,10 @@ public class McpAsyncClient {
initializeResult.protocolVersion(), initializeResult.capabilities(), initializeResult.serverInfo(),
initializeResult.instructions());
if (!this.protocolVersions.contains(initializeResult.protocolVersion())) {
return Mono.error(new McpError(
"Unsupported protocol version from the server: " + initializeResult.protocolVersion()));
}
// if (!this.protocolVersions.contains(initializeResult.protocolVersion())) {
// return Mono.error(new McpError(
// "Unsupported protocol version from the server: " + initializeResult.protocolVersion()));
// }
nextHeartbeat();

View File

@@ -55,7 +55,7 @@ public class McpDeployRpcService {
@Resource
private MarketplaceRpcService marketplaceRpcService;
private java.net.http.HttpClient sseHttpClient = java.net.http.HttpClient.newBuilder()
private final java.net.http.HttpClient sseHttpClient = java.net.http.HttpClient.newBuilder()
.version(java.net.http.HttpClient.Version.HTTP_1_1)
.connectTimeout(Duration.ofSeconds(10)).build();