-
Notifications
You must be signed in to change notification settings - Fork 489
Standard header name used in mcp #320
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
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: JermaineHua <[email protected]>
# Conflicts: # mcp-spring/mcp-spring-webflux/src/main/java/io/modelcontextprotocol/client/transport/WebClientStreamableHttpTransport.java
/** | ||
* Standard header name used in MCP JSON-RPC request and responses. | ||
*/ | ||
public static final class Headers { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I feel that this belongs around something like McpHttpTransport
interface rather than in the McpSpec
, which is more about the JSON-RPC layer.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The primary purpose here is to provide users with the MCP standard header name information. The MCP-Session-Id
does belong to the transport category. Of course, I have omitted the last-event-id
here. At present, I think defining these header names as part of the MCPSchema is the most reasonable approach because I haven't thought of any other more reasonable alternatives. These header names are indeed mentioned in the Specification. Do you have any better suggestions? @chemicL
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, please review the comments.
# Conflicts: # mcp-spring/mcp-spring-webflux/src/main/java/io/modelcontextprotocol/client/transport/WebClientStreamableHttpTransport.java
Motivation and Context
How Has This Been Tested?
Breaking Changes
Types of changes
Checklist
Additional context