Describe the bug
teamsApp/extendToM365 rejects an otherwise valid Remote MCP app after upgrading the C# MCP SDK from ModelContextProtocol 2.0.0-preview.2 to 2.0.0-rc.1.
The Package Service returns HTTP 400 with a nested validator HTTP 500 even though:
server/discover returns HTTP 200.
tools/list returns HTTP 200.
- All 46 advertised tools have object
inputSchema values.
- Local app package validation and
teamsApp/update succeed.
The failure is caused by the validator requiring an initialize-handshake protocol version in server/discover.supportedVersions. In 2.0.0-rc.1, discovery intentionally advertises only versions available through per-request metadata, so the response contains only 2026-07-28.
To Reproduce
Steps to reproduce the behavior:
- Host a Remote MCP server over public HTTPS using
ModelContextProtocol 2.0.0-rc.1.
- Configure a
RemoteMCPServer runtime with dynamic discovery.
- Confirm
server/discover.supportedVersions is ["2026-07-28"].
- Run
pnpm exec atk provision --env local.
- Observe
teamsApp/create, teamsApp/zipAppPackage, teamsApp/validateAppPackage, and teamsApp/update succeed.
- Observe
teamsApp/extendToM365 fail with:
BadRequest: Manifest package validations failed. Errors:
Internal Error - Failed to make a successful HTTP request.
Exception message: Response status code does not indicate success:
500 (Internal Server Error).
The behavior was isolated as follows:
- The preview.2 endpoint advertised
["2024-11-05", "2025-03-26", "2025-06-18", "2025-11-25", "2026-07-28"]; provisioning succeeded.
- The rc.1 endpoint advertised only
["2026-07-28"]; provisioning failed consistently.
- The tool catalogs were otherwise equivalent apart from generated widget resource hashes.
- Adding only
"2025-11-25" alongside "2026-07-28" made extendToM365 succeed.
- This was reproduced both with a response proxy and with an outgoing server response filter.
Expected behavior
Package Service should accept the rc.1 metadata-only discovery semantics and successfully extend the app when server/discover.supportedVersions contains only "2026-07-28".
Screenshots
N/A
VS Code Extension Information (please complete the following information):
- OS: macOS
- Version: N/A; reproduced with the CLI
CLI Information (please complete the following information):
- OS: macOS
- Version:
1.1.12
Additional context
Related issue #15810 had the same opaque extendToM365 failure, but its root cause was a missing inputSchema. That is not the cause here: every advertised tool has an object inputSchema.
Example Package Service request IDs:
9f359d20-5c97-fba0-8abf-c2702b2e7b14
b0ec1bfa-2e13-c854-dfd7-da329e5aa0ad
743bd491-5ce9-0d4e-82e5-d1dabaca315a
The current workaround is to inject "2025-11-25" into the server/discover.supportedVersions response. We would like to remove that compatibility workaround once Package Service accepts the rc.1 behavior.
Describe the bug
teamsApp/extendToM365rejects an otherwise valid Remote MCP app after upgrading the C# MCP SDK fromModelContextProtocol2.0.0-preview.2to2.0.0-rc.1.The Package Service returns HTTP 400 with a nested validator HTTP 500 even though:
server/discoverreturns HTTP 200.tools/listreturns HTTP 200.inputSchemavalues.teamsApp/updatesucceed.The failure is caused by the validator requiring an initialize-handshake protocol version in
server/discover.supportedVersions. In2.0.0-rc.1, discovery intentionally advertises only versions available through per-request metadata, so the response contains only2026-07-28.To Reproduce
Steps to reproduce the behavior:
ModelContextProtocol2.0.0-rc.1.RemoteMCPServerruntime with dynamic discovery.server/discover.supportedVersionsis["2026-07-28"].pnpm exec atk provision --env local.teamsApp/create,teamsApp/zipAppPackage,teamsApp/validateAppPackage, andteamsApp/updatesucceed.teamsApp/extendToM365fail with:The behavior was isolated as follows:
["2024-11-05", "2025-03-26", "2025-06-18", "2025-11-25", "2026-07-28"]; provisioning succeeded.["2026-07-28"]; provisioning failed consistently."2025-11-25"alongside"2026-07-28"madeextendToM365succeed.Expected behavior
Package Service should accept the rc.1 metadata-only discovery semantics and successfully extend the app when
server/discover.supportedVersionscontains only"2026-07-28".Screenshots
N/A
VS Code Extension Information (please complete the following information):
CLI Information (please complete the following information):
1.1.12Additional context
Related issue #15810 had the same opaque
extendToM365failure, but its root cause was a missinginputSchema. That is not the cause here: every advertised tool has an objectinputSchema.Example Package Service request IDs:
9f359d20-5c97-fba0-8abf-c2702b2e7b14b0ec1bfa-2e13-c854-dfd7-da329e5aa0ad743bd491-5ce9-0d4e-82e5-d1dabaca315aThe current workaround is to inject
"2025-11-25"into theserver/discover.supportedVersionsresponse. We would like to remove that compatibility workaround once Package Service accepts the rc.1 behavior.