Deprecated: Function get_magic_quotes_gpc() is deprecated in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 99

Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 619

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1169

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176
8000 Adding default toolset as configuration by tonytrg · Pull Request #1229 · github/github-mcp-server · GitHub
Nothing Special   »   [go: up one dir, main page]

Skip to content

Conversation

tonytrg
Copy link
Contributor
@tonytrg tonytrg commented Oct 15, 2025

Context

As we now introduce default toolsets, we want to enable the workflow to quickly add specific toolsets to the current experience.

Right now this requires copying and recreating the default toolset and adding the specific toolsets.
To make it easier to configure we allow the additional special toolset default.

Changes

  • introduced default toolset
  • we clean up the provided toolset list from the passed args/envs to make the tool selection logic cleaner and more predictable
  • introduces tests
  • adds warning that invalid toolsets were passed
2025-10-15 17:52:32.186 [warning] [server stderr] Invalid toolsets ignored: actionss, test
  • updates the cli help message
go run cmd/github-mcp-server/main.go --help
A GitHub MCP server that handles various tools and resources.

Usage:
  server [command]

Available Commands:
  completion  Generate the autocompletion script for the specified shell
  help        Help about any command
  stdio       Start stdio server

Flags:
      --content-window-size int   Specify the content window size (default 5000)
      --dynamic-toolsets          Enable dynamic toolsets
      --enable-command-logging    When enabled, the server will log all command requests and responses to the log file
      --export-translations       Save translations to a JSON file
      --gh-host string            Specify the GitHub hostname (for GitHub Enterprise etc.)
  -h, --help                      help for server
      --log-file string           Path to log file
      --read-only                 Restrict the server to read-only operations
      --toolsets strings          Comma-separated list of tool groups to enable (no spaces).
                                  Available: context, repos, issues, pull_requests, users, orgs, actions,
                                             code_security, secret_protection, dependabot, notifications,
                                             experiments, discussions, gists, security_advisories, projects,
                                             stargazers, dynamic, labels
                                  Special toolset keywords:
                                    - all: Enables all available toolsets
                                    - default: Enables the default toolset configuration of:
                                             context, repos, issues, pull_requests, users
                                  Examples:
                                    - --toolsets=actions,gists,notifications
                                    - Default + additional: --toolsets=default,actions,gists
                                    - All tools: --toolsets=all
  -v, --version                   version for server

Use "server [command] --help" for more information about a command.

Closes:

khondakar1

This comment was marked as spam.

@tonytrg tonytrg changed the title Tonytrg/add default Adding default toolset as configuration Oct 15, 2025
@tonytrg tonytrg marked this pull request as ready for review October 15, 2025 15:07
@tonytrg tonytrg requested a review from a team as a code owner October 15, 2025 15:07
@Copilot Copilot AI review requested due to automatic review settings October 15, 2025 15:07
Copy link
Contributor
@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR introduces a special "default" toolset configuration to simplify workflow setup when working with default and additional toolsets. Instead of requiring users to copy and recreate the default toolset and add specific toolsets, they can now use the default keyword to quickly reference the standard configuration.

  • Adds a special default toolset keyword that expands to the standard toolset configuration
  • Implements cleanToolsets function to handle toolset processing logic including deduplication and special keyword expansion
  • Updates CLI help documentation to explain the new special toolset keywords and provide usage examples

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
pkg/github/tools.go Adds metadata for special toolsets and updates help text generation
internal/ghmcp/server.go Implements cleanToolsets function and integrates it into server initialization
internal/ghmcp/server_test.go Comprehensive test suite for the cleanToolsets function
cmd/github-mcp-server/main.go Updates default toolset initialization to use the new default keyword
README.md Updates documentation to explain special toolsets and usage patterns

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

tonytrg and others added 2 commits October 15, 2025 17:08
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
omgitsads
omgitsads previously approved these changes Oct 15, 2025
@khondakar1
Copy link

Stop all approval request

@khondakar1
Copy link

Stop all approval request

@tonytrg tonytrg merged commit 66fabb7 into main Oct 15, 2025
16 checks passed
@tonytrg tonytrg deleted the tonytrg/add-default branch October 15, 2025 16:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

0