-
Notifications
You must be signed in to change notification settings - Fork 838
github-mcp-server --export-translation does not work #367
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi @tjamet this doesn't quite work as it should, but it does work. If you run Probably the best way to do this is: Create an empty json file: echo "{}" > github-mcp-server-config.json Run the docker command with a volume mount, and it will then update it and you'll have the local translations available. docker run --rm -e GITHUB_PERSONAL_ACCESS_TOKEN=1 -v $(pwd)/github-mcp-server-config.json:/server/github-mcp-server-config.json ghcr.io/github/github-mcp-server:v0.2.1 ./github-mcp-server stdio --export-translations You can keep this file and update it in future versions by running same docker command with same volume mount, and it will add new keys, but it will not overwrite the ones you have set already. I run it and get this: {
"RESOURCE_REPOSITORY_CONTENT_BRANCH_DESCRIPTION": "Repository Content for specific branch",
"RESOURCE_REPOSITORY_CONTENT_COMMIT_DESCRIPTION": "Repository Content for specific commit",
"RESOURCE_REPOSITORY_CONTENT_DESCRIPTION": "Repository Content",
"RESOURCE_REPOSITORY_CONTENT_PR_DESCRIPTION": "Repository Content for specific pull request",
"RESOURCE_REPOSITORY_CONTENT_TAG_DESCRIPTION": "Repository Content for specific tag",
"TOOL_ADD_ISSUE_COMMENT_DESCRIPTION": "Add a comment to an existing issue",
"TOOL_ADD_PULL_REQUEST_COMMENT_DESCRIPTION": "Add a review comment to a pull request",
"TOOL_CREATE_BRANCH_DESCRIPTION": "Create a new branch in a GitHub repository",
"TOOL_CREATE_ISSUE_DESCRIPTION": "Create a new issue in a GitHub repository",
"TOOL_CREATE_OR_UPDATE_FILE_DESCRIPTION": "Create or update a single file in a GitHub repository",
"TOOL_CREATE_PULL_REQUEST_DESCRIPTION": "Create a new pull request in a GitHub repository",
"TOOL_CREATE_PULL_REQUEST_REVIEW_DESCRIPTION": "Create a review on a pull request",
"TOOL_CREATE_REPOSITORY_DESCRIPTION": "Create a new GitHub repository in your account",
"TOOL_FORK_REPOSITORY_DESCRIPTION": "Fork a GitHub repository to your account or specified organization",
"TOOL_GET_CODE_SCANNING_ALERT_DESCRIPTION": "Get details of a specific code scanning alert in a GitHub repository.",
"TOOL_GET_COMMITS_DESCRIPTION": "Get details for a commit from a GitHub repository",
"TOOL_GET_FILE_CONTENTS_DESCRIPTION": "Get the contents of a file or directory from a GitHub repository",
"TOOL_GET_ISSUE_COMMENTS_DESCRIPTION": "Get comments for a GitHub issue",
"TOOL_GET_ISSUE_DESCRIPTION": "Get details of a specific issue in a GitHub repository",
"TOOL_GET_ME_DESCRIPTION": "Get details of the authenticated GitHub user. Use this when a request include \"me\", \"my\"...",
"TOOL_GET_PULL_REQUEST_COMMENTS_DESCRIPTION": "Get the review comments on a pull request",
"TOOL_GET_PULL_REQUEST_DESCRIPTION": "Get details of a specific pull request",
"TOOL_GET_PULL_REQUEST_FILES_DESCRIPTION": "Get the list of files changed in a pull request",
"TOOL_GET_PULL_REQUEST_REVIEWS_DESCRIPTION": "Get the reviews on a pull request",
"TOOL_GET_PULL_REQUEST_STATUS_DESCRIPTION": "Get the combined status of all status checks for a pull request",
"TOOL_GET_SECRET_SCANNING_ALERT_DESCRIPTION": "Get details of a specific secret scanning alert in a GitHub repository.",
"TOOL_LIST_BRANCHES_DESCRIPTION": "List branches in a GitHub repository",
"TOOL_LIST_CODE_SCANNING_ALERTS_DESCRIPTION": "List code scanning alerts in a GitHub repository.",
"TOOL_LIST_COMMITS_DESCRIPTION": "Get list of commits of a branch in a GitHub repository",
"TOOL_LIST_ISSUES_DESCRIPTION": "List issues in a GitHub repository with filtering options",
"TOOL_LIST_PULL_REQUESTS_DESCRIPTION": "List and filter repository pull requests",
"TOOL_LIST_SECRET_SCANNING_ALERTS_DESCRIPTION": "List secret scanning alerts in a GitHub repository.",
"TOOL_MERGE_PULL_REQUEST_DESCRIPTION": "Merge a pull request",
"TOOL_PUSH_FILES_DESCRIPTION": "Push multiple files to a GitHub repository in a single commit",
"TOOL_SEARCH_CODE_DESCRIPTION": "Search for code across GitHub repositories",
"TOOL_SEARCH_ISSUES_DESCRIPTION": "Search for issues and pull requests across GitHub repositories",
"TOOL_SEARCH_REPOSITORIES_DESCRIPTION": "Search for GitHub repositories",
"TOOL_SEARCH_USERS_DESCRIPTION": "Search for GitHub users",
"TOOL_UPDATE_ISSUE_DESCRIPTION": "Update an existing issue in a GitHub repository",
"TOOL_UPDATE_PULL_REQUEST_BRANCH_DESCRIPTION": "Update a pull request branch with the latest changes from the base branch",
"TOOL_UPDATE_PULL_REQUEST_DESCRIPTION": "Update an existing pull request in a GitHub repository"
} |
Describe the bug
Trying to run multiple instances (for github.com and some ghe), I was following the documentation:
Running it, errors and does not generate the relevant translation file.
Affected version
v0.2.1
The problem also appears in
main
Steps to reproduce the behavior
Expected vs actual behavior
A completion json is dumped.
relates to: #206
The text was updated successfully, but these errors were encountered: