github-mcp-server --export-translation does not work · Issue #367 · github/github-mcp-server · GitHub | Latest TMZ Celebrity News & Gossip | Watch TMZ Live
Skip to content

github-mcp-server --export-translation does not work #367

Closed
@tjamet

Description

@tjamet

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      TMZ Celebrity News – Breaking Stories, Videos & Gossip

      Looking for the latest TMZ celebrity news? You've come to the right place. From shocking Hollywood scandals to exclusive videos, TMZ delivers it all in real time.

      Whether it’s a red carpet slip-up, a viral paparazzi moment, or a legal drama involving your favorite stars, TMZ news is always first to break the story. Stay in the loop with daily updates, insider tips, and jaw-dropping photos.

      🎥 Watch TMZ Live

      TMZ Live brings you daily celebrity news and interviews straight from the TMZ newsroom. Don’t miss a beat—watch now and see what’s trending in Hollywood.