You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: wire up GetMe and ForkRepository to use typed inputs
- GetMe: GetMeInput (empty struct for tool with no parameters)
- ForkRepository: ForkRepositoryInput
Updated tests and toolsnaps for both tools.
Co-authored-by: SamMorrowDrums <[email protected]>
Copy file name to clipboardExpand all lines: pkg/github/__toolsnaps__/get_me.snap
+4-1Lines changed: 4 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,9 @@
4
4
"title": "Get my user profile"
5
5
},
6
6
"description": "Get details of the authenticated GitHub user. Use this when a request is about the user's own profile for GitHub. Or when information is missing to build other tool calls.",
Copy file name to clipboardExpand all lines: pkg/github/context_tools.go
+3-2Lines changed: 3 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -35,16 +35,17 @@ type UserDetails struct {
35
35
}
36
36
37
37
// GetMe creates a tool to get details of the authenticated user.
38
-
funcGetMe(getClientGetClientFn, t translations.TranslationHelperFunc) (mcp.Tool, mcp.ToolHandlerFor[map[string]any, any]) {
38
+
funcGetMe(getClientGetClientFn, t translations.TranslationHelperFunc) (mcp.Tool, mcp.ToolHandlerFor[GetMeInput, any]) {
39
39
return mcp.Tool{
40
40
Name: "get_me",
41
41
Description: t("TOOL_GET_ME_DESCRIPTION", "Get details of the authenticated GitHub user. Use this when a request is about the user's own profile for GitHub. Or when information is missing to build other tool calls."),
42
42
Annotations: &mcp.ToolAnnotations{
43
43
Title: t("TOOL_GET_ME_USER_TITLE", "Get my user profile"),
0 commit comments