Module: Html2rss::MCP

Defined in:
lib/html2rss/mcp.rb,
lib/html2rss/mcp/server.rb,
lib/html2rss/mcp/outcome.rb,
lib/html2rss/mcp/runtime.rb,
lib/html2rss/mcp/contract.rb,
lib/html2rss/mcp/server/tools.rb,
lib/html2rss/mcp/config_argument.rb,
lib/html2rss/mcp/outcome/playbook.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: Contract, Runtime, Server Classes: ConfigArgument, Outcome

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)



17
18
19
20
21
# File 'lib/html2rss/mcp.rb', line 17

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