Replies: 2 comments
-
|
请 @Erica177 看一下 Please @Erica177 Check it out |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
您的邮件我已收到,会尽快回复您!
<!--This is a translation content dividing line, the content below is generated by machine, please do not modify the content below-->
---
I have received your email and will reply you as soon as possible!
|
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.
Uh oh!
There was an error while loading. Please reload this page.
-
转换tools的入参时报错:
2025-05-30T03:55:11.735119Z error McpServer parse mcp args error:json: cannot unmarshal array into Go struct field ToolArgs.required of type bool, tool name addressQuery, args name arg0
这是nacos中定义的参数

自动生成的mcp-tools.json
{
"id": "902395669889925120",
"namespaceId": "nacos-default-mcp",
"groupName": "mcp-tools",
"dataId": "wangs-test-mcp-tools.json",
"md5": "260defad0e38f214e7d3eb0bc8ab1cff",
"type": "json",
"appName": "wangs-test",
"createTime": 1748577271815,
"modifyTime": 1748577271815,
"content": "{"tools":[{"name":"addressGet","description":"根据城市名称获取城市的地区信息","inputSchema":{"type":"object","properties":{"arg0":{"type":"string","description":"地区名称"}},"required":["arg0"],"additionalProperties":false}},{"name":"addressQuery","description":"查询城市信息","inputSchema":{"type":"object","properties":{"arg0":{"type":"object","properties":{"addressCode":{"type":"string","description":"地区编码"},"addressId":{"type":"integer","format":"int64","description":"地区ID"},"addressName":{"type":"string","description":"地区名称"}},"required":["addressCode"],"description":"查询参数"}},"required":["arg0"],"additionalProperties":false}}],"toolsMeta":{"addressGet":{"invokeContext":{},"enabled":true,"templates":{"json-go-template":{"requestTemplate":{"method":"GET","url":"/address/getAddress","argsToUrlParam":true}}}},"addressQuery":{"invokeContext":{},"enabled":true,"templates":{"json-go-template":{"requestTemplate":{"method":"GET","url":"/address/queryAddress","argsToUrlParam":true}}}}}}",
"desc": null,
"encryptedDataKey": "",
"createUser": "nacos",
"createIp": null,
"configTags": null
}
是我什么地方配置的有问题吗
An error occurred when converting tools into parameters:
2025-05-30T03:55:11.735119Z error McpServer parse mcp args error:json: cannot unmarshal array into Go struct field ToolArgs.required of type bool, tool name addressQuery, args name arg0
This is the parameter defined in nacos

Automatically generated mcp-tools.json
{
"id": "902395669889925120",
"namespaceId": "nacos-default-mcp",
"groupName": "mcp-tools",
"dataId": "wangs-test-mcp-tools.json",
"md5": "260defad0e38f214e7d3eb0bc8ab1cff",
"type": "json",
"appName": "wangs-test",
"createTime": 1748577271815,
"modifyTime": 1748577271815,
"content": "{"tools":[{"name":"addressGet","description":"Get the city's region information based on the city name","inputSchema":{"type":"object","properties":{"arg0":{"type":"string","description":"region name"}},"required":["arg0"],"additionalProperties":false}},{"name":"addressQuery","description ":"Query city information","inputSchema":{"type":"object","properties":{"arg0":{"type":"object","properties":{"addressCode":{"type":"string","description":"region code"},"addressId":{"type":"integer","format":"int64","description":"region ID"},"addressName":{"type e":"string","description":"Region Name"}},"required":["addressCode"],"description":"Query Parameters"}},"required":["arg0"],"additionalProperties":false}}],"toolsMeta":{"addressGet":{"invokeContext":{},"enabled":true,"templates":{"json-go-template":{"requestTemplate ":{"method":"GET","url":"/address/getAddress","argsToUrlParam":true}}}},"addressQuery":{"invokeContext":{},"enabled":true,"templates":{"json-go-template":{"requestTemplate":{"method":"GET","url":"/address/queryAddress","argsToUrlParam":true}}}}}",
"desc": null,
"encryptedDataKey": "",
"createUser": "nacos",
"createIp": null,
"configTags": null
}
Is there any problem with my configuration?
Beta Was this translation helpful? Give feedback.
All reactions