Files
fil/docs/snippets/ruby/mcp/mcp_server_start.md

13 lines
231 B
Markdown
Raw Normal View History

2026-06-01 23:40:55 +02:00
```ruby title="Ruby"
require 'open3'
begin
Open3.popen3('kreuzberg', 'mcp') do |stdin, stdout, stderr, wait_thr|
puts stdout.read
wait_thr.join
end
rescue => e
puts "Failed to start MCP server: #{e.message}"
end
```