-
Notifications
You must be signed in to change notification settings - Fork 44
125 lines (105 loc) · 3.14 KB
/
cdk-checks.yml
File metadata and controls
125 lines (105 loc) · 3.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
name: Example Servers Checks
on:
workflow_call:
jobs:
check_python_servers:
name: Python - ${{ matrix.server }}
runs-on: ubuntu-latest
permissions:
contents: read
timeout-minutes: 15
strategy:
fail-fast: true
matrix:
server:
- time
- mcpdoc
- dad-jokes
- book-search
- zen
- sns-sqs
steps:
- uses: actions/checkout@v4
- name: "Set up Typescript"
uses: actions/setup-node@v4
with:
node-version: 24
- name: "Set up Python"
uses: actions/setup-python@v5
with:
python-version-file: "src/python/.python-version"
- name: Install CDK CLI
run: npm install -g aws-cdk
- name: Install dependencies
run: pip install -r requirements.txt
working-directory: ./examples/servers/${{ matrix.server }}
- name: Synthesize CDK stack
run: cdk synth --app 'python3 cdk_stack.py'
working-directory: ./examples/servers/${{ matrix.server }}
env:
CDK_DEFAULT_ACCOUNT: "000000000000"
check_typescript_servers:
name: TypeScript - ${{ matrix.server }}
runs-on: ubuntu-latest
permissions:
contents: read
timeout-minutes: 15
strategy:
fail-fast: false
matrix:
include:
- server: weather-alerts
app: weather-alerts-mcp-server
- server: cat-facts
app: cat-facts-mcp-server
- server: dog-facts
app: dog-facts-mcp-server
- server: dictionary
app: dictionary-mcp-server
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 24
- name: Install CDK CLI
run: npm install -g aws-cdk
- name: Build and link local package
run: |
npm ci
npm run build
npm link
working-directory: ./src/typescript
- name: Install dependencies
run: |
npm ci
npm link @aws/run-mcp-servers-with-aws-lambda
working-directory: ./examples/servers/${{ matrix.server }}
- name: Build
run: npm run build
working-directory: ./examples/servers/${{ matrix.server }}
- name: Synthesize CDK stack
run: cdk synth --app 'node lib/${{ matrix.app }}.js'
working-directory: ./examples/servers/${{ matrix.server }}
env:
CDK_DEFAULT_ACCOUNT: "000000000000"
check_auth_stack:
name: TypeScript - auth
runs-on: ubuntu-latest
permissions:
contents: read
timeout-minutes: 15
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 24
- name: Install CDK CLI
run: npm install -g aws-cdk
- name: Install dependencies
run: npm ci
working-directory: ./examples/servers/auth
- name: Build
run: npm run build
working-directory: ./examples/servers/auth
# Note: This test intentionally does not try to synthesize the auth stack,
# because it requires real credentials to look up a Route53 hosted zone