Skip to content

MediaUrl parameter broken when using TwilioApiV2010--CreateMessage #37

@rodrigotavio91

Description

@rodrigotavio91

Hey, thanks for this great MCP support for Twilio.

I've been testing sending WhatsApp messages through Claude desktop, and it works great, but I noticed the MediaUrl parameter doesn't work, so I can't send images. I always get the "21620: Invalid media URL(s)" error.

After debugging locally, I noticed the MediaUrl parameter is sending as a raw JSON array in the request body, like MediaUrl="[https://demo.twilio.com/owl.png]", instead of using the urlencoded version, hence it's considered an invalid media URL.

This regression happened after this commit: 768420e. When I revert it the images are sent.

Is the case of adding the TwilioApiV2010 URL to the arrayRepeatUrls too?

Thank you!

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