modelcontextprotocol / modelcontextprotocol/kotlin-sdk

support generating json schema for tools

Open
#32 12 comments 12 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

api enhancement ready for work
Dominant language
Kotlin
Stars
1.5k
Forks
248
Avg merge
1d 20h
Merged PRs (30d)
23

Description

the mcp docs for tools contain this:
Best practices

When implementing tools:
...
Use detailed JSON Schema definitions for parameters
..

and the typescript sdk examples just dynamically create json schema from the zod types that the typescript examples use. it would be great if the kotlin sdk has something like this too, or an example how to do it. (the current example is very bare bones)

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 with the Kotlin SDK's current tool example and compare it with the TypeScript SDK examples that dynamically create JSON Schema from Zod types. Review the MCP tools documentation for the required schema behavior. Done means the Kotlin SDK either supports generating tool parameter schemas or provides a complete documented example showing how to do so.

Written by the indexing model from the issue text.

Assessment

Tech stack
kotlin
Domain
api
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.