Skip to content

Module BSV::MCP::Server

Builds and returns an MCP::Server instance configured for the BSV SDK.

Tools are registered here as the feature set grows. Currently returns an empty tool list — Tasks 2 and 3 will add concrete tools.

Logging goes to $stderr only; $stdout is the MCP protocol channel.

Public Class Methods

build(config = nil)

Builds the MCP::Server instance with the given config. - @param config [BSV::MCP::Config] network and ARC configuration - @return [::MCP::Server]

registered_tools()

Returns the list of tool classes registered with this server. - @return [Array] tool classes inheriting from MCP::Tool

start(config = nil)

Starts the MCP server over stdio using the standard StdioTransport. Blocks until the client disconnects or the process is interrupted. - @param config [BSV::MCP::Config] network and ARC configuration