"New Foundry" Portal adding a Custom MCP Remote Server. I get an error stating type "custom_MCP" is invalid, that only "mcp" is valid. #261
Replies: 1 comment
-
|
Hi, The portal is incorrectly injecting an extra The New Foundry Portal UI is generating an invalid agent definition: tools:
- type: custom_MCP # invalid
- type: mcp # validThe backend schema only accepts: type: mcpThe portal should not be adding
Desired Outcome tools:
- type: mcp
server_label: MCP_Agent
server_url: https://XXXXXXXXX.azure-api.net/v1/directive
allowed_tools: [...]This is the correct and expected structure. Current Workaround (Validated)using Python to push the MCP tool configuration is currently the only reliable method. Python or direct REST API calls correctly produce: - type: mcp…without the invalid
Recommended Path Forward (Until Fix Arrives)Continue using Python or REST to define MCP toolsThis ensures the agent definition is valid. Avoid editing MCP tool definitions in the PortalAny edit triggers the portal to re‑serialize the definition and re‑insert the invalid ##Keep your BICEP deployment as-is ##Clean, Valid MCP Agent Definition (No custom_MCP ) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Technical Feedback
Describe the precise feedback.
I am using the "New Foundry" Portal and adding a Custom MCP Remote Server. I get an error stating type "custom_MCP" is invalid, that only "mcp" is valid. It appears the Foundry Portal is creating an extra "Type" in the agent definition:
metadata:
description: ""
modified_at: "1765337294"
object: agent.version
id: Agent-for-Project1:7
name: Agent-for-Project1
version: "7"
description: ""
created_at: 1765337294
definition:
kind: prompt
model: gpt-4o
instructions: You are a helpful agent used to load files into the system.
tools:
- type: custom_MCP
- type: mcp
server_label: MCP_Agent
server_url: https://XXXXXXXXX.azure-api.net/v1/directive
allowed_tools:
Is this a known issue? I am using BICEP to deploy the Foundry resource; is there a preview version I need to use or something else I am doing wrong? I am using BYO VNET binding as well as the non-preview latest version of the resource 2025-09-01.
Desired Outcome
Describe the desired outcome.
The New Foundry Tool connection should be properly adding the Custom MCP Server for use by the Agents.
Current Workaround
Describe the current workaround.
Looking into using Python to push in the configuration for now
Beta Was this translation helpful? Give feedback.
All reactions