Skip to content

Commit fe9cb97

Browse files
authored
Merge branch 'main' into search_files
2 parents df76986 + 1d03a37 commit fe9cb97

33 files changed

+8139
-1771
lines changed

.github/workflows/python.yml

Lines changed: 38 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,45 @@ jobs:
2323
PACKAGES=$(find . -name pyproject.toml -exec dirname {} \; | sed 's/^\.\///' | jq -R -s -c 'split("\n")[:-1]')
2424
echo "packages=$PACKAGES" >> $GITHUB_OUTPUT
2525
26-
build:
26+
test:
2727
needs: [detect-packages]
28+
strategy:
29+
matrix:
30+
package: ${{ fromJson(needs.detect-packages.outputs.packages) }}
31+
name: Test ${{ matrix.package }}
32+
runs-on: ubuntu-latest
33+
steps:
34+
- uses: actions/checkout@v4
35+
36+
- name: Install uv
37+
uses: astral-sh/setup-uv@v3
38+
39+
- name: Set up Python
40+
uses: actions/setup-python@v5
41+
with:
42+
python-version-file: "src/${{ matrix.package }}/.python-version"
43+
44+
- name: Install dependencies
45+
working-directory: src/${{ matrix.package }}
46+
run: uv sync --frozen --all-extras --dev
47+
48+
- name: Check if tests exist
49+
id: check-tests
50+
working-directory: src/${{ matrix.package }}
51+
run: |
52+
if [ -d "tests" ] || [ -d "test" ] || grep -q "pytest" pyproject.toml; then
53+
echo "has-tests=true" >> $GITHUB_OUTPUT
54+
else
55+
echo "has-tests=false" >> $GITHUB_OUTPUT
56+
fi
57+
58+
- name: Run tests
59+
if: steps.check-tests.outputs.has-tests == 'true'
60+
working-directory: src/${{ matrix.package }}
61+
run: uv run pytest
62+
63+
build:
64+
needs: [detect-packages, test]
2865
strategy:
2966
matrix:
3067
package: ${{ fromJson(needs.detect-packages.outputs.packages) }}

.github/workflows/release.yml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -212,10 +212,3 @@ jobs:
212212
--title "Release $VERSION" \
213213
--notes-file RELEASE_NOTES.md
214214
215-
- name: Docker MCP images
216-
uses: peter-evans/repository-dispatch@v3
217-
with:
218-
token: ${{ secrets.DOCKER_TOKEN }}
219-
repository: docker/labs-ai-tools-for-devs
220-
event-type: build-mcp-images
221-
client-payload: '{"ref": "${{ needs.create-metadata.outputs.version }}"}'

.github/workflows/typescript.yml

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,43 @@ jobs:
2222
PACKAGES=$(find . -name package.json -not -path "*/node_modules/*" -exec dirname {} \; | sed 's/^\.\///' | jq -R -s -c 'split("\n")[:-1]')
2323
echo "packages=$PACKAGES" >> $GITHUB_OUTPUT
2424
25-
build:
25+
test:
2626
needs: [detect-packages]
27+
strategy:
28+
matrix:
29+
package: ${{ fromJson(needs.detect-packages.outputs.packages) }}
30+
name: Test ${{ matrix.package }}
31+
runs-on: ubuntu-latest
32+
steps:
33+
- uses: actions/checkout@v4
34+
35+
- uses: actions/setup-node@v4
36+
with:
37+
node-version: 22
38+
cache: npm
39+
40+
- name: Install dependencies
41+
working-directory: src/${{ matrix.package }}
42+
run: npm ci
43+
44+
- name: Check if tests exist
45+
id: check-tests
46+
working-directory: src/${{ matrix.package }}
47+
run: |
48+
if npm run test --silent 2>/dev/null; then
49+
echo "has-tests=true" >> $GITHUB_OUTPUT
50+
else
51+
echo "has-tests=false" >> $GITHUB_OUTPUT
52+
fi
53+
continue-on-error: true
54+
55+
- name: Run tests
56+
if: steps.check-tests.outputs.has-tests == 'true'
57+
working-directory: src/${{ matrix.package }}
58+
run: npm test
59+
60+
build:
61+
needs: [detect-packages, test]
2762
strategy:
2863
matrix:
2964
package: ${{ fromJson(needs.detect-packages.outputs.packages) }}

.vscode/settings.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{}

README.md

Lines changed: 255 additions & 38 deletions
Large diffs are not rendered by default.

SECURITY.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Security Policy
22
Thank you for helping us keep our MCP servers secure.
33

4-
These servers are maintained by [Anthropic](https://www.anthropic.com/) as part of the Model Context Protocol project.
4+
The **reference servers** in this repo are maintained by [Anthropic](https://www.anthropic.com/) as part of the Model Context Protocol project.
55

66
The security of our systems and user data is Anthropic’s top priority. We appreciate the work of security researchers acting in good faith in identifying and reporting potential vulnerabilities.
77

0 commit comments

Comments
 (0)