Class: BioRuby::MCP::Server::Core
- Inherits:
-
Object
- Object
- BioRuby::MCP::Server::Core
- Defined in:
- lib/bioruby/mcp/server/core.rb
Overview
BioRuby MCP Server using the official MCP Ruby SDK
Class Method Summary collapse
Class Method Details
.create_server ⇒ Object
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/bioruby/mcp/server/core.rb', line 12 def self.create_server # Create MCP server with all KEGG tools ::MCP::Server.new( name: 'bioruby-mcp-server', version: VERSION, tools: [ KEGGPathwayTool, KEGGCompoundTool, KEGGEnzymeTool, KEGGSearchTool, KEGGPathwayFinderTool, KEGGOrganismTool ] ) end |
.start_stdio_server ⇒ Object
28 29 30 31 32 |
# File 'lib/bioruby/mcp/server/core.rb', line 28 def self.start_stdio_server server = create_server transport = ::MCP::Server::Transports::StdioTransport.new(server) transport.open end |