Add a stub to make type checkers happy

This commit is contained in:
Joshua Coles 2025-03-17 16:06:20 +00:00
parent 60279f0b4e
commit ef56b3ff74

View File

@ -4,9 +4,15 @@ require_relative "mcp/version"
module Mcp
class Error < StandardError; end
class ClientDisconnectedError < Error; end
class Client
def initialize(command, args)
# This is implemented in rust
raise NotImplementedError
end
def tools
ToolsProxy.new(self)
end
@ -20,8 +26,7 @@ module Mcp
private
def respond_to_missing?(name, include_private = false)
end
def respond_to_missing?(name, include_private = false) end
def method_missing(name, **kwargs)
@client.call_tool(name.to_s, kwargs)