Commit graph csharp-sdk/tests/ModelContextProtocol.Tests
Author SHA1 Message Date
Scott Holodak
c40ee044fd
fix(client): skip the SSE fallback when the server/discover probe is rejected with 400/404 (#1855)
Some checks failed
Build and Test / build (Debug, macos-latest) (push) Has been cancelled
Build and Test / build (Debug, ubuntu-latest) (push) Has been cancelled
Build and Test / build (Debug, windows-latest) (push) Has been cancelled
Build and Test / build (Release, macos-latest) (push) Has been cancelled
Build and Test / build (Release, ubuntu-latest) (push) Has been cancelled
Build and Test / build (Release, windows-latest) (push) Has been cancelled
CodeQL / Analyze (actions) (push) Has been cancelled
CodeQL / Analyze (csharp) (push) Has been cancelled
Build and Test / publish-coverage (push) Has been cancelled
2026-09-18 17:07:30 -07:00
Stephen Halter
324ccd83c3
Relax legacy request metadata validation (#1852)
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Tarek Mahmoud Sayed <10833894+tarekgh@users.noreply.github.com>
2026-09-13 16:30:42 -07:00
Pranav Senthilnathan
df11d7da3b
Fix HTTP fallback error handling (#1791) 2026-09-03 16:57:31 -07:00
Recoordinate
bba45c44bf
Fix McpHeaderEncoder.DecodeValue throwing on the degenerate base64 wrapper (#1805) 2026-08-12 23:27:48 -07:00
Luis Rodriguez
24b122afa4
Clarify client handling of embedded binary tool resources (#1762)
Co-authored-by: Luis Rodriguez <25299418+luisangelrod@users.noreply.github.com>
2026-08-04 17:06:51 -07:00
Tarek Mahmoud Sayed
81ae6ec6c7
Add public subscriptions/listen server handler (SEP-2575) (#1775)
Co-authored-by: Tarek Mahmoud Sayed <tarekms@ntdev.microsoft.com>
Copilot-Session: 80653343-5dcb-43cb-89b0-8ac8e572c4f7
2026-08-03 18:31:48 -07:00
Richard Boisvert
79e13b3e2c
Fall back to initialize when server/discover fails at the HTTP layer (#1766) 2026-07-31 12:46:07 -07:00
Pranav Senthilnathan
155f619441
Speed up CLI argument escaping tests (#1773)
Copilot-Session: 323a2062-9493-4be4-a710-f6c2b9e15a49
2026-07-29 14:46:35 -07:00
Pranav Senthilnathan
5c305450cd
Preserve HTTP status codes across target frameworks (#1767)
Copilot-Session: 9a49da98-c8d8-4b90-a6ed-50afe18ac981
2026-07-29 12:35:12 -07:00
Pranav Senthilnathan
f8e9e1d23f
Keep AutoDetect channel open after provisional SSE failure (#1768)
Copilot-Session: c0e71f8e-9302-4c6b-835d-223dec24d37d
2026-07-29 12:31:53 -07:00
Stephen Halter
e8b80f0e6d
Enable additional client conformance scenarios (#1763)
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
2026-07-28 13:39:26 -07:00
Paul Carleton
26f60ab7f4
Align the 2026-07-28 wire with spec PR #3002 and SEP-2575 HTTP statuses (#1752)
Co-authored-by: Stephen Halter <halter73@gmail.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: tarekgh <tarek.mahmoud.sayed@gmail.com>
2026-07-27 16:08:03 -07:00
Tarek Mahmoud Sayed
6787c0cc19
Gate 2026-07-28 result fields on negotiated protocol version (#1721) (#1753)
Co-authored-by: Tarek Mahmoud Sayed <tarekms@ntdev.microsoft.com>
Copilot-Session: 80653343-5dcb-43cb-89b0-8ac8e572c4f7
2026-07-27 12:57:50 -07:00
Pranav Senthilnathan
7838900e8b
Enable complete Tasks extension conformance coverage (#1741)
Copilot-Session: 7c99928c-a943-49f4-9a63-8b04a0e4d18b
2026-07-27 12:45:25 -07:00
xue-cai
ec216b5202
Fix: swallow _receiveTask exceptions in SseClientSessionTransport.CloseAsync (#1432)
Co-authored-by: Xue Cai <xuecai@microsoft.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Jeff Handley <jeffhandley@users.noreply.github.com>
2026-07-26 11:57:27 -07:00
yayayouyou
e03acd1e7c
Add round-trip integration tests for MCP Apps _meta.ui serialization (#1698)
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-authored-by: Jeff Handley <jeffhandley@users.noreply.github.com>
2026-07-26 00:48:33 -07:00
Pranav Senthilnathan
5f5d5eac50
Resolve test server paths deterministically (#1735)
Copilot-Session: ad8afb00-2809-4785-8781-014a90c8abf1
2026-07-25 22:30:22 -07:00
Pranav Senthilnathan
83523b0a42
Add initial task extension conformance coverage (#1734)
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 7c99928c-a943-49f4-9a63-8b04a0e4d18b
2026-07-24 17:16:20 -07:00
Pranav Senthilnathan
f7c61fafdb
Extend server/discover probe timeout in in-memory tests to fix flaky Windows Debug CI hang (#1701) (#1702)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Stephen Halter <halter73@gmail.com>
2026-07-24 16:46:39 -07:00
Pranav Senthilnathan
a5179df39b
Fix HTTP task filter composition (#1722) 2026-07-24 13:33:19 -07:00
Aditya Singh
990bd76b53
Reply with JSON-RPC parse error for over-nested stdio requests (#1629)
Co-authored-by: Tarek Mahmoud Sayed <10833894+tarekgh@users.noreply.github.com>
2026-07-22 15:30:52 -07:00
Mukunda Rao Katta
ba372faece
fix(client): preserve underlying status code in AutoDetect probe (#1530) 2026-07-22 13:31:16 -07:00
Jayaraman Venkatesan
20c464c55b
Add application_type to the Dynamic Client Registration request (#1613) 2026-07-22 10:43:36 -07:00
Tarek Mahmoud Sayed
28806b1b6e
Make auth provider token caches thread-safe (#1595) (#1708)
Co-authored-by: Tarek Mahmoud Sayed <tarekms@ntdev.microsoft.com>
2026-07-22 09:43:14 -07:00
King Star
6af05d0bf2
Add opt-out for Streamable HTTP standalone GET stream (#1699)
Co-authored-by: Jeff Handley <jeffhandley@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-07-14 20:06:47 -04:00
Jeff Handley
2ca96f548b
Extract Tasks into the ModelContextProtocol.Extensions.Tasks extension package (#1693)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Tarek Mahmoud Sayed <tarekms@ntdev.microsoft.com>
2026-07-14 18:53:58 -04:00
King Star
ffc557f920
fix: ignore empty Streamable HTTP JSON responses (#1626) 2026-07-14 11:23:33 -07:00
Pranav Senthilnathan
374e76eecd
Fix missing resultType on complete result responses (#1684)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Tarek Mahmoud Sayed <tarekms@ntdev.microsoft.com>
2026-07-12 18:24:21 -07:00
Stephen Halter
fd38f51e27
Tighten draft protocol negotiation boundaries (#1692)
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Tarek Mahmoud Sayed <tarekms@ntdev.microsoft.com>
2026-07-12 14:30:49 -07:00
Pranav Senthilnathan
a8d374b280
Fix request-scoped draft client capabilities (#1685)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Tarek Mahmoud Sayed <tarekms@ntdev.microsoft.com>
2026-07-12 10:56:10 -07:00
Copilot
84eb6942eb
Add DeferChangedEvents() to McpServerPrimitiveCollection for batched change notifications (#1689)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: jeffhandley <1031940+jeffhandley@users.noreply.github.com>
Co-authored-by: Jeff Handley <jeffhandley@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
2026-07-07 15:15:45 -04:00
Eirik Tsarpalis
5d00eedebb
Fully stabilize now-stable protocol properties (#1686)
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
2026-07-01 22:44:19 +03:00
Tarek Mahmoud Sayed
8e7f28c237
Document caching behavior and warn on non-conformant draft cacheable results (SEP-2549 follow-up) (#1669)
Co-authored-by: Tarek Mahmoud Sayed <tarekms@ntdev.microsoft.com>
2026-06-28 09:55:50 -07:00
Stephen Halter
d6b1615988
Follow-ups to #1610: de-draft 2026-07-28 terminology, renumber error codes, ProtocolVersion floor (#1671) 2026-06-25 14:07:52 -07:00
Pranav Senthilnathan
e7b450efc1
Reduce absolute time dependencies in tests (#1649) 2026-06-24 10:20:09 -07:00
Stephen Halter
6c323e783b
Default draft protocol support: sessionless + handshake-less (SEP-2575 + SEP-2567) (#1610) 2026-06-23 21:24:22 -07:00
Copilot
3368bb7349
Use TimeToLive (TimeSpan?) instead of TtlMs (long?) in public APIs (#1644)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: PranavSenthilnathan <12225508+PranavSenthilnathan@users.noreply.github.com>
Co-authored-by: halter73 <54385+halter73@users.noreply.github.com>
Co-authored-by: Pranav Senthilnathan <pranas@microsoft.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-06-23 09:12:15 -07:00
Tarek Mahmoud Sayed
8ddb3cc36f
Obsolete Roots, Sampling, and Logging surface area per SEP-2577 (#1651)
Co-authored-by: Tarek Mahmoud Sayed <tarekms@ntdev.microsoft.com>
2026-06-22 10:24:50 -07:00
Copilot
f93df7e172
Add MCP Apps extension support (typed metadata, attribute, and helpers) (#1484) 2026-06-17 13:28:47 -07:00
Jayaraman Venkatesan
0663b7c878
Relax outputSchema to any JSON Schema 2020-12 document per SEP-2106 (#1568)
Co-authored-by: Mike Kistler <mikekistler@microsoft.com>
2026-06-16 15:02:04 -07:00
Tarek Mahmoud Sayed
c021d0a4f8
Add SEP-2549 caching hints (ttlMs and cacheScope) to cacheable results (#1623)
Co-authored-by: Tarek Mahmoud Sayed <tarekms@ntdev.microsoft.com>
2026-06-15 14:44:01 -07:00
Pranav Senthilnathan
dbb7a20176
Implement SEP-2663 Tasks Extension (#1579)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-06-11 13:10:45 -07:00
Joel Forsyth
acb4cc9fd1
Release SSE response stream reference when GET request ends (#1519) 2026-06-05 17:14:49 -07:00
DragonFSKY
df0c102d75
Require Tool inputSchema during deserialization (#1600) 2026-06-05 16:54:07 -07:00
Jayaraman Venkatesan
a04c3e4f50
Fix: Remove charset=utf-8 from Content-Type: application/json in HTTP transport (#1528) 2026-06-05 16:53:07 -07:00
Aditya Singh
af6fcff595
Add McpClientOptions.InitializeMeta to set _meta on the initialize request (#1599) 2026-06-05 16:52:31 -07:00
Weinong Wang
20ddd2fb10
Fix $ref pointer resolution after output schema wrapping (#1435) 2026-06-05 16:38:12 -07:00
Copilot
480979b1b5
Fix flaky DiagnosticTests.Session_TracksActivities by waiting for full server activity predicate (#1495) 2026-06-05 16:37:23 -07:00
Copilot
01dd43217e
Fix flaky test: add sync point in ReadEventsAsync_InStreamingMode_YieldsNewlyWrittenEvents (#1491) 2026-06-05 16:35:00 -07:00
Tarek Mahmoud Sayed
ed19286a08
Align x-mcp-header implementation with SEP-2243 spec clarifications (#1619)
Co-authored-by: Tarek Mahmoud Sayed <tarekms@ntdev.microsoft.com>
2026-06-05 15:45:08 -07:00