mcp.schema
Attributes
- See also
Members list
Packages
Type members
Classlikes
Base for objects that include optional annotations for the client. The client can use annotations to inform how objects are used or displayed
Base for objects that include optional annotations for the client. The client can use annotations to inform how objects are used or displayed
Attributes
- Source
- package.scala
- Supertypes
-
class Objecttrait Matchableclass Any
Optional annotations for the client. The client can use annotations to inform how objects are used or displayed.
Optional annotations for the client. The client can use annotations to inform how objects are used or displayed.
Value parameters
- audience
-
Describes who the intended customer of this object or data is. It can include multiple entries to indicate content useful for multiple audiences (e.g.,
["user", "assistant"]
). - priority
-
Describes how important this data is for operating the server. A value of 1 means "most important," and indicates that the data is effectively required, while 0 means "least important," and indicates that the data is entirely optional. It is a number between 0 and 1.
Attributes
- Companion
- object
- Source
- package.scala
- Supertypes
Attributes
- Companion
- class
- Source
- package.scala
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
Annotations.type
Clients can implement additional features to enrich connected MCP servers with additional capabilities. These capabilities can be used to extend the functionality of the server, or to provide additional information to the server about the client's capabilities.
Clients can implement additional features to enrich connected MCP servers with additional capabilities. These capabilities can be used to extend the functionality of the server, or to provide additional information to the server about the client's capabilities.
Value parameters
- experimental
-
WIP
- roots
-
define the boundaries of where servers can operate within the filesystem, allowing them to understand which directories and files they have access to.
- sampling
-
Provides a standardized way for servers to request LLM sampling (“completions” or “generations”) from language models via clients.
Attributes
- Companion
- object
- Source
- ClientCapabilities.scala
- Supertypes
Attributes
- Companion
- class
- Source
- ClientCapabilities.scala
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
ClientCapabilities.type
Attributes
- Companion
- object
- Source
- CompleteArgument.scala
- Supertypes
Attributes
- Companion
- class
- Source
- CompleteArgument.scala
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
CompleteArgument.type
Attributes
- Companion
- object
- Source
- Content.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
Attributes
- Companion
- trait
- Source
- Content.scala
- Supertypes
-
trait Sumtrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
Content.type
Attributes
- Companion
- object
- Source
- package.scala
- Supertypes
Attributes
- Companion
- enum
- Source
- package.scala
- Supertypes
-
trait Sumtrait Mirrorclass Objecttrait Matchableclass Any
- Self type
Attributes
- Source
- package.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
Cursor.type
Attributes
- Source
- JsonSchema.scala
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait StaticAnnotationclass Annotationclass Objecttrait Matchableclass AnyShow all
Standard error codes used in MCP JSON-RPC responses.
Standard error codes used in MCP JSON-RPC responses.
Attributes
- Source
- package.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
ErrorCodes.type
Attributes
- Companion
- object
- Source
- Implementation.scala
- Supertypes
Attributes
- Companion
- class
- Source
- Implementation.scala
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
Implementation.type
A JSON-RPC batch, as described in https://www.jsonrpc.org/specification#batch.
A JSON-RPC batch, as described in https://www.jsonrpc.org/specification#batch.
Attributes
- Companion
- object
- Source
- JSONRPCBatch.scala
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait JSONRPCMessageclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Source
- JSONRPCBatch.scala
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
JSONRPCBatch.type
Refers to any valid JSON-RPC object that can be decoded off the wire, or encoded to be sent.
Refers to any valid JSON-RPC object that can be decoded off the wire, or encoded to be sent.
Attributes
- Companion
- object
- Source
- JSONRPCMessage.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
class JSONRPCBatchclass JSONRPCNotificationclass JSONRPCRequesttrait JSONRPCResponseclass Errorclass SuccessShow all
Attributes
- Companion
- trait
- Source
- JSONRPCMessage.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
JSONRPCMessage.type
A notification that does not expect a response.
A notification that does not expect a response.
Attributes
- Companion
- object
- Source
- JSONRPCNotification.scala
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait JSONRPCMessageclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Source
- JSONRPCNotification.scala
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
JSONRPCNotification.type
A request that expects a response.
A request that expects a response.
Attributes
- Companion
- object
- Source
- JSONRPCRequest.scala
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait Requesttrait JSONRPCMessageclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Source
- JSONRPCRequest.scala
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
JSONRPCRequest.type
A successful or error response to a request.
A successful or error response to a request.
Attributes
- Companion
- object
- Source
- JSONRPCResponse.scala
- Supertypes
- Known subtypes
Attributes
- Companion
- trait
- Source
- JSONRPCResponse.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
JSONRPCResponse.type
Attributes
- Companion
- object
- Source
- JsonSchema.scala
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Companion
- trait
- Source
- JsonSchema.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
JsonSchema.type
The severity of a log message.
The severity of a log message.
These map to syslog message severities, as specified in RFC-5424: https://datatracker.ietf.org/doc/html/rfc5424#section-6.2.1
Attributes
- Companion
- object
- Source
- package.scala
- Supertypes
Attributes
- Companion
- enum
- Source
- package.scala
- Supertypes
-
trait Sumtrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
LoggingLevel.type
Represents a Model Control Protocol (MCP) error. This class is used to represent errors that occur during an MCP session.
Represents a Model Control Protocol (MCP) error. This class is used to represent errors that occur during an MCP session.
Value parameters
- message
-
error message
Attributes
- See also
- Companion
- object
- Source
- McpError.scala
- Supertypes
-
class RuntimeExceptionclass Exceptionclass Throwabletrait Serializableclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Source
- McpError.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
McpError.type
Attributes
- Companion
- object
- Source
- McpResource.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
Attributes
- Companion
- trait
- Source
- McpResource.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
McpResource.type
Attributes
- Source
- package.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
Method.type
Attributes
- Companion
- object
- Source
- package.scala
- Supertypes
Attributes
- Companion
- class
- Source
- package.scala
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
ModelHint.type
Attributes
- Companion
- object
- Source
- package.scala
- Supertypes
Attributes
- Companion
- class
- Source
- package.scala
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
ModelPreferences.type
A progress token, used to associate progress notifications with the original request.
A progress token, used to associate progress notifications with the original request.
Attributes
- Companion
- object
- Source
- package.scala
- Supertypes
Attributes
- Companion
- enum
- Source
- package.scala
- Supertypes
-
trait Sumtrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
ProgressToken.type
A prompt or prompt template that the server offers.
A prompt or prompt template that the server offers.
Value parameters
- arguments
-
A list of arguments to use for templating the prompt.
- description
-
An optional description of what this prompt provides.
- name
-
The name of the prompt or prompt template.
Attributes
- Companion
- object
- Source
- package.scala
- Supertypes
Attributes
- Companion
- class
- Source
- package.scala
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
Prompt.type
Describes an argument that a prompt can accept.
Describes an argument that a prompt can accept.
Value parameters
- description
-
A human-readable description of the argument.
- name
-
The name of the argument.
- required
-
Whether this argument must be provided.
Attributes
- Companion
- object
- Source
- PromptArgument.scala
- Supertypes
Attributes
- Companion
- class
- Source
- PromptArgument.scala
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
PromptArgument.type
Describes a message returned as part of a prompt.
Describes a message returned as part of a prompt.
This is similar to SamplingMessage
, but also supports the embedding of resources from the MCP server.
Value parameters
- content
-
The content of the message of type Content.
- role
-
The sender or recipient of messages and data in a conversation.
Attributes
- Companion
- object
- Source
- PromptMessage.scala
- Supertypes
Attributes
- Companion
- class
- Source
- PromptMessage.scala
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
PromptMessage.type
Attributes
- Companion
- object
- Source
- PromptOrResourceReference.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
class PromptReferenceclass ResourceReference
Attributes
- Companion
- trait
- Source
- PromptOrResourceReference.scala
- Supertypes
-
trait Sumtrait Mirrorclass Objecttrait Matchableclass Any
- Self type
A uniquely identifying ID for a request in JSON-RPC.
A uniquely identifying ID for a request in JSON-RPC.
Attributes
- Companion
- object
- Source
- package.scala
- Supertypes
Attributes
- Companion
- enum
- Source
- package.scala
- Supertypes
-
trait Sumtrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
RequestId.type
Attributes
- Companion
- object
- Source
- ResourceContents.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
Attributes
- Companion
- trait
- Source
- ResourceContents.scala
- Supertypes
-
trait Sumtrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
ResourceContents.type
Attributes
- Companion
- object
- Source
- package.scala
- Supertypes
Attributes
- Companion
- enum
- Source
- package.scala
- Supertypes
-
trait Sumtrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
Role.type
Represents a root directory or file that the server can operate on.
Represents a root directory or file that the server can operate on.
Value parameters
- name
-
An optional name for the root. This can be used to provide a human-readable identifier for the root, which may be useful for display purposes or for referencing the root in other parts of the application.
- uri
-
The URI identifying the root. This must start with file:// for now. This restriction may be relaxed in future versions of the protocol to allow other URI schemes.
Attributes
- Companion
- object
- Source
- Root.scala
- Supertypes
Attributes
- Companion
- class
- Source
- Root.scala
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
Root.type
Roots define the boundaries of where servers can operate within the filesystem, allowing them to understand which directories and files they have access to. Servers can request the list of roots from supporting clients and receive notifications when that list changes.
Roots define the boundaries of where servers can operate within the filesystem, allowing them to understand which directories and files they have access to. Servers can request the list of roots from supporting clients and receive notifications when that list changes.
Value parameters
- listChanged
-
Whether the client would send notification about roots has changed since the last time the server checked.
Attributes
- Companion
- object
- Source
- RootCapabilities.scala
- Supertypes
Attributes
- Companion
- class
- Source
- RootCapabilities.scala
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
RootCapabilities.type
Provides a standardized way for servers to request LLM sampling ("completions" or "generations") from language models via clients. This flow allows clients to maintain control over model access, selection, and permissions while enabling servers to leverage AI capabilities—with no server API keys necessary. Servers can request text or image-based interactions and optionally include context from MCP servers in their prompts.
Provides a standardized way for servers to request LLM sampling ("completions" or "generations") from language models via clients. This flow allows clients to maintain control over model access, selection, and permissions while enabling servers to leverage AI capabilities—with no server API keys necessary. Servers can request text or image-based interactions and optionally include context from MCP servers in their prompts.
Attributes
- Companion
- object
- Source
- package.scala
- Supertypes
Attributes
- Companion
- class
- Source
- package.scala
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
Sampling.type
Attributes
- Companion
- object
- Source
- SchemaType.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
Attributes
- Companion
- trait
- Source
- SchemaType.scala
- Supertypes
-
trait Sumtrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
SchemaType.type
Attributes
- Companion
- object
- Source
- ServerCapabilities.scala
- Supertypes
Attributes
- Companion
- class
- Source
- ServerCapabilities.scala
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
ServerCapabilities.type
Attributes
- Companion
- object
- Source
- package.scala
- Supertypes
Attributes
- Companion
- enum
- Source
- package.scala
- Supertypes
-
trait Sumtrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
StopReason.type
Represents a tool that the server provides. Tools enable servers to expose executable functionality to the system. Through these tools, you can interact with external systems, perform computations, and take actions in the real world.
Represents a tool that the server provides. Tools enable servers to expose executable functionality to the system. Through these tools, you can interact with external systems, perform computations, and take actions in the real world.
Attributes
- Companion
- object
- Source
- Tool.scala
- Supertypes
Attributes
- Companion
- trait
- Source
- Tool.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
Tool.type
Attributes
- Companion
- object
- Source
- Tool.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
Attributes
- Companion
- trait
- Source
- Tool.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
ToolSchema.type