feat(completion): fix the schema about CompleteResult

/**
 * The server's response to a completion/complete request
 */
export
interface CompleteResult extends Result {
  completion: {
    /**
     *
An array of completion values. Must not exceed 100 items.
     */

values: string[];
    /**
     * The total number of completion options
available. This can exceed the number of values actually sent in the
response.
     */
    total?: number;
    /**
     * Indicates whether
there are additional completion options beyond those provided in the
current response, even if the exact total is unknown.
     */

hasMore?: boolean;
  };
}
This commit is contained in:
jie.bao 2025-04-18 09:34:55 +08:00 • committed by Christian Tzolov
commit e4091f458a

View file

@ -1239,7 +1239,7 @@ public final class McpSchema {
@JsonInclude(JsonInclude.Include.NON_ABSENT)
@JsonIgnoreProperties(ignoreUnknown = true)
public record CompleteResult(@JsonProperty("values") CompleteCompletion completion) { // @formatter:off
public record CompleteResult(@JsonProperty("completion") CompleteCompletion completion) { // @formatter:off
public record CompleteCompletion(
@JsonProperty("values") List<String> values,