Skip to content

Commit 1064693

Browse files
authored
feat: Update McpBridge according to the new CRD in Higress 2.1.4 (higress-group#522)
1 parent de79650 commit 1064693

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed

backend/sdk/src/main/java/com/alibaba/higress/sdk/service/kubernetes/crd/mcp/V1RegistryConfig.java

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
package com.alibaba.higress.sdk.service.kubernetes.crd.mcp;
1414

1515
import java.util.List;
16+
import java.util.Map;
1617

1718
import com.google.gson.annotations.SerializedName;
1819

@@ -80,6 +81,14 @@ public class V1RegistryConfig {
8081
@SerializedName(SERIALIZED_NAME_ENABLE_MCP_SERVER_NAME)
8182
private Boolean enableMcpServer;
8283

84+
public static final String SERIALIZED_NAME_ENABLE_SCOPE_MCP_SERVER_NAME = "enableScopeMcpServers";
85+
@SerializedName(SERIALIZED_NAME_ENABLE_SCOPE_MCP_SERVER_NAME)
86+
private Boolean enableScopeMcpServers;
87+
88+
public static final String SERIALIZED_NAME_ALLOW_MCP_SERVERS_NAME = "allowMcpServers";
89+
@SerializedName(SERIALIZED_NAME_ALLOW_MCP_SERVERS_NAME)
90+
private List<String> allowMcpServers;
91+
8392
public static final String SERIALIZED_NAME_MCP_SERVER_BASE_URL_NAME = "mcpServerBaseUrl";
8493
@SerializedName(SERIALIZED_NAME_MCP_SERVER_BASE_URL_NAME)
8594
private String mcpServerBaseUrl;
@@ -91,4 +100,8 @@ public class V1RegistryConfig {
91100
public static final String SERIALIZED_NAME_AUTH_SECRET_NAME = "authSecretName";
92101
@SerializedName(SERIALIZED_NAME_AUTH_SECRET_NAME)
93102
private String authSecretName;
103+
104+
public static final String SERIALIZED_NAME_METADATA_NAME = "metadata";
105+
@SerializedName(SERIALIZED_NAME_METADATA_NAME)
106+
private Map<String, V1RegistryConfigMetadata> metadata;
94107
}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
/*
2+
* Copyright (c) 2022-2025 Alibaba Group Holding Ltd.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
5+
* the License. You may obtain a copy of the License at
6+
*
7+
* http://www.apache.org/licenses/LICENSE-2.0
8+
*
9+
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
10+
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
11+
* specific language governing permissions and limitations under the License.
12+
*/
13+
package com.alibaba.higress.sdk.service.kubernetes.crd.mcp;
14+
15+
import java.util.Map;
16+
17+
import com.google.gson.annotations.SerializedName;
18+
19+
public class V1RegistryConfigMetadata {
20+
21+
public static final String SERIALIZED_NAME_INNER_MAP_NAME = "innerMap";
22+
@SerializedName(SERIALIZED_NAME_INNER_MAP_NAME)
23+
private Map<String, String> innerMap;
24+
}

0 commit comments

Comments
 (0)