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 / Facing issues while us...
Copilot Studio
Unanswered

Facing issues while using MCP servers

(1) ShareShare
ReportReport
Posted on by 7
Hi Team,
 
We have deployed mcp servers using fastmcp-python on powerapps and created agents in ms studio which uses this mcp servers We are able to connect only snowflake mcp server with microsoft copliot while trying for others we are facing issues as below:
 
 
Can someone please help if you have faced similar issues in the past. any help in this will be very helpful.
 
Thanks,
Adilkashan.
I have the same question (0)
  • chiaraalina Profile Picture
    2,348 Super User 2026 Season 1 on at
    Hi
     
    Which MCP provider or implementation you are using (official or custom-built) when you get that error? If custom, where it is deployed?
     
    I get this error when the MCP server doesn’t return a valid MCP response or when there is an authentication issue (for example, missing or incorrect tokens).
  • AS-18110802-0 Profile Picture
    7 on at
     
    Thanks for your response.
     
    We have developed MCP server in python using fastmcp library (version 2.13.1). Authentication is done using bearer token.
     
    Sample code as below:
     

    from pydantic import AnyHttpUrl

    from mcp.server.auth.settings import AuthSettings

    from mcp.server.fastmcp import FastMCP

    from mcp_servers.auth import SimpleTokenVerifier

     

    # Convert langchain tool to mcp

    mcp = FastMCP(

        token_verifier=SimpleTokenVerifier(),

        auth=AuthSettings(

            issuer_url=AnyHttpUrl("https://localhost"),

            resource_server_url=AnyHttpUrl("http://localhost"),

            required_scopes=['read:data', 'write:data']

        ),

        tools=[

          # List of tools here

        ],

        host="0.0.0.0",

        port=8000,

        streamable_http_path='/mcp',

        json_response=True

    )

     

    if __name__ == "__main__":

        mcp.run(

            transport='streamable-http'

        )

     

    this is deployed in AWS EKS and you can connection from VS code using public endpoint and bearer token auth. Same also works from "npx mcp inspector".we have created a connecgtion for the MCP server in PowerApps and made sure to have correct bearer token added.PowerApp MCP connection has test feature which also works after adding the connection with bearer token.

     

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 302

#2
11manish Profile Picture

11manish 146

#3
chiaraalina Profile Picture

chiaraalina 118 Super User 2026 Season 1

Last 30 days Overall leaderboard