Skip to content

Commit 73283c5

Browse files
authored
Merge branch 'main' into dependabot/go_modules/github.com/mark3labs/mcp-go-0.40.0
2 parents 0e5c67a + 371b9ae commit 73283c5

File tree

10 files changed

+40
-28
lines changed

10 files changed

+40
-28
lines changed

.github/workflows/code-scanning.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ jobs:
6363
with:
6464
language: ${{ matrix.language }}
6565
- name: Setup Go
66-
uses: actions/setup-go@v5
66+
uses: actions/setup-go@v6
6767
if: matrix.language == 'go' && fromJSON(steps.resolve-environment.outputs.environment).configuration.go.version
6868
with:
6969
go-version: ${{ fromJSON(steps.resolve-environment.outputs.environment).configuration.go.version }}

.github/workflows/docker-publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
# https://github.com/sigstore/cosign-installer
4747
- name: Install cosign
4848
if: github.event_name != 'pull_request'
49-
uses: sigstore/cosign-installer@59acb6260d9c0ba8f4a2f9d9b48431a222b68e20 #v3.5.0
49+
uses: sigstore/cosign-installer@d7543c93d881b35a8faa02e8e3605f69b7a1ce62 #v3.10.0
5050
with:
5151
cosign-release: "v2.2.4"
5252

@@ -101,7 +101,7 @@ jobs:
101101
# https://github.com/docker/build-push-action
102102
- name: Build and push Docker image
103103
id: build-and-push
104-
uses: docker/build-push-action@0565240e2d4ab88bba5387d719585280857ece09 # v5.0.0
104+
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6.18.0
105105
with:
106106
context: .
107107
push: ${{ github.event_name != 'pull_request' }}

.github/workflows/docs-check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
uses: actions/checkout@v5
1818

1919
- name: Set up Go
20-
uses: actions/setup-go@v5
20+
uses: actions/setup-go@v6
2121
with:
2222
go-version-file: 'go.mod'
2323

.github/workflows/go.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
uses: actions/checkout@v5
1919

2020
- name: Set up Go
21-
uses: actions/setup-go@v5
21+
uses: actions/setup-go@v6
2222
with:
2323
go-version-file: "go.mod"
2424

.github/workflows/goreleaser.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@ jobs:
1717
uses: actions/checkout@v5
1818

1919
- name: Set up Go
20-
uses: actions/setup-go@v5
20+
uses: actions/setup-go@v6
2121
with:
2222
go-version-file: "go.mod"
2323

2424
- name: Download dependencies
2525
run: go mod download
2626

2727
- name: Run GoReleaser
28-
uses: goreleaser/goreleaser-action@9c156ee8a17a598857849441385a2041ef570552
28+
uses: goreleaser/goreleaser-action@e435ccd777264be153ace6237001ef4d979d3a7a
2929
with:
3030
distribution: goreleaser
3131
# GoReleaser version

.github/workflows/license-check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
uses: actions/checkout@v5
1515

1616
- name: Set up Go
17-
uses: actions/setup-go@v5
17+
uses: actions/setup-go@v6
1818
with:
1919
go-version-file: "go.mod"
2020
- name: check licenses

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- uses: actions/checkout@v5
17-
- uses: actions/setup-go@v5
17+
- uses: actions/setup-go@v6
1818
with:
1919
go-version: stable
2020
- name: golangci-lint

.github/workflows/registry-releaser.yml

Lines changed: 26 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,33 +16,48 @@ jobs:
1616
- name: Checkout code
1717
uses: actions/checkout@v5
1818

19+
- name: Setup Go
20+
uses: actions/setup-go@v5
21+
with:
22+
go-version: "stable"
23+
1924
- name: Fetch tags
20-
run: git fetch --tags
25+
run: |
26+
if [[ "${{ github.ref_type }}" != "tag" ]]; then
27+
git fetch --tags
28+
else
29+
echo "Skipping tag fetch - already on tag ${{ github.ref_name }}"
30+
fi
2131
2232
- name: Install MCP Publisher
2333
run: |
24-
curl -L "https://github.com/modelcontextprotocol/registry/releases/download/v1.0.0/mcp-publisher_1.0.0_$(uname -s | tr '[:upper:]' '[:lower:]')_$(uname -m | sed 's/x86_64/amd64/;s/aarch64/arm64/').tar.gz" | tar xz mcp-publisher
34+
git clone --quiet https://github.com/modelcontextprotocol/registry publisher-repo
35+
cd publisher-repo && make publisher > /dev/null && cd ..
36+
cp publisher-repo/bin/mcp-publisher . && chmod +x mcp-publisher
2537
2638
- name: Update server.json version
2739
run: |
2840
if [[ "${{ github.ref_type }}" == "tag" ]]; then
29-
# Use the tag that triggered the workflow
3041
TAG_VERSION=$(echo "${{ github.ref_name }}" | sed 's/^v//')
31-
echo "Using triggered tag: ${{ github.ref_name }}"
3242
else
33-
# Fallback to latest tag (for manual triggers)
3443
LATEST_TAG=$(git tag --sort=-version:refname | grep -E '^v[0-9]+\.[0-9]+\.[0-9]+(-.*)?$' | head -n 1)
35-
if [ -z "$LATEST_TAG" ]; then
36-
echo "❌ No release tag found. Cannot determine version."
37-
exit 1
38-
fi
44+
[ -z "$LATEST_TAG" ] && { echo "No release tag found"; exit 1; }
3945
TAG_VERSION=$(echo "$LATEST_TAG" | sed 's/^v//')
4046
echo "Using latest tag: $LATEST_TAG"
4147
fi
4248
sed -i "s/\${VERSION}/$TAG_VERSION/g" server.json
43-
echo "Updated server.json version to $TAG_VERSION"
49+
echo "Version: $TAG_VERSION"
50+
51+
- name: Validate configuration
52+
run: |
53+
python3 -m json.tool server.json > /dev/null && echo "Configuration valid" || exit 1
54+
55+
- name: Display final server.json
56+
run: |
57+
echo "Final server.json contents:"
58+
cat server.json
4459
45-
- name: Login to MCP Registry
60+
- name: Login to MCP Registry (OIDC)
4661
run: ./mcp-publisher login github-oidc
4762

4863
- name: Publish to MCP Registry

Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ RUN --mount=type=cache,target=/go/pkg/mod \
1818

1919
# Make a stage to run the app
2020
FROM gcr.io/distroless/base-debian12
21+
22+
# Add required MCP server annotation
23+
LABEL io.modelcontextprotocol.server.name="io.github.github/github-mcp-server"
24+
2125
# Set the working directory
2226
WORKDIR /server
2327
# Copy the binary from the build stage

server.json

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,8 @@
1212
{
1313
"registryType": "oci",
1414
"registryBaseUrl": "https://ghcr.io",
15-
"identifier": "ghcr.io/github/github-mcp-server",
15+
"identifier": "github/github-mcp-server",
1616
"version": "${VERSION}",
17-
"runtimeHint": "docker",
1817
"transport": {
1918
"type": "stdio"
2019
},
@@ -62,11 +61,5 @@
6261
}
6362
]
6463
}
65-
],
66-
"remotes": [
67-
{
68-
"type": "streamable-http",
69-
"url": "https://api.githubcopilot.com/mcp/"
70-
}
7164
]
7265
}

0 commit comments

Comments
 (0)