From ff00f245f795b3acf8a6500d8cb484b7416876db Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 20 May 2025 12:22:36 +0000 Subject: [PATCH 1/2] deps(gomod): bump github.com/mark3labs/mcp-go in the go-deps group Bumps the go-deps group with 1 update: [github.com/mark3labs/mcp-go](https://github.com/mark3labs/mcp-go). Updates `github.com/mark3labs/mcp-go` from 0.27.0 to 0.29.0 - [Release notes](https://github.com/mark3labs/mcp-go/releases) - [Commits](https://github.com/mark3labs/mcp-go/compare/v0.27.0...v0.29.0) --- updated-dependencies: - dependency-name: github.com/mark3labs/mcp-go dependency-version: 0.29.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: go-deps ... Signed-off-by: dependabot[bot] --- go.mod | 2 +- go.sum | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index 6421636..c44fe28 100644 --- a/go.mod +++ b/go.mod @@ -6,7 +6,7 @@ require ( github.com/JohannesKaufmann/html-to-markdown/v2 v2.3.2 github.com/firebolt-db/firebolt-go-sdk v1.8.1 github.com/gocolly/colly/v2 v2.2.0 - github.com/mark3labs/mcp-go v0.27.0 + github.com/mark3labs/mcp-go v0.29.0 github.com/neilotoole/slogt v1.1.0 github.com/stretchr/testify v1.10.0 github.com/urfave/cli/v3 v3.3.3 diff --git a/go.sum b/go.sum index 841fb4a..b7c1562 100644 --- a/go.sum +++ b/go.sum @@ -110,8 +110,8 @@ github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= github.com/ledisdb/ledisdb v0.0.0-20200510135210-d35789ec47e6/go.mod h1:n931TsDuKuq+uX4v1fulaMbA/7ZLLhjc85h7chZGBCQ= github.com/lib/pq v1.0.0/go.mod h1:5WUZQaWbwv1U+lTReE5YruASi9Al49XbQIvNi/34Woo= -github.com/mark3labs/mcp-go v0.27.0 h1:iok9kU4DUIU2/XVLgFS2Q9biIDqstC0jY4EQTK2Erzc= -github.com/mark3labs/mcp-go v0.27.0/go.mod h1:rXqOudj/djTORU/ThxYx8fqEVj/5pvTuuebQ2RC7uk4= +github.com/mark3labs/mcp-go v0.29.0 h1:sH1NBcumKskhxqYzhXfGc201D7P76TVXiT0fGVhabeI= +github.com/mark3labs/mcp-go v0.29.0/go.mod h1:rXqOudj/djTORU/ThxYx8fqEVj/5pvTuuebQ2RC7uk4= github.com/matishsiao/goInfo v0.0.0-20210923090445-da2e3fa8d45f h1:B0OD7nYl2FPQEVrw8g2uyc1lGEzNbvrKh7fspGZcbvY= github.com/matishsiao/goInfo v0.0.0-20210923090445-da2e3fa8d45f/go.mod h1:aEt7p9Rvh67BYApmZwNDPpgircTO2kgdmDUoF/1QmwA= github.com/mattn/go-sqlite3 v2.0.3+incompatible/go.mod h1:FPy6KqzDD04eiIsT53CuJW3U88zkxoIYsOqkbpncsNc= From 2f92a5ddb2c628833289d17338dd9ea63dcf9a8e Mon Sep 17 00:00:00 2001 From: Ivan Koptiev Date: Tue, 20 May 2025 17:54:21 +0300 Subject: [PATCH 2/2] refactor: update arguments usage according to update from mark3labs/mcp-go --- pkg/tools/connect.go | 2 +- pkg/tools/docs.go | 2 +- pkg/tools/query.go | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/tools/connect.go b/pkg/tools/connect.go index 24bf6a5..27844e6 100644 --- a/pkg/tools/connect.go +++ b/pkg/tools/connect.go @@ -92,7 +92,7 @@ func (t *Connect) Tool() mcp.Tool { func (t *Connect) Handler(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Verify docs read proof - proof, err := args.String(request.Params.Arguments, "docs_proof") + proof, err := args.String(request.GetArguments(), "docs_proof") if err != nil { return nil, fmt.Errorf("bad request: %w", err) } diff --git a/pkg/tools/docs.go b/pkg/tools/docs.go index 7c96cdf..bb4bdce 100644 --- a/pkg/tools/docs.go +++ b/pkg/tools/docs.go @@ -72,7 +72,7 @@ func (t *Docs) Handler(ctx context.Context, request mcp.CallToolRequest) (*mcp.C ) // Extract article IDs from request parameters if provided - val, ok := request.Params.Arguments["articles"] + val, ok := request.GetArguments()["articles"] if ok && val != nil { articleIDs = val.([]any) } else { diff --git a/pkg/tools/query.go b/pkg/tools/query.go index e1d1c8e..af71c70 100644 --- a/pkg/tools/query.go +++ b/pkg/tools/query.go @@ -80,8 +80,8 @@ func (t *Query) Tool() mcp.Tool { func (t *Query) Handler(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Extract the required and optional arguments from the request - requireds, err1 := args.Strings(request.Params.Arguments, "query", "account") - optionals, err2 := args.MaybeStrings(request.Params.Arguments, "database", "engine") + requireds, err1 := args.Strings(request.GetArguments(), "query", "account") + optionals, err2 := args.MaybeStrings(request.GetArguments(), "database", "engine") if err := errors.Join(err1, err2); err != nil { return nil, fmt.Errorf("bad request: %w", err) }