Template

mcp.schema.McpResource.Template
See theTemplate companion object
final case class Template(uriTemplate: String, name: String, description: Option[String], mimeType: Option[String], annotations: Annotations) extends McpResource

Resource templates allow servers to expose parameterized resources using URI templates.

Value parameters

annotations

Optional annotations for the client. The client can use annotations to inform how objects are used or displayed.

description

A description of what this resource represents. This can be used by clients to improve the LLM's understanding of available resources. It can be thought of like a "hint" to the model.

mimeType

The MIME type of this resource, if known.

name

A human-readable name for this resource. This can be used by clients to populate UI elements.

uriTemplate

A URI template that can be used to generate URIs for this resource.

Attributes

See also
Companion
object
Source
McpResource.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait McpResource
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product