Skip to content

Error on load resources #113

@salvoyith

Description

@salvoyith

Hi there,
I'm trying to add a resource like this in my MCP server.

Image

But i got an error both Claude and with MCP Inspector when tried to get this resource

Image

Request

{
  "method": "resources/read",
  "params": {
    "uri": "wordpress://site/config"
}  
}

Response

{
  "error": "[\n  {\n    \"expected\": \"array\",\n    \"code\": \"invalid_type\",\n    \"path\": [\n      \"contents\"\n    ],\n    \"message\": \"Invalid input\"\n  }\n]"
}

How can solve the problem ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions