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

@ -133,7 +133,7 @@ struct CancellationTests {
}
await server.withMethodHandler(CallTool.self) { params in
return .init(content: [.text("Result for \(params.name)")], isError: false)
return .init(content: [.text(text: "Result for \(params.name)", annotations: nil, _meta: nil)], isError: false)
}
// Start server and connect client
@ -149,7 +149,7 @@ struct CancellationTests {
// Get the result
let result = try await context.value
#expect(result.content == [.text("Result for testTool")])
#expect(result.content == [.text(text: "Result for testTool", annotations: nil, _meta: nil)])
#expect(result.isError == false)
await client.disconnect()
@ -174,7 +174,7 @@ struct CancellationTests {
await server.withMethodHandler(CallTool.self) { params in
try await Task.sleep(for: .seconds(5))
return .init(content: [.text("Should not reach here")], isError: false)
return .init(content: [.text(text: "Should not reach here", annotations: nil, _meta: nil)], isError: false)
}
// Start server and connect client