Skip to content

Commit da0a034

Browse files
dependabot[bot]kop
andauthored
deps(gomod): bump github.com/mark3labs/mcp-go from 0.27.0 to 0.29.0 in the go-deps group (#27)
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 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/mark3labs/mcp-go/releases">github.com/mark3labs/mcp-go's releases</a>.</em></p> <blockquote> <h2>Release v0.29.0</h2> <h2>What's Changed</h2> <ul> <li>refactor: make CallToolRequest.Arguments more flexible (Breaking Change) by <a href="https://github.com/ezynda3"><code>@​ezynda3</code></a> in <a href="https://redirect.github.com/mark3labs/mcp-go/pull/287">mark3labs/mcp-go#287</a></li> <li>Drop unused fields from server.sseSession by <a href="https://github.com/ggoodman"><code>@​ggoodman</code></a> in <a href="https://redirect.github.com/mark3labs/mcp-go/pull/303">mark3labs/mcp-go#303</a></li> <li>chore: remove unused variables and type arguments by <a href="https://github.com/pottekkat"><code>@​pottekkat</code></a> in <a href="https://redirect.github.com/mark3labs/mcp-go/pull/302">mark3labs/mcp-go#302</a></li> <li>chore(Srv/stdio): duplicated setting of ErrorLogger by <a href="https://github.com/cryo-zd"><code>@​cryo-zd</code></a> in <a href="https://redirect.github.com/mark3labs/mcp-go/pull/306">mark3labs/mcp-go#306</a></li> <li>fix: handle the situation where the channel is closed by <a href="https://github.com/button-chen"><code>@​button-chen</code></a> in <a href="https://redirect.github.com/mark3labs/mcp-go/pull/304">mark3labs/mcp-go#304</a></li> </ul> <h2>Breaking Changes</h2> <p>In <code>v0.29.0</code>, MCP-Go introduces breaking changes to tool request handling. The main change is that <code>request.Params.Arguments</code> is no longer directly accessible as a map. Instead, you must use the new <code>GetArguments()</code> method to retrieve arguments as a map. For type-safe argument access, new helper methods like <code>RequireString()</code>, <code>RequireFloat()</code>, and <code>RequireBool()</code> have been added. To migrate:</p> <ol> <li>Replace direct access to <code>request.Params.Arguments[&quot;key&quot;]</code> with <code>request.GetArguments()[&quot;key&quot;]</code></li> <li>For better type safety, use the new helper methods: <code>request.RequireString(&quot;key&quot;)</code>, <code>request.RequireFloat(&quot;key&quot;)</code>, etc.</li> <li>For complex argument structures, use the new <code>BindArguments()</code> method with a struct, or try the new typed tool handlers with <code>mcp.NewTypedToolHandler()</code> as shown in the new <code>examples/typed_tools</code> example.</li> </ol> <h2>New Contributors</h2> <ul> <li><a href="https://github.com/ggoodman"><code>@​ggoodman</code></a> made their first contribution in <a href="https://redirect.github.com/mark3labs/mcp-go/pull/303">mark3labs/mcp-go#303</a></li> <li><a href="https://github.com/button-chen"><code>@​button-chen</code></a> made their first contribution in <a href="https://redirect.github.com/mark3labs/mcp-go/pull/304">mark3labs/mcp-go#304</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/mark3labs/mcp-go/compare/v0.28.0...v0.29.0">https://github.com/mark3labs/mcp-go/compare/v0.28.0...v0.29.0</a></p> <h2>Release v0.28.0</h2> <h2>What's Changed</h2> <ul> <li>feat(tools): implicitly register capabilities by <a href="https://github.com/david-hamilton-glean"><code>@​david-hamilton-glean</code></a> in <a href="https://redirect.github.com/mark3labs/mcp-go/pull/292">mark3labs/mcp-go#292</a></li> <li>fix: Gate notifications on capabilities by <a href="https://github.com/david-hamilton-glean"><code>@​david-hamilton-glean</code></a> in <a href="https://redirect.github.com/mark3labs/mcp-go/pull/290">mark3labs/mcp-go#290</a></li> <li>feat(protocol): allow additional fields in meta by <a href="https://github.com/anuraaga"><code>@​anuraaga</code></a> in <a href="https://redirect.github.com/mark3labs/mcp-go/pull/293">mark3labs/mcp-go#293</a></li> <li>fix: type mismatch for request/response ID by <a href="https://github.com/pottekkat"><code>@​pottekkat</code></a> in <a href="https://redirect.github.com/mark3labs/mcp-go/pull/291">mark3labs/mcp-go#291</a></li> <li>feat(MCPServer): support <code>logging/setlevel</code> request by <a href="https://github.com/cryo-zd"><code>@​cryo-zd</code></a> in <a href="https://redirect.github.com/mark3labs/mcp-go/pull/276">mark3labs/mcp-go#276</a></li> </ul> <h2>New Contributors</h2> <ul> <li><a href="https://github.com/anuraaga"><code>@​anuraaga</code></a> made their first contribution in <a href="https://redirect.github.com/mark3labs/mcp-go/pull/293">mark3labs/mcp-go#293</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/mark3labs/mcp-go/compare/v0.27.1...v0.28.0">https://github.com/mark3labs/mcp-go/compare/v0.27.1...v0.28.0</a></p> <h2>Release v0.27.1</h2> <h2>What's Changed</h2> <ul> <li>docs: add CONTRIBUTING.md by <a href="https://github.com/pottekkat"><code>@​pottekkat</code></a> in <a href="https://redirect.github.com/mark3labs/mcp-go/pull/275">mark3labs/mcp-go#275</a></li> <li>chore: create CODE_OF_CONDUCT.md by <a href="https://github.com/pottekkat"><code>@​pottekkat</code></a> in <a href="https://redirect.github.com/mark3labs/mcp-go/pull/274">mark3labs/mcp-go#274</a></li> <li>chore: add issue and pull request templates by <a href="https://github.com/pottekkat"><code>@​pottekkat</code></a> in <a href="https://redirect.github.com/mark3labs/mcp-go/pull/281">mark3labs/mcp-go#281</a></li> <li>ci: add golangci-lint by <a href="https://github.com/pottekkat"><code>@​pottekkat</code></a> in <a href="https://redirect.github.com/mark3labs/mcp-go/pull/282">mark3labs/mcp-go#282</a></li> <li>fix: proper deprecation messaging for WithHTTPContextFunc by <a href="https://github.com/aotarola"><code>@​aotarola</code></a> in <a href="https://redirect.github.com/mark3labs/mcp-go/pull/278">mark3labs/mcp-go#278</a></li> <li>chore: add a security policy by <a href="https://github.com/pottekkat"><code>@​pottekkat</code></a> in <a href="https://redirect.github.com/mark3labs/mcp-go/pull/283">mark3labs/mcp-go#283</a></li> <li>fix(docs): Update README link by <a href="https://github.com/david-hamilton-glean"><code>@​david-hamilton-glean</code></a> in <a href="https://redirect.github.com/mark3labs/mcp-go/pull/284">mark3labs/mcp-go#284</a></li> <li>fix(session): Don't send tool changed notifications if session not initialized yet by <a href="https://github.com/david-hamilton-glean"><code>@​david-hamilton-glean</code></a> in <a href="https://redirect.github.com/mark3labs/mcp-go/pull/289">mark3labs/mcp-go#289</a></li> </ul> <h2>New Contributors</h2> <ul> <li><a href="https://github.com/aotarola"><code>@​aotarola</code></a> made their first contribution in <a href="https://redirect.github.com/mark3labs/mcp-go/pull/278">mark3labs/mcp-go#278</a></li> <li><a href="https://github.com/david-hamilton-glean"><code>@​david-hamilton-glean</code></a> made their first contribution in <a href="https://redirect.github.com/mark3labs/mcp-go/pull/284">mark3labs/mcp-go#284</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/mark3labs/mcp-go/compare/v0.27.0...v0.27.1">https://github.com/mark3labs/mcp-go/compare/v0.27.0...v0.27.1</a></p> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/mark3labs/mcp-go/commit/99720bb4c4513ba1d2443b4e5045b7763e0b7142"><code>99720bb</code></a> fix: handle the situation where the channel is closed (<a href="https://redirect.github.com/mark3labs/mcp-go/issues/304">#304</a>)</li> <li><a href="https://github.com/mark3labs/mcp-go/commit/420d52199bb3557fe4bd0f5b5aa07c3e3721ae7b"><code>420d521</code></a> chore(Srv/stdio): duplicated setting of ErrorLogger (<a href="https://redirect.github.com/mark3labs/mcp-go/issues/306">#306</a>)</li> <li><a href="https://github.com/mark3labs/mcp-go/commit/eaa6f29a3b0776e17c7cdc455eeccc9be72b473a"><code>eaa6f29</code></a> chore: remove unused variables and type arguments (<a href="https://redirect.github.com/mark3labs/mcp-go/issues/302">#302</a>)</li> <li><a href="https://github.com/mark3labs/mcp-go/commit/65010c4c5c167e8fa6ca1e4fd242de04027567ce"><code>65010c4</code></a> chore: drop unused fields from sseSession (<a href="https://redirect.github.com/mark3labs/mcp-go/issues/303">#303</a>)</li> <li><a href="https://github.com/mark3labs/mcp-go/commit/28c9cc310fed16014107a4e4c970b1d440066b4a"><code>28c9cc3</code></a> refactor: make CallToolRequest.Arguments more flexible (Breaking Change) (<a href="https://redirect.github.com/mark3labs/mcp-go/issues/287">#287</a>)</li> <li><a href="https://github.com/mark3labs/mcp-go/commit/077f546c180dcd6ba9ad3f8cdb30643ddd153297"><code>077f546</code></a> feat(MCPServer): support <code>logging/setlevel</code> request (<a href="https://redirect.github.com/mark3labs/mcp-go/issues/276">#276</a>)</li> <li><a href="https://github.com/mark3labs/mcp-go/commit/09c23b5fec768432e3362bea05e69f57a3bc7c92"><code>09c23b5</code></a> fix: type mismatch for request/response ID (<a href="https://redirect.github.com/mark3labs/mcp-go/issues/291">#291</a>)</li> <li><a href="https://github.com/mark3labs/mcp-go/commit/91ddba5f0b9cef6fd6b89cae1009b0ab55eeb1c0"><code>91ddba5</code></a> feat(protocol): allow additional fields in meta (<a href="https://redirect.github.com/mark3labs/mcp-go/issues/293">#293</a>)</li> <li><a href="https://github.com/mark3labs/mcp-go/commit/eb835b903dbf9e9f6c594b2344a4e80d98cd0712"><code>eb835b9</code></a> fix: Gate notifications on capabilities (<a href="https://redirect.github.com/mark3labs/mcp-go/issues/290">#290</a>)</li> <li><a href="https://github.com/mark3labs/mcp-go/commit/e7d2547fdc103cc64125097694e68a158beaeccb"><code>e7d2547</code></a> feat(tools): implicitly register capabilities (<a href="https://redirect.github.com/mark3labs/mcp-go/issues/292">#292</a>)</li> <li>Additional commits viewable in <a href="https://github.com/mark3labs/mcp-go/compare/v0.27.0...v0.29.0">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=github.com/mark3labs/mcp-go&package-manager=go_modules&previous-version=0.27.0&new-version=0.29.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore <dependency name> major version` will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself) - `@dependabot ignore <dependency name> minor version` will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself) - `@dependabot ignore <dependency name>` will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself) - `@dependabot unignore <dependency name>` will remove all of the ignore conditions of the specified dependency - `@dependabot unignore <dependency name> <ignore condition>` will remove the ignore condition of the specified dependency and ignore conditions </details> --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Ivan Koptiev <[email protected]>
1 parent a64f8c1 commit da0a034

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ require (
66
github.com/JohannesKaufmann/html-to-markdown/v2 v2.3.2
77
github.com/firebolt-db/firebolt-go-sdk v1.8.1
88
github.com/gocolly/colly/v2 v2.2.0
9-
github.com/mark3labs/mcp-go v0.27.0
9+
github.com/mark3labs/mcp-go v0.29.0
1010
github.com/neilotoole/slogt v1.1.0
1111
github.com/stretchr/testify v1.10.0
1212
github.com/urfave/cli/v3 v3.3.3

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,8 @@ github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY=
110110
github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE=
111111
github.com/ledisdb/ledisdb v0.0.0-20200510135210-d35789ec47e6/go.mod h1:n931TsDuKuq+uX4v1fulaMbA/7ZLLhjc85h7chZGBCQ=
112112
github.com/lib/pq v1.0.0/go.mod h1:5WUZQaWbwv1U+lTReE5YruASi9Al49XbQIvNi/34Woo=
113-
github.com/mark3labs/mcp-go v0.27.0 h1:iok9kU4DUIU2/XVLgFS2Q9biIDqstC0jY4EQTK2Erzc=
114-
github.com/mark3labs/mcp-go v0.27.0/go.mod h1:rXqOudj/djTORU/ThxYx8fqEVj/5pvTuuebQ2RC7uk4=
113+
github.com/mark3labs/mcp-go v0.29.0 h1:sH1NBcumKskhxqYzhXfGc201D7P76TVXiT0fGVhabeI=
114+
github.com/mark3labs/mcp-go v0.29.0/go.mod h1:rXqOudj/djTORU/ThxYx8fqEVj/5pvTuuebQ2RC7uk4=
115115
github.com/matishsiao/goInfo v0.0.0-20210923090445-da2e3fa8d45f h1:B0OD7nYl2FPQEVrw8g2uyc1lGEzNbvrKh7fspGZcbvY=
116116
github.com/matishsiao/goInfo v0.0.0-20210923090445-da2e3fa8d45f/go.mod h1:aEt7p9Rvh67BYApmZwNDPpgircTO2kgdmDUoF/1QmwA=
117117
github.com/mattn/go-sqlite3 v2.0.3+incompatible/go.mod h1:FPy6KqzDD04eiIsT53CuJW3U88zkxoIYsOqkbpncsNc=

pkg/tools/connect.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ func (t *Connect) Tool() mcp.Tool {
9292
func (t *Connect) Handler(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) {
9393

9494
// Verify docs read proof
95-
proof, err := args.String(request.Params.Arguments, "docs_proof")
95+
proof, err := args.String(request.GetArguments(), "docs_proof")
9696
if err != nil {
9797
return nil, fmt.Errorf("bad request: %w", err)
9898
}

pkg/tools/docs.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ func (t *Docs) Handler(ctx context.Context, request mcp.CallToolRequest) (*mcp.C
7272
)
7373

7474
// Extract article IDs from request parameters if provided
75-
val, ok := request.Params.Arguments["articles"]
75+
val, ok := request.GetArguments()["articles"]
7676
if ok && val != nil {
7777
articleIDs = val.([]any)
7878
} else {

pkg/tools/query.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ func (t *Query) Tool() mcp.Tool {
8080
func (t *Query) Handler(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) {
8181

8282
// Extract the required and optional arguments from the request
83-
requireds, err1 := args.Strings(request.Params.Arguments, "query", "account")
84-
optionals, err2 := args.MaybeStrings(request.Params.Arguments, "database", "engine")
83+
requireds, err1 := args.Strings(request.GetArguments(), "query", "account")
84+
optionals, err2 := args.MaybeStrings(request.GetArguments(), "database", "engine")
8585
if err := errors.Join(err1, err2); err != nil {
8686
return nil, fmt.Errorf("bad request: %w", err)
8787
}

0 commit comments

Comments
 (0)