Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd4a0764

Browse files
committed
Bump mcp-go to 0.30.0
1 parent414309c commitd4a0764

9 files changed

+25
-25
lines changed

‎go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ go 1.23.7
44

55
require (
66
github.com/google/go-github/v69v69.2.0
7-
github.com/mark3labs/mcp-gov0.28.0
7+
github.com/mark3labs/mcp-gov0.30.0
88
github.com/migueleliasweb/go-github-mockv1.3.0
99
github.com/sirupsen/logrusv1.9.3
1010
github.com/spf13/cobrav1.9.1

‎go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ=
3131
github.com/kr/textv0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI=
3232
github.com/kr/textv0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY=
3333
github.com/kr/textv0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE=
34-
github.com/mark3labs/mcp-gov0.28.0 h1:7yl4y5D1KYU2f/9Uxp7xfLIggfunHoESCRbrjcytcLM=
35-
github.com/mark3labs/mcp-gov0.28.0/go.mod h1:rXqOudj/djTORU/ThxYx8fqEVj/5pvTuuebQ2RC7uk4=
34+
github.com/mark3labs/mcp-gov0.30.0 h1:Taz7fiefkxY/l8jz1nA90V+WdM2eoMtlvwfWforVYbo=
35+
github.com/mark3labs/mcp-gov0.30.0/go.mod h1:rXqOudj/djTORU/ThxYx8fqEVj/5pvTuuebQ2RC7uk4=
3636
github.com/migueleliasweb/go-github-mockv1.3.0 h1:2sVP9JEMB2ubQw1IKto3/fzF51oFC6eVWOOFDgQoq88=
3737
github.com/migueleliasweb/go-github-mockv1.3.0/go.mod h1:ipQhV8fTcj/G6m7BKzin08GaJ/3B5/SonRAkgrk0zCY=
3838
github.com/pelletier/go-toml/v2v2.2.3 h1:YmeHyLY8mFWbdkNWwpr+qIL2bEqT0o95WSdkNHvL12M=

‎pkg/github/helper_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,12 +109,12 @@ func mockResponse(t *testing.T, code int, body interface{}) http.HandlerFunc {
109109
}
110110

111111
// createMCPRequest is a helper function to create a MCP request with the given arguments.
112-
funccreateMCPRequest(argsmap[string]any) mcp.CallToolRequest {
112+
funccreateMCPRequest(argsany) mcp.CallToolRequest {
113113
return mcp.CallToolRequest{
114114
Params:struct {
115-
Namestring`json:"name"`
116-
Argumentsmap[string]any`json:"arguments,omitempty"`
117-
Meta*mcp.Meta`json:"_meta,omitempty"`
115+
Namestring`json:"name"`
116+
Argumentsany`json:"arguments,omitempty"`
117+
Meta*mcp.Meta`json:"_meta,omitempty"`
118118
}{
119119
Arguments:args,
120120
},

‎pkg/github/issues.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -450,11 +450,11 @@ func ListIssues(getClient GetClientFn, t translations.TranslationHelperFunc) (to
450450
opts.Since=timestamp
451451
}
452452

453-
ifpage,ok:=request.Params.Arguments["page"].(float64);ok {
453+
ifpage,ok:=request.GetArguments()["page"].(float64);ok {
454454
opts.Page=int(page)
455455
}
456456

457-
ifperPage,ok:=request.Params.Arguments["perPage"].(float64);ok {
457+
ifperPage,ok:=request.GetArguments()["perPage"].(float64);ok {
458458
opts.PerPage=int(perPage)
459459
}
460460

‎pkg/github/repositories.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -869,7 +869,7 @@ func PushFiles(getClient GetClientFn, t translations.TranslationHelperFunc) (too
869869
}
870870

871871
// Parse files parameter - this should be an array of objects with path and content
872-
filesObj,ok:=request.Params.Arguments["files"].([]interface{})
872+
filesObj,ok:=request.GetArguments()["files"].([]interface{})
873873
if!ok {
874874
returnmcp.NewToolResultError("files parameter must be an array of objects with path and content"),nil
875875
}

‎pkg/github/server.go

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ func NewServer(version string, opts ...server.ServerOption) *server.MCPServer {
3333
// It returns the value, a boolean indicating if the parameter was present, and an error if the type is wrong.
3434
funcOptionalParamOK[Tany](r mcp.CallToolRequest,pstring) (valueT,okbool,errerror) {
3535
// Check if the parameter is present in the request
36-
val,exists:=r.Params.Arguments[p]
36+
val,exists:=r.GetArguments()[p]
3737
if!exists {
3838
// Not present, return zero value, false, no error
3939
return
@@ -68,21 +68,21 @@ func requiredParam[T comparable](r mcp.CallToolRequest, p string) (T, error) {
6868
varzeroT
6969

7070
// Check if the parameter is present in the request
71-
if_,ok:=r.Params.Arguments[p];!ok {
71+
if_,ok:=r.GetArguments()[p];!ok {
7272
returnzero,fmt.Errorf("missing required parameter: %s",p)
7373
}
7474

7575
// Check if the parameter is of the expected type
76-
if_,ok:=r.Params.Arguments[p].(T);!ok {
76+
if_,ok:=r.GetArguments()[p].(T);!ok {
7777
returnzero,fmt.Errorf("parameter %s is not of type %T",p,zero)
7878
}
7979

80-
ifr.Params.Arguments[p].(T)==zero {
80+
ifr.GetArguments()[p].(T)==zero {
8181
returnzero,fmt.Errorf("missing required parameter: %s",p)
8282

8383
}
8484

85-
returnr.Params.Arguments[p].(T),nil
85+
returnr.GetArguments()[p].(T),nil
8686
}
8787

8888
// RequiredInt is a helper function that can be used to fetch a requested parameter from the request.
@@ -106,16 +106,16 @@ func OptionalParam[T any](r mcp.CallToolRequest, p string) (T, error) {
106106
varzeroT
107107

108108
// Check if the parameter is present in the request
109-
if_,ok:=r.Params.Arguments[p];!ok {
109+
if_,ok:=r.GetArguments()[p];!ok {
110110
returnzero,nil
111111
}
112112

113113
// Check if the parameter is of the expected type
114-
if_,ok:=r.Params.Arguments[p].(T);!ok {
115-
returnzero,fmt.Errorf("parameter %s is not of type %T, is %T",p,zero,r.Params.Arguments[p])
114+
if_,ok:=r.GetArguments()[p].(T);!ok {
115+
returnzero,fmt.Errorf("parameter %s is not of type %T, is %T",p,zero,r.GetArguments()[p])
116116
}
117117

118-
returnr.Params.Arguments[p].(T),nil
118+
returnr.GetArguments()[p].(T),nil
119119
}
120120

121121
// OptionalIntParam is a helper function that can be used to fetch a requested parameter from the request.
@@ -149,11 +149,11 @@ func OptionalIntParamWithDefault(r mcp.CallToolRequest, p string, d int) (int, e
149149
// 2. If it is present, iterates the elements and checks each is a string
150150
funcOptionalStringArrayParam(r mcp.CallToolRequest,pstring) ([]string,error) {
151151
// Check if the parameter is present in the request
152-
if_,ok:=r.Params.Arguments[p];!ok {
152+
if_,ok:=r.GetArguments()[p];!ok {
153153
return []string{},nil
154154
}
155155

156-
switchv:=r.Params.Arguments[p].(type) {
156+
switchv:=r.GetArguments()[p].(type) {
157157
casenil:
158158
return []string{},nil
159159
case []string:
@@ -169,7 +169,7 @@ func OptionalStringArrayParam(r mcp.CallToolRequest, p string) ([]string, error)
169169
}
170170
returnstrSlice,nil
171171
default:
172-
return []string{},fmt.Errorf("parameter %s could not be coerced to []string, is %T",p,r.Params.Arguments[p])
172+
return []string{},fmt.Errorf("parameter %s could not be coerced to []string, is %T",p,r.GetArguments()[p])
173173
}
174174
}
175175

‎third-party-licenses.darwin.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Some packages may only be included on certain architectures or operating systems
1313
-[github.com/google/go-github/v69/github](https://pkg.go.dev/github.com/google/go-github/v69/github) ([BSD-3-Clause](https://github.com/google/go-github/blob/v69.2.0/LICENSE))
1414
-[github.com/google/go-querystring/query](https://pkg.go.dev/github.com/google/go-querystring/query) ([BSD-3-Clause](https://github.com/google/go-querystring/blob/v1.1.0/LICENSE))
1515
-[github.com/google/uuid](https://pkg.go.dev/github.com/google/uuid) ([BSD-3-Clause](https://github.com/google/uuid/blob/v1.6.0/LICENSE))
16-
-[github.com/mark3labs/mcp-go](https://pkg.go.dev/github.com/mark3labs/mcp-go) ([MIT](https://github.com/mark3labs/mcp-go/blob/v0.28.0/LICENSE))
16+
-[github.com/mark3labs/mcp-go](https://pkg.go.dev/github.com/mark3labs/mcp-go) ([MIT](https://github.com/mark3labs/mcp-go/blob/v0.30.0/LICENSE))
1717
-[github.com/pelletier/go-toml/v2](https://pkg.go.dev/github.com/pelletier/go-toml/v2) ([MIT](https://github.com/pelletier/go-toml/blob/v2.2.3/LICENSE))
1818
-[github.com/sagikazarmark/locafero](https://pkg.go.dev/github.com/sagikazarmark/locafero) ([MIT](https://github.com/sagikazarmark/locafero/blob/v0.9.0/LICENSE))
1919
-[github.com/shurcooL/githubv4](https://pkg.go.dev/github.com/shurcooL/githubv4) ([MIT](https://github.com/shurcooL/githubv4/blob/48295856cce7/LICENSE))

‎third-party-licenses.linux.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Some packages may only be included on certain architectures or operating systems
1313
-[github.com/google/go-github/v69/github](https://pkg.go.dev/github.com/google/go-github/v69/github) ([BSD-3-Clause](https://github.com/google/go-github/blob/v69.2.0/LICENSE))
1414
-[github.com/google/go-querystring/query](https://pkg.go.dev/github.com/google/go-querystring/query) ([BSD-3-Clause](https://github.com/google/go-querystring/blob/v1.1.0/LICENSE))
1515
-[github.com/google/uuid](https://pkg.go.dev/github.com/google/uuid) ([BSD-3-Clause](https://github.com/google/uuid/blob/v1.6.0/LICENSE))
16-
-[github.com/mark3labs/mcp-go](https://pkg.go.dev/github.com/mark3labs/mcp-go) ([MIT](https://github.com/mark3labs/mcp-go/blob/v0.28.0/LICENSE))
16+
-[github.com/mark3labs/mcp-go](https://pkg.go.dev/github.com/mark3labs/mcp-go) ([MIT](https://github.com/mark3labs/mcp-go/blob/v0.30.0/LICENSE))
1717
-[github.com/pelletier/go-toml/v2](https://pkg.go.dev/github.com/pelletier/go-toml/v2) ([MIT](https://github.com/pelletier/go-toml/blob/v2.2.3/LICENSE))
1818
-[github.com/sagikazarmark/locafero](https://pkg.go.dev/github.com/sagikazarmark/locafero) ([MIT](https://github.com/sagikazarmark/locafero/blob/v0.9.0/LICENSE))
1919
-[github.com/shurcooL/githubv4](https://pkg.go.dev/github.com/shurcooL/githubv4) ([MIT](https://github.com/shurcooL/githubv4/blob/48295856cce7/LICENSE))

‎third-party-licenses.windows.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Some packages may only be included on certain architectures or operating systems
1414
-[github.com/google/go-querystring/query](https://pkg.go.dev/github.com/google/go-querystring/query) ([BSD-3-Clause](https://github.com/google/go-querystring/blob/v1.1.0/LICENSE))
1515
-[github.com/google/uuid](https://pkg.go.dev/github.com/google/uuid) ([BSD-3-Clause](https://github.com/google/uuid/blob/v1.6.0/LICENSE))
1616
-[github.com/inconshreveable/mousetrap](https://pkg.go.dev/github.com/inconshreveable/mousetrap) ([Apache-2.0](https://github.com/inconshreveable/mousetrap/blob/v1.1.0/LICENSE))
17-
-[github.com/mark3labs/mcp-go](https://pkg.go.dev/github.com/mark3labs/mcp-go) ([MIT](https://github.com/mark3labs/mcp-go/blob/v0.28.0/LICENSE))
17+
-[github.com/mark3labs/mcp-go](https://pkg.go.dev/github.com/mark3labs/mcp-go) ([MIT](https://github.com/mark3labs/mcp-go/blob/v0.30.0/LICENSE))
1818
-[github.com/pelletier/go-toml/v2](https://pkg.go.dev/github.com/pelletier/go-toml/v2) ([MIT](https://github.com/pelletier/go-toml/blob/v2.2.3/LICENSE))
1919
-[github.com/sagikazarmark/locafero](https://pkg.go.dev/github.com/sagikazarmark/locafero) ([MIT](https://github.com/sagikazarmark/locafero/blob/v0.9.0/LICENSE))
2020
-[github.com/shurcooL/githubv4](https://pkg.go.dev/github.com/shurcooL/githubv4) ([MIT](https://github.com/shurcooL/githubv4/blob/48295856cce7/LICENSE))

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp