Open
Description
Describe the bug
Trying to run multiple instances (for github.com and some ghe), I was following the documentation:
You can create an export of the current translations by running the binary with the --export-translations flag.
This flag will preserve any translations/overrides you have made, while adding any new translations that have been added to the binary since the last time you exported.
./github-mcp-server --export-translations
cat github-mcp-server-config.json
Running it, errors and does not generate the relevant translation file.
go run github.com/github/github-mcp-server/cmd/github-mcp-server@v0.2.1 --export-translations
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:
--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 An optional comma separated list of groups of tools to allow, defaults to enabling all (default [all])
-v, --version version for server
Use "server [command] --help" for more information about a command.
docker run --rm ghcr.io/github/github-mcp-server:v0.2.1 /server/github-mcp-server --export-translations
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:
--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 An optional comma separated list of groups of tools to allow, defaults to enabling all (default [all])
-v, --version version for server
Use "server [command] --help" for more information about a command.
Affected version
v0.2.1
The problem also appears in main
go run github.com/github/github-mcp-server/cmd/github-mcp-server@main --export-translations
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:
--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 An optional comma separated list of groups of tools to allow, defaults to enabling all (default [all])
-v, --version version for server
Use "server [command] --help" for more information about a command.
Steps to reproduce the behavior
go run github.com/github/github-mcp-server/cmd/github-mcp-server@main --export-translations
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:
--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 An optional comma separated list of groups of tools to allow, defaults to enabling all (default [all])
-v, --version version for server
Use "server [command] --help" for more information about a command.
Expected vs actual behavior
A completion json is dumped.
relates to: #206