Fix: Add missing notifications/initialized message after client initialization #127
+166
−17
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.
Problem
Python MCP servers (like mcp-server-fetch) require a
notifications/initialized
message after theinitialize
response to complete the initialization sequence according to the MCP protocol specification. Without this notification, Python servers reject subsequent requests with "Invalid request parameters" errors.Root Cause
The Go MCP client was missing the required
notifications/initialized
notification that signals the client has completed initialization and is ready to receive requests. This is enforced by Python MCP servers but not by TypeScript servers, causing compatibility issues.Solution
Added the missing notification in the
Initialize
method after successful initialization:Testing
Impact
This change ensures the Go MCP client properly follows the MCP protocol initialization sequence, making it compatible with both TypeScript and Python MCP server implementations without breaking existing functionality.
Fixes compatibility with Python MCP servers including:
Checklist