This commit is contained in:
12
docs/snippets/ruby/mcp/mcp_server_start.md
Normal file
12
docs/snippets/ruby/mcp/mcp_server_start.md
Normal file
@@ -0,0 +1,12 @@
|
||||
```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
|
||||
```
|
||||
Reference in New Issue
Block a user