Skip to content

Commit bc83181

Browse files
dev: easily run servers with current code
1 parent 75d71ad commit bc83181

File tree

3 files changed

+47
-0
lines changed

3 files changed

+47
-0
lines changed

.vscode/mcp.json

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"inputs": [
3+
{
4+
"id": "github-pat",
5+
"type": "promptString",
6+
"description": "Github Personal Access Token",
7+
"password": true
8+
}
9+
],
10+
"servers": {
11+
"github-mcp-server-dev": {
12+
"type": "stdio",
13+
"command": "./src/github.com/github/github-mcp-server/script/go-run",
14+
"args": [
15+
// ""
16+
],
17+
"env": {
18+
"GITHUB_PERSONAL_ACCESS_TOKEN": "${input:github-pat}"
19+
}
20+
},
21+
"github-mcp-server-docker-dev": {
22+
"type": "stdio",
23+
"command": "./src/github.com/github/github-mcp-server/script/docker-build-run",
24+
"args": [
25+
// ""
26+
],
27+
"env": {
28+
"GITHUB_PERSONAL_ACCESS_TOKEN": "${input:github-pat}"
29+
}
30+
}
31+
}
32+
}

script/docker-build-run

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/bash
2+
3+
cd "${0%/*}"
4+
cd ../
5+
echo "Running go-run.sh in $(pwd)"
6+
7+
docker build . --tag ghcr.io/github/github-mcp-server:dev
8+
docker run -i --rm -e GITHUB_PERSONAL_ACCESS_TOKEN ghcr.io/github/github-mcp-server:dev ./github-mcp-server stdio

script/go-run

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/bash
2+
3+
cd "${0%/*}"
4+
cd ../
5+
echo "Running go-run.sh in $(pwd)"
6+
7+
go run cmd/github-mcp-server/main.go stdio

0 commit comments

Comments
 (0)