Namespace Nexus\Mcp\Schema\Result

Classes
CallToolResult

The server's response to a tool call.

CompleteResult

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

CreateMessageResult

The client's response to a sampling/create_message 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.

ElicitResult

The client's response to an elicitation request.

EmptyResult

A response that indicates success but carries no data.

GetPromptResult

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

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.

ListToolsResult

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

PaginatedResult

The base object for paginated results.

ReadResourceResult

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

Result

The base result object that is passed to a JSON-RPC response.

StructuredContent

A JSON object that represents the structured result of a tool call.

Interfaces
ClientResult

Interface marker for concrete results that can be used by the client.

ServerResult

Interface marker for concrete results that can be used by the server.