Module: Html2rss::MCP

Defined in:
lib/html2rss/mcp.rb,
lib/html2rss/mcp/server.rb

Overview

MCP server for AI client consumption. Lazy-loads the mcp gem; no cost when the server is not started.

Defined Under Namespace

Modules: Server

Class Method Summary collapse

Class Method Details

.start(transport: :stdio, port: 8080) ⇒ Object

Starts the MCP server using the given transport.

Parameters:

  • transport (Symbol) (defaults to: :stdio)

    :stdio or :http

  • port (Integer) (defaults to: 8080)

    port for HTTP transport (bound to 127.0.0.1)



14
15
16
17
18
# File 'lib/html2rss/mcp.rb', line 14

def start(transport: :stdio, port: 8080)
  require 'mcp'
  require_relative 'mcp/server'
  Server.start(transport:, port:)
end