Skip to content

higress + nacos 存量API转MCP,tool list获取成功,调用工具时报错404 || higress + nacos Convert existing API to MCP, tool list is obtained successfully, error 404 is reported when calling the tool #3064

@confidence93

Description

@confidence93

Environment:Higress 2.1.7, Nacos 3.1

Description:
Nacos端
使用已有服务模式,开启http转MCP服务,配置tool成功

Image Image Higress端 1. 配置nacos为服务来源,开启mcp server功能 Image
  1. 创建mcp服务,采用直接路由,后端服务前缀匹配路径”/cnkisearch“
Image

mcp client端
配置mcp server信息
Image

Actual Behavior: 在clinet端可以正常获取tool list的信息,但是调用tool call时,客户端提示404, higress gateway报错:”{"ai_log":"-","authority":"10.84.3.40:32222","bytes_received":"131","bytes_sent":"126","downstream_local_address":"10.233.90.137:80","downstream_remote_address":"10.233.99.0:36284","duration":"1","istio_policy_status":"-","method":"POST","path":"/mcp/cnkisearch/cnkisearch","protocol":"HTTP/1.1","request_id":"4aa91d09-de55-4775-9862-fff8792619d3","requested_server_name":"-","response_code":"200","response_flags":"NR","route_name":"-","start_time":"2025-10-28T05:15:35.583Z","trace_id":"-","upstream_cluster":"-","upstream_host":"-","upstream_local_address":"-","upstream_service_time":"-","upstream_transport_failure_reason":"-","user_agent":"node","x_forwarded_for":"10.233.99.0","response_code_details":"route_not_found"}“

configuration:
higress-config

Image Image Image

Expected Behavior:
mcp client可以正常调用服务


Environment: Higress 2.1.7, Nacos 3.1

Description:
Nacos side
Use the existing service mode, enable the http to MCP service, and configure the tool successfully.

Image Image Higress side 1. Configure nacos as the service source and enable the mcp server function Image
  1. Create mcp service, use direct routing, and the backend service prefix matches the path "/cnkisearch"
Image

mcp client
Configure mcp server information
Image

Actual Behavior: The tool list information can be obtained normally on the clinet side, but when calling tool call, the client prompts 404, higress gateway error: "{"ai_log":"-","authority":"10.84.3.40:32222","bytes_received":"131","bytes_sent": "126","downstream_local_address":"10.233.90.137:80","downstream_remote_address":"10.233.99.0 :36284","duration":"1","istio_policy_status":"-","method":"POST","path":"/mcp/cnkisearch/cnk isearch","protocol":"HTTP/1.1","request_id":"4aa91d09-de55-4775-9862-fff8792619d3","requested _server_name":"-","response_code":"200","response_flags":"NR","route_name":"-","start_time": "2025-10-28T05:15:35.583Z","trace_id":"-","upstream_cluster":"-","upstream_host":"-","upstre am_local_address":"-","upstream_service_time":"-","upstream_transport_failure_reason":"-","user_agent":"node","x_forwarded_for":"10.233.99.0","response_code_details":"route_not_found"}"

configuration:
higress-config

Image Image Image

Expected Behavior:
mcp client can call services normally

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions