Tags: mark3labs/mcp-go
Tags
fix(server): Implement MCP protocol negotiation. (#341) According to [the MCP spec](https://modelcontextprotocol.io/specification/2025-03-26/basic/lifecycle#version-negotiation): > If the server supports the requested protocol version, it MUST respond with > the same version. Otherwise, the server MUST respond with another protocol > version it supports. This adds `mcp.ValidProtocolVersions`, a slice with all currently specified MCP versions. In the `server` package we check if the client provided a known MCP version and, if so, return that version. Otherwise `LATEST_PROTOCOL_VERSION` is returned as previously.
fix(session): Don't send tool changed notifications if session not in… …itialized yet (#289) AddSessionTools and DeleteSessionTools can be called before the session is registered, in particular in the RegisterSession hook. They should not attempt to send `notifications/tools/list_changed` notifications in this case as it will only generate errors.
PreviousNext