Update capabilities to be expressible by Boolean literals (#16)

* Conform Server.Capabilities types to ExpressibleByBooleanLiteral

* Conform Client.Capabilities types to ExpressibleByBooleanLiteral

* Use Boolean literatls for capabilities in tests

* Update README
This commit is contained in:
Mattt 2025-03-17 04:35:03 -07:00 • committed by GitHub
commit 3e628db6d8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -51,11 +51,9 @@ let server = Server(
name: "MyServer",
version: "1.0.0",
capabilities: .init(
prompts: .init(),
resources: .init(
subscribe: true
),
tools: .init()
prompts: true,
resources: true,
tools: true
)
)