New MCP Schema types-2 (#386)#387
Closed
kpavlov wants to merge 7 commits into
Closed
Conversation
kpavlov
commented
Nov 11, 2025
Comment on lines
31
to
36
| val weatherForecastResult = client.callTool( | ||
| CallToolRequest( | ||
| name = "get_forecast", | ||
| arguments = buildJsonObject { | ||
| put("latitude", JsonPrimitive(38.5816)) | ||
| put("longitude", JsonPrimitive(-121.4944)) | ||
| }, | ||
| name = "get_forecast", | ||
| arguments = mapOf( | ||
| "latitude" to 38.5816, | ||
| "longitude" to -121.4944, | ||
| ), |
Contributor
Author
There was a problem hiding this comment.
It's preferable to use DSL in user's code and avoid exposing transport classes to users
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implement the last version of the mcp schema and complete restructuring of the mcp schema implementation from a monolithic
types.ktfile into separate files.Note: This is an improvement of #386 to improve source-compatibility with 0.7.7
Motivation and Context
The previous implementation of the mcp schema was outdated and contained several issues. In addition, it stored all mcp types in a single large file, which made maintenance and further development more difficult
How Has This Been Tested?
All tests passed
Breaking Changes
Yes. The new types are now located in a separate package. Additionally, many types have new parameters and modified constructors
Types of changes
Checklist
Additional context
to adopt the new structure:
Before:
After: