Skip to content

Commit 8e5cd11

Browse files
committed
Updated methods capitalization
1 parent 04f691b commit 8e5cd11

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

pkg/github/issues.go

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -720,7 +720,7 @@ func GetIssueTimeline(getClient GetClientFn, t translations.TranslationHelperFun
720720
mcp.WithDescription(t("TOOL_GET_ISSUE_TIMELINE_DESCRIPTION", "Get timeline of a specific issue in a GitHub repository.")),
721721
mcp.WithToolAnnotation(mcp.ToolAnnotation{
722722
Title: t("TOOL_GET_ISSUE_TIMELINE_USER_TITLE", "Get issue timeline"),
723-
ReadOnlyHint: toBoolPtr(true),
723+
ReadOnlyHint: ToBoolPtr(true),
724724
}),
725725
mcp.WithString("owner",
726726
mcp.Required(),
@@ -737,11 +737,11 @@ func GetIssueTimeline(getClient GetClientFn, t translations.TranslationHelperFun
737737
WithPagination(),
738738
),
739739
func(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) {
740-
owner, err := requiredParam[string](request, "owner")
740+
owner, err := RequiredParam[string](request, "owner")
741741
if err != nil {
742742
return mcp.NewToolResultError(err.Error()), nil
743743
}
744-
repo, err := requiredParam[string](request, "repo")
744+
repo, err := RequiredParam[string](request, "repo")
745745
if err != nil {
746746
return mcp.NewToolResultError(err.Error()), nil
747747
}
@@ -793,7 +793,7 @@ func GetIssueEvents(getClient GetClientFn, t translations.TranslationHelperFunc)
793793
mcp.WithDescription(t("TOOL_GET_ISSUE_EVENTS_DESCRIPTION", "Get a list of events for a specific issue in a GitHub repository.")),
794794
mcp.WithToolAnnotation(mcp.ToolAnnotation{
795795
Title: t("TOOL_GET_ISSUE_EVENTS_USER_TITLE", "Get issue events"),
796-
ReadOnlyHint: toBoolPtr(true),
796+
ReadOnlyHint: ToBoolPtr(true),
797797
}),
798798
mcp.WithString("owner",
799799
mcp.Required(),
@@ -810,11 +810,11 @@ func GetIssueEvents(getClient GetClientFn, t translations.TranslationHelperFunc)
810810
WithPagination(),
811811
),
812812
func(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) {
813-
owner, err := requiredParam[string](request, "owner")
813+
owner, err := RequiredParam[string](request, "owner")
814814
if err != nil {
815815
return mcp.NewToolResultError(err.Error()), nil
816816
}
817-
repo, err := requiredParam[string](request, "repo")
817+
repo, err := RequiredParam[string](request, "repo")
818818
if err != nil {
819819
return mcp.NewToolResultError(err.Error()), nil
820820
}
@@ -866,7 +866,7 @@ func GetIssueEvent(getClient GetClientFn, t translations.TranslationHelperFunc)
866866
mcp.WithDescription(t("TOOL_GET_ISSUE_EVENT_DESCRIPTION", "Get a single event for an issue in a GitHub repository.")),
867867
mcp.WithToolAnnotation(mcp.ToolAnnotation{
868868
Title: t("TOOL_GET_ISSUE_EVENT_USER_TITLE", "Get an issue event"),
869-
ReadOnlyHint: toBoolPtr(true),
869+
ReadOnlyHint: ToBoolPtr(true),
870870
}),
871871
mcp.WithString("owner",
872872
mcp.Required(),
@@ -882,11 +882,11 @@ func GetIssueEvent(getClient GetClientFn, t translations.TranslationHelperFunc)
882882
),
883883
),
884884
func(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) {
885-
owner, err := requiredParam[string](request, "owner")
885+
owner, err := RequiredParam[string](request, "owner")
886886
if err != nil {
887887
return mcp.NewToolResultError(err.Error()), nil
888888
}
889-
repo, err := requiredParam[string](request, "repo")
889+
repo, err := RequiredParam[string](request, "repo")
890890
if err != nil {
891891
return mcp.NewToolResultError(err.Error()), nil
892892
}

pkg/github/server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ func RequiredInt(r mcp.CallToolRequest, p string) (int, error) {
105105
// 2. Checks if the parameter is of the expected type.
106106
// 3. Checks if the parameter is not empty, i.e: non-zero value
107107
func RequiredInt64(r mcp.CallToolRequest, p string) (int64, error) {
108-
v, err := requiredParam[float64](r, p)
108+
v, err := RequiredParam[float64](r, p)
109109
if err != nil {
110110
return 0, err
111111
}

0 commit comments

Comments
 (0)