Add a stub to make type checkers happy
This commit is contained in:
parent
60279f0b4e
commit
ef56b3ff74
@ -4,9 +4,15 @@ require_relative "mcp/version"
|
|||||||
|
|
||||||
module Mcp
|
module Mcp
|
||||||
class Error < StandardError; end
|
class Error < StandardError; end
|
||||||
|
|
||||||
class ClientDisconnectedError < Error; end
|
class ClientDisconnectedError < Error; end
|
||||||
|
|
||||||
class Client
|
class Client
|
||||||
|
def initialize(command, args)
|
||||||
|
# This is implemented in rust
|
||||||
|
raise NotImplementedError
|
||||||
|
end
|
||||||
|
|
||||||
def tools
|
def tools
|
||||||
ToolsProxy.new(self)
|
ToolsProxy.new(self)
|
||||||
end
|
end
|
||||||
@ -20,8 +26,7 @@ module Mcp
|
|||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
def respond_to_missing?(name, include_private = false)
|
def respond_to_missing?(name, include_private = false) end
|
||||||
end
|
|
||||||
|
|
||||||
def method_missing(name, **kwargs)
|
def method_missing(name, **kwargs)
|
||||||
@client.call_tool(name.to_s, kwargs)
|
@client.call_tool(name.to_s, kwargs)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user