Azure / Azure/MCP

Version Header in APIM is unable to understood by MCP.

Open
#101 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
28
Forks
75
Avg merge
9d 2h
Merged PRs (30d)
3

Description

Issue: When we have multiple versions of single api, Eg: Contoso API - v1, v2, v3. These are having base url same. Only difference is the version header we pass.
Request Header -
APIM-API-Version: v1 - calls the Contoso API-v1.
APIM-API-Version: v2 - calls the Contoso API-v2.
similarly v3 calls v3.
If user doesn't pass this header when calling this api, it will get 404 error. expected behavior from APIM perspective.

When an MCP server is made out of Contoso API-v2. The custom header we tried pass at mcp configuration. something like below -
```
"my-mcp-server-contoso-v2": {
"url": "https://contoso-apim-uat.azure-api.net/contoso-v2/mcp",
"type": "http",
"headers": {
"APIM-Api-Version":"v2",
"Ocp-Apim-Subscription-Key": "1***********2"
}
}
```

but it throws 404 error when trying to get response for a prompt.. Can anyone help with this?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.