Skip to content

docs: update README #58

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

Merged
merged 1 commit into from
Apr 1, 2025
Merged

docs: update README #58

merged 1 commit into from
Apr 1, 2025

Conversation

toby
Copy link
Member

@toby toby commented Apr 1, 2025

No description provided.

@toby toby requested review from Copilot, SamMorrowDrums and juruen and removed request for Copilot April 1, 2025 00:37
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 updates the README to improve its documentation and reorganization of usage instructions.

  • The description now explains that the server provides seamless integration with GitHub’s APIs.
  • Section headers have been updated (e.g., "Setup" to "Use Cases" and additions like "Usage with VS Code" and "Usage with Claude Desktop").

Tip: Copilot only keeps its highest confidence comments to reduce noise and keep you focused. Learn more

@toby toby changed the title doc: update README docs: update README Apr 1, 2025
Copy link
Collaborator

@SamMorrowDrums SamMorrowDrums left a comment

Choose a reason for hiding this comment

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

I think it reads a lot better now. A few comments, nothing strongly held other then making sure the config json file matches what's in the code.

README.md Outdated
Comment on lines 28 to 29
When you start the server, VS Code will prompt for your token. On top of
`servers`, you should see a `Start` link to start the server.
Copy link
Collaborator

Choose a reason for hiding this comment

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

This didn't quite track for me. Perhaps:

Suggested change
When you start the server, VS Code will prompt for your token. On top of
`servers`, you should see a `Start` link to start the server.
VS Code is now configured to prompt for your token when you start the server. On top of
`servers`, you should see a `Start` link to start the server.

On top of
servers, you should see a Start link to start the server.

Where? It is not clear to me what part of the UO this is referring to.

README.md Outdated

Create a new file `.vscode/mcp.json` and provide this configuration:
The descriptions of the tools can be overridden by creating a
github-mcp-server.json file in the same directory as the binary.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
github-mcp-server.json file in the same directory as the binary.
github-mcp-server-config.json file in the same directory as the binary.

Double check the name of the file, @williammartin changed it for us because it was otherwise trying to read the binary and reporting a warning on startup.

Copy link
Member Author

Choose a reason for hiding this comment

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

good catch, it is indeed github-mcp-server-config.json

v.SetConfigName("github-mcp-server-config")

