Last active
May 19, 2025 21:58
-
-
Save gwpl/081e30d70a782b31d8dd4a4cf793d36a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Assuming working golang installation i.e. | |
# .bash: for example | |
# export GOPATH=~/go #or sth else ofc | |
# export PATH=$PATH:$GOPATH/bin | |
# install | |
git clone https://github.com/github/github-mcp-server.git | |
cd github-mcp-server | |
go install ./... | |
# set github token: | |
# https://github.com/settings/personal-access-tokens/new | |
# export GITHUB_PERSONAL_ACCESS_TOKEN | |
# adding to claude project under name "github" | |
# regarding providing value to GITHUB token variable, here is issue that it should get it fron envirnoment: | |
# https://github.com/anthropics/claude-code/issues/1180 | |
claude mcp add -e "GITHUB_PERSONAL_ACCESS_TOKEN"="${GITHUB_PERSONAL_ACCESS_TOKEN}" -t stdio github github-mcp-server stdio | |
claude mcp list | |
claude mcp get github | |
# trying via mcptools https://github.com/f/mcptools | |
# (that you can install via `go install github.com/f/mcptools/cmd/mcptools@latest` ...) | |
# list tools | |
mcptools tools github-mcp-server stdio # will only work if GITHUB_PERSONAL_ACCESS_TOKEN is set |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
anthropics/claude-code#1180