Skip to content

V0.11.x - #199

Merged
movetz merged 11 commits into
mainfrom
v0.11.x
Feb 19, 2026
Merged

movetz merged 11 commits into
mainfrom
v0.11.x

Conversation

@movetz

@movetz movetz commented Feb 17, 2026

Copy link
Copy Markdown
Contributor

No description provided.

ajevans99 and others added 6 commits February 18, 2026 12:34
* Support OpenAI _meta for Tool

* Update init

* Add title and outputSchema

* Concurreny issue

* General fields

* Add Generate Fields to Server elements

* 4 tab spacing

* Update Version

* Elicitation

* Format

* More tests and inits

* Elicitation in README

* Fix orphaned test

* Add title to more structs

* Public init

* Fix meta validation and make tests more generic

* Format and make Result properties public again

* Revert more visibility changes
* chore: fixed unit tests

* feat: added icon and progess base structs

* feat: added progress notification and meta to callTool

* feat: added tests

* feat: simplified RequestMeta encoding/decoding

* tests: added unit test to track progress

* chore: rebased v0.11.x

* feat: implemented cancellation

* feat: added overloaded callTool method

* fix: encoding Response _meta fix

* chore: added old version to the versions list

* feat: 2025-11-25 phase 2; added Logging and Completions (#196)

* feat: added Logging and Completions

* feat: updated EmbeddedResource for the latest spec

* chore: changed encoding of meta in Prompts to encodeIfPresent

* feat: compliance tests + http server transport (#197)

* feat: http server transport

* feat: added http server transport

* feat: removed unused files

* feat: added conformance tests

* feat: improved conformace testing

* chore: removed redundant files
* feat: Roots implementation

* feat: added unit testing

* feat: improved unit tests and fixed NetworkTransport crash

* feat: implemented sampling and elicitation

* feat: improved sampling tests

* feat: improved elicitation tests

* feat: improved confirmance tests

* feat: improved Prompts unit tests

* feat: removed test code

* feat: updated conformance tests
@movetz
movetz merged commit 6112a39 into main Feb 19, 2026
6 checks passed
@movetz
movetz deleted the v0.11.x branch February 19, 2026 11:09
Velly69 added a commit to MacPaw/mcp-swift-sdk that referenced this pull request Mar 2, 2026
* Enable building with the Swift Linux SDK (modelcontextprotocol#151)

* Update README to document support for Alpine Linux (modelcontextprotocol#153)

* Adopt strict concurrency for project (modelcontextprotocol#157)

* Adopt strict concurrency for project

* Fix one warning related to that

* Add version-specific manifest for Swift 6.0

---------

Co-authored-by: Alexey Ivashko <[email protected]>
Co-authored-by: Mattt Zmuda <[email protected]>

* Make `Tool.description` optional (modelcontextprotocol#160)

* Make Tool.description optional

* Make description parameter in Tool initializer optional

* fix: allow description field to be absent from `Tool` (modelcontextprotocol#159)

* fix: allow description field to be absent from `Tool`
* description field is not a requried field of Tool

* Apply suggestions from code review

* Update Tests/MCPTests/ToolTests.swift

---------

Co-authored-by: Mattt <[email protected]>

* Add Mac Catalyst to target dependencies for EventSource. (modelcontextprotocol#163)

* chore: update licensing to Apache 2.0 for new contributions (modelcontextprotocol#177)

* Add SECURITY.md with GitHub Security Advisories guidance (modelcontextprotocol#200)

* V0.11.x (modelcontextprotocol#199)

* Support 2025-06-18 Spec (modelcontextprotocol#167)

* Support OpenAI _meta for Tool

* Update init

* Add title and outputSchema

* Concurreny issue

* General fields

* Add Generate Fields to Server elements

* 4 tab spacing

* Update Version

* Elicitation

* Format

* More tests and inits

* Elicitation in README

* Fix orphaned test

* Add title to more structs

* Public init

* Fix meta validation and make tests more generic

* Format and make Result properties public again

* Revert more visibility changes

* feat: 2025-11-25 phase 1, includes Version, Icon, Progress (modelcontextprotocol#181)

* chore: fixed unit tests

* feat: added icon and progess base structs

* feat: added progress notification and meta to callTool

* feat: added tests

* feat: simplified RequestMeta encoding/decoding

* tests: added unit test to track progress

* chore: rebased v0.11.x

* feat: implemented cancellation

* feat: added overloaded callTool method

* fix: encoding Response _meta fix

* chore: added old version to the versions list

* feat: 2025-11-25 phase 2; added Logging and Completions (modelcontextprotocol#196)

* feat: added Logging and Completions

* feat: updated EmbeddedResource for the latest spec

* chore: changed encoding of meta in Prompts to encodeIfPresent

* feat: compliance tests + http server transport (modelcontextprotocol#197)

* feat: http server transport

* feat: added http server transport

* feat: removed unused files

* feat: added conformance tests

* feat: improved conformace testing

* chore: removed redundant files

* feat/2025-11-25: sampling, elicitation, roots (modelcontextprotocol#198)

* feat: Roots implementation

* feat: added unit testing

* feat: improved unit tests and fixed NetworkTransport crash

* feat: implemented sampling and elicitation

* feat: improved sampling tests

* feat: improved elicitation tests

* feat: improved confirmance tests

* feat: improved Prompts unit tests

* feat: removed test code

* feat: updated conformance tests

* chore: removed redundant commas

* chore: removed 6.0.3 swift version from ci

* chore: improved unit tests a little bit

* chore: update README.md

* chore: add server progress tracking example to README.md

* chore: updated README.md

* chore: updated transports table formatting

* chore: updated MockNetworkConnection

---------

Co-authored-by: Austin Evans <[email protected]>
Co-authored-by: yehorsobko <[email protected]>

---------

Co-authored-by: Tobias <[email protected]>
Co-authored-by: Mattt <[email protected]>
Co-authored-by: Alexey Ivashko <[email protected]>
Co-authored-by: Alexey Ivashko <[email protected]>
Co-authored-by: Yifan Liu <[email protected]>
Co-authored-by: Semen Kudriavtsev <[email protected]>
Co-authored-by: adam jones <[email protected]>
Co-authored-by: Den Delimarsky <[email protected]>
Co-authored-by: Maksym Mova <[email protected]>
Co-authored-by: Austin Evans <[email protected]>
Co-authored-by: yehorsobko <[email protected]>
@movetz movetz linked an issue Mar 24, 2026 that may be closed by this pull request
canarik added a commit that referenced this pull request Nov 30, 2026
A POST whose JSON-RPC object has a string `method`, an `id` and also a
`result` or an `error` was never answered. `JSONRPCMessageKind` checks
`method` first and called it a request, so
`StatefulHTTPServerTransport` opened an SSE stream and kept the
request's `httpRequestContexts` and `openRequestIDs` entries, and
`StatelessHTTPServerTransport` created an exchange and waited. `Server`
tries `AnyResponse` before `AnyRequest`, and `Response` ignores
`method`, so it read the body as a response to an unknown request and
sent nothing. The POST hung, the stateful transport kept that state
until the session ended, and an `initialize` with a `result` opened a
session in which a real `initialize` was then refused.
Fix: classify such a message as `.invalid` when its `id` is readable,
so both transports answer HTTP 400 with -32600 and the `id`, and keep
no state for it. An `id` that cannot be read keeps its own reason.

A batch item of this shape on the other transports now gets -32600 as
well, since `Server.Batch.Item` uses the same classifier.

Adds tests to `RequestIDValidationTests` for both HTTP transports, an
`initialize` with a `result`, the classifier, and a batch item.

Introduced in 6112a39 ("V0.11.x (#199)").
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

3 participants