module Riffer::Mcp

Riffer::Mcp provides integration with Model Context Protocol (MCP) servers.

Register MCP servers globally; agents opt-in by tag via the use_mcp DSL. Tags are application-defined; see docs/14_MCP.md (Tags section).

Riffer::Mcp.register(
  name: "github",
  tags: [:github],
  endpoint: "https://mcp.github.com",
  discovery_headers: -> { {"Authorization" => "Bearer #{ENV['GITHUB_TOKEN']}"} }
)

class MyAgent < Riffer::Agent
  model "openai/gpt-4o"
  use_mcp :github
end