Namespace Nexus\Mcp\Core\Schema\Result

Classes
CallToolResult

The server's response to a tool call.

CancelTaskResult

The response to a tasks/cancel request.

CompleteResult

The server's response to a completion/complete request.

CreateMessageResult

The client's response to a sampling/createMessage request from the server. The client should inform the user before returning the sampled message, to allow them to inspect the response (human in the loop) and decide whether to allow the server to see it.

CreateTaskResult

A response to a task-augmented request.

ElicitResult

The client's response to an elicitation request.

EmptyResult

A result that carries no fields beyond the optional _meta. Used by methods like ping whose acknowledgement has no payload.

GetPromptResult

The server's response to a prompts/get request from the client.

GetTaskPayloadResult

The response to a tasks/result request. The structure matches the result type of the original request. For example, a tools/call task would return the CallToolResult structure.

GetTaskResult

The response to a tasks/get request.

InitializeResult

After receiving an initialize request from the client, the server sends this response.

ListPromptsResult

The server's response to a prompts/list request from the client.

ListResourcesResult

The server's response to a resources/list request from the client.

ListResourceTemplatesResult

The server's response to a resources/templates/list request from the client.

ListRootsResult

The client's response to a roots/list request from the server. This result contains an array of Root objects, each representing a root directory or file that the server can operate on.

ListTasksResult

The response to a tasks/list request.

ListToolsResult

The server's response to a tools/list request from the client.

PaginatedResult

Common shape for results that paginate via an opaque cursor. Subclasses add their own payload field alongside the optional nextCursor.

ReadResourceResult

The server's response to a resources/read request from the client.

Interfaces
ClientResult

Marker for a result a client may return in response to a server request.

ServerResult

Marker for a result a server may return in response to a client request.