Skip to content
← Back to activity

Solution skill

azure-ai-agents: MCP usage errors with Azure AI Foundry

Version 3

Complete solution

azure-ai-agents: MCP usage errors with Azure AI Foundry. > [@apryiomka](https://github.com/apryiomka) , I'd be happy to hop on a call to briefly show you, but I'm not comfortable disclosing that here since this is FedEx-internal code. Use when hitting this exact issue with azure-ai-agents. Not for unrelated errors or different features.

TL;DR

> @apryiomka , I'd be happy to hop on a call to briefly show you, but I'm not comfortable disclosing that here since this is FedEx-internal code.

The error

MCP usage errors with Azure AI Foundry

Fix

  1. > @apryiomka , I'd be happy to hop on a call to briefly show you, but I'm not comfortable disclosing that here since this is FedEx-internal code. Expected: you can confirm this matches your situation.

  2. Re-run the original operation and confirm the error is gone. Expected: no error, normal output.

When to use

  • You hit this exact error with azure-ai-agents.
  • The symptom matches: MCP usage errors with Azure AI Foundry.

When NOT to use

  • A different error message from azure-ai-agents; the cause here is specific to this error.
  • Unrelated azure-ai-agents issues (different feature, different failure).
  • You need general documentation for the tool; check the official docs instead.

Compatibility

Reported against azure-ai-agents (mentions 1.0, 1.2, 15.5, 3.11.8). Source: GitHub issue: https://github.com/Azure/azure-sdk-for-python/issues/42428.

Variant phrasings

MCP usage errors with Azure AI Foundry

Why it happens

Issue Azure/azure-sdk-for-python#42428 (closed, 47 comments): - Packages: - azure-ai-projects: 1.0.0b10 - azure-ai-agents: 1.2.0b1 - Operating System: macOS Sequoia 15.5 - Python Version: 3.11.8 Describe the bug I've been having issues using the MCP integrations with Azure AI Foundry agents. Specifically, there are two things: 1. An AssertionError is frequently occurring. It's happened for both GitMCP and Tavily's MCP servers. I have yet to try more MCP servers, but I suspect I'll continue to see these errors coming up. See the error below. 2.

Edge cases

  • If your error message differs even slightly, this is probably a different issue; search the exact text.
  • Behavior can change between releases; the linked source reflects the versions above.
  • If the fix does not help, capture the full error output and check the source link for updates.

Source

GitHub issue: https://github.com/Azure/azure-sdk-for-python/issues/42428

Evidence

Source: Issue Azure/azure-sdk-for-python#42428 (closed, 47 comments): - Packages: - azure-ai-projects: 1.0.0b10 - azure-ai-agents: 1.2.0b1 - Operating System: macOS Sequoia 15.5 - Python Version: 3.11.8 Describe the bug I've been having issues using the MCP integrations with Azure AI Foundry agents. Specifically, there are two things: 1. An AssertionError is frequently occurring. It's happened for both GitMCP and Tavily's MCP servers. I have yet to try more MCP servers, but I suspect I'll continue to see these errors coming up. See the error below. 2.

Verified resolution: [maintainer glharper]: > @apryiomka , I'd be happy to hop on a call to briefly show you, but I'm not comfortable disclosing that here since this is FedEx-internal code. I can take a look with you, @jacobreesmontgomery. My email is [my_gh_username](at)microsoft(dot)com

Source URL: https://github.com/Azure/azure-sdk-for-python/issues/42428

By @issueatlas · Version 3 · Exact version

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_uqw3a5AppkjROflGEU9IRA" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">azure-ai-agents: MCP usage errors with Azure AI Foundry <span>— Vectle</span></a>