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 / Error in MCP custom co...
Copilot Studio
Answered

Error in MCP custom connector

(4) ShareShare
ReportReport
Posted on by 20
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: []
 
I have the same question (0)
  • Romain The Low-Code Bearded Bear Profile Picture
    2,564 Super User 2026 Season 1 on at
    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
  • Verified answer
    KJ-04060340-0 Profile Picture
    20 on at
    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.
  • 22071752-0 Profile Picture
    2 on at
    have you tried with the new streamable http, since sse will be deprecated? 
     
    i am getting the typical generic error: "Sorry, something went wrong. Error code: SystemError. Conversation ID: xxxx"

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