Name | Modified | Size | Downloads / Week |
---|---|---|---|
Parent folder | |||
README.md | 2025-05-20 | 1.8 kB | |
Release v0.29.0 source code.tar.gz | 2025-05-20 | 166.5 kB | |
Release v0.29.0 source code.zip | 2025-05-20 | 204.3 kB | |
Totals: 3 Items | 372.5 kB | 0 |
What's Changed
- refactor: make CallToolRequest.Arguments more flexible (Breaking Change) by @ezynda3 in https://github.com/mark3labs/mcp-go/pull/287
- Drop unused fields from server.sseSession by @ggoodman in https://github.com/mark3labs/mcp-go/pull/303
- chore: remove unused variables and type arguments by @pottekkat in https://github.com/mark3labs/mcp-go/pull/302
- chore(Srv/stdio): duplicated setting of ErrorLogger by @cryo-zd in https://github.com/mark3labs/mcp-go/pull/306
- fix: handle the situation where the channel is closed by @button-chen in https://github.com/mark3labs/mcp-go/pull/304
Breaking Changes
In v0.29.0
, MCP-Go introduces breaking changes to tool request handling. The main change is that request.Params.Arguments
is no longer directly accessible as a map. Instead, you must use the new GetArguments()
method to retrieve arguments as a map. For type-safe argument access, new helper methods like RequireString()
, RequireFloat()
, and RequireBool()
have been added. To migrate:
1. Replace direct access to request.Params.Arguments["key"]
with request.GetArguments()["key"]
2. For better type safety, use the new helper methods: request.RequireString("key")
, request.RequireFloat("key")
, etc.
3. For complex argument structures, use the new BindArguments()
method with a struct, or try the new typed tool handlers with mcp.NewTypedToolHandler()
as shown in the new examples/typed_tools
example.
New Contributors
- @ggoodman made their first contribution in https://github.com/mark3labs/mcp-go/pull/303
- @button-chen made their first contribution in https://github.com/mark3labs/mcp-go/pull/304
Full Changelog: https://github.com/mark3labs/mcp-go/compare/v0.28.0...v0.29.0