Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Copilot Studio - Model Context Protocol
Answered

Error in MCP custom connector

(4) ShareShare
ReportReport
Posted on by 11
Hi ,
I wanted to know what exactly can be causing this error on the custom power connector for MCP in my copilot topic. The agent works as expected while using in copilot studio. This is the error i get when publishing.​
    "diagnosticResult": [
      {
        "$kind": "ElementValidationError",
        "errorCode": "ExternalAgentTaskActionDoesNotAllowRedirect",
        "errorMessage": "Element is invalid: ExternalAgentTaskActionDoesNotAllowRedirect"
      }
 
For more context, my MCP server is hosted as a web app which my azure APIM makes a request to. My power connector is only for the azure APIM url.
This error has started appearing after the May 29th MCP general availability update. What i've tried so far is:
  • removed custom connector from copilot studio and re add them.
  • Created a new custom connector in power platform, add that to a new topic in agent.
  • simply remove action from a topic and add it back again.
I'm not sure where the redirect is coming from . 

My custom power connector swagger.
swagger: '2.0'
info:
  title: CatalystMCPRUNN
  description: MCP server for catalysts.
  version: 1.0.0
host: my-custom-mcp.azure-api.net
basePath: /
schemes:
  - https
definitions:
  QueryResponse:
    type: object
    properties:
      jsonrpc:
        type: string
      id:
        type: string
      method:
        type: string
      params:
        type: object
      result:
        type: object
      error:
        type: object
paths:
  /runn/sse:
    get:
      summary: MCP Server Actions
      parameters:
        - in: query
          name: sessionId
          type: string
          required: false
      produces:
        - application/json
      responses:
        '200':
          description: Immediate Response
          schema:
            $ref: '#/definitions/QueryResponse'
        '201':
          description: Created and will follow callback
      operationId: InvokeMCP
      tags:
        - Agentic
        - McpSse
securityDefinitions: {}
security: []
 
  • Verified answer
    KJ-04060340-0 Profile Picture
    11 on at
    Error in MCP custom connector
    Putting in the fix to this problem here. 

    Calling MCP as an action inside a topic in copilot was part of the older documentation. After the June update you don't need to explicitly add MCP tools to topic and just add them to the agent. After removing all MCP actions from my agent topics all my errors are gone and tool calling is working as expected.

    Just make sure your MCP are appearing in the "tools" tab, there is no further need to add any action in topic.
  • Romain The Low-Code Bearded Bear Profile Picture
    356 on at
    Error in MCP custom connector
    to folow and because i still don't have the new MCP tools in my tenant ...please MS release it in french tenant ^^ none of my coworker have it

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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May 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
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 132

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 81 Super User 2025 Season 1

#3
Pablo Roldan Profile Picture

Pablo Roldan 61