Skip to content

Commit ec6aa20

Browse files
committed
remove notif triage
1 parent 7938497 commit ec6aa20

File tree

2 files changed

+1
-42
lines changed

2 files changed

+1
-42
lines changed

pkg/github/tools.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,9 +129,7 @@ func DefaultToolsetGroup(readOnly bool, getClient GetClientFn, getGQLClient GetG
129129
toolsets.NewServerTool(MarkAllNotificationsRead(getClient, t)),
130130
toolsets.NewServerTool(ManageNotificationSubscription(getClient, t)),
131131
toolsets.NewServerTool(ManageRepositoryNotificationSubscription(getClient, t)),
132-
).AddPrompts(
133-
toolsets.NewServerPrompt(NotificationTriageWorkflowPrompt(t)),
134-
)
132+
)
135133

136134
discussions := toolsets.NewToolset("discussions", "GitHub Discussions related tools").
137135
AddReadTools(

pkg/github/workflow_prompts.go

Lines changed: 0 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -49,45 +49,6 @@ func PullRequestReviewWorkflowPrompt(t translations.TranslationHelperFunc) (tool
4949
}
5050
}
5151

52-
// NotificationTriageWorkflowPrompt provides a guided workflow for processing notifications
53-
func NotificationTriageWorkflowPrompt(t translations.TranslationHelperFunc) (tool mcp.Prompt, handler server.PromptHandlerFunc) {
54-
return mcp.NewPrompt("NotificationTriageWorkflow",
55-
mcp.WithPromptDescription(t("PROMPT_NOTIFICATION_TRIAGE_WORKFLOW_DESCRIPTION", "Systematically process and triage GitHub notifications")),
56-
mcp.WithArgument("filter", mcp.ArgumentDescription("Notification filter (default, include_read_notifications, only_participating)")),
57-
), func(_ context.Context, request mcp.GetPromptRequest) (*mcp.GetPromptResult, error) {
58-
filter := "default"
59-
if f, exists := request.Params.Arguments["filter"]; exists {
60-
filter = fmt.Sprintf("%v", f)
61-
}
62-
63-
messages := []mcp.PromptMessage{
64-
{
65-
Role: "system",
66-
Content: mcp.NewTextContent("You are a notification management assistant helping to efficiently process GitHub notifications. You should help triage notifications by examining them and taking appropriate actions like dismissing, unsubscribing, or marking as read."),
67-
},
68-
{
69-
Role: "user",
70-
Content: mcp.NewTextContent(fmt.Sprintf("I need to triage my GitHub notifications. Please help me process them systematically using filter '%s'.", filter)),
71-
},
72-
{
73-
Role: "assistant",
74-
Content: mcp.NewTextContent(fmt.Sprintf("I'll help you efficiently triage your GitHub notifications using the '%s' filter. Let me start by listing your notifications and then we can examine each one to determine the appropriate action.", filter)),
75-
},
76-
{
77-
Role: "user",
78-
Content: mcp.NewTextContent("Great! For each notification, please show me the details and suggest what action to take - whether to dismiss it, unsubscribe from the thread, or take other action."),
79-
},
80-
{
81-
Role: "assistant",
82-
Content: mcp.NewTextContent("Perfect! I'll examine each notification and provide recommendations. Let me start by getting your notification list and then we'll go through them systematically."),
83-
},
84-
}
85-
return &mcp.GetPromptResult{
86-
Messages: messages,
87-
}, nil
88-
}
89-
}
90-
9152
// IssueInvestigationWorkflowPrompt provides guided workflow for investigating and delegating issues
9253
func IssueInvestigationWorkflowPrompt(t translations.TranslationHelperFunc) (tool mcp.Prompt, handler server.PromptHandlerFunc) {
9354
return mcp.NewPrompt("IssueInvestigationWorkflow",

0 commit comments

Comments
 (0)