Gopal S Akshintala
04/17/2025, 10:57 AMTool.Arg
? I am not able to find something like a list()
method?
val pathsArg =
Tool.Arg.string().required("collectionPath", "List of Absolute paths")
I want Cursor to call my MCP with argument like this:
{
"paths": [
"../..",
"/.."
]
}
dave
04/17/2025, 11:04 AMdave
04/17/2025, 11:05 AMGopal S Akshintala
04/19/2025, 6:24 AMint
, string
etcdave
04/19/2025, 6:41 AMdave
04/19/2025, 6:46 AMGopal S Akshintala
04/19/2025, 7:38 AMmulti
is not working as expected. I constantly get this error with Cursordave
04/19/2025, 7:45 AMGopal S Akshintala
04/19/2025, 8:06 AMworkbench.desktop.main.js:1001 [ToolV2Service] ToolCallError details: {clientMessage: "Invalid type for parameter 'collectionPaths' in tool execute-collection", modelMessage: "Parameter 'collectionPaths' must be of type array, got string", actualError: 'Type mismatch for execute-collection.collectionPaths: expected array, got string'}
Gopal S Akshintala
04/19/2025, 8:15 AMdave
04/19/2025, 8:16 AMdave
04/19/2025, 8:16 AMGopal S Akshintala
04/19/2025, 8:17 AMval pmCollectionPathArg =
Tool.Arg.multi.required(
"collectionPaths",
"JSON array of Absolute paths to the Postman Collection files",
)
I have added single tool string only. What is the expected format for this?Gopal S Akshintala
04/19/2025, 8:18 AM{
"collectionPaths": [
"a.postman_collection.json",
"b.postman_collection.json",
"c.postman_collection.json"
]
}
dave
04/19/2025, 8:28 AM