modelcontextprotocol / modelcontextprotocol/java-sdk

add a configuration option that can ignore illegal format jsonrpc

Open
#544 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement P3
Dominant language
Java
Stars
3.7k
Forks
1.1k
Avg merge
1d 15h
Merged PRs (30d)
9

Description

Expected Behavior

add a configuration option that can ignore illegal format jsonrpc

Current Behavior
just break when meeting the illegal behavior.

Context
there is no guarantee that there are no interfering messages when connecting to spring ai mcp server using stdio.
Using the config, we can just skip the error but have a clear log for developers.
pls look at this issue on spring-ai
https://github.com/spring-projects/spring-ai/issues/3769

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 by reviewing the referenced Spring AI issue and tracing how illegal JSON-RPC messages are handled when connecting to a Spring AI MCP server over stdio. Done means a configuration option can skip these errors while emitting a clear developer-facing log, without breaking the connection unexpectedly.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.