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

Notifications

Announcements

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,122 Super User 2025 Season 2 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Copilot Studio

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 250 Super User 2025 Season 2

#2
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 197 Super User 2025 Season 2

#3
S-Venkadesh Profile Picture

S-Venkadesh 103 Moderator

Last 30 days Overall leaderboard