From ef56b3ff74c55be9d8186812c7c6fe271c62e9d2 Mon Sep 17 00:00:00 2001 From: Joshua Coles Date: Mon, 17 Mar 2025 16:06:20 +0000 Subject: [PATCH] Add a stub to make type checkers happy --- lib/mcp.rb | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/lib/mcp.rb b/lib/mcp.rb index a79cce0..f9f782f 100644 --- a/lib/mcp.rb +++ b/lib/mcp.rb @@ -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)