Skip to content

Commit 3d7b191

Browse files
authored
fix: fixed an issue where the Mcp path obtained when adding the Higress Mcp Server to Himarket was incorrect.
2 parents 56d1c30 + eb93357 commit 3d7b191

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

portal-server/src/main/java/com/alibaba/apiopenplatform/service/gateway/HigressOperator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ public String fetchMcpConfig(Gateway gateway, Object conf) {
160160
boolean isDirect = "direct_route".equalsIgnoreCase(higressMCPConfig.getType());
161161
DirectRouteConfig directRouteConfig = higressMCPConfig.getDirectRouteConfig();
162162
String transportType = isDirect ? directRouteConfig.getTransportType() : null;
163-
String path = isDirect ? directRouteConfig.getPath() : "/mcp-servers/" + higressMCPConfig.getName();
163+
String path = "/mcp-servers/" + higressMCPConfig.getName();
164164

165165
c.setPath(path);
166166
List<String> domains = higressMCPConfig.getDomains();

0 commit comments

Comments
 (0)