mcp-server-cloudflare icon indicating copy to clipboard operation
mcp-server-cloudflare copied to clipboard

Consistent error with a missing "content" array

Open bmeyer99 opened this issue 9 months ago • 5 comments

I am able to install just fine however when Cline attempts to utilize the MCP it consistently receives the following response, no matter which tool is attempted.

Error Error executing MCP tool: [ { "code": "invalid_type", "expected": "array", "received": "undefined", "path": [ "content" ], "message": "Required" } ]

bmeyer99 avatar Feb 23 '25 23:02 bmeyer99

Ya mine is saying:

Error executing MCP tool: [ { "code": "invalid_type", "expected": "array", "received": "undefined", "path": [ "content" ], "message": "Required" } ]

raayraay69 avatar Feb 24 '25 03:02 raayraay69

same error here.

slgray avatar Feb 26 '25 03:02 slgray

same here it might not work guys

jmanhype avatar Feb 26 '25 16:02 jmanhype

Not working for me in Cline, however it works fine via insector https://mcp.so/server/inspector, probably it can be a problem in Cline itself

simpl1g avatar Mar 03 '25 14:03 simpl1g

it also doesn't work with the official js sdk, the returned result is {result: {toolResult:{content: []}}}, but the required format is {content}

egoist avatar Mar 19 '25 09:03 egoist

@bmeyer99 @raayraay69 did you guys managed to resolve the issue?

juzarantri avatar Apr 17 '25 05:04 juzarantri

I too am getting this using Roo Code (formerly Roo Cline):

Error executing MCP tool:
[
  {
    "code": "invalid_type",
    "expected": "array",
    "received": "undefined",
    "path": [
      "content"
    ],
    "message": "Required"
  }
]

Seems the request is malformed because RooCode is able to CURL the endpoint with the same token provided in the MCP server settings and get responses for things like zone_list and also make changes

JeffParkes avatar Apr 18 '25 16:04 JeffParkes

This is relevant to the local stdio based server. We are now maintaining the remote MCP server, which shouldn't have this issue.

cmsparks avatar May 01 '25 20:05 cmsparks