REST-to-MCP 工具配置是否支持接收文件类型 #3771
Unanswered
Wanghanbin914
asked this question in
Q&A
Replies: 1 comment
-
|
MCP协议本身用的是JSONRPC,没法直接传文件。你可以选择使用string传base64之后的文件内容。 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
当前Higress使用单机版2.2.1,使用docker容器部署

目前需要将一些文件操作相关的http形式接口工具统一包装成mcp服务,对外提供
但目前遇到了一个问题,这些文件操作相关的接口中,有一个接口的入参需要接收文件,文件以file类型进行接收

目前查阅了MCP插件配置的官方文档,里面REST-to-MCP 工具配置提到

tools[].args[].type支持以下类型:string, number, integer, boolean, array, object,并没有看到支持文件类型上传的参数类型想咨询下higress2.2.1版本中MCP插件是否支持文件类型的参数接收,如果支持,需要如何编写yaml的配置文件
Beta Was this translation helpful? Give feedback.
All reactions