Skip to content

Tags: mark3labs/mcp-go

Tags

v0.42.0-beta.2

Toggle v0.42.0-beta.2's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
fix: reuse sessions correctly in streamable HTTP transport (#615) Fixes session management in the streamable HTTP server to properly reuse registered sessions for POST requests instead of always creating ephemeral sessions. This enables SendNotificationToSpecificClient and session-aware features to work correctly with POST-based interactions. Changes: - Check s.server.sessions for existing sessions before creating ephemeral ones - Register sessions after successful initialization from POST requests - Store sessions in both s.server.sessions and s.activeSessions for consistency - Add comprehensive tests for session reuse and notification delivery Fixes #614

v0.42.0-beta.1

Toggle v0.42.0-beta.1's commit message
fmt 

v0.41.1

Toggle v0.41.1's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
fix: replace bufio.Scanner with bufio.Reader to support large message… …s in stdio transport (#603) The bufio.Scanner has a default 64KB token limit which causes 'token too long' errors when MCP servers send large messages (e.g., large tool responses, resource contents, or prompts). This change replaces Scanner with Reader.ReadString('\n') which can handle arbitrarily large lines. Changes: - client/transport/stdio.go: Changed stdout from *bufio.Scanner to *bufio.Reader - testdata/mockstdio_server.go: Applied same fix to mock server - client/transport/stdio_test.go: Added TestStdio_LargeMessages with tests for messages ranging from 1KB to 5MB to ensure the fix works correctly The original code (pre-commit 4e353ac) used bufio.Reader, but was incorrectly changed to Scanner claiming it would avoid panics with long lines. This fix reverts to the Reader approach which actually handles large messages correctly. Fixes issue where stdio clients fail with 'bufio.Scanner: token too long' error when communicating with servers that send large responses.

v0.41.0

Toggle v0.41.0's commit message
format 

v0.40.0

Toggle v0.40.0's commit message
fmt 

v0.39.1

Toggle v0.39.1's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
fix(tool): Do not return empty `outputSchema` (#573) * fix(tool): Do not return empty `outputSchema` If the output schema is not specify, we do not return it as we break the MCP specification that are expecting the following format: ```json "outputSchema": { "type": "object", "properties": {}, "required": [] } ``` * fix(tool): typo in test

v0.39.0

Toggle v0.39.0's commit message
Format 

v0.38.0

Toggle v0.38.0's commit message
Add releases notification 

v0.37.0

Toggle v0.37.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
feat: allow to set a custom logger in the SSE and STDIO clients (#525) * feat: allow to set a custom logger in the SSE client So it logs to a logger instead of stdout. Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com> * fix: tests, docs, stdio logger * chore: lint --------- Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>

Verified

This tag was signed with the committer’s verified signature.
pottekkat Navendu Pottekkat