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 / Configuring connection...
Copilot Studio
Suggested Answer

Configuring connection to Github MCP server

(0) ShareShare
ReportReport
Posted on by
Environment:
  • Copilot Studio / Power Platform
  • GitHub MCP Server (remote endpoint: https://api.githubcopilot.com/mcp/)
  • Authentication: Personal Access Token (PAT)
Problem:
  • When configuring the GitHub MCP server in Copilot Studio using a PAT, I receive the following error:
    • Content-Type must be 'application/json'\n
       
Screenshot 2026-04-20 at 20.41.45.png
I have the same question (0)
  • Suggested answer
    Sunil Kumar Pashikanti Profile Picture
    1,697 Moderator on at
     
    You can’t fix this with headers or a PAT.
     
    Why it fails:
    Copilot Studio calls MCP tools using a stateless HTTP POST and expects a single JSON response.
    GitHub’s hosted MCP endpoint is designed for IDEs (VS Code, Cursor) and requires a stateful Server‑Sent Events (SSE) stream.
    When Copilot Studio sends a one‑off POST, GitHub rejects the transport model, and the gateway surfaces a misleading
    Content-Type must be 'application/json' error.
     
    What works instead:
    Add an adapter (bridge)  e.g., an Azure Function that:
    • Accepts the stateless POST from Copilot Studio
    • Manages the SSE session with GitHub MCP
    • Flattens the stream into a single JSON response
    Or skip MCP, use the native GitHub REST or GraphQL APIs (built‑in or custom connector), which are fully compatible with Copilot Studio.
     
    In short: this is a transport mismatch (stateless REST vs stateful SSE), not a configuration issue.
     
     
    ✅ If this answer helped resolve your issue, please mark it as Accepted so it can help others with the same problem.
    👍 Feel free to Like the post if you found it useful.
     

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 March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Copilot Studio

#1
Valantis Profile Picture

Valantis 601

#2
chiaraalina Profile Picture

chiaraalina 137 Super User 2026 Season 1

#3
Haque Profile Picture

Haque 133

Last 30 days Overall leaderboard