internal/jsonrpc2,mcp: fix typos #183
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request includes various documentation updates and minor code adjustments to improve clarity and consistency across the codebase. The changes focus on refining comments, fixing references, and correcting naming conventions.
Documentation Updates:
mcp/server.go: Updated comments to remove references to[Server.Start]and use[Server.Run]consistently, ensuring alignment with the current implementation. [1] [2]mcp/server.go: Changed the reference from[idContext]to[idContextKey]for better clarity in comments about request ID handling.mcp/shared.go: Improved comments to use square brackets around type names ([ClientSession],[ServerSession],[MethodHandler]) for consistency with documentation conventions. [1] [2]mcp/transport.go: Updated comments to clarify implementation details, such as changingPreempt implements jsonrpc2.PreemptertoPreempt implements [jsonrpc2.Preempter].Code Adjustments:
internal/jsonrpc2/conn.go: Fixed panic message strings to remove_v2suffix for consistency with the current naming conventions. [1] [2]mcp/transport.go: Renamed middleware function descriptions in comments (loggingReader→Read,loggingWriter→Write) to match method names directly. [1] [2]