executeautomation/mcp-playwright

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

Opened this issue · 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.

Hi, how do you solve this issue

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