From 79466b64dfc1b8e69cc128113fa6024a366ff0d9 Mon Sep 17 00:00:00 2001 From: Sam Morrow Date: Wed, 28 Jan 2026 16:24:27 +0100 Subject: [PATCH] docs: move AGENTS.md to root, add copilot-setup-steps - Move AGENTS.md to repository root per agents.md spec - Add copilot-setup-steps.yml workflow for Copilot coding agent - Pre-installs: Go deps, goimports, MCP Inspector, builds server binary --- .github/workflows/copilot-setup-steps.yml | 51 +++++++++++++++++++++++ .github/agents.md => AGENTS.md | 0 2 files changed, 51 insertions(+) create mode 100644 .github/workflows/copilot-setup-steps.yml rename .github/agents.md => AGENTS.md (100%) diff --git a/.github/workflows/copilot-setup-steps.yml b/.github/workflows/copilot-setup-steps.yml new file mode 100644 index 00000000..5ee95514 --- /dev/null +++ b/.github/workflows/copilot-setup-steps.yml @@ -0,0 +1,51 @@ +# https://docs.github.com/en/copilot/customizing-copilot/customizing-the-development-environment-for-copilot-coding-agent +name: "Copilot Setup Steps" + +on: + workflow_dispatch: + push: + paths: + - .github/workflows/copilot-setup-steps.yml + pull_request: + paths: + - .github/workflows/copilot-setup-steps.yml + +jobs: + copilot-setup-steps: + runs-on: ubuntu-latest + + permissions: + contents: read + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Set up Go + uses: actions/setup-go@v5 + with: + go-version-file: go.mod + + - name: Download Go dependencies + run: go mod download + + - name: Build server + run: go build -v ./cmd/github-mcp-server + + - name: Install goimports + run: go install golang.org/x/tools/cmd/goimports@latest + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: '22' + + - name: Install MCP Inspector + run: npm install -g @modelcontextprotocol/inspector@0.7.0 + + - name: Verify tools + run: | + echo "Go version: $(go version)" + echo "goimports: $(which goimports)" + echo "MCP Inspector: $(npx @modelcontextprotocol/inspector@0.7.0 --version)" + echo "Server binary: $(ls -la github-mcp-server)" diff --git a/.github/agents.md b/AGENTS.md similarity index 100% rename from .github/agents.md rename to AGENTS.md