mcp.schema.request

Members list

Type members

Classlikes

final case class CallToolRequest(name: String, arguments: Option[Json]) extends Request

Attributes

Companion
object
Source
CallToolRequest.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait Request
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Source
CallToolRequest.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
final case class CompleteRequest(ref: PromptOrResourceReference, argument: CompleteArgument) extends Request

Attributes

Companion
object
Source
CompleteRequest.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait Request
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Source
CompleteRequest.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
final case class CreateMessageRequest(messages: List[SamplingMessage], modelPreferences: Option[ModelPreferences], systemPrompt: Option[String], includeContext: Option[ContextInclusionStrategy], temperature: Option[String], maxTokens: Int, stopSequences: Option[Int], metaData: Option[Json]) extends Request

A request from the server to sample an LLM via the client. The client has full discretion over which model to select. The client should also inform the user before beginning sampling, to allow them to inspect the request (human in the loop) and decide whether to approve it.

A request from the server to sample an LLM via the client. The client has full discretion over which model to select. The client should also inform the user before beginning sampling, to allow them to inspect the request (human in the loop) and decide whether to approve it.

Attributes

Companion
object
Source
CreateMessageRequest.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait Request
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Source
CreateMessageRequest.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
final case class GetPromptRequest(name: String, arguments: Option[Map[String, Json]]) extends Request

Used by the client to get a prompt provided by the server.

Used by the client to get a prompt provided by the server.

Attributes

Companion
object
Source
GetPromptRequest.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait Request
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Source
GetPromptRequest.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
final case class InitializeRequest(protocolVersion: String, capabilities: ClientCapabilities, clientInfo: Implementation) extends Request

This request is sent from the client to the server when it first connects, asking it to begin initialization.

This request is sent from the client to the server when it first connects, asking it to begin initialization.

Attributes

Companion
object
Source
InitializeRequest.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait Request
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Source
InitializeRequest.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
final case class ListPromptsRequest(cursor: Option[Cursor]) extends PaginatedRequest

Attributes

Companion
object
Source
ListPromptsRequest.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait Request
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Source
ListPromptsRequest.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
final case class ListResourceTemplatesRequest() extends Request

Attributes

Companion
object
Source
ListResourceTemplatesRequest.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait Request
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Source
ListResourceTemplatesRequest.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
final case class ListResourcesRequest(cursor: Option[Cursor]) extends PaginatedRequest

Attributes

Companion
object
Source
ListResourcesRequest.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait Request
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Source
ListResourcesRequest.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
final case class ListRootsRequest() extends Request

Sent from the server to request a list of root URIs from the client. Roots allow servers to ask for specific directories or files to operate on. A common example for roots is providing a set of repositories or directories a server should operate on.

Sent from the server to request a list of root URIs from the client. Roots allow servers to ask for specific directories or files to operate on. A common example for roots is providing a set of repositories or directories a server should operate on.

This request is typically used when the server needs to understand the file system structure or access specific locations that the client has permission to read from.

Attributes

Companion
object
Source
ListRootsRequest.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait Request
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Source
ListRootsRequest.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
final case class ListToolsRequest(cursor: Option[Cursor]) extends PaginatedRequest

Sent from the client to request a list of tools the server has.

Sent from the client to request a list of tools the server has.

Attributes

Companion
object
Source
ListToolsRequest.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait Request
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Source
ListToolsRequest.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
trait PaginatedRequest extends Request

Attributes

Source
package.scala
Supertypes
trait Request
class Object
trait Matchable
class Any
Known subtypes
final case class PingRequest() extends Request

A ping, issued by either the server or the client, to check that the other party is still alive. The receiver must promptly respond, or else may be disconnected.

A ping, issued by either the server or the client, to check that the other party is still alive. The receiver must promptly respond, or else may be disconnected.

Attributes

Companion
object
Source
PingRequest.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait Request
class Object
trait Matchable
class Any
Show all
object PingRequest

Attributes

Companion
class
Source
PingRequest.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
final case class ReadResourceRequest(uri: String) extends Request

Attributes

Companion
object
Source
ReadResourceRequest.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait Request
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Source
ReadResourceRequest.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
trait Request

Attributes

Source
package.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes
final case class SetLevelRequest(level: LoggingLevel) extends Request

A request from the client to the server, to enable or adjust logging.

A request from the client to the server, to enable or adjust logging.

Attributes

Companion
object
Source
SetLevelRequest.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait Request
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Source
SetLevelRequest.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
final case class SubscribeRequest(uri: String) extends Request

Sent from the client to request resources/updated notifications from the server whenever a particular resource changes.

Sent from the client to request resources/updated notifications from the server whenever a particular resource changes.

Attributes

Companion
object
Source
SubscribeRequest.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait Request
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Source
SubscribeRequest.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
final case class UnsubscribeRequest(uri: String) extends Request

Sent from the client to request cancellation of resources/updated notifications from the server. This should follow a previous resources/subscribe request.

Sent from the client to request cancellation of resources/updated notifications from the server. This should follow a previous resources/subscribe request.

Attributes

Companion
object
Source
UnsubscribeRequest.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait Request
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Source
UnsubscribeRequest.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type