StaticResource

mcp.schema.McpSchema.StaticResource
See theStaticResource companion object
final case class StaticResource(uri: String, name: String, description: Option[String], mimeType: Option[String], annotations: Annotations) extends Resource

A known resource that the server is capable of reading.

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.

uri

the URI of the resource.

Attributes

Companion
object
Source
McpSchema.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Resource
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product