Skip to content

Commit fd0bc2f

Browse files
committed
MCPServerProxy: guard handleSSEConnectionResponse behind #if !os(Linux)
1 parent ea31fa4 commit fd0bc2f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Sources/SwiftMCP/Client/MCPServerProxy.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -840,6 +840,7 @@ public final actor MCPServerProxy: Sendable {
840840
}
841841
}
842842

843+
#if !os(Linux)
843844
@available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, macCatalyst 15.0, *)
844845
private func handleSSEConnectionResponse(
845846
response: URLResponse,
@@ -864,6 +865,7 @@ public final actor MCPServerProxy: Sendable {
864865
}
865866
}
866867
}
868+
#endif
867869

868870
private func messageEndpointURL(baseURL: URL, sessionId: String) -> URL? {
869871
guard var components = URLComponents(url: baseURL, resolvingAgainstBaseURL: false) else {

0 commit comments

Comments
 (0)