Skip to content
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

dev: easily run servers with current code #51

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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