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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Copilot Studio

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 169 Super User 2025 Season 1

#2
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 150

#3
sandeep_angara Profile Picture

sandeep_angara 75