Skip to content

Commit a5864d5

Browse files
authored
Merge branch 'main' into tonytrg/define-default-toolsets
2 parents a7f54ca + 6793b9d commit a5864d5

27 files changed

+2842
-81
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

README.md

Lines changed: 51 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -671,14 +671,62 @@ The following sets of tools are available (all are on by default):
671671

672672
<summary>Projects</summary>
673673

674+
- **add_project_item** - Add project item
675+
- `item_id`: The numeric ID of the issue or pull request to add to the project. (number, required)
676+
- `item_type`: The item's type, either issue or pull_request. (string, required)
677+
- `owner`: If owner_type == user it is the handle for the GitHub user account. If owner_type == org it is the name of the organization. The name is not case sensitive. (string, required)
678+
- `owner_type`: Owner type (string, required)
679+
- `project_number`: The project's number. (number, required)
680+
681+
- **delete_project_item** - Delete project item
682+
- `item_id`: The internal project item ID to delete from the project (not the issue or pull request ID). (number, required)
683+
- `owner`: If owner_type == user it is the handle for the GitHub user account. If owner_type == org it is the name of the organization. The name is not case sensitive. (string, required)
684+
- `owner_type`: Owner type (string, required)
685+
- `project_number`: The project's number. (number, required)
686+
687+
- **get_project** - Get project
688+
- `owner`: If owner_type == user it is the handle for the GitHub user account. If owner_type == org it is the name of the organization. The name is not case sensitive. (string, required)
689+
- `owner_type`: Owner type (string, required)
690+
- `project_number`: The project's number (number, required)
691+
692+
- **get_project_field** - Get project field
693+
- `field_id`: The field's id. (number, required)
694+
- `owner`: If owner_type == user it is the handle for the GitHub user account. If owner_type == org it is the name of the organization. The name is not case sensitive. (string, required)
695+
- `owner_type`: Owner type (string, required)
696+
- `project_number`: The project's number. (number, required)
697+
698+
- **get_project_item** - Get project item
699+
- `item_id`: The item's ID. (number, required)
700+
- `owner`: If owner_type == user it is the handle for the GitHub user account. If owner_type == org it is the name of the organization. The name is not case sensitive. (string, required)
701+
- `owner_type`: Owner type (string, required)
702+
- `project_number`: The project's number. (number, required)
703+
704+
- **list_project_fields** - List project fields
705+
- `owner`: If owner_type == user it is the handle for the GitHub user account. If owner_type == org it is the name of the organization. The name is not case sensitive. (string, required)
706+
- `owner_type`: Owner type (string, required)
707+
- `per_page`: Number of results per page (max 100, default: 30) (number, optional)
708+
- `project_number`: The project's number. (number, required)
709+
710+
- **list_project_items** - List project items
711+
- `owner`: If owner_type == user it is the handle for the GitHub user account. If owner_type == org it is the name of the organization. The name is not case sensitive. (string, required)
712+
- `owner_type`: Owner type (string, required)
713+
- `per_page`: Number of results per page (max 100, default: 30) (number, optional)
714+
- `project_number`: The project's number. (number, required)
715+
- `query`: Search query to filter items (string, optional)
716+
674717
- **list_projects** - List projects
675-
- `after`: Cursor for items after (forward pagination) (string, optional)
676-
- `before`: Cursor for items before (backwards pagination) (string, optional)
677-
- `owner`: If owner_type == user it is the handle for the GitHub user account. If owner_type == organization it is the name of the organization. The name is not case sensitive. (string, required)
718+
- `owner`: If owner_type == user it is the handle for the GitHub user account. If owner_type == org it is the name of the organization. The name is not case sensitive. (string, required)
678719
- `owner_type`: Owner type (string, required)
679720
- `per_page`: Number of results per page (max 100, default: 30) (number, optional)
680721
- `query`: Filter projects by a search query (matches title and description) (string, optional)
681722

723+
- **update_project_item** - Update project item
724+
- `fields`: A list of field updates to apply. (array, required)
725+
- `item_id`: The numeric ID of the project item to update (not the issue or pull request ID). (number, required)
726+
- `owner`: If owner_type == user it is the handle for the GitHub user account. If owner_type == org it is the name of the organization. The name is not case sensitive. (string, required)
727+
- `owner_type`: Owner type (string, required)
728+
- `project_number`: The project's number. (number, required)
729+
682730
</details>
683731

684732
<details>

0 commit comments

Comments
 (0)