forgejo-mcp/tools/repo
Ronmi Ren 0be9cd0060 refactor: upgrade MCP SDK from v0.2.x to v0.4.0
This commit updates all MCP tool handlers to be compatible with MCP SDK v0.4.0:

- Update Handler function signatures from ServerRequest[*CallToolParamsFor[T]] to CallToolRequest with direct args
- Change parameter access from req.Params.Arguments to direct args parameter
- Modify return types from (*CallToolResult, error) to (*CallToolResult, any, error)
- Update all error returns to three-parameter format (result, output, error)
- Fix all success returns to include the third parameter

Total 42 handler functions updated across 15 files.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-12 05:17:28 +08:00
..
doc.go Add package documentation for all subpackages 2025-08-06 16:44:23 +08:00
list.go refactor: upgrade MCP SDK from v0.2.x to v0.4.0 2025-09-12 05:17:28 +08:00