spring-projects / spring-projects/spring-ai

"$schema" is removed from elicitation requests, despite being supported since MCP 2025-11-25

Open Beginner friendly
#6,730 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

status: waiting-for-triage
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

https://github.com/spring-projects/spring-ai/blob/e6feadb74bf407e94a96dc47cf5e4e405fa18838/mcp/mcp-annotations/src/main/java/org/springframework/ai/mcp/annotation/context/DefaultMcpAsyncRequestContext.java#L164-L169

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.