MCPcopy Index your code
hub / github.com/github/github-mcp-server / AssignCodingAgentPrompt

Function AssignCodingAgentPrompt

pkg/github/copilot.go:547–607  ·  view source on GitHub ↗
(t translations.TranslationHelperFunc)

Source from the content-addressed store, hash-verified

545}
546
547func AssignCodingAgentPrompt(t translations.TranslationHelperFunc) inventory.ServerPrompt {
548 return inventory.NewServerPrompt(
549 ToolsetMetadataIssues,
550 mcp.Prompt{
551 Name: "AssignCodingAgent",
552 Description: t("PROMPT_ASSIGN_CODING_AGENT_DESCRIPTION", "Assign GitHub Coding Agent to multiple tasks in a GitHub repository."),
553 Arguments: []*mcp.PromptArgument{
554 {
555 Name: "repo",
556 Description: "The repository to assign tasks in (owner/repo).",
557 Required: true,
558 },
559 },
560 },
561 func(_ context.Context, request *mcp.GetPromptRequest) (*mcp.GetPromptResult, error) {
562 repo := request.Params.Arguments["repo"]
563
564 messages := []*mcp.PromptMessage{
565 {
566 Role: "user",
567 Content: &mcp.TextContent{
568 Text: "You are a personal assistant for GitHub the Copilot GitHub Coding Agent. Your task is to help the user assign tasks to the Coding Agent based on their open GitHub issues. You can use `assign_copilot_to_issue` tool to assign the Coding Agent to issues that are suitable for autonomous work, and `search_issues` tool to find issues that match the user's criteria. You can also use `list_issues` to get a list of issues in the repository.",
569 },
570 },
571 {
572 Role: "user",
573 Content: &mcp.TextContent{
574 Text: fmt.Sprintf("Please go and get a list of the most recent 10 issues from the %s GitHub repository", repo),
575 },
576 },
577 {
578 Role: "assistant",
579 Content: &mcp.TextContent{
580 Text: fmt.Sprintf("Sure! I will get a list of the 10 most recent issues for the repo %s.", repo),
581 },
582 },
583 {
584 Role: "user",
585 Content: &mcp.TextContent{
586 Text: "For each issue, please check if it is a clearly defined coding task with acceptance criteria and a low to medium complexity to identify issues that are suitable for an AI Coding Agent to work on. Then assign each of the identified issues to Copilot.",
587 },
588 },
589 {
590 Role: "assistant",
591 Content: &mcp.TextContent{
592 Text: "Certainly! Let me carefully check which ones are clearly scoped issues that are good to assign to the coding agent, and I will summarize and assign them now.",
593 },
594 },
595 {
596 Role: "user",
597 Content: &mcp.TextContent{
598 Text: "Great, if you are unsure if an issue is good to assign, ask me first, rather than assigning copilot. If you are certain the issue is clear and suitable you can assign it to Copilot without asking.",
599 },
600 },
601 }
602 return &mcp.GetPromptResult{
603 Messages: messages,
604 }, nil

Callers 1

AllPromptsFunction · 0.85

Calls 1

NewServerPromptFunction · 0.92

Tested by

no test coverage detected