class Riffer::Mcp::Manifest
Holds the configuration for a single MCP server.
Attributes
Optional hint (:global/:tenant/:user) for whether invocation credentials depend on tenant/user keys in context.
Headers (or a Proc) resolved once when building the discovery client.
HTTPS URL passed to the MCP transport.
Identifier used as the registration key and generated-agent identifier.
Public Class Methods
Source
# File lib/riffer/mcp/manifest.rb, line 28 def initialize(name:, endpoint:, tags: nil, discovery_headers: nil, credentials_scope: nil) @name = name.to_s.strip raise Riffer::ArgumentError, "MCP manifest name is required" if @name.empty? @endpoint = endpoint.to_s.strip raise Riffer::ArgumentError, "MCP manifest endpoint must be a valid HTTPS URL" unless valid_endpoint? @tags = Array(tags).map(&:to_sym) @discovery_headers = discovery_headers @credentials_scope = credentials_scope&.to_sym end
Raises Riffer::ArgumentError unless name is present and endpoint is a valid HTTPS URL.