Skip to content

Conversation

@He-Pin
Copy link
Contributor

@He-Pin He-Pin commented Nov 18, 2025

Motivation and Context

ISSUE: modelcontextprotocol/modelcontextprotocol#1686
PR: modelcontextprotocol/modelcontextprotocol#1732

Issue in Java-sdk : #668

How Has This Been Tested?

Breaking Changes

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update

Checklist

  • I have read the MCP Documentation
  • My code follows the repository's style guidelines
  • New and existing tests pass locally
  • I have added appropriate error handling
  • I have added or updated documentation as needed

Additional context

@He-Pin He-Pin marked this pull request as draft November 18, 2025 06:35
@He-Pin He-Pin changed the title WIP feat: Add taskHint and builder to schema feat: Add task related things to schema Nov 18, 2025
@He-Pin He-Pin marked this pull request as ready for review November 18, 2025 08:05
@He-Pin
Copy link
Contributor Author

He-Pin commented Nov 18, 2025

I will try to implement this internal first, feel free to continue

@Kehrlann Kehrlann added this to the 0.16.0 milestone Nov 18, 2025
@Kehrlann Kehrlann self-assigned this Nov 18, 2025
@Kehrlann Kehrlann removed this from the 0.16.0 milestone Nov 18, 2025
@He-Pin
Copy link
Contributor Author

He-Pin commented Nov 18, 2025

I would like to add modelcontextprotocol/modelcontextprotocol#1831 to this too

@Kehrlann Kehrlann added the waiting for user Waiting for user feedback or more details label Nov 18, 2025
@Kehrlann
Copy link
Contributor

Let's wait until the bizContext is resolved.

@He-Pin
Copy link
Contributor Author

He-Pin commented Nov 18, 2025

I'm ok to just drop it if time is not OK, and at the same time, I'm implementing it first internal too.

@Kehrlann
Copy link
Contributor

Let's park this for now, then.

@He-Pin
Copy link
Contributor Author

He-Pin commented Nov 18, 2025

@Kehrlann Just dropped.

@Kehrlann Kehrlann removed the waiting for user Waiting for user feedback or more details label Nov 18, 2025
@He-Pin He-Pin force-pushed the taskHink branch 8 times, most recently from 584e4a5 to 8544229 Compare November 19, 2025 18:09
@JsonProperty("content") List<Content> content,
@JsonProperty("isError") Boolean isError,
@JsonProperty("structuredContent") Object structuredContent,
@JsonProperty("task") Task task,
Copy link
Contributor Author

@He-Pin He-Pin Nov 19, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No | type in Java, so add the task here instead of GetTaskRequest | CallToolResult, an Either type will change much code, and Object loses type safety.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was adding a CallToolAuxResult and I found the JSONRPCResponse has a JSONRPCError, so I will follow the same design. it should be JSONRPCResponse | JSONRPCError, but the current shape seems pratical.

*/
Map<String, Object> meta();

sealed interface McpEvent extends McpMessage {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where are these in the spec? I don't find them.

Copy link
Contributor Author

@He-Pin He-Pin Nov 26, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My current implementation at work is Flux<McpMessage> callToolStream(CallToolRequest request) to support streaming responses. We also have callTool(CallToolRequest request) built upon this implementation.

I specifically plan to support streaming responses in the future. However, because my implementation at work is far more complex than a memory-based implementation, it's not yet ready for open-source development.

modelcontextprotocol/modelcontextprotocol#1905

@He-Pin
Copy link
Contributor Author

He-Pin commented Nov 26, 2025

Update: Although my implementation at work is based on this, it includes database, some internal message queues, RPC, SSE, and webhook integration, so I don't expect to be able to contribute anything other than the schema for the next week or two.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants