This reverts commit 3e628db6d8.
This commit is contained in:
parent
eba4f62bd5
commit
59b6b755c0
4 changed files with 8 additions and 46 deletions
|
|
@ -51,9 +51,11 @@ let server = Server(
|
|||
name: "MyServer",
|
||||
version: "1.0.0",
|
||||
capabilities: .init(
|
||||
prompts: true,
|
||||
resources: true,
|
||||
tools: true
|
||||
prompts: .init(),
|
||||
resources: .init(
|
||||
subscribe: true
|
||||
),
|
||||
tools: .init()
|
||||
)
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -423,17 +423,3 @@ public actor Client {
|
|||
return value
|
||||
}
|
||||
}
|
||||
|
||||
// MARK: - ExpressibleByBooleanLiteral
|
||||
|
||||
extension Client.Capabilities.Roots: ExpressibleByBooleanLiteral {
|
||||
public init(booleanLiteral value: Bool) {
|
||||
self.init()
|
||||
}
|
||||
}
|
||||
|
||||
extension Client.Capabilities.Sampling: ExpressibleByBooleanLiteral {
|
||||
public init(booleanLiteral value: Bool) {
|
||||
self.init()
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -408,29 +408,3 @@ public actor Server {
|
|||
self.isInitialized = true
|
||||
}
|
||||
}
|
||||
|
||||
// MARK: - ExpressibleByBooleanLiteral
|
||||
|
||||
extension Server.Capabilities.Logging: ExpressibleByBooleanLiteral {
|
||||
public init(booleanLiteral value: Bool) {
|
||||
self.init()
|
||||
}
|
||||
}
|
||||
|
||||
extension Server.Capabilities.Prompts: ExpressibleByBooleanLiteral {
|
||||
public init(booleanLiteral value: Bool) {
|
||||
self.init()
|
||||
}
|
||||
}
|
||||
|
||||
extension Server.Capabilities.Resources: ExpressibleByBooleanLiteral {
|
||||
public init(booleanLiteral value: Bool) {
|
||||
self.init()
|
||||
}
|
||||
}
|
||||
|
||||
extension Server.Capabilities.Tools: ExpressibleByBooleanLiteral {
|
||||
public init(booleanLiteral value: Bool) {
|
||||
self.init()
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -34,9 +34,9 @@ struct RoundtripTests {
|
|||
name: "TestServer",
|
||||
version: "1.0.0",
|
||||
capabilities: .init(
|
||||
prompts: true,
|
||||
resources: true,
|
||||
tools: true
|
||||
prompts: .init(),
|
||||
resources: .init(),
|
||||
tools: .init()
|
||||
)
|
||||
)
|
||||
await server.withMethodHandler(ListTools.self) { _ in
|
||||
|
|
|
|||
Loading…
Reference in a new issue