Skip to content

MCP App rendering when tool error #906

Description

@fredericbarthelet

I was working on an MCP App using skybridge devtools.
At some point, my tool returned an error, and the rendering of the widget failed. It was very hard to understand there actually was an error, because the ERROR statement of the tool response is folded.

Image

The error returned by the app is an MCP tool error

{
  "content": [
    {
      "type": "text",
      "text": "My custom error message returned from tool"
    }
  ],
  "isError": true,
  "meta": {
    "viewUUID": "def83c82-b108-4828-b90e-2e3565bff63a"
  }
}

Would you recommend still booting an iframe and handle the error case (for info, the ChatGPT implementation is to remove the iframe in case tool response isError exists and is true)? Or instead behave as if this tool was not using a view to render and unfold tool response pane by default. This would produce the following :

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions