| Classes | |
|---|---|
| CallToolRequest | Used by the client to invoke a tool provided by the server. |
| 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. |
| 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. |
| ListToolsRequest | Sent from the client to request a list of tools the server has. |
| PaginatedRequest | The base object for paginated requests. |
| 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. |
| Request | The base JSON-RPC request object. |
| SetLevelRequest | A request from the client to the server, to enable or adjust logging. |
| SubscribeRequest | Sent from the client to request |
| UnsubscribeRequest | Sent from the client to request cancellation of |
| Interfaces | |
| ClientRequest | Interface marker for concrete requests that can be used by the client. |
| ServerRequest | Interface marker for concrete requests that can be used by the server. |