Skip to content

logic app standard BYO MCP is failing with The connection for MCP tool 'mcpclient-2' is missing. #9006

@Xiaoyu-Huang

Description

@Xiaoyu-Huang

Severity

P1 - Critical (Blocking production)

Describe the Bug with repro steps

BYO MCP in logic app should work with proper authentication. now it is failing with below error. even I tried to create new connection, it is still failing with same
{
"error": {
"code": "InvalidActionToolMcpConnection",
"message": "The connection for MCP tool 'mcpclient-2' is missing."
}
}

I switched to old designer, and it works

What type of Logic App Is this happening in?

Standard (Portal)

Are you experiencing a regression?

No response

Which operating system are you using?

Windows

Did you refer to the TSG before filing this issue? https://aka.ms/lauxtsg

Yes

Workflow JSON

{
    "definition": {
        "$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#",
        "contentVersion": "1.0.0.0",
        "actions": {
            "Agent": {
                "type": "Agent",
                "inputs": {
                    "parameters": {
                        "deploymentId": "gpt-4o-mini",
                        "messages": [
                            {
                                "role": "system",
                                "content": "you are expert of IcM ecosystem. You could leverage icm mcp server to get to know icm knowledge"
                            },
                            {
                                "role": "user",
                                "content": "what is the team public id for icm team Incident Automation DRI"
                            }
                        ],
                        "agentModelType": "AzureOpenAI",
                        "agentModelSettings": {
                            "agentHistoryReductionSettings": {
                                "agentHistoryReductionType": "maximumTokenCountReduction",
                                "maximumTokenCount": 128000
                            },
                            "deploymentModelProperties": {
                                "name": "gpt-4.1",
                                "format": "OpenAI",
                                "version": "2025-06-10"
                            }
                        }
                    },
                    "modelConfigurations": {
                        "model1": {
                            "referenceName": "agent"
                        }
                    }
                },
                "tools": {
                    "Add_new_MCP_server": {
                        "type": "McpClientTool",
                        "kind": "Builtin",
                        "inputs": {
                            "parameters": {
                                "allowedTools": [
                                    "get_teams_by_public_id",
                                    "get_teams_by_name",
                                    "get_team_by_id"
                                ]
                            },
                            "connectionReference": {
                                "connectionName": "mcpclient-2"
                            }
                        }
                    }
                },
                "runAfter": {},
                "limit": {
                    "count": 100
                }
            }
        },
        "outputs": {},
        "triggers": {
            "When_an_HTTP_request_is_received": {
                "type": "Request",
                "kind": "Http"
            }
        }
    },
    "kind": "stateful"
}

Screenshots or Videos

No response

Environment

Browser: edge

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    AgenticThis effects workflows using agentic loopSerializationpriority:highCritical issues needing immediate attention

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions