Module: Kreuzberg::MCPProxy
- Defined in:
- lib/kreuzberg/mcp_proxy.rb
Overview
Defined Under Namespace
Classes: Error, MissingBinaryError, Server, ServerError
Class Method Summary collapse
-
.find_mcp_binary ⇒ Pathname
Find the MCP binary.
-
.missing_binary_message ⇒ String
Error message for missing binary.
-
.run(transport: 'stdio') {|Server| ... } ⇒ Object
Run MCP server with a block.
Class Method Details
.find_mcp_binary ⇒ Pathname
Find the MCP binary
155 156 157 158 159 160 161 |
# File 'lib/kreuzberg/mcp_proxy.rb', line 155 def find_mcp_binary binary_name = Gem.win_platform? ? 'kreuzberg.exe' : 'kreuzberg' found = CLIProxy.search_paths(binary_name).find(&:file?) return found if found raise MissingBinaryError, end |
.missing_binary_message ⇒ String
Error message for missing binary
167 168 169 170 171 172 173 174 |
# File 'lib/kreuzberg/mcp_proxy.rb', line 167 def <<~MSG.strip kreuzberg binary not found for MCP server. Build it with: `cargo build --release --package kreuzberg-cli` Or ensure kreuzberg is installed with MCP support. MSG end |