mcp-playwright icon indicating copy to clipboard operation
mcp-playwright copied to clipboard

Not able to perform Put and Patch call while performing API testing using MCP Server.

Open Wish-Infinite opened this issue 6 months ago • 2 comments

Steps to Reproduce - 1- Provide prompt to perform Update API Call (More details are in this link - https://fakerestapi.azurewebsites.net/index.html ) 2 - Provide valid body with put call - { "id": 1, "title": "string", "dueDate": "2025-08-18T20:48:58.627Z", "completed": true } 3- Send the Prompt in Copilot or Claude or any other AI Assistant.

Issue - In Postman call is successful and it is giving response but when we are using MCP Server it is not able to perform API Put and Patch API calls. , I have tried same with other website API calls also.

Adding Claude / Copilot response - The PUT request returned a 415 Unsupported Media Type error. This suggests the API requires specific headers that aren't being set by the playwright_put function.

Unfortunately, the current Playwright EA MCP Server tools don't provide a way to send a PUT request with custom headers like the accept and Content-Type headers specified in your curl command. The playwright_put function only accepts a URL and body value, but doesn't have a headers parameter like the playwright_post function does.

Wish-Infinite avatar Aug 18 '25 20:08 Wish-Infinite

Hi, how do you solve this issue

longkhanh-fam avatar Oct 22 '25 04:10 longkhanh-fam

@longkhanh-fam I have not seen any update on the issue , @executeautomation Can you please have a look.

Wish-Infinite avatar Oct 23 '25 14:10 Wish-Infinite

The issue is resolved, please get the latest version https://executeautomation.github.io/mcp-playwright/docs/release#version-1011-december-2025

executeautomation avatar Dec 11 '25 08:12 executeautomation