-
Notifications
You must be signed in to change notification settings - Fork 1
76 lines (62 loc) · 1.9 KB
/
Copy pathtest-bundle.yml
File metadata and controls
76 lines (62 loc) · 1.9 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
name: Test Bundle
permissions:
contents: read
on:
pull_request:
branches: [ main ]
workflow_dispatch:
jobs:
test-bundle:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Install dependencies
run: |
# Install MCPB tool globally
npm install -g @anthropic-ai/mcpb
# Install project dependencies
npm ci
- name: Build project
run: |
npm run build
- name: Test MCP Bundle creation
run: |
# Test bundle creation with official mcpb tool
mcpb pack .
- name: Verify bundle
run: |
# Verify bundle file exists
if [ -f "adsb-mcp-server.mcpb" ]; then
echo "✅ Bundle file created successfully"
ls -la adsb-mcp-server.mcpb
# Check bundle size
BUNDLE_SIZE=$(stat -c%s "adsb-mcp-server.mcpb")
echo "Bundle size: $BUNDLE_SIZE bytes"
# Verify contents
echo "Bundle contents:"
unzip -l adsb-mcp-server.mcpb
# Verify manifest exists
if unzip -l adsb-mcp-server.mcpb | grep -q "manifest.json"; then
echo "✅ Manifest found in bundle"
else
echo "❌ Manifest not found in bundle"
exit 1
fi
# Verify compiled JavaScript exists
if unzip -l adsb-mcp-server.mcpb | grep -q "dist/src/readsb_mcp_server.js"; then
echo "✅ Compiled server found in bundle"
else
echo "❌ Compiled server not found in bundle"
exit 1
fi
else
echo "❌ Bundle file not created"
exit 1
fi
- name: Clean up
run: |
rm -f adsb-mcp-server.mcpb