66 types : [opened, synchronize, reopened]
77 paths :
88 - " crates/wrapper/**"
9- - " mcp-servers/go /fast-time-server/**"
9+ - " mcp-servers/rust /fast-time-server/**"
1010 - " Cargo.toml"
1111 - " Cargo.lock"
1212 - " rust-toolchain.toml"
@@ -123,40 +123,33 @@ jobs:
123123 -H "Authorization: Bearer ${{ steps.generate_jwt.outputs.token }}" \
124124 -H "Content-Type: application/json"
125125
126- - name : Setup Go
127- uses : actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
128- with :
129- go-version : " 1.23"
130- cache-dependency-path : mcp-servers/go/fast-time-server/go.sum
131- cache : true
132-
133126 - name : Build fast-time-server
134- working-directory : mcp-servers/go /fast-time-server
127+ working-directory : mcp-servers/rust /fast-time-server
135128 run : |
136- go build -o fast-time-server .
137- chmod +x fast-time-server
129+ cargo build --release
130+ chmod +x target/release/ fast-time-server
138131
139132 - name : Start fast-time-server
140133 run : |
141134 pkill -9 -f "fast-time-server" 2>/dev/null || true
142135 sleep 1
143136
144- nohup mcp-servers/go/fast-time-server/fast-time-server \
145- -transport=dual -listen=0.0.0.0 -port=8080 -log-level=info \
137+ BIND_ADDRESS=0.0.0.0:8880 RUST_LOG=info \
138+ nohup mcp-servers/rust/fast-time-server/target/release/fast-time-server \
146139 > fast-time-server.log 2>&1 &
147140 echo $! > fast-time-server.pid
148141
149142 echo "Waiting for fast-time-server..."
150143 for i in {1..30}; do
151- if curl -s http://localhost:8080 /health >/dev/null 2>&1; then
144+ if curl -s http://localhost:8880 /health >/dev/null 2>&1; then
152145 echo "fast-time-server is up!"
153146 break
154147 fi
155148 echo "Waiting for fast-time-server... (attempt $i)"
156149 sleep 2
157150 done
158151
159- if ! curl -s http://localhost:8080 /health >/dev/null 2>&1; then
152+ if ! curl -s http://localhost:8880 /health >/dev/null 2>&1; then
160153 echo "ERROR: fast-time-server failed to start"
161154 cat fast-time-server.log
162155 exit 1
@@ -167,7 +160,7 @@ jobs:
167160 run : |
168161 TOKEN="${{ steps.generate_jwt.outputs.token }}"
169162
170- if ! curl -s http://localhost:8080 /health >/dev/null 2>&1; then
163+ if ! curl -s http://localhost:8880 /health >/dev/null 2>&1; then
171164 echo "ERROR: fast-time-server is not running"
172165 cat fast-time-server.log
173166 exit 1
@@ -180,7 +173,7 @@ jobs:
180173 -H "Content-Type: application/json" \
181174 -d '{
182175 "name": "fast_time",
183- "url": "http://localhost:8080/http ",
176+ "url": "http://localhost:8880/mcp ",
184177 "transport": "STREAMABLEHTTP"
185178 }')
186179 echo "Gateway response: $GATEWAY_RESPONSE"
0 commit comments