Skip to content

Commit d8fdde3

Browse files
authored
Merge branch 'main' into add-reply-to-pr-comment
2 parents e65863c + 1820a0f commit d8fdde3

35 files changed

+1587
-723
lines changed

.github/workflows/conformance.yml

Lines changed: 0 additions & 69 deletions
This file was deleted.

.github/workflows/go.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,14 @@ jobs:
1414
runs-on: ${{ matrix.os }}
1515

1616
steps:
17+
- name: Force git to use LF
18+
# This step is required on Windows to work around go mod tidy -diff issues caused by CRLF line endings.
19+
# TODO: replace with a checkout option when https://github.com/actions/checkout/issues/226 is implemented
20+
if: runner.os == 'Windows'
21+
run: |
22+
git config --global core.autocrlf false
23+
git config --global core.eol lf
24+
1725
- name: Check out code
1826
uses: actions/checkout@v6
1927

@@ -22,8 +30,8 @@ jobs:
2230
with:
2331
go-version-file: "go.mod"
2432

25-
- name: Download dependencies
26-
run: go mod download
33+
- name: Tidy dependencies
34+
run: go mod tidy -diff
2735

2836
- name: Run unit tests
2937
run: script/test

.github/workflows/mcp-diff.yml

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
name: MCP Server Diff
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches: [main]
7+
tags: ['v*']
8+
9+
permissions:
10+
contents: read
11+
12+
jobs:
13+
mcp-diff:
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- name: Check out code
18+
uses: actions/checkout@v6
19+
with:
20+
fetch-depth: 0
21+
22+
- name: Run MCP Server Diff
23+
uses: SamMorrowDrums/mcp-server-diff@v2.3.5
24+
with:
25+
setup_go: "true"
26+
install_command: go mod download
27+
start_command: go run ./cmd/github-mcp-server stdio
28+
env_vars: |
29+
GITHUB_PERSONAL_ACCESS_TOKEN=test-token
30+
configurations: |
31+
[
32+
{"name": "default", "args": ""},
33+
{"name": "read-only", "args": "--read-only"},
34+
{"name": "dynamic-toolsets", "args": "--dynamic-toolsets"},
35+
{"name": "read-only+dynamic", "args": "--read-only --dynamic-toolsets"},
36+
{"name": "toolsets-repos", "args": "--toolsets=repos"},
37+
{"name": "toolsets-issues", "args": "--toolsets=issues"},
38+
{"name": "toolsets-context", "args": "--toolsets=context"},
39+
{"name": "toolsets-pull_requests", "args": "--toolsets=pull_requests"},
40+
{"name": "toolsets-repos,issues", "args": "--toolsets=repos,issues"},
41+
{"name": "toolsets-issues,context", "args": "--toolsets=issues,context"},
42+
{"name": "toolsets-all", "args": "--toolsets=all"},
43+
{"name": "tools-get_me", "args": "--tools=get_me"},
44+
{"name": "tools-get_me,list_issues", "args": "--tools=get_me,list_issues"},
45+
{"name": "toolsets-repos+read-only", "args": "--toolsets=repos --read-only"},
46+
{"name": "toolsets-all+dynamic", "args": "--toolsets=all --dynamic-toolsets"},
47+
{"name": "toolsets-repos+dynamic", "args": "--toolsets=repos --dynamic-toolsets"},
48+
{"name": "toolsets-repos,issues+dynamic", "args": "--toolsets=repos,issues --dynamic-toolsets"},
49+
{
50+
"name": "dynamic-tool-calls",
51+
"args": "--dynamic-toolsets",
52+
"custom_messages": [
53+
{"id": 10, "name": "list_toolsets_before", "message": {"jsonrpc": "2.0", "id": 10, "method": "tools/call", "params": {"name": "list_available_toolsets", "arguments": {}}}},
54+
{"id": 11, "name": "get_toolset_tools", "message": {"jsonrpc": "2.0", "id": 11, "method": "tools/call", "params": {"name": "get_toolset_tools", "arguments": {"toolset": "repos"}}}},
55+
{"id": 12, "name": "enable_toolset", "message": {"jsonrpc": "2.0", "id": 12, "method": "tools/call", "params": {"name": "enable_toolset", "arguments": {"toolset": "repos"}}}},
56+
{"id": 13, "name": "list_toolsets_after", "message": {"jsonrpc": "2.0", "id": 13, "method": "tools/call", "params": {"name": "list_available_toolsets", "arguments": {}}}}
57+
]
58+
}
59+
]
60+
61+
- name: Add interpretation note
62+
if: always()
63+
run: |
64+
echo "" >> $GITHUB_STEP_SUMMARY
65+
echo "---" >> $GITHUB_STEP_SUMMARY
66+
echo "" >> $GITHUB_STEP_SUMMARY
67+
echo "ℹ️ **Note:** Differences may be intentional improvements." >> $GITHUB_STEP_SUMMARY
68+
echo "" >> $GITHUB_STEP_SUMMARY
69+
echo "Common expected differences:" >> $GITHUB_STEP_SUMMARY
70+
echo "- New tools/toolsets added" >> $GITHUB_STEP_SUMMARY
71+
echo "- Tool descriptions updated" >> $GITHUB_STEP_SUMMARY
72+
echo "- Capability changes (intentional improvements)" >> $GITHUB_STEP_SUMMARY

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM golang:1.25.4-alpine AS build
1+
FROM golang:1.25.6-alpine AS build
22
ARG VERSION="dev"
33

44
# Set the working directory

0 commit comments

Comments
 (0)