Skip to content

Commit 9fe88d5

Browse files
Bump github.com/mark3labs/mcp-go from 0.27.0 to 0.28.0 (#39)
* Bump github.com/mark3labs/mcp-go from 0.27.0 to 0.28.0 Bumps [github.com/mark3labs/mcp-go](https://github.com/mark3labs/mcp-go) from 0.27.0 to 0.28.0. - [Release notes](https://github.com/mark3labs/mcp-go/releases) - [Commits](mark3labs/mcp-go@v0.27.0...v0.28.0) --- updated-dependencies: - dependency-name: github.com/mark3labs/mcp-go dependency-version: 0.28.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * Fix ratelimit_test.go to work with mcp-go v0.28.0 --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Juan Antonio Osorio <ozz@stacklok.com>
1 parent fb155d7 commit 9fe88d5

File tree

3 files changed

+18
-28
lines changed

3 files changed

+18
-28
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module github.com/StacklokLabs/mkp
33
go 1.24.2
44

55
require (
6-
github.com/mark3labs/mcp-go v0.27.0
6+
github.com/mark3labs/mcp-go v0.28.0
77
github.com/stretchr/testify v1.10.0
88
k8s.io/api v0.33.1
99
k8s.io/apimachinery v0.33.1

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY=
5252
github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE=
5353
github.com/mailru/easyjson v0.7.7 h1:UGYAvKxe3sBsEDzO8ZeWOSlIQfWFlxbzLZe7hwFURr0=
5454
github.com/mailru/easyjson v0.7.7/go.mod h1:xzfreul335JAWq5oZzymOObrkdz5UnU4kGfJJLY9Nlc=
55-
github.com/mark3labs/mcp-go v0.27.0 h1:iok9kU4DUIU2/XVLgFS2Q9biIDqstC0jY4EQTK2Erzc=
56-
github.com/mark3labs/mcp-go v0.27.0/go.mod h1:rXqOudj/djTORU/ThxYx8fqEVj/5pvTuuebQ2RC7uk4=
55+
github.com/mark3labs/mcp-go v0.28.0 h1:7yl4y5D1KYU2f/9Uxp7xfLIggfunHoESCRbrjcytcLM=
56+
github.com/mark3labs/mcp-go v0.28.0/go.mod h1:rXqOudj/djTORU/ThxYx8fqEVj/5pvTuuebQ2RC7uk4=
5757
github.com/moby/spdystream v0.5.0 h1:7r0J1Si3QO/kjRitvSLVVFUjxMEb/YLj6S9FF62JBCU=
5858
github.com/moby/spdystream v0.5.0/go.mod h1:xBAYlnt/ay+11ShkdFKNAG7LsyK/tmNBVvVOwrfMgdI=
5959
github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q=

pkg/ratelimit/ratelimit_test.go

Lines changed: 15 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,9 @@ func TestRateLimiting(t *testing.T) {
6161

6262
request := mcp.CallToolRequest{
6363
Params: struct {
64-
Name string `json:"name"`
65-
Arguments map[string]interface{} `json:"arguments,omitempty"`
66-
Meta *struct {
67-
ProgressToken mcp.ProgressToken `json:"progressToken,omitempty"`
68-
} `json:"_meta,omitempty"`
64+
Name string `json:"name"`
65+
Arguments map[string]any `json:"arguments,omitempty"`
66+
Meta *mcp.Meta `json:"_meta,omitempty"`
6967
}{
7068
Name: "test-tool",
7169
},
@@ -103,11 +101,9 @@ func TestMultipleSessionRateLimiting(t *testing.T) {
103101

104102
request := mcp.CallToolRequest{
105103
Params: struct {
106-
Name string `json:"name"`
107-
Arguments map[string]interface{} `json:"arguments,omitempty"`
108-
Meta *struct {
109-
ProgressToken mcp.ProgressToken `json:"progressToken,omitempty"`
110-
} `json:"_meta,omitempty"`
104+
Name string `json:"name"`
105+
Arguments map[string]any `json:"arguments,omitempty"`
106+
Meta *mcp.Meta `json:"_meta,omitempty"`
111107
}{
112108
Name: "test-tool",
113109
},
@@ -165,11 +161,9 @@ func TestWindowReset(t *testing.T) {
165161

166162
request := mcp.CallToolRequest{
167163
Params: struct {
168-
Name string `json:"name"`
169-
Arguments map[string]interface{} `json:"arguments,omitempty"`
170-
Meta *struct {
171-
ProgressToken mcp.ProgressToken `json:"progressToken,omitempty"`
172-
} `json:"_meta,omitempty"`
164+
Name string `json:"name"`
165+
Arguments map[string]any `json:"arguments,omitempty"`
166+
Meta *mcp.Meta `json:"_meta,omitempty"`
173167
}{
174168
Name: "test-tool",
175169
},
@@ -215,11 +209,9 @@ func TestToolSpecificLimits(t *testing.T) {
215209
// Test default limit tool (limit = 1)
216210
defaultRequest := mcp.CallToolRequest{
217211
Params: struct {
218-
Name string `json:"name"`
219-
Arguments map[string]interface{} `json:"arguments,omitempty"`
220-
Meta *struct {
221-
ProgressToken mcp.ProgressToken `json:"progressToken,omitempty"`
222-
} `json:"_meta,omitempty"`
212+
Name string `json:"name"`
213+
Arguments map[string]any `json:"arguments,omitempty"`
214+
Meta *mcp.Meta `json:"_meta,omitempty"`
223215
}{
224216
Name: "default-tool",
225217
},
@@ -238,11 +230,9 @@ func TestToolSpecificLimits(t *testing.T) {
238230
// Test high limit tool (limit = 3)
239231
highLimitRequest := mcp.CallToolRequest{
240232
Params: struct {
241-
Name string `json:"name"`
242-
Arguments map[string]interface{} `json:"arguments,omitempty"`
243-
Meta *struct {
244-
ProgressToken mcp.ProgressToken `json:"progressToken,omitempty"`
245-
} `json:"_meta,omitempty"`
233+
Name string `json:"name"`
234+
Arguments map[string]any `json:"arguments,omitempty"`
235+
Meta *mcp.Meta `json:"_meta,omitempty"`
246236
}{
247237
Name: "high-limit-tool",
248238
},

0 commit comments

Comments
 (0)