spring-projects / spring-projects/spring-ai
"$schema" is removed from elicitation requests, despite being supported since MCP 2025-11-25
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 9.5k
- Forks
- 2.9k
- Avg merge
- 1d 7h
- Merged PRs (30d)
- 6
Description
These lines remove the $schema json property
but it actually is supported since version 2025-11-25 (including the recent 2026 release)
https://modelcontextprotocol.io/specification/2025-11-25/schema#elicitrequestformparams
interface ElicitRequestFormParams {
task?: TaskMetadata;
_meta?: { progressToken?: ProgressToken; [key: string]: unknown };
mode?: "form";
message: string;
requestedSchema: {
$schema?: string; // <<<< here
type: "object";
properties: { [key: string]: PrimitiveSchemaDefinition };
required?: string[];
};
}
This seems to be an unintentional holdover from 2025-06-18 when the interface was this
https://modelcontextprotocol.io/specification/2025-06-18/schema#elicitrequest
interface ElicitRequest {
method: "elicitation/create";
params: {
message: string;
requestedSchema: {
type: "object";
properties: { [key: string]: PrimitiveSchemaDefinition };
required?: string[];
};
};
}
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in mcp/mcp-annotations/src/main/java/org/springframework/ai/mcp/annotation/context/DefaultMcpAsyncRequestContext.java at the cited lines and compare the request shape with the MCP 2025-11-25 ElicitRequestFormParams schema. Ensure elicitation requests preserve the optional $schema property, then verify the relevant request output or tests if available.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- api
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Quiet
- Clarity
- Clearly specified
- Newbie friendliness
- 78/100