mcp tool 如何支持 图片二进制的转发 #15528
Unanswered
lixiaohang853
asked this question in
Q&A
Replies: 1 comment
|
从这段配置看,问题点大概率在
可以先用一个很小的 PNG/JPEG 做验证:看下游收到的前几个字节是不是 PNG 的 如果当前 Nacos MCP HTTP tool 没有类似
也就是说,这里不是 header 少了什么,而是模板渲染链路需要支持“原始 bytes body”。 |
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.
各位好,想请教下,下游接口只能接收二进制的图片,请问如何在mcp tools中配置呢,目前这样配置不行,{

"url": "https://gateway-internal.boe.com/apigateway/release2/ai/service/v2/recognize/table/multipage",
"method": "POST",
"headers": [
{
"key": "X-AI-ApiCode",
"value": "{{.args.apiCode}}"
},
{
"key": "access_token",
"value": "{{.args.accessToken}}"
},
{
"key": "X-AI-ApiRawResponse",
"value": "true"
},
{
"key": "Content-Type",
"value": "application/octet-stream"
}
],
"body": "{{.args.fileBinary}}"
}, 也尝试加了 "body": "{{.args.fileBinary | b64dec }}"
也不行
@KomachiSion @nkorange @chuntaojun @daguimu @saynoword
All reactions