You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
baseInstruction:="The GitHub MCP Server provides GitHub API tools. Tool selection guidance: Use 'list_*' tools for broad, simple retrieval and pagination of all items of a type (e.g., all issues, all PRs, all branches) with basic filtering. Use 'search_*' tools for targeted queries with specific criteria, keywords, or complex filters (e.g., issues with certain text, PRs by author, code containing functions). Context management: 1) GitHub API responses can overflow context windows, 2) Process large datasets in batches of 5-10 items, 3) For summarization tasks, fetch minimal data first, then drill down into specifics."
30
+
baseInstruction:=`The GitHub MCP Server provides tools to interact with GitHub platform.
31
+
32
+
Tool selection guidance:
33
+
1. Use 'list_*' tools for broad, simple retrieval and pagination of all items of a type (e.g., all issues, all PRs, all branches) with basic filtering.
34
+
2. Use 'search_*' tools for targeted queries with specific criteria, keywords, or complex filters (e.g., issues with certain text, PRs by author, code containing functions).
35
+
36
+
Context management:
37
+
1. Use pagination whenever possible with batches of 5-10 items.
38
+
2. Use minimal_output parameter set to true if the full information is not needed to accomplish a task.
return"Issue workflow: Check 'list_issue_types' first for organizations to use proper issue types. Use 'search_issues' before creating new issues to avoid duplicates. Always set 'state_reason' when closing issues."
return "Notifications: Filter by 'participating' for issues/PRs you're involved in. Use 'mark_all_notifications_read' with repository filters to avoid marking unrelated notifications."
47
61
case "discussions":
48
-
return"Discussions: Use 'list_discussion_categories' to understand available categories before creating discussions. Filter by category for better organization."
62
+
return `## Discussions
63
+
64
+
Use 'list_discussion_categories' tounderstandavailablecategoriesbeforecreating discussions. Filterbycategoryforbetterorganization.
0 commit comments