From 836f97abd319d7e2cd1d6e97dad051b41891b82a Mon Sep 17 00:00:00 2001
From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com>
Date: Thu, 20 Nov 2025 10:09:46 +0000
Subject: [PATCH 1/6] Initial plan
From 00b0e04427b872fbf5d593e5eaa0fd85de6d297b Mon Sep 17 00:00:00 2001
From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com>
Date: Thu, 20 Nov 2025 10:25:15 +0000
Subject: [PATCH 2/6] Migrate discussions toolset to
modelcontextprotocol/go-sdk
Co-authored-by: omgitsads <4619+omgitsads@users.noreply.github.com>
---
pkg/github/__toolsnaps__/get_discussion.snap | 30 ++
.../get_discussion_comments.snap | 40 +++
.../list_discussion_categories.snap | 24 ++
.../__toolsnaps__/list_discussions.snap | 54 ++++
pkg/github/discussions.go | 273 ++++++++++--------
pkg/github/discussions_test.go | 68 +++--
6 files changed, 347 insertions(+), 142 deletions(-)
create mode 100644 pkg/github/__toolsnaps__/get_discussion.snap
create mode 100644 pkg/github/__toolsnaps__/get_discussion_comments.snap
create mode 100644 pkg/github/__toolsnaps__/list_discussion_categories.snap
create mode 100644 pkg/github/__toolsnaps__/list_discussions.snap
diff --git a/pkg/github/__toolsnaps__/get_discussion.snap b/pkg/github/__toolsnaps__/get_discussion.snap
new file mode 100644
index 000000000..feef0f057
--- /dev/null
+++ b/pkg/github/__toolsnaps__/get_discussion.snap
@@ -0,0 +1,30 @@
+{
+ "annotations": {
+ "readOnlyHint": true,
+ "title": "Get discussion"
+ },
+ "description": "Get a specific discussion by ID",
+ "inputSchema": {
+ "type": "object",
+ "required": [
+ "owner",
+ "repo",
+ "discussionNumber"
+ ],
+ "properties": {
+ "discussionNumber": {
+ "type": "number",
+ "description": "Discussion Number"
+ },
+ "owner": {
+ "type": "string",
+ "description": "Repository owner"
+ },
+ "repo": {
+ "type": "string",
+ "description": "Repository name"
+ }
+ }
+ },
+ "name": "get_discussion"
+}
\ No newline at end of file
diff --git a/pkg/github/__toolsnaps__/get_discussion_comments.snap b/pkg/github/__toolsnaps__/get_discussion_comments.snap
new file mode 100644
index 000000000..3af5edc8c
--- /dev/null
+++ b/pkg/github/__toolsnaps__/get_discussion_comments.snap
@@ -0,0 +1,40 @@
+{
+ "annotations": {
+ "readOnlyHint": true,
+ "title": "Get discussion comments"
+ },
+ "description": "Get comments from a discussion",
+ "inputSchema": {
+ "type": "object",
+ "required": [
+ "owner",
+ "repo",
+ "discussionNumber"
+ ],
+ "properties": {
+ "after": {
+ "type": "string",
+ "description": "Cursor for pagination. Use the endCursor from the previous page's PageInfo for GraphQL APIs."
+ },
+ "discussionNumber": {
+ "type": "number",
+ "description": "Discussion Number"
+ },
+ "owner": {
+ "type": "string",
+ "description": "Repository owner"
+ },
+ "perPage": {
+ "type": "number",
+ "description": "Results per page for pagination (min 1, max 100)",
+ "minimum": 1,
+ "maximum": 100
+ },
+ "repo": {
+ "type": "string",
+ "description": "Repository name"
+ }
+ }
+ },
+ "name": "get_discussion_comments"
+}
\ No newline at end of file
diff --git a/pkg/github/__toolsnaps__/list_discussion_categories.snap b/pkg/github/__toolsnaps__/list_discussion_categories.snap
new file mode 100644
index 000000000..888ebbdca
--- /dev/null
+++ b/pkg/github/__toolsnaps__/list_discussion_categories.snap
@@ -0,0 +1,24 @@
+{
+ "annotations": {
+ "readOnlyHint": true,
+ "title": "List discussion categories"
+ },
+ "description": "List discussion categories with their id and name, for a repository or organisation.",
+ "inputSchema": {
+ "type": "object",
+ "required": [
+ "owner"
+ ],
+ "properties": {
+ "owner": {
+ "type": "string",
+ "description": "Repository owner"
+ },
+ "repo": {
+ "type": "string",
+ "description": "Repository name. If not provided, discussion categories will be queried at the organisation level."
+ }
+ }
+ },
+ "name": "list_discussion_categories"
+}
\ No newline at end of file
diff --git a/pkg/github/__toolsnaps__/list_discussions.snap b/pkg/github/__toolsnaps__/list_discussions.snap
new file mode 100644
index 000000000..95a8bebf5
--- /dev/null
+++ b/pkg/github/__toolsnaps__/list_discussions.snap
@@ -0,0 +1,54 @@
+{
+ "annotations": {
+ "readOnlyHint": true,
+ "title": "List discussions"
+ },
+ "description": "List discussions for a repository or organisation.",
+ "inputSchema": {
+ "type": "object",
+ "required": [
+ "owner"
+ ],
+ "properties": {
+ "after": {
+ "type": "string",
+ "description": "Cursor for pagination. Use the endCursor from the previous page's PageInfo for GraphQL APIs."
+ },
+ "category": {
+ "type": "string",
+ "description": "Optional filter by discussion category ID. If provided, only discussions with this category are listed."
+ },
+ "direction": {
+ "type": "string",
+ "description": "Order direction.",
+ "enum": [
+ "ASC",
+ "DESC"
+ ]
+ },
+ "orderBy": {
+ "type": "string",
+ "description": "Order discussions by field. If provided, the 'direction' also needs to be provided.",
+ "enum": [
+ "CREATED_AT",
+ "UPDATED_AT"
+ ]
+ },
+ "owner": {
+ "type": "string",
+ "description": "Repository owner"
+ },
+ "perPage": {
+ "type": "number",
+ "description": "Results per page for pagination (min 1, max 100)",
+ "minimum": 1,
+ "maximum": 100
+ },
+ "repo": {
+ "type": "string",
+ "description": "Repository name. If not provided, discussions will be queried at the organisation level."
+ }
+ }
+ },
+ "name": "list_discussions"
+}
\ No newline at end of file
diff --git a/pkg/github/discussions.go b/pkg/github/discussions.go
index ac4077952..8a5019701 100644
--- a/pkg/github/discussions.go
+++ b/pkg/github/discussions.go
@@ -1,5 +1,3 @@
-//go:build ignore
-
package github
import (
@@ -8,10 +6,11 @@ import (
"fmt"
"github.com/github/github-mcp-server/pkg/translations"
+ "github.com/github/github-mcp-server/pkg/utils"
"github.com/go-viper/mapstructure/v2"
"github.com/google/go-github/v79/github"
- "github.com/mark3labs/mcp-go/mcp"
- "github.com/mark3labs/mcp-go/server"
+ "github.com/google/jsonschema-go/jsonschema"
+ "github.com/modelcontextprotocol/go-sdk/mcp"
"github.com/shurcooL/githubv4"
)
@@ -122,41 +121,51 @@ func getQueryType(useOrdering bool, categoryID *githubv4.ID) any {
return &BasicNoOrder{}
}
-func ListDiscussions(getGQLClient GetGQLClientFn, t translations.TranslationHelperFunc) (tool mcp.Tool, handler server.ToolHandlerFunc) {
- return mcp.NewTool("list_discussions",
- mcp.WithDescription(t("TOOL_LIST_DISCUSSIONS_DESCRIPTION", "List discussions for a repository or organisation.")),
- mcp.WithToolAnnotation(mcp.ToolAnnotation{
+func ListDiscussions(getGQLClient GetGQLClientFn, t translations.TranslationHelperFunc) (mcp.Tool, mcp.ToolHandlerFor[map[string]any, any]) {
+ return mcp.Tool{
+ Name: "list_discussions",
+ Description: t("TOOL_LIST_DISCUSSIONS_DESCRIPTION", "List discussions for a repository or organisation."),
+ Annotations: &mcp.ToolAnnotations{
Title: t("TOOL_LIST_DISCUSSIONS_USER_TITLE", "List discussions"),
- ReadOnlyHint: ToBoolPtr(true),
+ ReadOnlyHint: true,
+ },
+ InputSchema: WithCursorPagination(&jsonschema.Schema{
+ Type: "object",
+ Properties: map[string]*jsonschema.Schema{
+ "owner": {
+ Type: "string",
+ Description: "Repository owner",
+ },
+ "repo": {
+ Type: "string",
+ Description: "Repository name. If not provided, discussions will be queried at the organisation level.",
+ },
+ "category": {
+ Type: "string",
+ Description: "Optional filter by discussion category ID. If provided, only discussions with this category are listed.",
+ },
+ "orderBy": {
+ Type: "string",
+ Description: "Order discussions by field. If provided, the 'direction' also needs to be provided.",
+ Enum: []any{"CREATED_AT", "UPDATED_AT"},
+ },
+ "direction": {
+ Type: "string",
+ Description: "Order direction.",
+ Enum: []any{"ASC", "DESC"},
+ },
+ },
+ Required: []string{"owner"},
}),
- mcp.WithString("owner",
- mcp.Required(),
- mcp.Description("Repository owner"),
- ),
- mcp.WithString("repo",
- mcp.Description("Repository name. If not provided, discussions will be queried at the organisation level."),
- ),
- mcp.WithString("category",
- mcp.Description("Optional filter by discussion category ID. If provided, only discussions with this category are listed."),
- ),
- mcp.WithString("orderBy",
- mcp.Description("Order discussions by field. If provided, the 'direction' also needs to be provided."),
- mcp.Enum("CREATED_AT", "UPDATED_AT"),
- ),
- mcp.WithString("direction",
- mcp.Description("Order direction."),
- mcp.Enum("ASC", "DESC"),
- ),
- WithCursorPagination(),
- ),
- func(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) {
- owner, err := RequiredParam[string](request, "owner")
+ },
+ func(ctx context.Context, _ *mcp.CallToolRequest, args map[string]any) (*mcp.CallToolResult, any, error) {
+ owner, err := RequiredParam[string](args, "owner")
if err != nil {
- return mcp.NewToolResultError(err.Error()), nil
+ return utils.NewToolResultError(err.Error()), nil, nil
}
- repo, err := OptionalParam[string](request, "repo")
+ repo, err := OptionalParam[string](args, "repo")
if err != nil {
- return mcp.NewToolResultError(err.Error()), nil
+ return utils.NewToolResultError(err.Error()), nil, nil
}
// when not provided, default to the .github repository
// this will query discussions at the organisation level
@@ -164,34 +173,34 @@ func ListDiscussions(getGQLClient GetGQLClientFn, t translations.TranslationHelp
repo = ".github"
}
- category, err := OptionalParam[string](request, "category")
+ category, err := OptionalParam[string](args, "category")
if err != nil {
- return mcp.NewToolResultError(err.Error()), nil
+ return utils.NewToolResultError(err.Error()), nil, nil
}
- orderBy, err := OptionalParam[string](request, "orderBy")
+ orderBy, err := OptionalParam[string](args, "orderBy")
if err != nil {
- return mcp.NewToolResultError(err.Error()), nil
+ return utils.NewToolResultError(err.Error()), nil, nil
}
- direction, err := OptionalParam[string](request, "direction")
+ direction, err := OptionalParam[string](args, "direction")
if err != nil {
- return mcp.NewToolResultError(err.Error()), nil
+ return utils.NewToolResultError(err.Error()), nil, nil
}
// Get pagination parameters and convert to GraphQL format
- pagination, err := OptionalCursorPaginationParams(request)
+ pagination, err := OptionalCursorPaginationParams(args)
if err != nil {
- return nil, err
+ return nil, nil, err
}
paginationParams, err := pagination.ToGraphQLParams()
if err != nil {
- return nil, err
+ return nil, nil, err
}
client, err := getGQLClient(ctx)
if err != nil {
- return mcp.NewToolResultError(fmt.Sprintf("failed to get GitHub GQL client: %v", err)), nil
+ return utils.NewToolResultError(fmt.Sprintf("failed to get GitHub GQL client: %v", err)), nil, nil
}
var categoryID *githubv4.ID
@@ -225,7 +234,7 @@ func ListDiscussions(getGQLClient GetGQLClientFn, t translations.TranslationHelp
discussionQuery := getQueryType(useOrdering, categoryID)
if err := client.Query(ctx, discussionQuery, vars); err != nil {
- return mcp.NewToolResultError(err.Error()), nil
+ return utils.NewToolResultError(err.Error()), nil, nil
}
// Extract and convert all discussion nodes using the common interface
@@ -255,45 +264,52 @@ func ListDiscussions(getGQLClient GetGQLClientFn, t translations.TranslationHelp
out, err := json.Marshal(response)
if err != nil {
- return nil, fmt.Errorf("failed to marshal discussions: %w", err)
+ return nil, nil, fmt.Errorf("failed to marshal discussions: %w", err)
}
- return mcp.NewToolResultText(string(out)), nil
+ return utils.NewToolResultText(string(out)), nil, nil
}
}
-func GetDiscussion(getGQLClient GetGQLClientFn, t translations.TranslationHelperFunc) (tool mcp.Tool, handler server.ToolHandlerFunc) {
- return mcp.NewTool("get_discussion",
- mcp.WithDescription(t("TOOL_GET_DISCUSSION_DESCRIPTION", "Get a specific discussion by ID")),
- mcp.WithToolAnnotation(mcp.ToolAnnotation{
+func GetDiscussion(getGQLClient GetGQLClientFn, t translations.TranslationHelperFunc) (mcp.Tool, mcp.ToolHandlerFor[map[string]any, any]) {
+ return mcp.Tool{
+ Name: "get_discussion",
+ Description: t("TOOL_GET_DISCUSSION_DESCRIPTION", "Get a specific discussion by ID"),
+ Annotations: &mcp.ToolAnnotations{
Title: t("TOOL_GET_DISCUSSION_USER_TITLE", "Get discussion"),
- ReadOnlyHint: ToBoolPtr(true),
- }),
- mcp.WithString("owner",
- mcp.Required(),
- mcp.Description("Repository owner"),
- ),
- mcp.WithString("repo",
- mcp.Required(),
- mcp.Description("Repository name"),
- ),
- mcp.WithNumber("discussionNumber",
- mcp.Required(),
- mcp.Description("Discussion Number"),
- ),
- ),
- func(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) {
+ ReadOnlyHint: true,
+ },
+ InputSchema: &jsonschema.Schema{
+ Type: "object",
+ Properties: map[string]*jsonschema.Schema{
+ "owner": {
+ Type: "string",
+ Description: "Repository owner",
+ },
+ "repo": {
+ Type: "string",
+ Description: "Repository name",
+ },
+ "discussionNumber": {
+ Type: "number",
+ Description: "Discussion Number",
+ },
+ },
+ Required: []string{"owner", "repo", "discussionNumber"},
+ },
+ },
+ func(ctx context.Context, _ *mcp.CallToolRequest, args map[string]any) (*mcp.CallToolResult, any, error) {
// Decode params
var params struct {
Owner string
Repo string
DiscussionNumber int32
}
- if err := mapstructure.Decode(request.Params.Arguments, ¶ms); err != nil {
- return mcp.NewToolResultError(err.Error()), nil
+ if err := mapstructure.Decode(args, ¶ms); err != nil {
+ return utils.NewToolResultError(err.Error()), nil, nil
}
client, err := getGQLClient(ctx)
if err != nil {
- return mcp.NewToolResultError(fmt.Sprintf("failed to get GitHub GQL client: %v", err)), nil
+ return utils.NewToolResultError(fmt.Sprintf("failed to get GitHub GQL client: %v", err)), nil, nil
}
var q struct {
@@ -319,7 +335,7 @@ func GetDiscussion(getGQLClient GetGQLClientFn, t translations.TranslationHelper
"discussionNumber": githubv4.Int(params.DiscussionNumber),
}
if err := client.Query(ctx, &q, vars); err != nil {
- return mcp.NewToolResultError(err.Error()), nil
+ return utils.NewToolResultError(err.Error()), nil, nil
}
d := q.Repository.Discussion
@@ -347,49 +363,64 @@ func GetDiscussion(getGQLClient GetGQLClientFn, t translations.TranslationHelper
out, err := json.Marshal(response)
if err != nil {
- return nil, fmt.Errorf("failed to marshal discussion: %w", err)
+ return nil, nil, fmt.Errorf("failed to marshal discussion: %w", err)
}
- return mcp.NewToolResultText(string(out)), nil
+ return utils.NewToolResultText(string(out)), nil, nil
}
}
-func GetDiscussionComments(getGQLClient GetGQLClientFn, t translations.TranslationHelperFunc) (tool mcp.Tool, handler server.ToolHandlerFunc) {
- return mcp.NewTool("get_discussion_comments",
- mcp.WithDescription(t("TOOL_GET_DISCUSSION_COMMENTS_DESCRIPTION", "Get comments from a discussion")),
- mcp.WithToolAnnotation(mcp.ToolAnnotation{
+func GetDiscussionComments(getGQLClient GetGQLClientFn, t translations.TranslationHelperFunc) (mcp.Tool, mcp.ToolHandlerFor[map[string]any, any]) {
+ return mcp.Tool{
+ Name: "get_discussion_comments",
+ Description: t("TOOL_GET_DISCUSSION_COMMENTS_DESCRIPTION", "Get comments from a discussion"),
+ Annotations: &mcp.ToolAnnotations{
Title: t("TOOL_GET_DISCUSSION_COMMENTS_USER_TITLE", "Get discussion comments"),
- ReadOnlyHint: ToBoolPtr(true),
+ ReadOnlyHint: true,
+ },
+ InputSchema: WithCursorPagination(&jsonschema.Schema{
+ Type: "object",
+ Properties: map[string]*jsonschema.Schema{
+ "owner": {
+ Type: "string",
+ Description: "Repository owner",
+ },
+ "repo": {
+ Type: "string",
+ Description: "Repository name",
+ },
+ "discussionNumber": {
+ Type: "number",
+ Description: "Discussion Number",
+ },
+ },
+ Required: []string{"owner", "repo", "discussionNumber"},
}),
- mcp.WithString("owner", mcp.Required(), mcp.Description("Repository owner")),
- mcp.WithString("repo", mcp.Required(), mcp.Description("Repository name")),
- mcp.WithNumber("discussionNumber", mcp.Required(), mcp.Description("Discussion Number")),
- WithCursorPagination(),
- ),
- func(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) {
+ },
+ func(ctx context.Context, _ *mcp.CallToolRequest, args map[string]any) (*mcp.CallToolResult, any, error) {
// Decode params
var params struct {
Owner string
Repo string
DiscussionNumber int32
}
- if err := mapstructure.Decode(request.Params.Arguments, ¶ms); err != nil {
- return mcp.NewToolResultError(err.Error()), nil
+ if err := mapstructure.Decode(args, ¶ms); err != nil {
+ return utils.NewToolResultError(err.Error()), nil, nil
}
// Get pagination parameters and convert to GraphQL format
- pagination, err := OptionalCursorPaginationParams(request)
+ pagination, err := OptionalCursorPaginationParams(args)
if err != nil {
- return nil, err
+ return nil, nil, err
}
// Check if pagination parameters were explicitly provided
- _, perPageProvided := request.GetArguments()["perPage"]
+ _, perPageProvided := args["perPage"]
paginationExplicit := perPageProvided
paginationParams, err := pagination.ToGraphQLParams()
if err != nil {
- return nil, err
+ return nil, nil, err
}
// Use default of 30 if pagination was not explicitly provided
@@ -400,7 +431,7 @@ func GetDiscussionComments(getGQLClient GetGQLClientFn, t translations.Translati
client, err := getGQLClient(ctx)
if err != nil {
- return mcp.NewToolResultError(fmt.Sprintf("failed to get GitHub GQL client: %v", err)), nil
+ return utils.NewToolResultError(fmt.Sprintf("failed to get GitHub GQL client: %v", err)), nil, nil
}
var q struct {
@@ -433,7 +464,7 @@ func GetDiscussionComments(getGQLClient GetGQLClientFn, t translations.Translati
vars["after"] = (*githubv4.String)(nil)
}
if err := client.Query(ctx, &q, vars); err != nil {
- return mcp.NewToolResultError(err.Error()), nil
+ return utils.NewToolResultError(err.Error()), nil, nil
}
var comments []*github.IssueComment
@@ -455,36 +486,44 @@ func GetDiscussionComments(getGQLClient GetGQLClientFn, t translations.Translati
out, err := json.Marshal(response)
if err != nil {
- return nil, fmt.Errorf("failed to marshal comments: %w", err)
+ return nil, nil, fmt.Errorf("failed to marshal comments: %w", err)
}
- return mcp.NewToolResultText(string(out)), nil
+ return utils.NewToolResultText(string(out)), nil, nil
}
}
-func ListDiscussionCategories(getGQLClient GetGQLClientFn, t translations.TranslationHelperFunc) (tool mcp.Tool, handler server.ToolHandlerFunc) {
- return mcp.NewTool("list_discussion_categories",
- mcp.WithDescription(t("TOOL_LIST_DISCUSSION_CATEGORIES_DESCRIPTION", "List discussion categories with their id and name, for a repository or organisation.")),
- mcp.WithToolAnnotation(mcp.ToolAnnotation{
+func ListDiscussionCategories(getGQLClient GetGQLClientFn, t translations.TranslationHelperFunc) (mcp.Tool, mcp.ToolHandlerFor[map[string]any, any]) {
+ return mcp.Tool{
+ Name: "list_discussion_categories",
+ Description: t("TOOL_LIST_DISCUSSION_CATEGORIES_DESCRIPTION", "List discussion categories with their id and name, for a repository or organisation."),
+ Annotations: &mcp.ToolAnnotations{
Title: t("TOOL_LIST_DISCUSSION_CATEGORIES_USER_TITLE", "List discussion categories"),
- ReadOnlyHint: ToBoolPtr(true),
- }),
- mcp.WithString("owner",
- mcp.Required(),
- mcp.Description("Repository owner"),
- ),
- mcp.WithString("repo",
- mcp.Description("Repository name. If not provided, discussion categories will be queried at the organisation level."),
- ),
- ),
- func(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) {
- owner, err := RequiredParam[string](request, "owner")
+ ReadOnlyHint: true,
+ },
+ InputSchema: &jsonschema.Schema{
+ Type: "object",
+ Properties: map[string]*jsonschema.Schema{
+ "owner": {
+ Type: "string",
+ Description: "Repository owner",
+ },
+ "repo": {
+ Type: "string",
+ Description: "Repository name. If not provided, discussion categories will be queried at the organisation level.",
+ },
+ },
+ Required: []string{"owner"},
+ },
+ },
+ func(ctx context.Context, _ *mcp.CallToolRequest, args map[string]any) (*mcp.CallToolResult, any, error) {
+ owner, err := RequiredParam[string](args, "owner")
if err != nil {
- return mcp.NewToolResultError(err.Error()), nil
+ return utils.NewToolResultError(err.Error()), nil, nil
}
- repo, err := OptionalParam[string](request, "repo")
+ repo, err := OptionalParam[string](args, "repo")
if err != nil {
- return mcp.NewToolResultError(err.Error()), nil
+ return utils.NewToolResultError(err.Error()), nil, nil
}
// when not provided, default to the .github repository
// this will query discussion categories at the organisation level
@@ -494,7 +533,7 @@ func ListDiscussionCategories(getGQLClient GetGQLClientFn, t translations.Transl
client, err := getGQLClient(ctx)
if err != nil {
- return mcp.NewToolResultError(fmt.Sprintf("failed to get GitHub GQL client: %v", err)), nil
+ return utils.NewToolResultError(fmt.Sprintf("failed to get GitHub GQL client: %v", err)), nil, nil
}
var q struct {
@@ -520,7 +559,7 @@ func ListDiscussionCategories(getGQLClient GetGQLClientFn, t translations.Transl
"first": githubv4.Int(25),
}
if err := client.Query(ctx, &q, vars); err != nil {
- return mcp.NewToolResultError(err.Error()), nil
+ return utils.NewToolResultError(err.Error()), nil, nil
}
var categories []map[string]string
@@ -545,8 +584,8 @@ func ListDiscussionCategories(getGQLClient GetGQLClientFn, t translations.Transl
out, err := json.Marshal(response)
if err != nil {
- return nil, fmt.Errorf("failed to marshal discussion categories: %w", err)
+ return nil, nil, fmt.Errorf("failed to marshal discussion categories: %w", err)
}
- return mcp.NewToolResultText(string(out)), nil
+ return utils.NewToolResultText(string(out)), nil, nil
}
}
diff --git a/pkg/github/discussions_test.go b/pkg/github/discussions_test.go
index 03dd4ae1d..1a73d523e 100644
--- a/pkg/github/discussions_test.go
+++ b/pkg/github/discussions_test.go
@@ -1,5 +1,3 @@
-//go:build ignore
-
package github
import (
@@ -9,8 +7,10 @@ import (
"testing"
"github.com/github/github-mcp-server/internal/githubv4mock"
+ "github.com/github/github-mcp-server/internal/toolsnaps"
"github.com/github/github-mcp-server/pkg/translations"
"github.com/google/go-github/v79/github"
+ "github.com/google/jsonschema-go/jsonschema"
"github.com/shurcooL/githubv4"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
@@ -215,13 +215,17 @@ var (
func Test_ListDiscussions(t *testing.T) {
mockClient := githubv4.NewClient(nil)
toolDef, _ := ListDiscussions(stubGetGQLClientFn(mockClient), translations.NullTranslationHelper)
+ require.NoError(t, toolsnaps.Test(toolDef.Name, toolDef))
+
assert.Equal(t, "list_discussions", toolDef.Name)
assert.NotEmpty(t, toolDef.Description)
- assert.Contains(t, toolDef.InputSchema.Properties, "owner")
- assert.Contains(t, toolDef.InputSchema.Properties, "repo")
- assert.Contains(t, toolDef.InputSchema.Properties, "orderBy")
- assert.Contains(t, toolDef.InputSchema.Properties, "direction")
- assert.ElementsMatch(t, toolDef.InputSchema.Required, []string{"owner"})
+ schema, ok := toolDef.InputSchema.(*jsonschema.Schema)
+ require.True(t, ok, "InputSchema should be *jsonschema.Schema")
+ assert.Contains(t, schema.Properties, "owner")
+ assert.Contains(t, schema.Properties, "repo")
+ assert.Contains(t, schema.Properties, "orderBy")
+ assert.Contains(t, schema.Properties, "direction")
+ assert.ElementsMatch(t, schema.Required, []string{"owner"})
// Variables matching what GraphQL receives after JSON marshaling/unmarshaling
varsListAll := map[string]interface{}{
@@ -446,7 +450,7 @@ func Test_ListDiscussions(t *testing.T) {
_, handler := ListDiscussions(stubGetGQLClientFn(gqlClient), translations.NullTranslationHelper)
req := createMCPRequest(tc.reqParams)
- res, err := handler(context.Background(), req)
+ res, _, err := handler(context.Background(), &req, tc.reqParams)
text := getTextResult(t, res).Text
if tc.expectError {
@@ -491,12 +495,16 @@ func Test_ListDiscussions(t *testing.T) {
func Test_GetDiscussion(t *testing.T) {
// Verify tool definition and schema
toolDef, _ := GetDiscussion(nil, translations.NullTranslationHelper)
+ require.NoError(t, toolsnaps.Test(toolDef.Name, toolDef))
+
assert.Equal(t, "get_discussion", toolDef.Name)
assert.NotEmpty(t, toolDef.Description)
- assert.Contains(t, toolDef.InputSchema.Properties, "owner")
- assert.Contains(t, toolDef.InputSchema.Properties, "repo")
- assert.Contains(t, toolDef.InputSchema.Properties, "discussionNumber")
- assert.ElementsMatch(t, toolDef.InputSchema.Required, []string{"owner", "repo", "discussionNumber"})
+ schema, ok := toolDef.InputSchema.(*jsonschema.Schema)
+ require.True(t, ok, "InputSchema should be *jsonschema.Schema")
+ assert.Contains(t, schema.Properties, "owner")
+ assert.Contains(t, schema.Properties, "repo")
+ assert.Contains(t, schema.Properties, "discussionNumber")
+ assert.ElementsMatch(t, schema.Required, []string{"owner", "repo", "discussionNumber"})
// Use exact string query that matches implementation output
qGetDiscussion := "query($discussionNumber:Int!$owner:String!$repo:String!){repository(owner: $owner, name: $repo){discussion(number: $discussionNumber){number,title,body,createdAt,closed,isAnswered,answerChosenAt,url,category{name}}}}"
@@ -551,8 +559,9 @@ func Test_GetDiscussion(t *testing.T) {
gqlClient := githubv4.NewClient(httpClient)
_, handler := GetDiscussion(stubGetGQLClientFn(gqlClient), translations.NullTranslationHelper)
- req := createMCPRequest(map[string]interface{}{"owner": "owner", "repo": "repo", "discussionNumber": int32(1)})
- res, err := handler(context.Background(), req)
+ reqParams := map[string]interface{}{"owner": "owner", "repo": "repo", "discussionNumber": int32(1)}
+ req := createMCPRequest(reqParams)
+ res, _, err := handler(context.Background(), &req, reqParams)
text := getTextResult(t, res).Text
if tc.expectError {
@@ -581,12 +590,16 @@ func Test_GetDiscussion(t *testing.T) {
func Test_GetDiscussionComments(t *testing.T) {
// Verify tool definition and schema
toolDef, _ := GetDiscussionComments(nil, translations.NullTranslationHelper)
+ require.NoError(t, toolsnaps.Test(toolDef.Name, toolDef))
+
assert.Equal(t, "get_discussion_comments", toolDef.Name)
assert.NotEmpty(t, toolDef.Description)
- assert.Contains(t, toolDef.InputSchema.Properties, "owner")
- assert.Contains(t, toolDef.InputSchema.Properties, "repo")
- assert.Contains(t, toolDef.InputSchema.Properties, "discussionNumber")
- assert.ElementsMatch(t, toolDef.InputSchema.Required, []string{"owner", "repo", "discussionNumber"})
+ schema, ok := toolDef.InputSchema.(*jsonschema.Schema)
+ require.True(t, ok, "InputSchema should be *jsonschema.Schema")
+ assert.Contains(t, schema.Properties, "owner")
+ assert.Contains(t, schema.Properties, "repo")
+ assert.Contains(t, schema.Properties, "discussionNumber")
+ assert.ElementsMatch(t, schema.Required, []string{"owner", "repo", "discussionNumber"})
// Use exact string query that matches implementation output
qGetComments := "query($after:String$discussionNumber:Int!$first:Int!$owner:String!$repo:String!){repository(owner: $owner, name: $repo){discussion(number: $discussionNumber){comments(first: $first, after: $after){nodes{body},pageInfo{hasNextPage,hasPreviousPage,startCursor,endCursor},totalCount}}}}"
@@ -624,13 +637,14 @@ func Test_GetDiscussionComments(t *testing.T) {
gqlClient := githubv4.NewClient(httpClient)
_, handler := GetDiscussionComments(stubGetGQLClientFn(gqlClient), translations.NullTranslationHelper)
- request := createMCPRequest(map[string]interface{}{
+ reqParams := map[string]interface{}{
"owner": "owner",
"repo": "repo",
"discussionNumber": int32(1),
- })
+ }
+ request := createMCPRequest(reqParams)
- result, err := handler(context.Background(), request)
+ result, _, err := handler(context.Background(), &request, reqParams)
require.NoError(t, err)
textContent := getTextResult(t, result)
@@ -659,12 +673,16 @@ func Test_GetDiscussionComments(t *testing.T) {
func Test_ListDiscussionCategories(t *testing.T) {
mockClient := githubv4.NewClient(nil)
toolDef, _ := ListDiscussionCategories(stubGetGQLClientFn(mockClient), translations.NullTranslationHelper)
+ require.NoError(t, toolsnaps.Test(toolDef.Name, toolDef))
+
assert.Equal(t, "list_discussion_categories", toolDef.Name)
assert.NotEmpty(t, toolDef.Description)
assert.Contains(t, toolDef.Description, "or organisation")
- assert.Contains(t, toolDef.InputSchema.Properties, "owner")
- assert.Contains(t, toolDef.InputSchema.Properties, "repo")
- assert.ElementsMatch(t, toolDef.InputSchema.Required, []string{"owner"})
+ schema, ok := toolDef.InputSchema.(*jsonschema.Schema)
+ require.True(t, ok, "InputSchema should be *jsonschema.Schema")
+ assert.Contains(t, schema.Properties, "owner")
+ assert.Contains(t, schema.Properties, "repo")
+ assert.ElementsMatch(t, schema.Required, []string{"owner"})
// Use exact string query that matches implementation output
qListCategories := "query($first:Int!$owner:String!$repo:String!){repository(owner: $owner, name: $repo){discussionCategories(first: $first){nodes{id,name},pageInfo{hasNextPage,hasPreviousPage,startCursor,endCursor},totalCount}}}"
@@ -771,7 +789,7 @@ func Test_ListDiscussionCategories(t *testing.T) {
_, handler := ListDiscussionCategories(stubGetGQLClientFn(gqlClient), translations.NullTranslationHelper)
req := createMCPRequest(tc.reqParams)
- res, err := handler(context.Background(), req)
+ res, _, err := handler(context.Background(), &req, tc.reqParams)
text := getTextResult(t, res).Text
if tc.expectError {
From 0857a966993f7ba02123fb968232f2f2a9cd08be Mon Sep 17 00:00:00 2001
From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com>
Date: Thu, 20 Nov 2025 10:26:39 +0000
Subject: [PATCH 3/6] Update documentation after discussions toolset migration
---
README.md | 622 ------------------------------------------
docs/remote-server.md | 12 -
2 files changed, 634 deletions(-)
diff --git a/README.md b/README.md
index 7c4884074..333a34400 100644
--- a/README.md
+++ b/README.md
@@ -394,24 +394,12 @@ The following sets of tools are available:
| Toolset | Description |
| ----------------------- | ------------------------------------------------------------- |
| `context` | **Strongly recommended**: Tools that provide context about the current user and GitHub context you are operating in |
-| `actions` | GitHub Actions workflows and CI/CD operations |
| `code_security` | Code security related tools, such as GitHub Code Scanning |
-| `dependabot` | Dependabot tools |
-| `discussions` | GitHub Discussions related tools |
-| `experiments` | Experimental features that are not considered stable yet |
| `gists` | GitHub Gist related tools |
| `git` | GitHub Git API related tools for low-level Git operations |
-| `issues` | GitHub Issues related tools |
| `labels` | GitHub Labels related tools |
-| `notifications` | GitHub Notifications related tools |
-| `orgs` | GitHub Organization related tools |
-| `projects` | GitHub Projects related tools |
-| `pull_requests` | GitHub Pull Request related tools |
-| `repos` | GitHub Repository related tools |
| `secret_protection` | Secret protection related tools, such as GitHub Secret Scanning |
| `security_advisories` | Security advisories related tools |
-| `stargazers` | GitHub Stargazers related tools |
-| `users` | GitHub User related tools |
### Additional Toolsets in Remote GitHub MCP Server
@@ -427,100 +415,6 @@ The following sets of tools are available:
-Actions
-
-- **cancel_workflow_run** - Cancel workflow run
- - `owner`: Repository owner (string, required)
- - `repo`: Repository name (string, required)
- - `run_id`: The unique identifier of the workflow run (number, required)
-
-- **delete_workflow_run_logs** - Delete workflow logs
- - `owner`: Repository owner (string, required)
- - `repo`: Repository name (string, required)
- - `run_id`: The unique identifier of the workflow run (number, required)
-
-- **download_workflow_run_artifact** - Download workflow artifact
- - `artifact_id`: The unique identifier of the artifact (number, required)
- - `owner`: Repository owner (string, required)
- - `repo`: Repository name (string, required)
-
-- **get_job_logs** - Get job logs
- - `failed_only`: When true, gets logs for all failed jobs in run_id (boolean, optional)
- - `job_id`: The unique identifier of the workflow job (required for single job logs) (number, optional)
- - `owner`: Repository owner (string, required)
- - `repo`: Repository name (string, required)
- - `return_content`: Returns actual log content instead of URLs (boolean, optional)
- - `run_id`: Workflow run ID (required when using failed_only) (number, optional)
- - `tail_lines`: Number of lines to return from the end of the log (number, optional)
-
-- **get_workflow_run** - Get workflow run
- - `owner`: Repository owner (string, required)
- - `repo`: Repository name (string, required)
- - `run_id`: The unique identifier of the workflow run (number, required)
-
-- **get_workflow_run_logs** - Get workflow run logs
- - `owner`: Repository owner (string, required)
- - `repo`: Repository name (string, required)
- - `run_id`: The unique identifier of the workflow run (number, required)
-
-- **get_workflow_run_usage** - Get workflow usage
- - `owner`: Repository owner (string, required)
- - `repo`: Repository name (string, required)
- - `run_id`: The unique identifier of the workflow run (number, required)
-
-- **list_workflow_jobs** - List workflow jobs
- - `filter`: Filters jobs by their completed_at timestamp (string, optional)
- - `owner`: Repository owner (string, required)
- - `page`: Page number for pagination (min 1) (number, optional)
- - `perPage`: Results per page for pagination (min 1, max 100) (number, optional)
- - `repo`: Repository name (string, required)
- - `run_id`: The unique identifier of the workflow run (number, required)
-
-- **list_workflow_run_artifacts** - List workflow artifacts
- - `owner`: Repository owner (string, required)
- - `page`: Page number for pagination (min 1) (number, optional)
- - `perPage`: Results per page for pagination (min 1, max 100) (number, optional)
- - `repo`: Repository name (string, required)
- - `run_id`: The unique identifier of the workflow run (number, required)
-
-- **list_workflow_runs** - List workflow runs
- - `actor`: Returns someone's workflow runs. Use the login for the user who created the workflow run. (string, optional)
- - `branch`: Returns workflow runs associated with a branch. Use the name of the branch. (string, optional)
- - `event`: Returns workflow runs for a specific event type (string, optional)
- - `owner`: Repository owner (string, required)
- - `page`: Page number for pagination (min 1) (number, optional)
- - `perPage`: Results per page for pagination (min 1, max 100) (number, optional)
- - `repo`: Repository name (string, required)
- - `status`: Returns workflow runs with the check run status (string, optional)
- - `workflow_id`: The workflow ID or workflow file name (string, required)
-
-- **list_workflows** - List workflows
- - `owner`: Repository owner (string, required)
- - `page`: Page number for pagination (min 1) (number, optional)
- - `perPage`: Results per page for pagination (min 1, max 100) (number, optional)
- - `repo`: Repository name (string, required)
-
-- **rerun_failed_jobs** - Rerun failed jobs
- - `owner`: Repository owner (string, required)
- - `repo`: Repository name (string, required)
- - `run_id`: The unique identifier of the workflow run (number, required)
-
-- **rerun_workflow_run** - Rerun workflow run
- - `owner`: Repository owner (string, required)
- - `repo`: Repository name (string, required)
- - `run_id`: The unique identifier of the workflow run (number, required)
-
-- **run_workflow** - Run workflow
- - `inputs`: Inputs the workflow accepts (object, optional)
- - `owner`: Repository owner (string, required)
- - `ref`: The git reference for the workflow. The reference can be a branch or tag name. (string, required)
- - `repo`: Repository name (string, required)
- - `workflow_id`: The workflow ID (numeric) or workflow file name (e.g., main.yml, ci.yaml) (string, required)
-
-
-
-
-
Code Security
- **get_code_scanning_alert** - Get code scanning alert
@@ -556,54 +450,6 @@ The following sets of tools are available:
-Dependabot
-
-- **get_dependabot_alert** - Get dependabot alert
- - `alertNumber`: The number of the alert. (number, required)
- - `owner`: The owner of the repository. (string, required)
- - `repo`: The name of the repository. (string, required)
-
-- **list_dependabot_alerts** - List dependabot alerts
- - `owner`: The owner of the repository. (string, required)
- - `repo`: The name of the repository. (string, required)
- - `severity`: Filter dependabot alerts by severity (string, optional)
- - `state`: Filter dependabot alerts by state. Defaults to open (string, optional)
-
-
-
-
-
-Discussions
-
-- **get_discussion** - Get discussion
- - `discussionNumber`: Discussion Number (number, required)
- - `owner`: Repository owner (string, required)
- - `repo`: Repository name (string, required)
-
-- **get_discussion_comments** - Get discussion comments
- - `after`: Cursor for pagination. Use the endCursor from the previous page's PageInfo for GraphQL APIs. (string, optional)
- - `discussionNumber`: Discussion Number (number, required)
- - `owner`: Repository owner (string, required)
- - `perPage`: Results per page for pagination (min 1, max 100) (number, optional)
- - `repo`: Repository name (string, required)
-
-- **list_discussion_categories** - List discussion categories
- - `owner`: Repository owner (string, required)
- - `repo`: Repository name. If not provided, discussion categories will be queried at the organisation level. (string, optional)
-
-- **list_discussions** - List discussions
- - `after`: Cursor for pagination. Use the endCursor from the previous page's PageInfo for GraphQL APIs. (string, optional)
- - `category`: Optional filter by discussion category ID. If provided, only discussions with this category are listed. (string, optional)
- - `direction`: Order direction. (string, optional)
- - `orderBy`: Order discussions by field. If provided, the 'direction' also needs to be provided. (string, optional)
- - `owner`: Repository owner (string, required)
- - `perPage`: Results per page for pagination (min 1, max 100) (number, optional)
- - `repo`: Repository name. If not provided, discussions will be queried at the organisation level. (string, optional)
-
-
-
-
-
Gists
- **create_gist** - Create Gist
@@ -644,99 +490,6 @@ The following sets of tools are available:
-Issues
-
-- **add_issue_comment** - Add comment to issue
- - `body`: Comment content (string, required)
- - `issue_number`: Issue number to comment on (number, required)
- - `owner`: Repository owner (string, required)
- - `repo`: Repository name (string, required)
-
-- **assign_copilot_to_issue** - Assign Copilot to issue
- - `issueNumber`: Issue number (number, required)
- - `owner`: Repository owner (string, required)
- - `repo`: Repository name (string, required)
-
-- **get_label** - Get a specific label from a repository.
- - `name`: Label name. (string, required)
- - `owner`: Repository owner (username or organization name) (string, required)
- - `repo`: Repository name (string, required)
-
-- **issue_read** - Get issue details
- - `issue_number`: The number of the issue (number, required)
- - `method`: The read operation to perform on a single issue.
-Options are:
-1. get - Get details of a specific issue.
-2. get_comments - Get issue comments.
-3. get_sub_issues - Get sub-issues of the issue.
-4. get_labels - Get labels assigned to the issue.
- (string, required)
- - `owner`: The owner of the repository (string, required)
- - `page`: Page number for pagination (min 1) (number, optional)
- - `perPage`: Results per page for pagination (min 1, max 100) (number, optional)
- - `repo`: The name of the repository (string, required)
-
-- **issue_write** - Create or update issue.
- - `assignees`: Usernames to assign to this issue (string[], optional)
- - `body`: Issue body content (string, optional)
- - `duplicate_of`: Issue number that this issue is a duplicate of. Only used when state_reason is 'duplicate'. (number, optional)
- - `issue_number`: Issue number to update (number, optional)
- - `labels`: Labels to apply to this issue (string[], optional)
- - `method`: Write operation to perform on a single issue.
-Options are:
-- 'create' - creates a new issue.
-- 'update' - updates an existing issue.
- (string, required)
- - `milestone`: Milestone number (number, optional)
- - `owner`: Repository owner (string, required)
- - `repo`: Repository name (string, required)
- - `state`: New state (string, optional)
- - `state_reason`: Reason for the state change. Ignored unless state is changed. (string, optional)
- - `title`: Issue title (string, optional)
- - `type`: Type of this issue. Only use if the repository has issue types configured. Use list_issue_types tool to get valid type values for the organization. If the repository doesn't support issue types, omit this parameter. (string, optional)
-
-- **list_issue_types** - List available issue types
- - `owner`: The organization owner of the repository (string, required)
-
-- **list_issues** - List issues
- - `after`: Cursor for pagination. Use the endCursor from the previous page's PageInfo for GraphQL APIs. (string, optional)
- - `direction`: Order direction. If provided, the 'orderBy' also needs to be provided. (string, optional)
- - `labels`: Filter by labels (string[], optional)
- - `orderBy`: Order issues by field. If provided, the 'direction' also needs to be provided. (string, optional)
- - `owner`: Repository owner (string, required)
- - `perPage`: Results per page for pagination (min 1, max 100) (number, optional)
- - `repo`: Repository name (string, required)
- - `since`: Filter by date (ISO 8601 timestamp) (string, optional)
- - `state`: Filter by state, by default both open and closed issues are returned when not provided (string, optional)
-
-- **search_issues** - Search issues
- - `order`: Sort order (string, optional)
- - `owner`: Optional repository owner. If provided with repo, only issues for this repository are listed. (string, optional)
- - `page`: Page number for pagination (min 1) (number, optional)
- - `perPage`: Results per page for pagination (min 1, max 100) (number, optional)
- - `query`: Search query using GitHub issues search syntax (string, required)
- - `repo`: Optional repository name. If provided with owner, only issues for this repository are listed. (string, optional)
- - `sort`: Sort field by number of matches of categories, defaults to best match (string, optional)
-
-- **sub_issue_write** - Change sub-issue
- - `after_id`: The ID of the sub-issue to be prioritized after (either after_id OR before_id should be specified) (number, optional)
- - `before_id`: The ID of the sub-issue to be prioritized before (either after_id OR before_id should be specified) (number, optional)
- - `issue_number`: The number of the parent issue (number, required)
- - `method`: The action to perform on a single sub-issue
-Options are:
-- 'add' - add a sub-issue to a parent issue in a GitHub repository.
-- 'remove' - remove a sub-issue from a parent issue in a GitHub repository.
-- 'reprioritize' - change the order of sub-issues within a parent issue in a GitHub repository. Use either 'after_id' or 'before_id' to specify the new position.
- (string, required)
- - `owner`: Repository owner (string, required)
- - `replace_parent`: When true, replaces the sub-issue's current parent issue. Use with 'add' method only. (boolean, optional)
- - `repo`: Repository name (string, required)
- - `sub_issue_id`: The ID of the sub-issue to add. ID is not the same as issue number (number, required)
-
-
-
-
-
Labels
- **get_label** - Get a specific label from a repository.
@@ -761,347 +514,6 @@ Options are:
-Notifications
-
-- **dismiss_notification** - Dismiss notification
- - `state`: The new state of the notification (read/done) (string, optional)
- - `threadID`: The ID of the notification thread (string, required)
-
-- **get_notification_details** - Get notification details
- - `notificationID`: The ID of the notification (string, required)
-
-- **list_notifications** - List notifications
- - `before`: Only show notifications updated before the given time (ISO 8601 format) (string, optional)
- - `filter`: Filter notifications to, use default unless specified. Read notifications are ones that have already been acknowledged by the user. Participating notifications are those that the user is directly involved in, such as issues or pull requests they have commented on or created. (string, optional)
- - `owner`: Optional repository owner. If provided with repo, only notifications for this repository are listed. (string, optional)
- - `page`: Page number for pagination (min 1) (number, optional)
- - `perPage`: Results per page for pagination (min 1, max 100) (number, optional)
- - `repo`: Optional repository name. If provided with owner, only notifications for this repository are listed. (string, optional)
- - `since`: Only show notifications updated after the given time (ISO 8601 format) (string, optional)
-
-- **manage_notification_subscription** - Manage notification subscription
- - `action`: Action to perform: ignore, watch, or delete the notification subscription. (string, required)
- - `notificationID`: The ID of the notification thread. (string, required)
-
-- **manage_repository_notification_subscription** - Manage repository notification subscription
- - `action`: Action to perform: ignore, watch, or delete the repository notification subscription. (string, required)
- - `owner`: The account owner of the repository. (string, required)
- - `repo`: The name of the repository. (string, required)
-
-- **mark_all_notifications_read** - Mark all notifications as read
- - `lastReadAt`: Describes the last point that notifications were checked (optional). Default: Now (string, optional)
- - `owner`: Optional repository owner. If provided with repo, only notifications for this repository are marked as read. (string, optional)
- - `repo`: Optional repository name. If provided with owner, only notifications for this repository are marked as read. (string, optional)
-
-
-
-
-
-Organizations
-
-- **search_orgs** - Search organizations
- - `order`: Sort order (string, optional)
- - `page`: Page number for pagination (min 1) (number, optional)
- - `perPage`: Results per page for pagination (min 1, max 100) (number, optional)
- - `query`: Organization search query. Examples: 'microsoft', 'location:california', 'created:>=2025-01-01'. Search is automatically scoped to type:org. (string, required)
- - `sort`: Sort field by category (string, optional)
-
-
-
-
-
-Projects
-
-- **add_project_item** - Add project item
- - `item_id`: The numeric ID of the issue or pull request to add to the project. (number, required)
- - `item_type`: The item's type, either issue or pull_request. (string, required)
- - `owner`: If owner_type == user it is the handle for the GitHub user account. If owner_type == org it is the name of the organization. The name is not case sensitive. (string, required)
- - `owner_type`: Owner type (string, required)
- - `project_number`: The project's number. (number, required)
-
-- **delete_project_item** - Delete project item
- - `item_id`: The internal project item ID to delete from the project (not the issue or pull request ID). (number, required)
- - `owner`: If owner_type == user it is the handle for the GitHub user account. If owner_type == org it is the name of the organization. The name is not case sensitive. (string, required)
- - `owner_type`: Owner type (string, required)
- - `project_number`: The project's number. (number, required)
-
-- **get_project** - Get project
- - `owner`: If owner_type == user it is the handle for the GitHub user account. If owner_type == org it is the name of the organization. The name is not case sensitive. (string, required)
- - `owner_type`: Owner type (string, required)
- - `project_number`: The project's number (number, required)
-
-- **get_project_field** - Get project field
- - `field_id`: The field's id. (number, required)
- - `owner`: If owner_type == user it is the handle for the GitHub user account. If owner_type == org it is the name of the organization. The name is not case sensitive. (string, required)
- - `owner_type`: Owner type (string, required)
- - `project_number`: The project's number. (number, required)
-
-- **get_project_item** - Get project item
- - `fields`: Specific list of field IDs to include in the response (e.g. ["102589", "985201", "169875"]). If not provided, only the title field is included. (string[], optional)
- - `item_id`: The item's ID. (number, required)
- - `owner`: If owner_type == user it is the handle for the GitHub user account. If owner_type == org it is the name of the organization. The name is not case sensitive. (string, required)
- - `owner_type`: Owner type (string, required)
- - `project_number`: The project's number. (number, required)
-
-- **list_project_fields** - List project fields
- - `after`: Forward pagination cursor from previous pageInfo.nextCursor. (string, optional)
- - `before`: Backward pagination cursor from previous pageInfo.prevCursor (rare). (string, optional)
- - `owner`: If owner_type == user it is the handle for the GitHub user account. If owner_type == org it is the name of the organization. The name is not case sensitive. (string, required)
- - `owner_type`: Owner type (string, required)
- - `per_page`: Results per page (max 50) (number, optional)
- - `project_number`: The project's number. (number, required)
-
-- **list_project_items** - List project items
- - `after`: Forward pagination cursor from previous pageInfo.nextCursor. (string, optional)
- - `before`: Backward pagination cursor from previous pageInfo.prevCursor (rare). (string, optional)
- - `fields`: Field IDs to include (e.g. ["102589", "985201"]). CRITICAL: Always provide to get field values. Without this, only titles returned. (string[], optional)
- - `owner`: If owner_type == user it is the handle for the GitHub user account. If owner_type == org it is the name of the organization. The name is not case sensitive. (string, required)
- - `owner_type`: Owner type (string, required)
- - `per_page`: Results per page (max 50) (number, optional)
- - `project_number`: The project's number. (number, required)
- - `query`: Query string for advanced filtering of project items using GitHub's project filtering syntax. (string, optional)
-
-- **list_projects** - List projects
- - `after`: Forward pagination cursor from previous pageInfo.nextCursor. (string, optional)
- - `before`: Backward pagination cursor from previous pageInfo.prevCursor (rare). (string, optional)
- - `owner`: If owner_type == user it is the handle for the GitHub user account. If owner_type == org it is the name of the organization. The name is not case sensitive. (string, required)
- - `owner_type`: Owner type (string, required)
- - `per_page`: Results per page (max 50) (number, optional)
- - `query`: Filter projects by title text and open/closed state; permitted qualifiers: is:open, is:closed; examples: "roadmap is:open", "is:open feature planning". (string, optional)
-
-- **update_project_item** - Update project item
- - `item_id`: The unique identifier of the project item. This is not the issue or pull request ID. (number, required)
- - `owner`: If owner_type == user it is the handle for the GitHub user account. If owner_type == org it is the name of the organization. The name is not case sensitive. (string, required)
- - `owner_type`: Owner type (string, required)
- - `project_number`: The project's number. (number, required)
- - `updated_field`: Object consisting of the ID of the project field to update and the new value for the field. To clear the field, set value to null. Example: {"id": 123456, "value": "New Value"} (object, required)
-
-
-
-
-
-Pull Requests
-
-- **add_comment_to_pending_review** - Add review comment to the requester's latest pending pull request review
- - `body`: The text of the review comment (string, required)
- - `line`: The line of the blob in the pull request diff that the comment applies to. For multi-line comments, the last line of the range (number, optional)
- - `owner`: Repository owner (string, required)
- - `path`: The relative path to the file that necessitates a comment (string, required)
- - `pullNumber`: Pull request number (number, required)
- - `repo`: Repository name (string, required)
- - `side`: The side of the diff to comment on. LEFT indicates the previous state, RIGHT indicates the new state (string, optional)
- - `startLine`: For multi-line comments, the first line of the range that the comment applies to (number, optional)
- - `startSide`: For multi-line comments, the starting side of the diff that the comment applies to. LEFT indicates the previous state, RIGHT indicates the new state (string, optional)
- - `subjectType`: The level at which the comment is targeted (string, required)
-
-- **create_pull_request** - Open new pull request
- - `base`: Branch to merge into (string, required)
- - `body`: PR description (string, optional)
- - `draft`: Create as draft PR (boolean, optional)
- - `head`: Branch containing changes (string, required)
- - `maintainer_can_modify`: Allow maintainer edits (boolean, optional)
- - `owner`: Repository owner (string, required)
- - `repo`: Repository name (string, required)
- - `title`: PR title (string, required)
-
-- **list_pull_requests** - List pull requests
- - `base`: Filter by base branch (string, optional)
- - `direction`: Sort direction (string, optional)
- - `head`: Filter by head user/org and branch (string, optional)
- - `owner`: Repository owner (string, required)
- - `page`: Page number for pagination (min 1) (number, optional)
- - `perPage`: Results per page for pagination (min 1, max 100) (number, optional)
- - `repo`: Repository name (string, required)
- - `sort`: Sort by (string, optional)
- - `state`: Filter by state (string, optional)
-
-- **merge_pull_request** - Merge pull request
- - `commit_message`: Extra detail for merge commit (string, optional)
- - `commit_title`: Title for merge commit (string, optional)
- - `merge_method`: Merge method (string, optional)
- - `owner`: Repository owner (string, required)
- - `pullNumber`: Pull request number (number, required)
- - `repo`: Repository name (string, required)
-
-- **pull_request_read** - Get details for a single pull request
- - `method`: Action to specify what pull request data needs to be retrieved from GitHub.
-Possible options:
- 1. get - Get details of a specific pull request.
- 2. get_diff - Get the diff of a pull request.
- 3. get_status - Get status of a head commit in a pull request. This reflects status of builds and checks.
- 4. get_files - Get the list of files changed in a pull request. Use with pagination parameters to control the number of results returned.
- 5. get_review_comments - Get the review comments on a pull request. They are comments made on a portion of the unified diff during a pull request review. Use with pagination parameters to control the number of results returned.
- 6. get_reviews - Get the reviews on a pull request. When asked for review comments, use get_review_comments method.
- 7. get_comments - Get comments on a pull request. Use this if user doesn't specifically want review comments. Use with pagination parameters to control the number of results returned.
- (string, required)
- - `owner`: Repository owner (string, required)
- - `page`: Page number for pagination (min 1) (number, optional)
- - `perPage`: Results per page for pagination (min 1, max 100) (number, optional)
- - `pullNumber`: Pull request number (number, required)
- - `repo`: Repository name (string, required)
-
-- **pull_request_review_write** - Write operations (create, submit, delete) on pull request reviews.
- - `body`: Review comment text (string, optional)
- - `commitID`: SHA of commit to review (string, optional)
- - `event`: Review action to perform. (string, optional)
- - `method`: The write operation to perform on pull request review. (string, required)
- - `owner`: Repository owner (string, required)
- - `pullNumber`: Pull request number (number, required)
- - `repo`: Repository name (string, required)
-
-- **request_copilot_review** - Request Copilot review
- - `owner`: Repository owner (string, required)
- - `pullNumber`: Pull request number (number, required)
- - `repo`: Repository name (string, required)
-
-- **search_pull_requests** - Search pull requests
- - `order`: Sort order (string, optional)
- - `owner`: Optional repository owner. If provided with repo, only pull requests for this repository are listed. (string, optional)
- - `page`: Page number for pagination (min 1) (number, optional)
- - `perPage`: Results per page for pagination (min 1, max 100) (number, optional)
- - `query`: Search query using GitHub pull request search syntax (string, required)
- - `repo`: Optional repository name. If provided with owner, only pull requests for this repository are listed. (string, optional)
- - `sort`: Sort field by number of matches of categories, defaults to best match (string, optional)
-
-- **update_pull_request** - Edit pull request
- - `base`: New base branch name (string, optional)
- - `body`: New description (string, optional)
- - `draft`: Mark pull request as draft (true) or ready for review (false) (boolean, optional)
- - `maintainer_can_modify`: Allow maintainer edits (boolean, optional)
- - `owner`: Repository owner (string, required)
- - `pullNumber`: Pull request number to update (number, required)
- - `repo`: Repository name (string, required)
- - `reviewers`: GitHub usernames to request reviews from (string[], optional)
- - `state`: New state (string, optional)
- - `title`: New title (string, optional)
-
-- **update_pull_request_branch** - Update pull request branch
- - `expectedHeadSha`: The expected SHA of the pull request's HEAD ref (string, optional)
- - `owner`: Repository owner (string, required)
- - `pullNumber`: Pull request number (number, required)
- - `repo`: Repository name (string, required)
-
-
-
-
-
-Repositories
-
-- **create_branch** - Create branch
- - `branch`: Name for new branch (string, required)
- - `from_branch`: Source branch (defaults to repo default) (string, optional)
- - `owner`: Repository owner (string, required)
- - `repo`: Repository name (string, required)
-
-- **create_or_update_file** - Create or update file
- - `branch`: Branch to create/update the file in (string, required)
- - `content`: Content of the file (string, required)
- - `message`: Commit message (string, required)
- - `owner`: Repository owner (username or organization) (string, required)
- - `path`: Path where to create/update the file (string, required)
- - `repo`: Repository name (string, required)
- - `sha`: Required if updating an existing file. The blob SHA of the file being replaced. (string, optional)
-
-- **create_repository** - Create repository
- - `autoInit`: Initialize with README (boolean, optional)
- - `description`: Repository description (string, optional)
- - `name`: Repository name (string, required)
- - `organization`: Organization to create the repository in (omit to create in your personal account) (string, optional)
- - `private`: Whether repo should be private (boolean, optional)
-
-- **delete_file** - Delete file
- - `branch`: Branch to delete the file from (string, required)
- - `message`: Commit message (string, required)
- - `owner`: Repository owner (username or organization) (string, required)
- - `path`: Path to the file to delete (string, required)
- - `repo`: Repository name (string, required)
-
-- **fork_repository** - Fork repository
- - `organization`: Organization to fork to (string, optional)
- - `owner`: Repository owner (string, required)
- - `repo`: Repository name (string, required)
-
-- **get_commit** - Get commit details
- - `include_diff`: Whether to include file diffs and stats in the response. Default is true. (boolean, optional)
- - `owner`: Repository owner (string, required)
- - `page`: Page number for pagination (min 1) (number, optional)
- - `perPage`: Results per page for pagination (min 1, max 100) (number, optional)
- - `repo`: Repository name (string, required)
- - `sha`: Commit SHA, branch name, or tag name (string, required)
-
-- **get_file_contents** - Get file or directory contents
- - `owner`: Repository owner (username or organization) (string, required)
- - `path`: Path to file/directory (directories must end with a slash '/') (string, optional)
- - `ref`: Accepts optional git refs such as `refs/tags/{tag}`, `refs/heads/{branch}` or `refs/pull/{pr_number}/head` (string, optional)
- - `repo`: Repository name (string, required)
- - `sha`: Accepts optional commit SHA. If specified, it will be used instead of ref (string, optional)
-
-- **get_latest_release** - Get latest release
- - `owner`: Repository owner (string, required)
- - `repo`: Repository name (string, required)
-
-- **get_release_by_tag** - Get a release by tag name
- - `owner`: Repository owner (string, required)
- - `repo`: Repository name (string, required)
- - `tag`: Tag name (e.g., 'v1.0.0') (string, required)
-
-- **get_tag** - Get tag details
- - `owner`: Repository owner (string, required)
- - `repo`: Repository name (string, required)
- - `tag`: Tag name (string, required)
-
-- **list_branches** - List branches
- - `owner`: Repository owner (string, required)
- - `page`: Page number for pagination (min 1) (number, optional)
- - `perPage`: Results per page for pagination (min 1, max 100) (number, optional)
- - `repo`: Repository name (string, required)
-
-- **list_commits** - List commits
- - `author`: Author username or email address to filter commits by (string, optional)
- - `owner`: Repository owner (string, required)
- - `page`: Page number for pagination (min 1) (number, optional)
- - `perPage`: Results per page for pagination (min 1, max 100) (number, optional)
- - `repo`: Repository name (string, required)
- - `sha`: Commit SHA, branch or tag name to list commits of. If not provided, uses the default branch of the repository. If a commit SHA is provided, will list commits up to that SHA. (string, optional)
-
-- **list_releases** - List releases
- - `owner`: Repository owner (string, required)
- - `page`: Page number for pagination (min 1) (number, optional)
- - `perPage`: Results per page for pagination (min 1, max 100) (number, optional)
- - `repo`: Repository name (string, required)
-
-- **list_tags** - List tags
- - `owner`: Repository owner (string, required)
- - `page`: Page number for pagination (min 1) (number, optional)
- - `perPage`: Results per page for pagination (min 1, max 100) (number, optional)
- - `repo`: Repository name (string, required)
-
-- **push_files** - Push files to repository
- - `branch`: Branch to push to (string, required)
- - `files`: Array of file objects to push, each object with path (string) and content (string) (object[], required)
- - `message`: Commit message (string, required)
- - `owner`: Repository owner (string, required)
- - `repo`: Repository name (string, required)
-
-- **search_code** - Search code
- - `order`: Sort order for results (string, optional)
- - `page`: Page number for pagination (min 1) (number, optional)
- - `perPage`: Results per page for pagination (min 1, max 100) (number, optional)
- - `query`: Search query using GitHub's powerful code search syntax. Examples: 'content:Skill language:Java org:github', 'NOT is:archived language:Python OR language:go', 'repo:github/github-mcp-server'. Supports exact matching, language filters, path filters, and more. (string, required)
- - `sort`: Sort field ('indexed' only) (string, optional)
-
-- **search_repositories** - Search repositories
- - `minimal_output`: Return minimal repository information (default: true). When false, returns full GitHub API repository objects. (boolean, optional)
- - `order`: Sort order (string, optional)
- - `page`: Page number for pagination (min 1) (number, optional)
- - `perPage`: Results per page for pagination (min 1, max 100) (number, optional)
- - `query`: Repository search query. Examples: 'machine learning in:name stars:>1000 language:python', 'topic:react', 'user:facebook'. Supports advanced search syntax for precise filtering. (string, required)
- - `sort`: Sort repositories by field, defaults to best match (string, optional)
-
-
-
-
-
Secret Protection
- **get_secret_scanning_alert** - Get secret scanning alert
@@ -1151,40 +563,6 @@ Possible options:
- `sort`: Sort field. (string, optional)
- `state`: Filter by advisory state. (string, optional)
-
-
-
-
-Stargazers
-
-- **list_starred_repositories** - List starred repositories
- - `direction`: The direction to sort the results by. (string, optional)
- - `page`: Page number for pagination (min 1) (number, optional)
- - `perPage`: Results per page for pagination (min 1, max 100) (number, optional)
- - `sort`: How to sort the results. Can be either 'created' (when the repository was starred) or 'updated' (when the repository was last pushed to). (string, optional)
- - `username`: Username to list starred repositories for. Defaults to the authenticated user. (string, optional)
-
-- **star_repository** - Star repository
- - `owner`: Repository owner (string, required)
- - `repo`: Repository name (string, required)
-
-- **unstar_repository** - Unstar repository
- - `owner`: Repository owner (string, required)
- - `repo`: Repository name (string, required)
-
-
-
-
-
-Users
-
-- **search_users** - Search users
- - `order`: Sort order (string, optional)
- - `page`: Page number for pagination (min 1) (number, optional)
- - `perPage`: Results per page for pagination (min 1, max 100) (number, optional)
- - `query`: User search query. Examples: 'john smith', 'location:seattle', 'followers:>100'. Search is automatically scoped to type:user. (string, required)
- - `sort`: Sort users by number of followers or repositories, or when the person joined GitHub. (string, optional)
-
diff --git a/docs/remote-server.md b/docs/remote-server.md
index b263d70aa..8a9dda20c 100644
--- a/docs/remote-server.md
+++ b/docs/remote-server.md
@@ -20,24 +20,12 @@ Below is a table of available toolsets for the remote GitHub MCP Server. Each to
| Name | Description | API URL | 1-Click Install (VS Code) | Read-only Link | 1-Click Read-only Install (VS Code) |
|----------------|--------------------------------------------------|-------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| all | All available GitHub MCP tools | https://api.githubcopilot.com/mcp/ | [Install](https://insiders.vscode.dev/redirect/mcp/install?name=github&config=%7B%22type%22%3A%20%22http%22%2C%22url%22%3A%20%22https%3A%2F%2Fapi.githubcopilot.com%2Fmcp%2F%22%7D) | [read-only](https://api.githubcopilot.com/mcp/readonly) | [Install read-only](https://insiders.vscode.dev/redirect/mcp/install?name=github&config=%7B%22type%22%3A%20%22http%22%2C%22url%22%3A%20%22https%3A%2F%2Fapi.githubcopilot.com%2Fmcp%2Freadonly%22%7D) |
-| Actions | GitHub Actions workflows and CI/CD operations | https://api.githubcopilot.com/mcp/x/actions | [Install](https://insiders.vscode.dev/redirect/mcp/install?name=gh-actions&config=%7B%22type%22%3A%20%22http%22%2C%22url%22%3A%20%22https%3A%2F%2Fapi.githubcopilot.com%2Fmcp%2Fx%2Factions%22%7D) | [read-only](https://api.githubcopilot.com/mcp/x/actions/readonly) | [Install read-only](https://insiders.vscode.dev/redirect/mcp/install?name=gh-actions&config=%7B%22type%22%3A%20%22http%22%2C%22url%22%3A%20%22https%3A%2F%2Fapi.githubcopilot.com%2Fmcp%2Fx%2Factions%2Freadonly%22%7D) |
| Code Security | Code security related tools, such as GitHub Code Scanning | https://api.githubcopilot.com/mcp/x/code_security | [Install](https://insiders.vscode.dev/redirect/mcp/install?name=gh-code_security&config=%7B%22type%22%3A%20%22http%22%2C%22url%22%3A%20%22https%3A%2F%2Fapi.githubcopilot.com%2Fmcp%2Fx%2Fcode_security%22%7D) | [read-only](https://api.githubcopilot.com/mcp/x/code_security/readonly) | [Install read-only](https://insiders.vscode.dev/redirect/mcp/install?name=gh-code_security&config=%7B%22type%22%3A%20%22http%22%2C%22url%22%3A%20%22https%3A%2F%2Fapi.githubcopilot.com%2Fmcp%2Fx%2Fcode_security%2Freadonly%22%7D) |
-| Dependabot | Dependabot tools | https://api.githubcopilot.com/mcp/x/dependabot | [Install](https://insiders.vscode.dev/redirect/mcp/install?name=gh-dependabot&config=%7B%22type%22%3A%20%22http%22%2C%22url%22%3A%20%22https%3A%2F%2Fapi.githubcopilot.com%2Fmcp%2Fx%2Fdependabot%22%7D) | [read-only](https://api.githubcopilot.com/mcp/x/dependabot/readonly) | [Install read-only](https://insiders.vscode.dev/redirect/mcp/install?name=gh-dependabot&config=%7B%22type%22%3A%20%22http%22%2C%22url%22%3A%20%22https%3A%2F%2Fapi.githubcopilot.com%2Fmcp%2Fx%2Fdependabot%2Freadonly%22%7D) |
-| Discussions | GitHub Discussions related tools | https://api.githubcopilot.com/mcp/x/discussions | [Install](https://insiders.vscode.dev/redirect/mcp/install?name=gh-discussions&config=%7B%22type%22%3A%20%22http%22%2C%22url%22%3A%20%22https%3A%2F%2Fapi.githubcopilot.com%2Fmcp%2Fx%2Fdiscussions%22%7D) | [read-only](https://api.githubcopilot.com/mcp/x/discussions/readonly) | [Install read-only](https://insiders.vscode.dev/redirect/mcp/install?name=gh-discussions&config=%7B%22type%22%3A%20%22http%22%2C%22url%22%3A%20%22https%3A%2F%2Fapi.githubcopilot.com%2Fmcp%2Fx%2Fdiscussions%2Freadonly%22%7D) |
-| Experiments | Experimental features that are not considered stable yet | https://api.githubcopilot.com/mcp/x/experiments | [Install](https://insiders.vscode.dev/redirect/mcp/install?name=gh-experiments&config=%7B%22type%22%3A%20%22http%22%2C%22url%22%3A%20%22https%3A%2F%2Fapi.githubcopilot.com%2Fmcp%2Fx%2Fexperiments%22%7D) | [read-only](https://api.githubcopilot.com/mcp/x/experiments/readonly) | [Install read-only](https://insiders.vscode.dev/redirect/mcp/install?name=gh-experiments&config=%7B%22type%22%3A%20%22http%22%2C%22url%22%3A%20%22https%3A%2F%2Fapi.githubcopilot.com%2Fmcp%2Fx%2Fexperiments%2Freadonly%22%7D) |
| Gists | GitHub Gist related tools | https://api.githubcopilot.com/mcp/x/gists | [Install](https://insiders.vscode.dev/redirect/mcp/install?name=gh-gists&config=%7B%22type%22%3A%20%22http%22%2C%22url%22%3A%20%22https%3A%2F%2Fapi.githubcopilot.com%2Fmcp%2Fx%2Fgists%22%7D) | [read-only](https://api.githubcopilot.com/mcp/x/gists/readonly) | [Install read-only](https://insiders.vscode.dev/redirect/mcp/install?name=gh-gists&config=%7B%22type%22%3A%20%22http%22%2C%22url%22%3A%20%22https%3A%2F%2Fapi.githubcopilot.com%2Fmcp%2Fx%2Fgists%2Freadonly%22%7D) |
| Git | GitHub Git API related tools for low-level Git operations | https://api.githubcopilot.com/mcp/x/git | [Install](https://insiders.vscode.dev/redirect/mcp/install?name=gh-git&config=%7B%22type%22%3A%20%22http%22%2C%22url%22%3A%20%22https%3A%2F%2Fapi.githubcopilot.com%2Fmcp%2Fx%2Fgit%22%7D) | [read-only](https://api.githubcopilot.com/mcp/x/git/readonly) | [Install read-only](https://insiders.vscode.dev/redirect/mcp/install?name=gh-git&config=%7B%22type%22%3A%20%22http%22%2C%22url%22%3A%20%22https%3A%2F%2Fapi.githubcopilot.com%2Fmcp%2Fx%2Fgit%2Freadonly%22%7D) |
-| Issues | GitHub Issues related tools | https://api.githubcopilot.com/mcp/x/issues | [Install](https://insiders.vscode.dev/redirect/mcp/install?name=gh-issues&config=%7B%22type%22%3A%20%22http%22%2C%22url%22%3A%20%22https%3A%2F%2Fapi.githubcopilot.com%2Fmcp%2Fx%2Fissues%22%7D) | [read-only](https://api.githubcopilot.com/mcp/x/issues/readonly) | [Install read-only](https://insiders.vscode.dev/redirect/mcp/install?name=gh-issues&config=%7B%22type%22%3A%20%22http%22%2C%22url%22%3A%20%22https%3A%2F%2Fapi.githubcopilot.com%2Fmcp%2Fx%2Fissues%2Freadonly%22%7D) |
| Labels | GitHub Labels related tools | https://api.githubcopilot.com/mcp/x/labels | [Install](https://insiders.vscode.dev/redirect/mcp/install?name=gh-labels&config=%7B%22type%22%3A%20%22http%22%2C%22url%22%3A%20%22https%3A%2F%2Fapi.githubcopilot.com%2Fmcp%2Fx%2Flabels%22%7D) | [read-only](https://api.githubcopilot.com/mcp/x/labels/readonly) | [Install read-only](https://insiders.vscode.dev/redirect/mcp/install?name=gh-labels&config=%7B%22type%22%3A%20%22http%22%2C%22url%22%3A%20%22https%3A%2F%2Fapi.githubcopilot.com%2Fmcp%2Fx%2Flabels%2Freadonly%22%7D) |
-| Notifications | GitHub Notifications related tools | https://api.githubcopilot.com/mcp/x/notifications | [Install](https://insiders.vscode.dev/redirect/mcp/install?name=gh-notifications&config=%7B%22type%22%3A%20%22http%22%2C%22url%22%3A%20%22https%3A%2F%2Fapi.githubcopilot.com%2Fmcp%2Fx%2Fnotifications%22%7D) | [read-only](https://api.githubcopilot.com/mcp/x/notifications/readonly) | [Install read-only](https://insiders.vscode.dev/redirect/mcp/install?name=gh-notifications&config=%7B%22type%22%3A%20%22http%22%2C%22url%22%3A%20%22https%3A%2F%2Fapi.githubcopilot.com%2Fmcp%2Fx%2Fnotifications%2Freadonly%22%7D) |
-| Organizations | GitHub Organization related tools | https://api.githubcopilot.com/mcp/x/orgs | [Install](https://insiders.vscode.dev/redirect/mcp/install?name=gh-orgs&config=%7B%22type%22%3A%20%22http%22%2C%22url%22%3A%20%22https%3A%2F%2Fapi.githubcopilot.com%2Fmcp%2Fx%2Forgs%22%7D) | [read-only](https://api.githubcopilot.com/mcp/x/orgs/readonly) | [Install read-only](https://insiders.vscode.dev/redirect/mcp/install?name=gh-orgs&config=%7B%22type%22%3A%20%22http%22%2C%22url%22%3A%20%22https%3A%2F%2Fapi.githubcopilot.com%2Fmcp%2Fx%2Forgs%2Freadonly%22%7D) |
-| Projects | GitHub Projects related tools | https://api.githubcopilot.com/mcp/x/projects | [Install](https://insiders.vscode.dev/redirect/mcp/install?name=gh-projects&config=%7B%22type%22%3A%20%22http%22%2C%22url%22%3A%20%22https%3A%2F%2Fapi.githubcopilot.com%2Fmcp%2Fx%2Fprojects%22%7D) | [read-only](https://api.githubcopilot.com/mcp/x/projects/readonly) | [Install read-only](https://insiders.vscode.dev/redirect/mcp/install?name=gh-projects&config=%7B%22type%22%3A%20%22http%22%2C%22url%22%3A%20%22https%3A%2F%2Fapi.githubcopilot.com%2Fmcp%2Fx%2Fprojects%2Freadonly%22%7D) |
-| Pull Requests | GitHub Pull Request related tools | https://api.githubcopilot.com/mcp/x/pull_requests | [Install](https://insiders.vscode.dev/redirect/mcp/install?name=gh-pull_requests&config=%7B%22type%22%3A%20%22http%22%2C%22url%22%3A%20%22https%3A%2F%2Fapi.githubcopilot.com%2Fmcp%2Fx%2Fpull_requests%22%7D) | [read-only](https://api.githubcopilot.com/mcp/x/pull_requests/readonly) | [Install read-only](https://insiders.vscode.dev/redirect/mcp/install?name=gh-pull_requests&config=%7B%22type%22%3A%20%22http%22%2C%22url%22%3A%20%22https%3A%2F%2Fapi.githubcopilot.com%2Fmcp%2Fx%2Fpull_requests%2Freadonly%22%7D) |
-| Repositories | GitHub Repository related tools | https://api.githubcopilot.com/mcp/x/repos | [Install](https://insiders.vscode.dev/redirect/mcp/install?name=gh-repos&config=%7B%22type%22%3A%20%22http%22%2C%22url%22%3A%20%22https%3A%2F%2Fapi.githubcopilot.com%2Fmcp%2Fx%2Frepos%22%7D) | [read-only](https://api.githubcopilot.com/mcp/x/repos/readonly) | [Install read-only](https://insiders.vscode.dev/redirect/mcp/install?name=gh-repos&config=%7B%22type%22%3A%20%22http%22%2C%22url%22%3A%20%22https%3A%2F%2Fapi.githubcopilot.com%2Fmcp%2Fx%2Frepos%2Freadonly%22%7D) |
| Secret Protection | Secret protection related tools, such as GitHub Secret Scanning | https://api.githubcopilot.com/mcp/x/secret_protection | [Install](https://insiders.vscode.dev/redirect/mcp/install?name=gh-secret_protection&config=%7B%22type%22%3A%20%22http%22%2C%22url%22%3A%20%22https%3A%2F%2Fapi.githubcopilot.com%2Fmcp%2Fx%2Fsecret_protection%22%7D) | [read-only](https://api.githubcopilot.com/mcp/x/secret_protection/readonly) | [Install read-only](https://insiders.vscode.dev/redirect/mcp/install?name=gh-secret_protection&config=%7B%22type%22%3A%20%22http%22%2C%22url%22%3A%20%22https%3A%2F%2Fapi.githubcopilot.com%2Fmcp%2Fx%2Fsecret_protection%2Freadonly%22%7D) |
| Security Advisories | Security advisories related tools | https://api.githubcopilot.com/mcp/x/security_advisories | [Install](https://insiders.vscode.dev/redirect/mcp/install?name=gh-security_advisories&config=%7B%22type%22%3A%20%22http%22%2C%22url%22%3A%20%22https%3A%2F%2Fapi.githubcopilot.com%2Fmcp%2Fx%2Fsecurity_advisories%22%7D) | [read-only](https://api.githubcopilot.com/mcp/x/security_advisories/readonly) | [Install read-only](https://insiders.vscode.dev/redirect/mcp/install?name=gh-security_advisories&config=%7B%22type%22%3A%20%22http%22%2C%22url%22%3A%20%22https%3A%2F%2Fapi.githubcopilot.com%2Fmcp%2Fx%2Fsecurity_advisories%2Freadonly%22%7D) |
-| Stargazers | GitHub Stargazers related tools | https://api.githubcopilot.com/mcp/x/stargazers | [Install](https://insiders.vscode.dev/redirect/mcp/install?name=gh-stargazers&config=%7B%22type%22%3A%20%22http%22%2C%22url%22%3A%20%22https%3A%2F%2Fapi.githubcopilot.com%2Fmcp%2Fx%2Fstargazers%22%7D) | [read-only](https://api.githubcopilot.com/mcp/x/stargazers/readonly) | [Install read-only](https://insiders.vscode.dev/redirect/mcp/install?name=gh-stargazers&config=%7B%22type%22%3A%20%22http%22%2C%22url%22%3A%20%22https%3A%2F%2Fapi.githubcopilot.com%2Fmcp%2Fx%2Fstargazers%2Freadonly%22%7D) |
-| Users | GitHub User related tools | https://api.githubcopilot.com/mcp/x/users | [Install](https://insiders.vscode.dev/redirect/mcp/install?name=gh-users&config=%7B%22type%22%3A%20%22http%22%2C%22url%22%3A%20%22https%3A%2F%2Fapi.githubcopilot.com%2Fmcp%2Fx%2Fusers%22%7D) | [read-only](https://api.githubcopilot.com/mcp/x/users/readonly) | [Install read-only](https://insiders.vscode.dev/redirect/mcp/install?name=gh-users&config=%7B%22type%22%3A%20%22http%22%2C%22url%22%3A%20%22https%3A%2F%2Fapi.githubcopilot.com%2Fmcp%2Fx%2Fusers%2Freadonly%22%7D) |
From e7aed273a3b6c992f1957e546d7aa7b9c046f949 Mon Sep 17 00:00:00 2001
From: LuluBeatson
Date: Thu, 20 Nov 2025 16:39:09 +0000
Subject: [PATCH 4/6] revert generated docs
---
README.md | 622 ++++++++++++++++++++++++++++++++++++++++++
docs/remote-server.md | 12 +
2 files changed, 634 insertions(+)
diff --git a/README.md b/README.md
index 333a34400..7c4884074 100644
--- a/README.md
+++ b/README.md
@@ -394,12 +394,24 @@ The following sets of tools are available:
| Toolset | Description |
| ----------------------- | ------------------------------------------------------------- |
| `context` | **Strongly recommended**: Tools that provide context about the current user and GitHub context you are operating in |
+| `actions` | GitHub Actions workflows and CI/CD operations |
| `code_security` | Code security related tools, such as GitHub Code Scanning |
+| `dependabot` | Dependabot tools |
+| `discussions` | GitHub Discussions related tools |
+| `experiments` | Experimental features that are not considered stable yet |
| `gists` | GitHub Gist related tools |
| `git` | GitHub Git API related tools for low-level Git operations |
+| `issues` | GitHub Issues related tools |
| `labels` | GitHub Labels related tools |
+| `notifications` | GitHub Notifications related tools |
+| `orgs` | GitHub Organization related tools |
+| `projects` | GitHub Projects related tools |
+| `pull_requests` | GitHub Pull Request related tools |
+| `repos` | GitHub Repository related tools |
| `secret_protection` | Secret protection related tools, such as GitHub Secret Scanning |
| `security_advisories` | Security advisories related tools |
+| `stargazers` | GitHub Stargazers related tools |
+| `users` | GitHub User related tools |
### Additional Toolsets in Remote GitHub MCP Server
@@ -415,6 +427,100 @@ The following sets of tools are available:
+Actions
+
+- **cancel_workflow_run** - Cancel workflow run
+ - `owner`: Repository owner (string, required)
+ - `repo`: Repository name (string, required)
+ - `run_id`: The unique identifier of the workflow run (number, required)
+
+- **delete_workflow_run_logs** - Delete workflow logs
+ - `owner`: Repository owner (string, required)
+ - `repo`: Repository name (string, required)
+ - `run_id`: The unique identifier of the workflow run (number, required)
+
+- **download_workflow_run_artifact** - Download workflow artifact
+ - `artifact_id`: The unique identifier of the artifact (number, required)
+ - `owner`: Repository owner (string, required)
+ - `repo`: Repository name (string, required)
+
+- **get_job_logs** - Get job logs
+ - `failed_only`: When true, gets logs for all failed jobs in run_id (boolean, optional)
+ - `job_id`: The unique identifier of the workflow job (required for single job logs) (number, optional)
+ - `owner`: Repository owner (string, required)
+ - `repo`: Repository name (string, required)
+ - `return_content`: Returns actual log content instead of URLs (boolean, optional)
+ - `run_id`: Workflow run ID (required when using failed_only) (number, optional)
+ - `tail_lines`: Number of lines to return from the end of the log (number, optional)
+
+- **get_workflow_run** - Get workflow run
+ - `owner`: Repository owner (string, required)
+ - `repo`: Repository name (string, required)
+ - `run_id`: The unique identifier of the workflow run (number, required)
+
+- **get_workflow_run_logs** - Get workflow run logs
+ - `owner`: Repository owner (string, required)
+ - `repo`: Repository name (string, required)
+ - `run_id`: The unique identifier of the workflow run (number, required)
+
+- **get_workflow_run_usage** - Get workflow usage
+ - `owner`: Repository owner (string, required)
+ - `repo`: Repository name (string, required)
+ - `run_id`: The unique identifier of the workflow run (number, required)
+
+- **list_workflow_jobs** - List workflow jobs
+ - `filter`: Filters jobs by their completed_at timestamp (string, optional)
+ - `owner`: Repository owner (string, required)
+ - `page`: Page number for pagination (min 1) (number, optional)
+ - `perPage`: Results per page for pagination (min 1, max 100) (number, optional)
+ - `repo`: Repository name (string, required)
+ - `run_id`: The unique identifier of the workflow run (number, required)
+
+- **list_workflow_run_artifacts** - List workflow artifacts
+ - `owner`: Repository owner (string, required)
+ - `page`: Page number for pagination (min 1) (number, optional)
+ - `perPage`: Results per page for pagination (min 1, max 100) (number, optional)
+ - `repo`: Repository name (string, required)
+ - `run_id`: The unique identifier of the workflow run (number, required)
+
+- **list_workflow_runs** - List workflow runs
+ - `actor`: Returns someone's workflow runs. Use the login for the user who created the workflow run. (string, optional)
+ - `branch`: Returns workflow runs associated with a branch. Use the name of the branch. (string, optional)
+ - `event`: Returns workflow runs for a specific event type (string, optional)
+ - `owner`: Repository owner (string, required)
+ - `page`: Page number for pagination (min 1) (number, optional)
+ - `perPage`: Results per page for pagination (min 1, max 100) (number, optional)
+ - `repo`: Repository name (string, required)
+ - `status`: Returns workflow runs with the check run status (string, optional)
+ - `workflow_id`: The workflow ID or workflow file name (string, required)
+
+- **list_workflows** - List workflows
+ - `owner`: Repository owner (string, required)
+ - `page`: Page number for pagination (min 1) (number, optional)
+ - `perPage`: Results per page for pagination (min 1, max 100) (number, optional)
+ - `repo`: Repository name (string, required)
+
+- **rerun_failed_jobs** - Rerun failed jobs
+ - `owner`: Repository owner (string, required)
+ - `repo`: Repository name (string, required)
+ - `run_id`: The unique identifier of the workflow run (number, required)
+
+- **rerun_workflow_run** - Rerun workflow run
+ - `owner`: Repository owner (string, required)
+ - `repo`: Repository name (string, required)
+ - `run_id`: The unique identifier of the workflow run (number, required)
+
+- **run_workflow** - Run workflow
+ - `inputs`: Inputs the workflow accepts (object, optional)
+ - `owner`: Repository owner (string, required)
+ - `ref`: The git reference for the workflow. The reference can be a branch or tag name. (string, required)
+ - `repo`: Repository name (string, required)
+ - `workflow_id`: The workflow ID (numeric) or workflow file name (e.g., main.yml, ci.yaml) (string, required)
+
+
+
+
+
Code Security
- **get_code_scanning_alert** - Get code scanning alert
@@ -450,6 +556,54 @@ The following sets of tools are available:
+Dependabot
+
+- **get_dependabot_alert** - Get dependabot alert
+ - `alertNumber`: The number of the alert. (number, required)
+ - `owner`: The owner of the repository. (string, required)
+ - `repo`: The name of the repository. (string, required)
+
+- **list_dependabot_alerts** - List dependabot alerts
+ - `owner`: The owner of the repository. (string, required)
+ - `repo`: The name of the repository. (string, required)
+ - `severity`: Filter dependabot alerts by severity (string, optional)
+ - `state`: Filter dependabot alerts by state. Defaults to open (string, optional)
+
+
+
+
+
+Discussions
+
+- **get_discussion** - Get discussion
+ - `discussionNumber`: Discussion Number (number, required)
+ - `owner`: Repository owner (string, required)
+ - `repo`: Repository name (string, required)
+
+- **get_discussion_comments** - Get discussion comments
+ - `after`: Cursor for pagination. Use the endCursor from the previous page's PageInfo for GraphQL APIs. (string, optional)
+ - `discussionNumber`: Discussion Number (number, required)
+ - `owner`: Repository owner (string, required)
+ - `perPage`: Results per page for pagination (min 1, max 100) (number, optional)
+ - `repo`: Repository name (string, required)
+
+- **list_discussion_categories** - List discussion categories
+ - `owner`: Repository owner (string, required)
+ - `repo`: Repository name. If not provided, discussion categories will be queried at the organisation level. (string, optional)
+
+- **list_discussions** - List discussions
+ - `after`: Cursor for pagination. Use the endCursor from the previous page's PageInfo for GraphQL APIs. (string, optional)
+ - `category`: Optional filter by discussion category ID. If provided, only discussions with this category are listed. (string, optional)
+ - `direction`: Order direction. (string, optional)
+ - `orderBy`: Order discussions by field. If provided, the 'direction' also needs to be provided. (string, optional)
+ - `owner`: Repository owner (string, required)
+ - `perPage`: Results per page for pagination (min 1, max 100) (number, optional)
+ - `repo`: Repository name. If not provided, discussions will be queried at the organisation level. (string, optional)
+
+
+
+
+
Gists
- **create_gist** - Create Gist
@@ -490,6 +644,99 @@ The following sets of tools are available:
+Issues
+
+- **add_issue_comment** - Add comment to issue
+ - `body`: Comment content (string, required)
+ - `issue_number`: Issue number to comment on (number, required)
+ - `owner`: Repository owner (string, required)
+ - `repo`: Repository name (string, required)
+
+- **assign_copilot_to_issue** - Assign Copilot to issue
+ - `issueNumber`: Issue number (number, required)
+ - `owner`: Repository owner (string, required)
+ - `repo`: Repository name (string, required)
+
+- **get_label** - Get a specific label from a repository.
+ - `name`: Label name. (string, required)
+ - `owner`: Repository owner (username or organization name) (string, required)
+ - `repo`: Repository name (string, required)
+
+- **issue_read** - Get issue details
+ - `issue_number`: The number of the issue (number, required)
+ - `method`: The read operation to perform on a single issue.
+Options are:
+1. get - Get details of a specific issue.
+2. get_comments - Get issue comments.
+3. get_sub_issues - Get sub-issues of the issue.
+4. get_labels - Get labels assigned to the issue.
+ (string, required)
+ - `owner`: The owner of the repository (string, required)
+ - `page`: Page number for pagination (min 1) (number, optional)
+ - `perPage`: Results per page for pagination (min 1, max 100) (number, optional)
+ - `repo`: The name of the repository (string, required)
+
+- **issue_write** - Create or update issue.
+ - `assignees`: Usernames to assign to this issue (string[], optional)
+ - `body`: Issue body content (string, optional)
+ - `duplicate_of`: Issue number that this issue is a duplicate of. Only used when state_reason is 'duplicate'. (number, optional)
+ - `issue_number`: Issue number to update (number, optional)
+ - `labels`: Labels to apply to this issue (string[], optional)
+ - `method`: Write operation to perform on a single issue.
+Options are:
+- 'create' - creates a new issue.
+- 'update' - updates an existing issue.
+ (string, required)
+ - `milestone`: Milestone number (number, optional)
+ - `owner`: Repository owner (string, required)
+ - `repo`: Repository name (string, required)
+ - `state`: New state (string, optional)
+ - `state_reason`: Reason for the state change. Ignored unless state is changed. (string, optional)
+ - `title`: Issue title (string, optional)
+ - `type`: Type of this issue. Only use if the repository has issue types configured. Use list_issue_types tool to get valid type values for the organization. If the repository doesn't support issue types, omit this parameter. (string, optional)
+
+- **list_issue_types** - List available issue types
+ - `owner`: The organization owner of the repository (string, required)
+
+- **list_issues** - List issues
+ - `after`: Cursor for pagination. Use the endCursor from the previous page's PageInfo for GraphQL APIs. (string, optional)
+ - `direction`: Order direction. If provided, the 'orderBy' also needs to be provided. (string, optional)
+ - `labels`: Filter by labels (string[], optional)
+ - `orderBy`: Order issues by field. If provided, the 'direction' also needs to be provided. (string, optional)
+ - `owner`: Repository owner (string, required)
+ - `perPage`: Results per page for pagination (min 1, max 100) (number, optional)
+ - `repo`: Repository name (string, required)
+ - `since`: Filter by date (ISO 8601 timestamp) (string, optional)
+ - `state`: Filter by state, by default both open and closed issues are returned when not provided (string, optional)
+
+- **search_issues** - Search issues
+ - `order`: Sort order (string, optional)
+ - `owner`: Optional repository owner. If provided with repo, only issues for this repository are listed. (string, optional)
+ - `page`: Page number for pagination (min 1) (number, optional)
+ - `perPage`: Results per page for pagination (min 1, max 100) (number, optional)
+ - `query`: Search query using GitHub issues search syntax (string, required)
+ - `repo`: Optional repository name. If provided with owner, only issues for this repository are listed. (string, optional)
+ - `sort`: Sort field by number of matches of categories, defaults to best match (string, optional)
+
+- **sub_issue_write** - Change sub-issue
+ - `after_id`: The ID of the sub-issue to be prioritized after (either after_id OR before_id should be specified) (number, optional)
+ - `before_id`: The ID of the sub-issue to be prioritized before (either after_id OR before_id should be specified) (number, optional)
+ - `issue_number`: The number of the parent issue (number, required)
+ - `method`: The action to perform on a single sub-issue
+Options are:
+- 'add' - add a sub-issue to a parent issue in a GitHub repository.
+- 'remove' - remove a sub-issue from a parent issue in a GitHub repository.
+- 'reprioritize' - change the order of sub-issues within a parent issue in a GitHub repository. Use either 'after_id' or 'before_id' to specify the new position.
+ (string, required)
+ - `owner`: Repository owner (string, required)
+ - `replace_parent`: When true, replaces the sub-issue's current parent issue. Use with 'add' method only. (boolean, optional)
+ - `repo`: Repository name (string, required)
+ - `sub_issue_id`: The ID of the sub-issue to add. ID is not the same as issue number (number, required)
+
+
+
+
+
Labels
- **get_label** - Get a specific label from a repository.
@@ -514,6 +761,347 @@ The following sets of tools are available:
+Notifications
+
+- **dismiss_notification** - Dismiss notification
+ - `state`: The new state of the notification (read/done) (string, optional)
+ - `threadID`: The ID of the notification thread (string, required)
+
+- **get_notification_details** - Get notification details
+ - `notificationID`: The ID of the notification (string, required)
+
+- **list_notifications** - List notifications
+ - `before`: Only show notifications updated before the given time (ISO 8601 format) (string, optional)
+ - `filter`: Filter notifications to, use default unless specified. Read notifications are ones that have already been acknowledged by the user. Participating notifications are those that the user is directly involved in, such as issues or pull requests they have commented on or created. (string, optional)
+ - `owner`: Optional repository owner. If provided with repo, only notifications for this repository are listed. (string, optional)
+ - `page`: Page number for pagination (min 1) (number, optional)
+ - `perPage`: Results per page for pagination (min 1, max 100) (number, optional)
+ - `repo`: Optional repository name. If provided with owner, only notifications for this repository are listed. (string, optional)
+ - `since`: Only show notifications updated after the given time (ISO 8601 format) (string, optional)
+
+- **manage_notification_subscription** - Manage notification subscription
+ - `action`: Action to perform: ignore, watch, or delete the notification subscription. (string, required)
+ - `notificationID`: The ID of the notification thread. (string, required)
+
+- **manage_repository_notification_subscription** - Manage repository notification subscription
+ - `action`: Action to perform: ignore, watch, or delete the repository notification subscription. (string, required)
+ - `owner`: The account owner of the repository. (string, required)
+ - `repo`: The name of the repository. (string, required)
+
+- **mark_all_notifications_read** - Mark all notifications as read
+ - `lastReadAt`: Describes the last point that notifications were checked (optional). Default: Now (string, optional)
+ - `owner`: Optional repository owner. If provided with repo, only notifications for this repository are marked as read. (string, optional)
+ - `repo`: Optional repository name. If provided with owner, only notifications for this repository are marked as read. (string, optional)
+
+
+
+
+
+Organizations
+
+- **search_orgs** - Search organizations
+ - `order`: Sort order (string, optional)
+ - `page`: Page number for pagination (min 1) (number, optional)
+ - `perPage`: Results per page for pagination (min 1, max 100) (number, optional)
+ - `query`: Organization search query. Examples: 'microsoft', 'location:california', 'created:>=2025-01-01'. Search is automatically scoped to type:org. (string, required)
+ - `sort`: Sort field by category (string, optional)
+
+
+
+
+
+Projects
+
+- **add_project_item** - Add project item
+ - `item_id`: The numeric ID of the issue or pull request to add to the project. (number, required)
+ - `item_type`: The item's type, either issue or pull_request. (string, required)
+ - `owner`: If owner_type == user it is the handle for the GitHub user account. If owner_type == org it is the name of the organization. The name is not case sensitive. (string, required)
+ - `owner_type`: Owner type (string, required)
+ - `project_number`: The project's number. (number, required)
+
+- **delete_project_item** - Delete project item
+ - `item_id`: The internal project item ID to delete from the project (not the issue or pull request ID). (number, required)
+ - `owner`: If owner_type == user it is the handle for the GitHub user account. If owner_type == org it is the name of the organization. The name is not case sensitive. (string, required)
+ - `owner_type`: Owner type (string, required)
+ - `project_number`: The project's number. (number, required)
+
+- **get_project** - Get project
+ - `owner`: If owner_type == user it is the handle for the GitHub user account. If owner_type == org it is the name of the organization. The name is not case sensitive. (string, required)
+ - `owner_type`: Owner type (string, required)
+ - `project_number`: The project's number (number, required)
+
+- **get_project_field** - Get project field
+ - `field_id`: The field's id. (number, required)
+ - `owner`: If owner_type == user it is the handle for the GitHub user account. If owner_type == org it is the name of the organization. The name is not case sensitive. (string, required)
+ - `owner_type`: Owner type (string, required)
+ - `project_number`: The project's number. (number, required)
+
+- **get_project_item** - Get project item
+ - `fields`: Specific list of field IDs to include in the response (e.g. ["102589", "985201", "169875"]). If not provided, only the title field is included. (string[], optional)
+ - `item_id`: The item's ID. (number, required)
+ - `owner`: If owner_type == user it is the handle for the GitHub user account. If owner_type == org it is the name of the organization. The name is not case sensitive. (string, required)
+ - `owner_type`: Owner type (string, required)
+ - `project_number`: The project's number. (number, required)
+
+- **list_project_fields** - List project fields
+ - `after`: Forward pagination cursor from previous pageInfo.nextCursor. (string, optional)
+ - `before`: Backward pagination cursor from previous pageInfo.prevCursor (rare). (string, optional)
+ - `owner`: If owner_type == user it is the handle for the GitHub user account. If owner_type == org it is the name of the organization. The name is not case sensitive. (string, required)
+ - `owner_type`: Owner type (string, required)
+ - `per_page`: Results per page (max 50) (number, optional)
+ - `project_number`: The project's number. (number, required)
+
+- **list_project_items** - List project items
+ - `after`: Forward pagination cursor from previous pageInfo.nextCursor. (string, optional)
+ - `before`: Backward pagination cursor from previous pageInfo.prevCursor (rare). (string, optional)
+ - `fields`: Field IDs to include (e.g. ["102589", "985201"]). CRITICAL: Always provide to get field values. Without this, only titles returned. (string[], optional)
+ - `owner`: If owner_type == user it is the handle for the GitHub user account. If owner_type == org it is the name of the organization. The name is not case sensitive. (string, required)
+ - `owner_type`: Owner type (string, required)
+ - `per_page`: Results per page (max 50) (number, optional)
+ - `project_number`: The project's number. (number, required)
+ - `query`: Query string for advanced filtering of project items using GitHub's project filtering syntax. (string, optional)
+
+- **list_projects** - List projects
+ - `after`: Forward pagination cursor from previous pageInfo.nextCursor. (string, optional)
+ - `before`: Backward pagination cursor from previous pageInfo.prevCursor (rare). (string, optional)
+ - `owner`: If owner_type == user it is the handle for the GitHub user account. If owner_type == org it is the name of the organization. The name is not case sensitive. (string, required)
+ - `owner_type`: Owner type (string, required)
+ - `per_page`: Results per page (max 50) (number, optional)
+ - `query`: Filter projects by title text and open/closed state; permitted qualifiers: is:open, is:closed; examples: "roadmap is:open", "is:open feature planning". (string, optional)
+
+- **update_project_item** - Update project item
+ - `item_id`: The unique identifier of the project item. This is not the issue or pull request ID. (number, required)
+ - `owner`: If owner_type == user it is the handle for the GitHub user account. If owner_type == org it is the name of the organization. The name is not case sensitive. (string, required)
+ - `owner_type`: Owner type (string, required)
+ - `project_number`: The project's number. (number, required)
+ - `updated_field`: Object consisting of the ID of the project field to update and the new value for the field. To clear the field, set value to null. Example: {"id": 123456, "value": "New Value"} (object, required)
+
+
+
+
+
+Pull Requests
+
+- **add_comment_to_pending_review** - Add review comment to the requester's latest pending pull request review
+ - `body`: The text of the review comment (string, required)
+ - `line`: The line of the blob in the pull request diff that the comment applies to. For multi-line comments, the last line of the range (number, optional)
+ - `owner`: Repository owner (string, required)
+ - `path`: The relative path to the file that necessitates a comment (string, required)
+ - `pullNumber`: Pull request number (number, required)
+ - `repo`: Repository name (string, required)
+ - `side`: The side of the diff to comment on. LEFT indicates the previous state, RIGHT indicates the new state (string, optional)
+ - `startLine`: For multi-line comments, the first line of the range that the comment applies to (number, optional)
+ - `startSide`: For multi-line comments, the starting side of the diff that the comment applies to. LEFT indicates the previous state, RIGHT indicates the new state (string, optional)
+ - `subjectType`: The level at which the comment is targeted (string, required)
+
+- **create_pull_request** - Open new pull request
+ - `base`: Branch to merge into (string, required)
+ - `body`: PR description (string, optional)
+ - `draft`: Create as draft PR (boolean, optional)
+ - `head`: Branch containing changes (string, required)
+ - `maintainer_can_modify`: Allow maintainer edits (boolean, optional)
+ - `owner`: Repository owner (string, required)
+ - `repo`: Repository name (string, required)
+ - `title`: PR title (string, required)
+
+- **list_pull_requests** - List pull requests
+ - `base`: Filter by base branch (string, optional)
+ - `direction`: Sort direction (string, optional)
+ - `head`: Filter by head user/org and branch (string, optional)
+ - `owner`: Repository owner (string, required)
+ - `page`: Page number for pagination (min 1) (number, optional)
+ - `perPage`: Results per page for pagination (min 1, max 100) (number, optional)
+ - `repo`: Repository name (string, required)
+ - `sort`: Sort by (string, optional)
+ - `state`: Filter by state (string, optional)
+
+- **merge_pull_request** - Merge pull request
+ - `commit_message`: Extra detail for merge commit (string, optional)
+ - `commit_title`: Title for merge commit (string, optional)
+ - `merge_method`: Merge method (string, optional)
+ - `owner`: Repository owner (string, required)
+ - `pullNumber`: Pull request number (number, required)
+ - `repo`: Repository name (string, required)
+
+- **pull_request_read** - Get details for a single pull request
+ - `method`: Action to specify what pull request data needs to be retrieved from GitHub.
+Possible options:
+ 1. get - Get details of a specific pull request.
+ 2. get_diff - Get the diff of a pull request.
+ 3. get_status - Get status of a head commit in a pull request. This reflects status of builds and checks.
+ 4. get_files - Get the list of files changed in a pull request. Use with pagination parameters to control the number of results returned.
+ 5. get_review_comments - Get the review comments on a pull request. They are comments made on a portion of the unified diff during a pull request review. Use with pagination parameters to control the number of results returned.
+ 6. get_reviews - Get the reviews on a pull request. When asked for review comments, use get_review_comments method.
+ 7. get_comments - Get comments on a pull request. Use this if user doesn't specifically want review comments. Use with pagination parameters to control the number of results returned.
+ (string, required)
+ - `owner`: Repository owner (string, required)
+ - `page`: Page number for pagination (min 1) (number, optional)
+ - `perPage`: Results per page for pagination (min 1, max 100) (number, optional)
+ - `pullNumber`: Pull request number (number, required)
+ - `repo`: Repository name (string, required)
+
+- **pull_request_review_write** - Write operations (create, submit, delete) on pull request reviews.
+ - `body`: Review comment text (string, optional)
+ - `commitID`: SHA of commit to review (string, optional)
+ - `event`: Review action to perform. (string, optional)
+ - `method`: The write operation to perform on pull request review. (string, required)
+ - `owner`: Repository owner (string, required)
+ - `pullNumber`: Pull request number (number, required)
+ - `repo`: Repository name (string, required)
+
+- **request_copilot_review** - Request Copilot review
+ - `owner`: Repository owner (string, required)
+ - `pullNumber`: Pull request number (number, required)
+ - `repo`: Repository name (string, required)
+
+- **search_pull_requests** - Search pull requests
+ - `order`: Sort order (string, optional)
+ - `owner`: Optional repository owner. If provided with repo, only pull requests for this repository are listed. (string, optional)
+ - `page`: Page number for pagination (min 1) (number, optional)
+ - `perPage`: Results per page for pagination (min 1, max 100) (number, optional)
+ - `query`: Search query using GitHub pull request search syntax (string, required)
+ - `repo`: Optional repository name. If provided with owner, only pull requests for this repository are listed. (string, optional)
+ - `sort`: Sort field by number of matches of categories, defaults to best match (string, optional)
+
+- **update_pull_request** - Edit pull request
+ - `base`: New base branch name (string, optional)
+ - `body`: New description (string, optional)
+ - `draft`: Mark pull request as draft (true) or ready for review (false) (boolean, optional)
+ - `maintainer_can_modify`: Allow maintainer edits (boolean, optional)
+ - `owner`: Repository owner (string, required)
+ - `pullNumber`: Pull request number to update (number, required)
+ - `repo`: Repository name (string, required)
+ - `reviewers`: GitHub usernames to request reviews from (string[], optional)
+ - `state`: New state (string, optional)
+ - `title`: New title (string, optional)
+
+- **update_pull_request_branch** - Update pull request branch
+ - `expectedHeadSha`: The expected SHA of the pull request's HEAD ref (string, optional)
+ - `owner`: Repository owner (string, required)
+ - `pullNumber`: Pull request number (number, required)
+ - `repo`: Repository name (string, required)
+
+
+
+
+
+Repositories
+
+- **create_branch** - Create branch
+ - `branch`: Name for new branch (string, required)
+ - `from_branch`: Source branch (defaults to repo default) (string, optional)
+ - `owner`: Repository owner (string, required)
+ - `repo`: Repository name (string, required)
+
+- **create_or_update_file** - Create or update file
+ - `branch`: Branch to create/update the file in (string, required)
+ - `content`: Content of the file (string, required)
+ - `message`: Commit message (string, required)
+ - `owner`: Repository owner (username or organization) (string, required)
+ - `path`: Path where to create/update the file (string, required)
+ - `repo`: Repository name (string, required)
+ - `sha`: Required if updating an existing file. The blob SHA of the file being replaced. (string, optional)
+
+- **create_repository** - Create repository
+ - `autoInit`: Initialize with README (boolean, optional)
+ - `description`: Repository description (string, optional)
+ - `name`: Repository name (string, required)
+ - `organization`: Organization to create the repository in (omit to create in your personal account) (string, optional)
+ - `private`: Whether repo should be private (boolean, optional)
+
+- **delete_file** - Delete file
+ - `branch`: Branch to delete the file from (string, required)
+ - `message`: Commit message (string, required)
+ - `owner`: Repository owner (username or organization) (string, required)
+ - `path`: Path to the file to delete (string, required)
+ - `repo`: Repository name (string, required)
+
+- **fork_repository** - Fork repository
+ - `organization`: Organization to fork to (string, optional)
+ - `owner`: Repository owner (string, required)
+ - `repo`: Repository name (string, required)
+
+- **get_commit** - Get commit details
+ - `include_diff`: Whether to include file diffs and stats in the response. Default is true. (boolean, optional)
+ - `owner`: Repository owner (string, required)
+ - `page`: Page number for pagination (min 1) (number, optional)
+ - `perPage`: Results per page for pagination (min 1, max 100) (number, optional)
+ - `repo`: Repository name (string, required)
+ - `sha`: Commit SHA, branch name, or tag name (string, required)
+
+- **get_file_contents** - Get file or directory contents
+ - `owner`: Repository owner (username or organization) (string, required)
+ - `path`: Path to file/directory (directories must end with a slash '/') (string, optional)
+ - `ref`: Accepts optional git refs such as `refs/tags/{tag}`, `refs/heads/{branch}` or `refs/pull/{pr_number}/head` (string, optional)
+ - `repo`: Repository name (string, required)
+ - `sha`: Accepts optional commit SHA. If specified, it will be used instead of ref (string, optional)
+
+- **get_latest_release** - Get latest release
+ - `owner`: Repository owner (string, required)
+ - `repo`: Repository name (string, required)
+
+- **get_release_by_tag** - Get a release by tag name
+ - `owner`: Repository owner (string, required)
+ - `repo`: Repository name (string, required)
+ - `tag`: Tag name (e.g., 'v1.0.0') (string, required)
+
+- **get_tag** - Get tag details
+ - `owner`: Repository owner (string, required)
+ - `repo`: Repository name (string, required)
+ - `tag`: Tag name (string, required)
+
+- **list_branches** - List branches
+ - `owner`: Repository owner (string, required)
+ - `page`: Page number for pagination (min 1) (number, optional)
+ - `perPage`: Results per page for pagination (min 1, max 100) (number, optional)
+ - `repo`: Repository name (string, required)
+
+- **list_commits** - List commits
+ - `author`: Author username or email address to filter commits by (string, optional)
+ - `owner`: Repository owner (string, required)
+ - `page`: Page number for pagination (min 1) (number, optional)
+ - `perPage`: Results per page for pagination (min 1, max 100) (number, optional)
+ - `repo`: Repository name (string, required)
+ - `sha`: Commit SHA, branch or tag name to list commits of. If not provided, uses the default branch of the repository. If a commit SHA is provided, will list commits up to that SHA. (string, optional)
+
+- **list_releases** - List releases
+ - `owner`: Repository owner (string, required)
+ - `page`: Page number for pagination (min 1) (number, optional)
+ - `perPage`: Results per page for pagination (min 1, max 100) (number, optional)
+ - `repo`: Repository name (string, required)
+
+- **list_tags** - List tags
+ - `owner`: Repository owner (string, required)
+ - `page`: Page number for pagination (min 1) (number, optional)
+ - `perPage`: Results per page for pagination (min 1, max 100) (number, optional)
+ - `repo`: Repository name (string, required)
+
+- **push_files** - Push files to repository
+ - `branch`: Branch to push to (string, required)
+ - `files`: Array of file objects to push, each object with path (string) and content (string) (object[], required)
+ - `message`: Commit message (string, required)
+ - `owner`: Repository owner (string, required)
+ - `repo`: Repository name (string, required)
+
+- **search_code** - Search code
+ - `order`: Sort order for results (string, optional)
+ - `page`: Page number for pagination (min 1) (number, optional)
+ - `perPage`: Results per page for pagination (min 1, max 100) (number, optional)
+ - `query`: Search query using GitHub's powerful code search syntax. Examples: 'content:Skill language:Java org:github', 'NOT is:archived language:Python OR language:go', 'repo:github/github-mcp-server'. Supports exact matching, language filters, path filters, and more. (string, required)
+ - `sort`: Sort field ('indexed' only) (string, optional)
+
+- **search_repositories** - Search repositories
+ - `minimal_output`: Return minimal repository information (default: true). When false, returns full GitHub API repository objects. (boolean, optional)
+ - `order`: Sort order (string, optional)
+ - `page`: Page number for pagination (min 1) (number, optional)
+ - `perPage`: Results per page for pagination (min 1, max 100) (number, optional)
+ - `query`: Repository search query. Examples: 'machine learning in:name stars:>1000 language:python', 'topic:react', 'user:facebook'. Supports advanced search syntax for precise filtering. (string, required)
+ - `sort`: Sort repositories by field, defaults to best match (string, optional)
+
+
+
+
+
Secret Protection
- **get_secret_scanning_alert** - Get secret scanning alert
@@ -563,6 +1151,40 @@ The following sets of tools are available:
- `sort`: Sort field. (string, optional)
- `state`: Filter by advisory state. (string, optional)
+
+
+
+
+Stargazers
+
+- **list_starred_repositories** - List starred repositories
+ - `direction`: The direction to sort the results by. (string, optional)
+ - `page`: Page number for pagination (min 1) (number, optional)
+ - `perPage`: Results per page for pagination (min 1, max 100) (number, optional)
+ - `sort`: How to sort the results. Can be either 'created' (when the repository was starred) or 'updated' (when the repository was last pushed to). (string, optional)
+ - `username`: Username to list starred repositories for. Defaults to the authenticated user. (string, optional)
+
+- **star_repository** - Star repository
+ - `owner`: Repository owner (string, required)
+ - `repo`: Repository name (string, required)
+
+- **unstar_repository** - Unstar repository
+ - `owner`: Repository owner (string, required)
+ - `repo`: Repository name (string, required)
+
+
+
+
+
+Users
+
+- **search_users** - Search users
+ - `order`: Sort order (string, optional)
+ - `page`: Page number for pagination (min 1) (number, optional)
+ - `perPage`: Results per page for pagination (min 1, max 100) (number, optional)
+ - `query`: User search query. Examples: 'john smith', 'location:seattle', 'followers:>100'. Search is automatically scoped to type:user. (string, required)
+ - `sort`: Sort users by number of followers or repositories, or when the person joined GitHub. (string, optional)
+
diff --git a/docs/remote-server.md b/docs/remote-server.md
index 8a9dda20c..b263d70aa 100644
--- a/docs/remote-server.md
+++ b/docs/remote-server.md
@@ -20,12 +20,24 @@ Below is a table of available toolsets for the remote GitHub MCP Server. Each to
| Name | Description | API URL | 1-Click Install (VS Code) | Read-only Link | 1-Click Read-only Install (VS Code) |
|----------------|--------------------------------------------------|-------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| all | All available GitHub MCP tools | https://api.githubcopilot.com/mcp/ | [Install](https://insiders.vscode.dev/redirect/mcp/install?name=github&config=%7B%22type%22%3A%20%22http%22%2C%22url%22%3A%20%22https%3A%2F%2Fapi.githubcopilot.com%2Fmcp%2F%22%7D) | [read-only](https://api.githubcopilot.com/mcp/readonly) | [Install read-only](https://insiders.vscode.dev/redirect/mcp/install?name=github&config=%7B%22type%22%3A%20%22http%22%2C%22url%22%3A%20%22https%3A%2F%2Fapi.githubcopilot.com%2Fmcp%2Freadonly%22%7D) |
+| Actions | GitHub Actions workflows and CI/CD operations | https://api.githubcopilot.com/mcp/x/actions | [Install](https://insiders.vscode.dev/redirect/mcp/install?name=gh-actions&config=%7B%22type%22%3A%20%22http%22%2C%22url%22%3A%20%22https%3A%2F%2Fapi.githubcopilot.com%2Fmcp%2Fx%2Factions%22%7D) | [read-only](https://api.githubcopilot.com/mcp/x/actions/readonly) | [Install read-only](https://insiders.vscode.dev/redirect/mcp/install?name=gh-actions&config=%7B%22type%22%3A%20%22http%22%2C%22url%22%3A%20%22https%3A%2F%2Fapi.githubcopilot.com%2Fmcp%2Fx%2Factions%2Freadonly%22%7D) |
| Code Security | Code security related tools, such as GitHub Code Scanning | https://api.githubcopilot.com/mcp/x/code_security | [Install](https://insiders.vscode.dev/redirect/mcp/install?name=gh-code_security&config=%7B%22type%22%3A%20%22http%22%2C%22url%22%3A%20%22https%3A%2F%2Fapi.githubcopilot.com%2Fmcp%2Fx%2Fcode_security%22%7D) | [read-only](https://api.githubcopilot.com/mcp/x/code_security/readonly) | [Install read-only](https://insiders.vscode.dev/redirect/mcp/install?name=gh-code_security&config=%7B%22type%22%3A%20%22http%22%2C%22url%22%3A%20%22https%3A%2F%2Fapi.githubcopilot.com%2Fmcp%2Fx%2Fcode_security%2Freadonly%22%7D) |
+| Dependabot | Dependabot tools | https://api.githubcopilot.com/mcp/x/dependabot | [Install](https://insiders.vscode.dev/redirect/mcp/install?name=gh-dependabot&config=%7B%22type%22%3A%20%22http%22%2C%22url%22%3A%20%22https%3A%2F%2Fapi.githubcopilot.com%2Fmcp%2Fx%2Fdependabot%22%7D) | [read-only](https://api.githubcopilot.com/mcp/x/dependabot/readonly) | [Install read-only](https://insiders.vscode.dev/redirect/mcp/install?name=gh-dependabot&config=%7B%22type%22%3A%20%22http%22%2C%22url%22%3A%20%22https%3A%2F%2Fapi.githubcopilot.com%2Fmcp%2Fx%2Fdependabot%2Freadonly%22%7D) |
+| Discussions | GitHub Discussions related tools | https://api.githubcopilot.com/mcp/x/discussions | [Install](https://insiders.vscode.dev/redirect/mcp/install?name=gh-discussions&config=%7B%22type%22%3A%20%22http%22%2C%22url%22%3A%20%22https%3A%2F%2Fapi.githubcopilot.com%2Fmcp%2Fx%2Fdiscussions%22%7D) | [read-only](https://api.githubcopilot.com/mcp/x/discussions/readonly) | [Install read-only](https://insiders.vscode.dev/redirect/mcp/install?name=gh-discussions&config=%7B%22type%22%3A%20%22http%22%2C%22url%22%3A%20%22https%3A%2F%2Fapi.githubcopilot.com%2Fmcp%2Fx%2Fdiscussions%2Freadonly%22%7D) |
+| Experiments | Experimental features that are not considered stable yet | https://api.githubcopilot.com/mcp/x/experiments | [Install](https://insiders.vscode.dev/redirect/mcp/install?name=gh-experiments&config=%7B%22type%22%3A%20%22http%22%2C%22url%22%3A%20%22https%3A%2F%2Fapi.githubcopilot.com%2Fmcp%2Fx%2Fexperiments%22%7D) | [read-only](https://api.githubcopilot.com/mcp/x/experiments/readonly) | [Install read-only](https://insiders.vscode.dev/redirect/mcp/install?name=gh-experiments&config=%7B%22type%22%3A%20%22http%22%2C%22url%22%3A%20%22https%3A%2F%2Fapi.githubcopilot.com%2Fmcp%2Fx%2Fexperiments%2Freadonly%22%7D) |
| Gists | GitHub Gist related tools | https://api.githubcopilot.com/mcp/x/gists | [Install](https://insiders.vscode.dev/redirect/mcp/install?name=gh-gists&config=%7B%22type%22%3A%20%22http%22%2C%22url%22%3A%20%22https%3A%2F%2Fapi.githubcopilot.com%2Fmcp%2Fx%2Fgists%22%7D) | [read-only](https://api.githubcopilot.com/mcp/x/gists/readonly) | [Install read-only](https://insiders.vscode.dev/redirect/mcp/install?name=gh-gists&config=%7B%22type%22%3A%20%22http%22%2C%22url%22%3A%20%22https%3A%2F%2Fapi.githubcopilot.com%2Fmcp%2Fx%2Fgists%2Freadonly%22%7D) |
| Git | GitHub Git API related tools for low-level Git operations | https://api.githubcopilot.com/mcp/x/git | [Install](https://insiders.vscode.dev/redirect/mcp/install?name=gh-git&config=%7B%22type%22%3A%20%22http%22%2C%22url%22%3A%20%22https%3A%2F%2Fapi.githubcopilot.com%2Fmcp%2Fx%2Fgit%22%7D) | [read-only](https://api.githubcopilot.com/mcp/x/git/readonly) | [Install read-only](https://insiders.vscode.dev/redirect/mcp/install?name=gh-git&config=%7B%22type%22%3A%20%22http%22%2C%22url%22%3A%20%22https%3A%2F%2Fapi.githubcopilot.com%2Fmcp%2Fx%2Fgit%2Freadonly%22%7D) |
+| Issues | GitHub Issues related tools | https://api.githubcopilot.com/mcp/x/issues | [Install](https://insiders.vscode.dev/redirect/mcp/install?name=gh-issues&config=%7B%22type%22%3A%20%22http%22%2C%22url%22%3A%20%22https%3A%2F%2Fapi.githubcopilot.com%2Fmcp%2Fx%2Fissues%22%7D) | [read-only](https://api.githubcopilot.com/mcp/x/issues/readonly) | [Install read-only](https://insiders.vscode.dev/redirect/mcp/install?name=gh-issues&config=%7B%22type%22%3A%20%22http%22%2C%22url%22%3A%20%22https%3A%2F%2Fapi.githubcopilot.com%2Fmcp%2Fx%2Fissues%2Freadonly%22%7D) |
| Labels | GitHub Labels related tools | https://api.githubcopilot.com/mcp/x/labels | [Install](https://insiders.vscode.dev/redirect/mcp/install?name=gh-labels&config=%7B%22type%22%3A%20%22http%22%2C%22url%22%3A%20%22https%3A%2F%2Fapi.githubcopilot.com%2Fmcp%2Fx%2Flabels%22%7D) | [read-only](https://api.githubcopilot.com/mcp/x/labels/readonly) | [Install read-only](https://insiders.vscode.dev/redirect/mcp/install?name=gh-labels&config=%7B%22type%22%3A%20%22http%22%2C%22url%22%3A%20%22https%3A%2F%2Fapi.githubcopilot.com%2Fmcp%2Fx%2Flabels%2Freadonly%22%7D) |
+| Notifications | GitHub Notifications related tools | https://api.githubcopilot.com/mcp/x/notifications | [Install](https://insiders.vscode.dev/redirect/mcp/install?name=gh-notifications&config=%7B%22type%22%3A%20%22http%22%2C%22url%22%3A%20%22https%3A%2F%2Fapi.githubcopilot.com%2Fmcp%2Fx%2Fnotifications%22%7D) | [read-only](https://api.githubcopilot.com/mcp/x/notifications/readonly) | [Install read-only](https://insiders.vscode.dev/redirect/mcp/install?name=gh-notifications&config=%7B%22type%22%3A%20%22http%22%2C%22url%22%3A%20%22https%3A%2F%2Fapi.githubcopilot.com%2Fmcp%2Fx%2Fnotifications%2Freadonly%22%7D) |
+| Organizations | GitHub Organization related tools | https://api.githubcopilot.com/mcp/x/orgs | [Install](https://insiders.vscode.dev/redirect/mcp/install?name=gh-orgs&config=%7B%22type%22%3A%20%22http%22%2C%22url%22%3A%20%22https%3A%2F%2Fapi.githubcopilot.com%2Fmcp%2Fx%2Forgs%22%7D) | [read-only](https://api.githubcopilot.com/mcp/x/orgs/readonly) | [Install read-only](https://insiders.vscode.dev/redirect/mcp/install?name=gh-orgs&config=%7B%22type%22%3A%20%22http%22%2C%22url%22%3A%20%22https%3A%2F%2Fapi.githubcopilot.com%2Fmcp%2Fx%2Forgs%2Freadonly%22%7D) |
+| Projects | GitHub Projects related tools | https://api.githubcopilot.com/mcp/x/projects | [Install](https://insiders.vscode.dev/redirect/mcp/install?name=gh-projects&config=%7B%22type%22%3A%20%22http%22%2C%22url%22%3A%20%22https%3A%2F%2Fapi.githubcopilot.com%2Fmcp%2Fx%2Fprojects%22%7D) | [read-only](https://api.githubcopilot.com/mcp/x/projects/readonly) | [Install read-only](https://insiders.vscode.dev/redirect/mcp/install?name=gh-projects&config=%7B%22type%22%3A%20%22http%22%2C%22url%22%3A%20%22https%3A%2F%2Fapi.githubcopilot.com%2Fmcp%2Fx%2Fprojects%2Freadonly%22%7D) |
+| Pull Requests | GitHub Pull Request related tools | https://api.githubcopilot.com/mcp/x/pull_requests | [Install](https://insiders.vscode.dev/redirect/mcp/install?name=gh-pull_requests&config=%7B%22type%22%3A%20%22http%22%2C%22url%22%3A%20%22https%3A%2F%2Fapi.githubcopilot.com%2Fmcp%2Fx%2Fpull_requests%22%7D) | [read-only](https://api.githubcopilot.com/mcp/x/pull_requests/readonly) | [Install read-only](https://insiders.vscode.dev/redirect/mcp/install?name=gh-pull_requests&config=%7B%22type%22%3A%20%22http%22%2C%22url%22%3A%20%22https%3A%2F%2Fapi.githubcopilot.com%2Fmcp%2Fx%2Fpull_requests%2Freadonly%22%7D) |
+| Repositories | GitHub Repository related tools | https://api.githubcopilot.com/mcp/x/repos | [Install](https://insiders.vscode.dev/redirect/mcp/install?name=gh-repos&config=%7B%22type%22%3A%20%22http%22%2C%22url%22%3A%20%22https%3A%2F%2Fapi.githubcopilot.com%2Fmcp%2Fx%2Frepos%22%7D) | [read-only](https://api.githubcopilot.com/mcp/x/repos/readonly) | [Install read-only](https://insiders.vscode.dev/redirect/mcp/install?name=gh-repos&config=%7B%22type%22%3A%20%22http%22%2C%22url%22%3A%20%22https%3A%2F%2Fapi.githubcopilot.com%2Fmcp%2Fx%2Frepos%2Freadonly%22%7D) |
| Secret Protection | Secret protection related tools, such as GitHub Secret Scanning | https://api.githubcopilot.com/mcp/x/secret_protection | [Install](https://insiders.vscode.dev/redirect/mcp/install?name=gh-secret_protection&config=%7B%22type%22%3A%20%22http%22%2C%22url%22%3A%20%22https%3A%2F%2Fapi.githubcopilot.com%2Fmcp%2Fx%2Fsecret_protection%22%7D) | [read-only](https://api.githubcopilot.com/mcp/x/secret_protection/readonly) | [Install read-only](https://insiders.vscode.dev/redirect/mcp/install?name=gh-secret_protection&config=%7B%22type%22%3A%20%22http%22%2C%22url%22%3A%20%22https%3A%2F%2Fapi.githubcopilot.com%2Fmcp%2Fx%2Fsecret_protection%2Freadonly%22%7D) |
| Security Advisories | Security advisories related tools | https://api.githubcopilot.com/mcp/x/security_advisories | [Install](https://insiders.vscode.dev/redirect/mcp/install?name=gh-security_advisories&config=%7B%22type%22%3A%20%22http%22%2C%22url%22%3A%20%22https%3A%2F%2Fapi.githubcopilot.com%2Fmcp%2Fx%2Fsecurity_advisories%22%7D) | [read-only](https://api.githubcopilot.com/mcp/x/security_advisories/readonly) | [Install read-only](https://insiders.vscode.dev/redirect/mcp/install?name=gh-security_advisories&config=%7B%22type%22%3A%20%22http%22%2C%22url%22%3A%20%22https%3A%2F%2Fapi.githubcopilot.com%2Fmcp%2Fx%2Fsecurity_advisories%2Freadonly%22%7D) |
+| Stargazers | GitHub Stargazers related tools | https://api.githubcopilot.com/mcp/x/stargazers | [Install](https://insiders.vscode.dev/redirect/mcp/install?name=gh-stargazers&config=%7B%22type%22%3A%20%22http%22%2C%22url%22%3A%20%22https%3A%2F%2Fapi.githubcopilot.com%2Fmcp%2Fx%2Fstargazers%22%7D) | [read-only](https://api.githubcopilot.com/mcp/x/stargazers/readonly) | [Install read-only](https://insiders.vscode.dev/redirect/mcp/install?name=gh-stargazers&config=%7B%22type%22%3A%20%22http%22%2C%22url%22%3A%20%22https%3A%2F%2Fapi.githubcopilot.com%2Fmcp%2Fx%2Fstargazers%2Freadonly%22%7D) |
+| Users | GitHub User related tools | https://api.githubcopilot.com/mcp/x/users | [Install](https://insiders.vscode.dev/redirect/mcp/install?name=gh-users&config=%7B%22type%22%3A%20%22http%22%2C%22url%22%3A%20%22https%3A%2F%2Fapi.githubcopilot.com%2Fmcp%2Fx%2Fusers%22%7D) | [read-only](https://api.githubcopilot.com/mcp/x/users/readonly) | [Install read-only](https://insiders.vscode.dev/redirect/mcp/install?name=gh-users&config=%7B%22type%22%3A%20%22http%22%2C%22url%22%3A%20%22https%3A%2F%2Fapi.githubcopilot.com%2Fmcp%2Fx%2Fusers%2Freadonly%22%7D) |
From a661dcd6f169f39c2395557268a57c09216d0788 Mon Sep 17 00:00:00 2001
From: LuluBeatson
Date: Thu, 20 Nov 2025 16:41:33 +0000
Subject: [PATCH 5/6] re-add discussions toolset
---
pkg/github/tools.go | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/pkg/github/tools.go b/pkg/github/tools.go
index 40551e6fd..1498d6552 100644
--- a/pkg/github/tools.go
+++ b/pkg/github/tools.go
@@ -268,13 +268,13 @@ func DefaultToolsetGroup(readOnly bool, getClient GetClientFn, getGQLClient GetG
// toolsets.NewServerTool(ManageRepositoryNotificationSubscription(getClient, t)),
// )
- // discussions := toolsets.NewToolset(ToolsetMetadataDiscussions.ID, ToolsetMetadataDiscussions.Description).
- // AddReadTools(
- // toolsets.NewServerTool(ListDiscussions(getGQLClient, t)),
- // toolsets.NewServerTool(GetDiscussion(getGQLClient, t)),
- // toolsets.NewServerTool(GetDiscussionComments(getGQLClient, t)),
- // toolsets.NewServerTool(ListDiscussionCategories(getGQLClient, t)),
- // )
+ discussions := toolsets.NewToolset(ToolsetMetadataDiscussions.ID, ToolsetMetadataDiscussions.Description).
+ AddReadTools(
+ toolsets.NewServerTool(ListDiscussions(getGQLClient, t)),
+ toolsets.NewServerTool(GetDiscussion(getGQLClient, t)),
+ toolsets.NewServerTool(GetDiscussionComments(getGQLClient, t)),
+ toolsets.NewServerTool(ListDiscussionCategories(getGQLClient, t)),
+ )
// actions := toolsets.NewToolset(ToolsetMetadataActions.ID, ToolsetMetadataActions.Description).
// AddReadTools(
@@ -372,7 +372,7 @@ func DefaultToolsetGroup(readOnly bool, getClient GetClientFn, getGQLClient GetG
// tsg.AddToolset(dependabot)
// tsg.AddToolset(notifications)
// tsg.AddToolset(experiments)
- // tsg.AddToolset(discussions)
+ tsg.AddToolset(discussions)
tsg.AddToolset(gists)
tsg.AddToolset(securityAdvisories)
// tsg.AddToolset(projects)
From 9181d18186d28fbe95733cfd10a89b1d334d53b1 Mon Sep 17 00:00:00 2001
From: LuluBeatson
Date: Thu, 20 Nov 2025 18:04:33 +0000
Subject: [PATCH 6/6] rm dupe DefaultGraphQLPageSize
---
pkg/github/issues.go | 5 -----
1 file changed, 5 deletions(-)
diff --git a/pkg/github/issues.go b/pkg/github/issues.go
index 54397750e..3a8ad37ea 100644
--- a/pkg/github/issues.go
+++ b/pkg/github/issues.go
@@ -21,11 +21,6 @@ import (
"github.com/shurcooL/githubv4"
)
-const (
- // DefaultGraphQLPageSize is the default page size for GraphQL queries
- DefaultGraphQLPageSize = 30
-)
-
// CloseIssueInput represents the input for closing an issue via the GraphQL API.
// Used to extend the functionality of the githubv4 library to support closing issues as duplicates.
type CloseIssueInput struct {