Skip to content

Commit e4091f4

Browse files
jie.baotzolov
jie.bao
authored andcommitted
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; }; }
1 parent 344f1b8 commit e4091f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mcp/src/main/java/io/modelcontextprotocol/spec/McpSchema.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1239,7 +1239,7 @@ public record CompleteArgument(
12391239

12401240
@JsonInclude(JsonInclude.Include.NON_ABSENT)
12411241
@JsonIgnoreProperties(ignoreUnknown = true)
1242-
public record CompleteResult(@JsonProperty("values") CompleteCompletion completion) { // @formatter:off
1242+
public record CompleteResult(@JsonProperty("completion") CompleteCompletion completion) { // @formatter:off
12431243

12441244
public record CompleteCompletion(
12451245
@JsonProperty("values") List<String> values,

0 commit comments

Comments
 (0)