Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Copilot Studio - Model Context Protocol
Answered

MCP Custom Connector Error from Example

(2) ShareShare
ReportReport
Posted on by 5
I am trying Pujarini Mohaptra's great post about an end-to-end scenario. I am able to get the server deployed and working in Azure per the instructions. I am able to test the SSE endpoint in a browser and get a session ID. However, when I create the custom connector and test it I get the following error: Property "" type mismatch, Expected: "object", Actual: "string".
 
 
Has anyone else run into this? 
 
Thanks!
Andrew
  • Verified answer
    pmohapatra-msft Profile Picture
    Microsoft Employee on at
    MCP Custom Connector Error from Example
    Hi @Andrew I've added a Troubleshooting section that might be helpful.
    Feel free to check it out here: https://github.com/biswapm/calculator-sse/blob/main/README.md#️-troubleshooting. From the screenshot, it looks like the code may not have deployed correctly as an SSE endpoint.
     

    Troubleshooting

    How to Check if Your SSE Server is Running Properly

    Follow these steps to verify that your SSE (Server-Sent Events) server is functioning correctly:


    Step 1: Browse the SSE Endpoint

    • Open your browser and navigate to:

      • http://localhost:3000/sse (if running locally), or
      • Your deployed Azure URL.
    • Open Developer Tools  Network tab.

    • Look for an EventStream connection.

    • Under the Event section, you should see:

      • Endpoint: SSE endpoint
      • Data: Your Full URI endpoint

    SSE Browser Network Trace


    Step 2: Test SSE Endpoint via Postman

    1. Copy the Full URI (from the EventStream data).
    2. Use Postman to send a POST request to that URI.

    Example URL:

    http://calculatormcp-dummyurl.azurewebsites.net/mcpfy/v1/calculatordemo?sessionId=620c84e1-81e2-484d-8737-a7fbc93165b1
    
     

    Example Request Payload:

    {
      "jsonrpc": "2.0",
      "id": "2",
      "method": "tools/call",
      "params": {
        "name": "calculate-bmi",
        "arguments": {
          "weightKg": 180,
          "heightM": 1.8
        }
      }
    }
     

    If successful, you'll receive a response with a "message" confirming that the server is working correctly.


    Sample Screenshots

    Browser Network Event Trace:

    Event Trace

    Postman Response:

    Postman Output

    Alternatively, you can use MCP Inspector to test, https://github.com/modelcontextprotocol/inspector

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,645 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,997 Most Valuable Professional

Leaderboard

Featured topics