You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -1100,6 +1101,7 @@ public ValueTask<JsonElement> GetTaskResultAsync(
1100
1101
/// <param name="options">Optional request options including metadata, serialization settings, and progress tracking.</param>
1101
1102
/// <param name="cancellationToken">The <see cref="CancellationToken"/> to monitor for cancellation requests. The default is <see cref="CancellationToken.None"/>.</param>
1102
1103
/// <returns>A list of all tasks.</returns>
1104
+
/// <exception cref="McpException">The request failed or the server returned an error response.</exception>
@@ -1125,6 +1127,7 @@ public async ValueTask<IList<McpTask>> ListTasksAsync(
1125
1127
/// <param name="cancellationToken">The <see cref="CancellationToken"/> to monitor for cancellation requests. The default is <see cref="CancellationToken.None"/>.</param>
1126
1128
/// <returns>The result of the request as provided by the server.</returns>
1127
1129
/// <exception cref="ArgumentNullException"><paramref name="requestParams"/> is <see langword="null"/>.</exception>
1130
+
/// <exception cref="McpException">The request failed or the server returned an error response.</exception>
1128
1131
/// <remarks>
1129
1132
/// The <see cref="ListTasksAsync(RequestOptions?, CancellationToken)"/> overload retrieves all tasks by automatically handling pagination.
1130
1133
/// This overload works with the lower-level <see cref="ListTasksRequestParams"/> and <see cref="ListTasksResult"/>, returning the raw result from the server.
@@ -1154,6 +1157,7 @@ public ValueTask<ListTasksResult> ListTasksAsync(
1154
1157
/// <returns>The updated state of the task after cancellation.</returns>
1155
1158
/// <exception cref="ArgumentNullException"><paramref name="taskId"/> is <see langword="null"/>.</exception>
1156
1159
/// <exception cref="ArgumentException"><paramref name="taskId"/> is empty or composed entirely of whitespace.</exception>
1160
+
/// <exception cref="McpException">The request failed or the server returned an error response.</exception>
1157
1161
/// <remarks>
1158
1162
/// Cancelling a task requests that the server stop execution. The server may not immediately cancel the task,
1159
1163
/// and may choose to allow the task to complete if it's close to finishing.
0 commit comments