Skip to content

Commit d3c7e58

Browse files
committed
wip: README edits
1 parent 51ccba0 commit d3c7e58

File tree

1 file changed

+12
-49
lines changed

1 file changed

+12
-49
lines changed

README.md

Lines changed: 12 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,16 @@
11
# GitHub MCP Server
22

3-
GitHub MCP Server implemented in Go.
3+
The GitHub MCP Server is a Model Context Protocol (MCP) server that provides seamless integration with GitHub's APIs, enabling advanced automation and interaction capabilities for developers and tools.
44

5-
## Setup
5+
## Use Cases
66

7-
Create a GitHub Personal Access Token with the appropriate permissions
8-
and set it as the GITHUB_PERSONAL_ACCESS_TOKEN environment variable.
7+
- Automating GitHub workflows and processes.
8+
- Extracting and analyzing data from GitHub repositories.
9+
- Building AI powered tools and applications that interact with GitHub's ecosystem.
910

10-
## Testing in VS Code Insiders
11+
## Installation
1112

12-
### Requirements
13-
14-
You can either use a Docker image or build the binary from the repo.
15-
16-
#### Docker image
17-
18-
As of now, this repo is private, and hence the docker image is not available publicly. To pull it,
19-
you need to make sure you can access the GitHub docker registry. See [this](https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-container-registry#authenticating-with-a-personal-access-token-classic)
20-
for more details.
21-
22-
To make sure you can access the GitHub docker registry, run the following command:
23-
24-
```bash
25-
docker pull ghcr.io/github/github-mcp-server:main
26-
```
27-
28-
If the above command works, you are good to go.
29-
30-
#### Build from repo
31-
First, install `github-mcp-server` by cloning the repo and running the following command:
32-
33-
```bash
34-
go install ./cmd/github-mcp-server
35-
```
36-
37-
If you don't want to clone the repo, you can run:
38-
39-
```bash
40-
GOPRIVATE=github.com/github go install github.com/github/github-mcp-server/cmd/github-mcp-server@latest
41-
```
42-
43-
This will install the `github-mcp-server` binary in your `$GOPATH/bin` directory.
44-
45-
Find where the binary is installed by running:
46-
47-
```bash
48-
# note this assumes $GOPATH/bin is in your $PATH
49-
which github-mcp-server
50-
```
13+
[Create a GitHub Personal Access Token](https://github.com/settings/personal-access-tokens/new) with the appropriate permissions and set it as the `GITHUB_PERSONAL_ACCESS_TOKEN` environment variable.
5114

5215
### Start VS Code Insiders
5316

@@ -355,7 +318,7 @@ The flag `--gh-host` and the environment variable `GH_HOST` can be used to set t
355318

356319
### Repository Content
357320

358-
- **Get Repository Content**
321+
- **Get Repository Content**
359322
Retrieves the content of a repository at a specific path.
360323

361324
- **Template**: `repo://{owner}/{repo}/contents{/path*}`
@@ -364,7 +327,7 @@ The flag `--gh-host` and the environment variable `GH_HOST` can be used to set t
364327
- `repo`: Repository name (string, required)
365328
- `path`: File or directory path (string, optional)
366329

367-
- **Get Repository Content for a Specific Branch**
330+
- **Get Repository Content for a Specific Branch**
368331
Retrieves the content of a repository at a specific path for a given branch.
369332

370333
- **Template**: `repo://{owner}/{repo}/refs/heads/{branch}/contents{/path*}`
@@ -374,7 +337,7 @@ The flag `--gh-host` and the environment variable `GH_HOST` can be used to set t
374337
- `branch`: Branch name (string, required)
375338
- `path`: File or directory path (string, optional)
376339

377-
- **Get Repository Content for a Specific Commit**
340+
- **Get Repository Content for a Specific Commit**
378341
Retrieves the content of a repository at a specific path for a given commit.
379342

380343
- **Template**: `repo://{owner}/{repo}/sha/{sha}/contents{/path*}`
@@ -384,7 +347,7 @@ The flag `--gh-host` and the environment variable `GH_HOST` can be used to set t
384347
- `sha`: Commit SHA (string, required)
385348
- `path`: File or directory path (string, optional)
386349

387-
- **Get Repository Content for a Specific Tag**
350+
- **Get Repository Content for a Specific Tag**
388351
Retrieves the content of a repository at a specific path for a given tag.
389352

390353
- **Template**: `repo://{owner}/{repo}/refs/tags/{tag}/contents{/path*}`
@@ -394,7 +357,7 @@ The flag `--gh-host` and the environment variable `GH_HOST` can be used to set t
394357
- `tag`: Tag name (string, required)
395358
- `path`: File or directory path (string, optional)
396359

397-
- **Get Repository Content for a Specific Pull Request**
360+
- **Get Repository Content for a Specific Pull Request**
398361
Retrieves the content of a repository at a specific path for a given pull request.
399362

400363
- **Template**: `repo://{owner}/{repo}/refs/pull/{pr_number}/head/contents{/path*}`

0 commit comments

Comments
 (0)