stop using shared dir

This commit is contained in:
Joey Cardosi 2025-05-30 14:33:22 -04:00
commit 5cc3d9d526
No known key found for this signature in database
GPG key ID: 5F93AEDDAAE66774

View file

@ -0,0 +1,24 @@
# typed: strict
# frozen_string_literal: true
module MCP
class ResourceTemplate
attr_reader :uri_template, :name, :description, :mime_type
def initialize(uri_template:, name:, description: nil, mime_type: nil)
@uri_template = uri_template
@name = name
@description = description
@mime_type = mime_type
end
def to_h
{
uriTemplate: @uri_template,
name: @name,
description: @description,
mimeType: @mime_type,
}.compact
end
end
end