同步平台业务模块能力
This commit is contained in:
@@ -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);
|
||||
//存在则使用
|
||||
|
||||
@@ -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();
|
||||
|
||||
|
||||
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user