Skip to content

Commit 7234318

Browse files
committed
remove code inv workflow tool
1 parent ec6aa20 commit 7234318

File tree

2 files changed

+1
-43
lines changed

2 files changed

+1
-43
lines changed

pkg/github/tools.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,7 @@ func DefaultToolsetGroup(readOnly bool, getClient GetClientFn, getGQLClient GetG
100100
toolsets.NewServerTool(AddCommentToPendingReview(getGQLClient, t)),
101101
toolsets.NewServerTool(SubmitPendingPullRequestReview(getGQLClient, t)),
102102
toolsets.NewServerTool(DeletePendingPullRequestReview(getGQLClient, t)),
103-
).AddPrompts(
104-
toolsets.NewServerPrompt(PullRequestReviewWorkflowPrompt(t)),
105-
)
103+
)
106104
codeSecurity := toolsets.NewToolset("code_security", "Code security related tools, such as GitHub Code Scanning").
107105
AddReadTools(
108106
toolsets.NewServerTool(GetCodeScanningAlert(getClient, t)),

pkg/github/workflow_prompts.go

Lines changed: 0 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -9,46 +9,6 @@ import (
99
"github.com/mark3labs/mcp-go/server"
1010
)
1111

12-
// PullRequestReviewWorkflowPrompt provides a guided workflow for comprehensive PR review
13-
func PullRequestReviewWorkflowPrompt(t translations.TranslationHelperFunc) (tool mcp.Prompt, handler server.PromptHandlerFunc) {
14-
return mcp.NewPrompt("PRReviewWorkflow",
15-
mcp.WithPromptDescription(t("PROMPT_PR_REVIEW_WORKFLOW_DESCRIPTION", "Guide through comprehensive pull request review process using pending review workflow")),
16-
mcp.WithArgument("owner", mcp.ArgumentDescription("Repository owner"), mcp.RequiredArgument()),
17-
mcp.WithArgument("repo", mcp.ArgumentDescription("Repository name"), mcp.RequiredArgument()),
18-
mcp.WithArgument("pullNumber", mcp.ArgumentDescription("Pull request number to review"), mcp.RequiredArgument()),
19-
), func(_ context.Context, request mcp.GetPromptRequest) (*mcp.GetPromptResult, error) {
20-
owner := request.Params.Arguments["owner"]
21-
repo := request.Params.Arguments["repo"]
22-
pullNumber := request.Params.Arguments["pullNumber"]
23-
24-
messages := []mcp.PromptMessage{
25-
{
26-
Role: "system",
27-
Content: mcp.NewTextContent("You are a code review assistant helping with a comprehensive GitHub pull request review. You should use the pending review workflow to provide thorough, professional feedback. This involves: 1) Creating a pending review, 2) Adding multiple specific comments, and 3) Submitting the complete review with overall feedback."),
28-
},
29-
{
30-
Role: "user",
31-
Content: mcp.NewTextContent(fmt.Sprintf("I need to review pull request #%s in %s/%s. Please help me conduct a thorough review using the pending review workflow.", pullNumber, owner, repo)),
32-
},
33-
{
34-
Role: "assistant",
35-
Content: mcp.NewTextContent(fmt.Sprintf("I'll help you conduct a comprehensive review of PR #%s in %s/%s using the pending review workflow. Let me start by getting the PR details and creating a pending review.", pullNumber, owner, repo)),
36-
},
37-
{
38-
Role: "user",
39-
Content: mcp.NewTextContent("Perfect! Please first get the PR details and files changed, then create a pending review. After that, I'll provide specific feedback for you to add as line comments before we submit the complete review."),
40-
},
41-
{
42-
Role: "assistant",
43-
Content: mcp.NewTextContent("Absolutely! Here's my plan:\n\n1. First, I'll get the PR details and files changed\n2. Create a pending review\n3. Wait for your specific feedback to add as line comments\n4. Submit the complete review with overall assessment\n\nLet me start by examining the pull request."),
44-
},
45-
}
46-
return &mcp.GetPromptResult{
47-
Messages: messages,
48-
}, nil
49-
}
50-
}
51-
5212
// IssueInvestigationWorkflowPrompt provides guided workflow for investigating and delegating issues
5313
func IssueInvestigationWorkflowPrompt(t translations.TranslationHelperFunc) (tool mcp.Prompt, handler server.PromptHandlerFunc) {
5414
return mcp.NewPrompt("IssueInvestigationWorkflow",

0 commit comments

Comments
 (0)