web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Copilot Studio / MCP Call Error - "Acce...
Copilot Studio
Suggested Answer

MCP Call Error - "Accept" header is empty

(0) ShareShare
ReportReport
Posted on by
Hey guys. I'm using a customer MCP connector in my agent flow but I'm getting an error like "Error Message: The connector 'mcp' returned an HTTP error with code 400. Error Code: ConnectorRequestFailure". Looking into my MCP logs I notice that the 400 error is causing because for some reason the "accept" header is not being sent in the request: "{"jsonrpc":"2.0","error":{"code":-32600,"message":"Client MUST accept either application/json, text/event-stream or both mediaTypes"}}". I've included that "accept" parameter in the step where the MCP is called: 
 
 
Now, this issue occurs with the first call of my MCP in the flow only. After that, the following request and executions in my flow are working fine :( . Does anyone get the same issue? If so, what did you do to fix it? I really appreciate any help on this topic.
 
Thanks and happy day guys. 
 
I have the same question (0)
  • Suggested answer
    Beyond The Platforms Profile Picture
    221 on at
    Hi there, 

    This usually happens because the first MCP request doesn’t include the Accept header, even if you added it in the step.

     

    With MCP (Streamable HTTP), the client must send:

    Accept: application/json, text/event-stream

     

    Putting it in the flow step is often not enough — you need to define it in the custom connector (OpenAPI) or enforce it with a Set HTTP Header policy.

     

    The reason it only fails on the first call is that the initial request is handled differently (handshake), and headers from the step aren’t applied yet.

     

    Hope this helps!
    Paolo


    Did this solve your issue? → Accept as Solution
    👍 Partially helpful? → Click "Yes" on "Was this reply helpful?" or drop a Like!


    Want more tips on Power Platform & AI? Follow me here:

    🔗 LinkedIn: https://www.linkedin.com/in/paoloasnaghi/
    ▶️ YouTube: https://www.youtube.com/@BeyondThePlatforms
    📸 Instagram: https://www.instagram.com/beyond_the_platforms/
    🌐 Website: https://www.beyondtheplatforms.com/


     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Copilot Studio

#1
Vish WR Profile Picture

Vish WR 238

#1
Valantis Profile Picture

Valantis 238

#3
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 212 Super User 2026 Season 1

Last 30 days Overall leaderboard