| Classes | |
|---|---|
| CallToolRequest | Used by the client to invoke a tool provided by the server. |
| CancelTaskRequest | A request to cancel a task. |
| CompleteRequest | A request from the client to the server, to ask for completion options. |
| CreateMessageRequest | 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. |
| ElicitRequest | A request from the server to elicit additional information from the user via the client. |
| GetPromptRequest | Used by the client to get a prompt provided by the server. |
| GetTaskPayloadRequest | A request to retrieve the result of a completed task. |
| GetTaskRequest | A request to retrieve the state of a task. |
| InitializeRequest | This request is sent from the client to the server when it first connects, asking it to begin initialization. |
| ListPromptsRequest | Sent from the client to request a list of prompts and prompt templates the server has. |
| ListResourcesRequest | Sent from the client to request a list of resources the server has. |
| ListResourceTemplatesRequest | Sent from the client to request a list of resource templates the server has. |
| ListRootsRequest | 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. |
| ListTasksRequest | A request to retrieve a list of tasks. |
| ListToolsRequest | Sent from the client to request a list of tools the server has. |
| PingRequest | 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. |
| ReadResourceRequest | Sent from the client to the server, to read a specific resource URI. |
| SetLevelRequest | A request from the client to the server, to enable or adjust logging. |
| SubscribeRequest | Sent from the client to request resources/updated notifications from the server whenever a particular resource changes. |
| UnsubscribeRequest | Sent from the client to request cancellation of resources/updated notifications from the server. This should follow a previous resources/subscribe request. |
| Interfaces | |
| ClientRequest | Marker for a request that a client may send to a server. |
| ServerRequest | Marker for a request that a server may send to a client. |