Namespace Nexus\Mcp\Core\Schema

Classes
Annotations

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

BaseMetadata

Base interface for metadata with name (identifier) and title (display name) properties.

ClientCapabilities

Capabilities a client may support. Known capabilities are defined here, in this schema, but this is not a closed set: any client can define its own, additional capabilities.

Cursor

An opaque token used to represent a cursor for pagination.

Error
Icon

An optionally-sized icon that can be displayed in a user interface.

Implementation

Describes the MCP implementation.

MetaObject

The _meta extension slot carried by notifications and results.

Notification
NotificationParams

Common params for any notification.

ProgressToken

A progress token, used to associate progress notifications with the original request.

ProtocolVersion

A revision of the Model Context Protocol identified by its release date.

Request
RequestId

A uniquely identifying ID for a request in JSON-RPC.

RequestMetaObject

The _meta extension slot carried by request params. Adds a typed progressToken alongside open-ended extras.

RequestParams

Common params for any request.

Result

Base for the result payload carried by a JSON-RPC success response. Concrete subclasses define the method-specific fields. This base only threads the typed _meta.

Root

Represents a root directory or file that the server can operate on.

ServerCapabilities

Capabilities that a server may support. Known capabilities are defined here, in this schema, but this is not a closed set: any server can define its own, additional capabilities.

Interfaces
Arrayable

Interface for classes that can be converted to and from arrays.

ContentBlock

Marker for a content block that can be embedded in a prompt message or tool call result. Each variant carries its own type discriminator.

Icons

Base interface to add icons property.

Namespaces
Nexus\Mcp\Core\Schema\ContentBlock
Nexus\Mcp\Core\Schema\Elicitation
Nexus\Mcp\Core\Schema\Enum
Nexus\Mcp\Core\Schema\Error
Nexus\Mcp\Core\Schema\JsonRpc
Nexus\Mcp\Core\Schema\Notification
Nexus\Mcp\Core\Schema\NotificationParams
Nexus\Mcp\Core\Schema\Prompt
Nexus\Mcp\Core\Schema\Request
Nexus\Mcp\Core\Schema\RequestParams
Nexus\Mcp\Core\Schema\Resource
Nexus\Mcp\Core\Schema\Result
Nexus\Mcp\Core\Schema\Sampling
Nexus\Mcp\Core\Schema\Task
Nexus\Mcp\Core\Schema\Tool