|
9 | 9 |
|
10 | 10 | "github.com/github/github-mcp-server/pkg/translations" |
11 | 11 | "github.com/google/go-github/v69/github" |
12 | | -"github.com/mark3labs/mcp-go/mcp" |
13 | 12 | "github.com/migueleliasweb/go-github-mock/src/mock" |
14 | 13 | "github.com/stretchr/testify/assert" |
15 | 14 | "github.com/stretchr/testify/require" |
@@ -188,17 +187,7 @@ func Test_AddIssueComment(t *testing.T) { |
188 | 187 | _,handler:=AddIssueComment(stubGetClientFn(client),translations.NullTranslationHelper) |
189 | 188 |
|
190 | 189 | // Create call request |
191 | | -request:= mcp.CallToolRequest{ |
192 | | -Params:struct { |
193 | | -Namestring`json:"name"` |
194 | | -Argumentsmap[string]interface{}`json:"arguments,omitempty"` |
195 | | -Meta*struct { |
196 | | -ProgressToken mcp.ProgressToken`json:"progressToken,omitempty"` |
197 | | -}`json:"_meta,omitempty"` |
198 | | -}{ |
199 | | -Arguments:tc.requestArgs, |
200 | | -}, |
201 | | -} |
| 190 | +request:=createMCPRequest(tc.requestArgs) |
202 | 191 |
|
203 | 192 | // Call handler |
204 | 193 | result,err:=handler(context.Background(),request) |
|