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
    2,318 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.
     
  • Suggested answer
    Ashlesha-MSFT Profile Picture
    Microsoft Employee on at
    Hi,
    Adding to the explanation above — this is indeed a transport mismatch and not a configuration issue, so adjusting headers or the PAT won't resolve it.
    Just to summarize the two recommended paths:
    • Azure Function bridge — if you specifically need GitHub MCP tools in Copilot Studio, this is the right approach. The function acts as a middleware that handles the SSE session with GitHub and returns a flat JSON response to Copilot Studio.
    • GitHub REST/GraphQL API via custom connector — if you don't strictly need MCP, this is the simpler and more stable option, and is natively compatible with Copilot Studio.
    We'd recommend starting with the REST/GraphQL connector approach if your use case allows it, as it avoids the complexity of managing an SSE bridge layer.

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Copilot Studio

#1
Valantis Profile Picture

Valantis 277

#2
11manish Profile Picture

11manish 206

#3
sannavajjala87 Profile Picture

sannavajjala87 156 Super User 2026 Season 1

Last 30 days Overall leaderboard