Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mcp kotlin server does not process JSONRPCRequest with null param, but python sdk may send with null param #42

Open
shendaxia-sm opened this issue Feb 11, 2025 · 1 comment
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@shendaxia-sm
Copy link

Describe the bug

this request works with kotlin mcp server:

{“id”:“1”,“jsonrpc”:“2.0”,“method”:“tools/list”,“params”:{}}

but this request not works:

{“id”:“1”,“jsonrpc”:“2.0”,“method”:“tools/list”}

python sdk client send with null params, but kotlin sdk deserialize json with default null param, and will not invoker handler when param lis null

so kotlin sdk should set params default to EmptyJsonObject

To Reproduce
Steps to reproduce the behavior:
use python SSE Transport client send list tool command to a kotlin mcp server, will reproduce this issue.

Expected behavior
A clear and concise description of what you expected to happen.

Logs
If applicable, add logs to help explain your problem.

Additional context
Add any other context about the problem here.

@shendaxia-sm shendaxia-sm added the bug Something isn't working label Feb 11, 2025
@e5l
Copy link
Collaborator

e5l commented Feb 12, 2025

Hey @shendaxia-sm, thanks for the report.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants