feat: 2025-11-25 review fixes (#201)

* fix: review fixes of the latest changes

* fix: updated unit tests

* chore: more conformance compliance improvements

* chore: reverted protocol changes

* chore: more compliance improvements

* chore: more conformance compliance improvements

* chore: improvements to the backcompat and updated to Tool unit tests

* chore: ci update
This commit is contained in:
yehorsobko 2026-03-03 16:33:28 +01:00 • committed by GitHub
commit 973b46b8f7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -43,7 +43,7 @@ actor HTTPApp {
}
/// Factory function to create MCP Server instances for each session.
typealias ServerFactory = @Sendable (String) async throws -> Server
typealias ServerFactory = @Sendable (String, StatefulHTTPServerTransport) async throws -> Server
private let configuration: Configuration
private let serverFactory: ServerFactory
@ -209,7 +209,7 @@ actor HTTPApp {
)
do {
let server = try await serverFactory(sessionID)
let server = try await serverFactory(sessionID, transport)
try await server.start(transport: transport)
sessions[sessionID] = SessionContext(