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
refactor: Use ToolsetMetadata directly in NewToolMeta and NewToolsetGroupFromTools
- Move ToolsetMetadata type to toolsets package with alias in github package
- Update NewToolMeta to accept ToolsetMetadata instead of string
- Update NewToolsetGroupFromTools to accept []ToolsetMetadata slice
- Remove need for .ID when calling NewToolMeta (e.g., NewToolMeta(ToolsetMetadataRepos) instead of NewToolMeta(ToolsetMetadataRepos.ID))
@@ -418,7 +418,7 @@ func GetWorkflowRunLogs(getClient GetClientFn, t translations.TranslationHelperF
418
418
return mcp.Tool{
419
419
Name: "get_workflow_run_logs",
420
420
Description: t("TOOL_GET_WORKFLOW_RUN_LOGS_DESCRIPTION", "Download logs for a specific workflow run (EXPENSIVE: downloads ALL logs as ZIP. Consider using get_job_logs with failed_only=true for debugging failed jobs)"),
@@ -588,7 +588,7 @@ func GetJobLogs(getClient GetClientFn, t translations.TranslationHelperFunc, con
588
588
return mcp.Tool{
589
589
Name: "get_job_logs",
590
590
Description: t("TOOL_GET_JOB_LOGS_DESCRIPTION", "Download logs for a specific workflow job or efficiently get all failed job logs for a workflow run"),
Copy file name to clipboardExpand all lines: pkg/github/context_tools.go
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -41,7 +41,7 @@ func GetMe(getClient GetClientFn, t translations.TranslationHelperFunc) (mcp.Too
41
41
return mcp.Tool{
42
42
Name: "get_me",
43
43
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."),
44
-
Meta: NewToolMeta(ToolsetMetadataContext.ID),
44
+
Meta: NewToolMeta(ToolsetMetadataContext),
45
45
Annotations: &mcp.ToolAnnotations{
46
46
Title: t("TOOL_GET_ME_USER_TITLE", "Get my user profile"),
Description: t("TOOL_GET_TEAMS_DESCRIPTION", "Get details of the teams the user is a member of. Limited to organizations accessible with current credentials"),
@@ -206,7 +206,7 @@ func GetTeamMembers(getGQLClient GetGQLClientFn, t translations.TranslationHelpe
206
206
return mcp.Tool{
207
207
Name: "get_team_members",
208
208
Description: t("TOOL_GET_TEAM_MEMBERS_DESCRIPTION", "Get member usernames of a specific team in an organization. Limited to organizations accessible with current credentials"),
Copy file name to clipboardExpand all lines: pkg/github/git.go
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -42,7 +42,7 @@ func GetRepositoryTree(getClient GetClientFn, t translations.TranslationHelperFu
42
42
tool:= mcp.Tool{
43
43
Name: "get_repository_tree",
44
44
Description: t("TOOL_GET_REPOSITORY_TREE_DESCRIPTION", "Get the tree structure (files and directories) of a GitHub repository at a specific ref or SHA"),
0 commit comments