Skip to content

wp_upload_media sends invalid JSON to the WordPress instance #89

@franck777

Description

@franck777
✔  wp_upload_media (wordpress MCP Server) {"file_path":"/Users/xxx/Programming/xxx.fr/xxx…  │
 │                                                                                                                         │
 │    ```json                                                                                                              │
 │    [                                                                                                                    │
 │      {                                                                                                                  │
 │        "functionResponse": {                                                                                            │
 │          "name": "wp_upload_media",                                                                                     │
 │          "response": {                                                                                                  │
 │            "error": {                                                                                                   │
 │              "content": [                                                                                               │
 │                {                                                                                                        │
 │                  "type": "text",                                                                                        │
 │                  "text": "Error: Failed to upload media: Request failed after 3 attempts: Contenu JSON                  │
 │    transmis non valide."                                                                                                │
 │                }                                                                                                        │
 │              ],                                                                                                         │
 │              "isError": true                                                                                            │
 │            }                                                                                                            │
 │          }                                                                                                              │
 │        }                                                                                                                │
 │      }                                                                                                                  │
 │    ]                                                                                                                    │
 │    ```          

i was also able to reproduce issue by using the tool manually using mcptools and providing the file_path, alt_text and title, so this is not the model calling the tool improperly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions