chore: Extract McpSchema to a dedicated module#672
chore: Extract McpSchema to a dedicated module#672He-Pin wants to merge 2 commits intomodelcontextprotocol:mainfrom
Conversation
Signed-off-by: He-Pin <hepin1989@gmail.com>
|
The code is MIT licensed. If an implementer only wants to keep the schema, they are free to use the Java class directly, provided they include the license. We don't want to deal with the overhead of a separate module. |
|
But we already added a |
|
The reason we added It's not for consumption outside of MCP, rather for having a "json" SPI |
|
There's also an advantage here: users can provide their own McpSchema implementation in a binary-compatible way, adding fields while reusing all the capabilities of the existing SDK. Currently, we cannot update the model independently when using mcp-core. @Kehrlann, wdyt, this will enable users to iterate on the schema and implementation separately. |
|
I don't think there is a lot of demand for this. I'm going to close the PR, please open an issue instead. Please give detailed examples of what you're trying to achieve exactly. We'll see if the issue gains traction, and we'll sync about it. |
Motivation and Context
This will help the implementations who want to handle everything theirself
How Has This Been Tested?
Breaking Changes
Types of changes
Checklist
Additional context