README.md Outdated
}
```sh
./github-mcp-server --export-translations
cat github-mcp-server.json
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
cat github-mcp-server.json
cat github-mcp-server-config.json

I could be wrong on the name but it's specified in the code, I am on mobile and can't look, but this does need updating also.

README.md Outdated
Comment on lines 16 to 18
with the permissions you want to give the MCP server. You can also install
[Docker](https://www.docker.com/) to run the server in a container or build the
binary from the repo.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
with the permissions you want to give the MCP server. You can also install
[Docker](https://www.docker.com/) to run the server in a container or build the
binary from the repo.
with the permissions you want to give the MCP server. To run the server in a container, you will need to have
[Docker](https://www.docker.com/) installed.
Alternatively you can build the binary from the source code in your repo.

Copy link
Collaborator

Choose a reason for hiding this comment

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

agree with breaking this out, the current sentence make it sound like you build the binary in docker.

do we have a preference? if so we should point users to it.

would also help to link to some docs for how to build with go

README.md Outdated
@@ -1,130 +1,106 @@
# GitHub MCP Server

GitHub MCP Server implemented in Go.
The GitHub MCP Server is a Model Context Protocol (MCP) server that provides
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
The GitHub MCP Server is a Model Context Protocol (MCP) server that provides
The GitHub MCP Server is a [Model Context Protocol (MCP)](https://modelcontextprotocol.io/introduction) server that provides

README.md Outdated
@@ -1,130 +1,106 @@
# GitHub MCP Server

GitHub MCP Server implemented in Go.
The GitHub MCP Server is a Model Context Protocol (MCP) server that provides
seamless integration with GitHub's APIs, enabling advanced automation and
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
seamless integration with GitHub's APIs, enabling advanced automation and
seamless integration with GitHub APIs, enabling advanced automation and

README.md Outdated

### Requirements
[Create a GitHub Personal Access Token](https://github.com/settings/personal-access-tokens/new)
Copy link
Collaborator

Choose a reason for hiding this comment

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

the current link doesn't give context to people who aren't familiar with PATs and won't work if a user isn't logged in. suggest pointing to our public docs instead

Suggested change
[Create a GitHub Personal Access Token](https://github.com/settings/personal-access-tokens/new)
[Create a GitHub Personal Access Token](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens)

README.md Outdated

### Requirements
[Create a GitHub Personal Access Token](https://github.com/settings/personal-access-tokens/new)
with the permissions you want to give the MCP server. You can also install
Copy link
Collaborator

Choose a reason for hiding this comment

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

which permissions do people need for their token? to avoid confusion it would help to list those out, possibly broken into readonly and and write sections.

README.md Outdated
Comment on lines 16 to 18
with the permissions you want to give the MCP server. You can also install
[Docker](https://www.docker.com/) to run the server in a container or build the
binary from the repo.
Copy link
Collaborator

Choose a reason for hiding this comment

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

agree with breaking this out, the current sentence make it sound like you build the binary in docker.

do we have a preference? if so we should point users to it.

would also help to link to some docs for how to build with go


Start VS Code Insiders and make sure you pass the `GITHUB_PERSONAL_ACCESS_TOKEN` environment variable to the process.
If you don't have Docker, you can use `go` to build the binary in the
Copy link
Collaborator

Choose a reason for hiding this comment

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

this makes it sounds like docker is preferred over building from source. is that the case?


Start VS Code Insiders and make sure you pass the `GITHUB_PERSONAL_ACCESS_TOKEN` environment variable to the process.
If you don't have Docker, you can use `go` to build the binary in the
`cmd/github-mcp-server` directory, and use the `github-mcp-server stdio`
Copy link
Collaborator

Choose a reason for hiding this comment

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

this is hard to parse and will be harder for people who aren't used to building go projects


```bash
docker pull ghcr.io/github/github-mcp-server:main
```
code --add-mcp '{"name":"github","command":"docker","args":["run", "-i", "--rm", "-e", "GITHUB_PERSONAL_ACCESS_TOKEN", "ghcr.io/github/github-mcp-server:main"], "env": {"GITHUB_PERSONAL_ACCESS_TOKEN": "${input:github-pat}"}, "inputs": [{ "id": "github-pat", "type": "promptString", "description": "Github Personal Access Token", "password": true}]}'
Copy link
Collaborator

Choose a reason for hiding this comment

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

is GITHUB_PERSONAL_ACCESS_TOKEN required both as an env var to docker and as an env var for code? I'm not quite sure how to parse this one so maybe it's pulling it in from code and setting it as an env var in the docker 🤔

would be good to explain what this is doing

Copy link
Member Author

Choose a reason for hiding this comment

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

It's part of the VS Code config. For this one, I modeled it on the Playwright readme: https://github.com/microsoft/playwright-mcp?tab=readme-ov-file#installation-in-vs-code

README.md Outdated

Create a new file `.vscode/mcp.json` and provide this configuration:
The descriptions of the tools can be overridden by creating a
github-mcp-server.json file in the same directory as the binary.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
github-mcp-server.json file in the same directory as the binary.
`github-mcp-server.json` file in the same directory as the binary.


The flag `--gh-host` and the environment variable `GH_HOST` can be used to set the GitHub Enterprise Server hostname.


## Tools
Copy link
Collaborator

Choose a reason for hiding this comment

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

suggest breaking this out into a different file which we link to here. ideally one that is dynamically generated so this doesn't have to be kept up to date manually

Copy link
Collaborator

@SamMorrowDrums SamMorrowDrums left a comment

Choose a reason for hiding this comment

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

🔥

@toby toby merged commit 671f824 into main Apr 1, 2025
15 checks passed
manian0430 pushed a commit to ChrisLally/github-mcp-server that referenced this pull request Apr 12, 2025
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.

3 participants