Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions .vscode/mcp.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"inputs": [
{
"id": "github-pat",
"type": "promptString",
"description": "Github Personal Access Token",
"password": true
}
],
"servers": {
"github-mcp-server-dev": {
"type": "stdio",
"command": "./src/github.com/github/github-mcp-server/script/go-run",
"args": [
// ""
],
"env": {
"GITHUB_PERSONAL_ACCESS_TOKEN": "${input:github-pat}"
}
},
"github-mcp-server-docker-dev": {
"type": "stdio",
"command": "./src/github.com/github/github-mcp-server/script/docker-build-run",
"args": [
// ""
],
"env": {
"GITHUB_PERSONAL_ACCESS_TOKEN": "${input:github-pat}"
}
}
}
}
8 changes: 8 additions & 0 deletions script/docker-build-run
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash

cd "${0%/*}"
cd ../
echo "Running go-run.sh in $(pwd)"

docker build . --tag ghcr.io/github/github-mcp-server:dev
docker run -i --rm -e GITHUB_PERSONAL_ACCESS_TOKEN ghcr.io/github/github-mcp-server:dev ./github-mcp-server stdio
7 changes: 7 additions & 0 deletions script/go-run
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash

cd "${0%/*}"
cd ../
echo "Running go-run.sh in $(pwd)"

go run cmd/github-mcp-server/main.go stdio