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 / Sorry, something went...
Copilot Studio
Suggested Answer

Sorry, something went wrong. Error code: SystemError.

(1) ShareShare
ReportReport
Posted on by 2
 i have been trying to connect custom build MCP-server which is hosted in our KAAS platform.
it is very simple tool:

Mcp-server:
from mcp.server.fastmcp import FastMCP
from dotenv import load_dotenv
#from fastapi.middleware.cors import CORSMiddleware
 
load_dotenv("../.env")
 
# Create an MCP server
# === Your MCP Server ===
mcp = FastMCP(
    name="Calculator",
    host="0.0.0.0",
    port=8050,
)
 
# Add a simple calculator tool
@mcp.tool()
async def add(a: int, b: int) -> int:
    # auth_header=request.headers.get('authorization')
    # if not auth_header:
    #     raise HTTPException(status_code=401, detail="Missing Authorization header")
    # token = auth_header.replace("Bearer ", "")
    # print("Received token:", token)
    """Add two numbers together"""
    return a + b
 
# Run the server
if __name__ == "__main__":
    print("Running server with Stramble-http transport")
    mcp.run(transport="streamable-http")


i am trying to connect this server from copilot studio and i am able to create/connect to connector from agent using swagger.yml

swagger: '2.0'
info:
  title: Mcp-add-5
  description: >-
    MCP Test Specification, YAML for streamable MCP support Copilot Studio which
    adds two numbers
  version: 1.0.0
host: <host name>
basePath: /
schemes:
  - https
paths:
  /mcp/:
    post:
      summary: Mcp-add-5
      x-ms-agentic-protocol: mcp-streamable-1.0
      operationId: InvokeMCP
      responses:
        '200':
          description: Success
securityDefinitions: {}

but after trying many times tools are not loading in copilot studio:

Not sure where am i making mistake ..same mcp-server works fine when i access from github-copilot and with fastapi-client

I have the same question (0)
  • Suggested answer
    Romain The Low-Code Bearded Bear Profile Picture
    2,564 Super User 2026 Season 1 on at
     
    did you try even if not tool ? sometime it's just a graphic bug 
     
    When my MCP refuse to work i try to modify the one above with my tool and it work, so it prove me the error is often in the authentification method, or url or post :)
     
    hope it helped :)

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 619

#2
chiaraalina Profile Picture

chiaraalina 163 Super User 2026 Season 1

#3
Haque Profile Picture

Haque 147

Last 30 days Overall leaderboard