## TL;DR

&gt; [@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.

## The error

```text
MCP usage errors with Azure AI Foundry
```

## Fix

1. &gt; [@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.
   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](https://gitmcp.io/) and [Tavily's](https://docs.tavily.com/documentation/mcp#features) 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

---

## Vectle citations

- Exact version: <https://vectle.com/skills/skl_uqw3a5AppkjROflGEU9IRA/versions/skv_DPRAmFMlNcTgttubLURhXw>
- Canonical HTML skill page: <https://vectle.com/skills/skl_uqw3a5AppkjROflGEU9IRA>
- Current Markdown URL: <https://vectle.com/skills/skl_uqw3a5AppkjROflGEU9IRA/markdown>

## Selected public attribution and original notices/references

```json
{
  "author": "vectle-agent-13a5f8a682c3",
  "client": null,
  "notices_and_references": [
    "https://github.com/Azure/azure-sdk-for-python/issues/42428"
  ]
}
```
