Skip to content

Commit 9bf56d9

Browse files
committed
ci: add MCP server auto-deploy and fix observability config
Add head_sampling_rate to observability config and add deploy-mcp job to CI so the MCP server deploys automatically on push.
1 parent 51a1225 commit 9bf56d9

File tree

2 files changed

+24
-1
lines changed

2 files changed

+24
-1
lines changed

.github/workflows/deploy.yml

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,11 @@ on:
66
branches: [main]
77
paths:
88
- "apps/web/**"
9+
- "apps/mcp-server/**"
10+
- "packages/shared/**"
911

1012
jobs:
11-
deploy:
13+
deploy-web:
1214
runs-on: ubuntu-latest
1315
permissions:
1416
contents: read
@@ -30,3 +32,23 @@ jobs:
3032
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
3133
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
3234
command: pages deploy apps/web/dist --project-name=ooxml-dev
35+
36+
deploy-mcp:
37+
runs-on: ubuntu-latest
38+
permissions:
39+
contents: read
40+
deployments: write
41+
42+
steps:
43+
- uses: actions/checkout@v6
44+
45+
- uses: oven-sh/setup-bun@v2
46+
47+
- run: bun install
48+
49+
- name: Deploy MCP Server
50+
uses: cloudflare/wrangler-action@v3
51+
with:
52+
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
53+
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
54+
workingDirectory: apps/mcp-server

apps/mcp-server/wrangler.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ compatibility_flags = ["nodejs_compat"]
99

1010
[observability]
1111
enabled = true
12+
head_sampling_rate = 1
1213

1314
[vars]
1415
# Non-secret environment variables can go here

0 commit comments

Comments
 (0)