Skip to content

Commit 07614a1

Browse files
committed
Fix the build
1 parent ed76813 commit 07614a1

2 files changed

Lines changed: 11 additions & 17 deletions

File tree

pkg/github/discussions.go

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ func ListDiscussions(getGQLClient GetGQLClientFn, t translations.TranslationHelp
6969
mcp.WithDescription(t("TOOL_LIST_DISCUSSIONS_DESCRIPTION", "List discussions for a repository")),
7070
mcp.WithToolAnnotation(mcp.ToolAnnotation{
7171
Title: t("TOOL_LIST_DISCUSSIONS_USER_TITLE", "List discussions"),
72-
ReadOnlyHint: toBoolPtr(true),
72+
ReadOnlyHint: ToBoolPtr(true),
7373
}),
7474
mcp.WithString("owner",
7575
mcp.Required(),
@@ -231,9 +231,9 @@ func GetDiscussion(getGQLClient GetGQLClientFn, t translations.TranslationHelper
231231
return mcp.NewTool("get_discussion",
232232
mcp.WithDescription(t("TOOL_GET_DISCUSSION_DESCRIPTION", "Get a specific discussion by ID")),
233233
mcp.WithToolAnnotation(mcp.ToolAnnotation{
234-
Title: t("TOOL_GET_DISCUSSION_USER_TITLE", "Get discussion"),
235-
ReadOnlyHint: toBoolPtr(true),
236-
}),
234+
Title: t("TOOL_GET_DISCUSSION_USER_TITLE", "Get discussion"),
235+
ReadOnlyHint: ToBoolPtr(true),
236+
}),
237237
mcp.WithString("owner",
238238
mcp.Required(),
239239
mcp.Description("Repository owner"),
@@ -302,9 +302,9 @@ func GetDiscussionComments(getGQLClient GetGQLClientFn, t translations.Translati
302302
return mcp.NewTool("get_discussion_comments",
303303
mcp.WithDescription(t("TOOL_GET_DISCUSSION_COMMENTS_DESCRIPTION", "Get comments from a discussion")),
304304
mcp.WithToolAnnotation(mcp.ToolAnnotation{
305-
Title: t("TOOL_GET_DISCUSSION_COMMENTS_USER_TITLE", "Get discussion comments"),
306-
ReadOnlyHint: toBoolPtr(true),
307-
}),
305+
Title: t("TOOL_GET_DISCUSSION_COMMENTS_USER_TITLE", "Get discussion comments"),
306+
ReadOnlyHint: ToBoolPtr(true),
307+
}),
308308
mcp.WithString("owner", mcp.Required(), mcp.Description("Repository owner")),
309309
mcp.WithString("repo", mcp.Required(), mcp.Description("Repository name")),
310310
mcp.WithNumber("discussionNumber", mcp.Required(), mcp.Description("Discussion Number")),
@@ -362,9 +362,9 @@ func ListDiscussionCategories(getGQLClient GetGQLClientFn, t translations.Transl
362362
return mcp.NewTool("list_discussion_categories",
363363
mcp.WithDescription(t("TOOL_LIST_DISCUSSION_CATEGORIES_DESCRIPTION", "List discussion categories with their id and name, for a repository")),
364364
mcp.WithToolAnnotation(mcp.ToolAnnotation{
365-
Title: t("TOOL_LIST_DISCUSSION_CATEGORIES_USER_TITLE", "List discussion categories"),
366-
ReadOnlyHint: toBoolPtr(true),
367-
}),
365+
Title: t("TOOL_LIST_DISCUSSION_CATEGORIES_USER_TITLE", "List discussion categories"),
366+
ReadOnlyHint: ToBoolPtr(true),
367+
}),
368368
mcp.WithString("owner",
369369
mcp.Required(),
370370
mcp.Description("Repository owner"),

pkg/github/tools.go

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -166,13 +166,7 @@ func DefaultToolsetGroup(readOnly bool, getClient GetClientFn, getGQLClient GetG
166166
tsg.AddToolset(experiments)
167167
tsg.AddToolset(discussions)
168168

169-
// Enable the requested features
170-
171-
if err := tsg.EnableToolsets(passedToolsets); err != nil {
172-
return nil, err
173-
}
174-
175-
return tsg, nil
169+
return tsg
176170
}
177171

178172
// InitDynamicToolset creates a dynamic toolset that can be used to enable other toolsets, and so requires the server and toolset group as arguments

0 commit comments

Comments
 (0)