Use EventSource for SSE implementation (#96)

* Add package dependency for github.com/loopwork-ai/EventSource

* Use EventSource for SSE implementation

* Refactor response stream and content type handling

Co-authored-by: Stephen Tallent <stallent@mercury.io>

* Conditionalize use of streaming for supported platforms

* Refactor conditional platform handling

* Conditionalize code and package dependency on Linux

---------

Co-authored-by: Stephen Tallent <stallent@mercury.io>
This commit is contained in:
Mattt 2025-05-06 05:45:40 -07:00 • committed by GitHub
commit 3ff1085e01
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -341,7 +341,7 @@ import Testing
Issue.record("Expected MCPError.internalError, got \(error)")
throw error
}
#expect(message?.contains("HTTP error: 500") ?? false)
#expect(message?.contains("Server error: 500") ?? false)
} catch {
Issue.record("Expected MCPError, got \(error)")
throw error