blob: 724a51d07115d9cb0bed692e52eafc73eb7a9f02 [file] [log] [blame]
package common
import (
"context"
"github.com/mark3labs/mcp-go/mcp"
)
type Resource struct {
// Unique identifier for the resource. Eg: perf://static/pinpoint/readme
Uri string
// Name of the resource.
Name string
// Description of the resource.
Description string
// Mime type for the resource.
MimeType string
// Handler that is invoked when reading the resource.
Handler func(ctx context.Context, request mcp.ReadResourceRequest) ([]mcp.ResourceContents, error)
}