Skip to content

Commit e1b25e9

Browse files
committed
Fix README deployment claim and test container in CI
1 parent e4022ff commit e1b25e9

2 files changed

Lines changed: 21 additions & 9 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,24 @@ jobs:
3535
# We don't have a chain.test.ts yet but adding placeholder for adversarial suite
3636
3737
- name: Build Docker Image
38-
run: |
39-
docker build --progress=plain -t structura-proxy . > build.log 2>&1 || true
38+
run: docker build -t structura-proxy .
4039

41-
- name: Upload Docker Log
42-
if: always()
43-
uses: actions/upload-artifact@v4
44-
with:
45-
name: docker-build-log
46-
path: build.log
40+
- name: Run and Test Docker Container
41+
run: |
42+
# 1. Start in background to test API
43+
docker run --name proxy -d -p 4000:4000 -e RZP_KEY_ID=mock -e RZP_KEY_SECRET=mock structura-proxy
44+
45+
# Wait for boot
46+
sleep 5
47+
48+
# Check API
49+
curl -f http://localhost:4000/stats
50+
51+
# Clean up background container
52+
docker rm -f proxy
53+
54+
# 2. Test stdio MCP interaction directly via pipe
55+
echo '{"jsonrpc":"2.0","method":"tools/list","id":1}' | docker run -i -e RZP_KEY_ID=mock -e RZP_KEY_SECRET=mock structura-proxy > response.txt
56+
57+
cat response.txt
58+
grep -q 'fetch_all_payments' response.txt

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ structura/
6060
- **Approval results aren't relayed back to the agent:** When an agent is placed in `REQUIRE_APPROVAL`, they get an immediate error (pending review). When human approval happens minutes later, the action executes against Razorpay, but the result is not pushed to the now-disconnected MCP client.
6161
- **No dashboard auth:** The API is unprotected, relying on network-layer isolation.
6262
- **Tamper-evident, not tamper-proof:** An attacker with unrestricted DB access can rewrite the entire hash-chain from scratch.
63-
- **Free-tier deployment's disk persistence:** The live deployment runs on a Render Web Service free-tier. **It does not support persistent disks.** `structura.db` will be wiped on every redeploy, sleep, or wake cycle.
63+
- **Free-tier deployment's disk persistence:** Not yet deployed to a persistent host - verified via Docker build in CI; live URL pending. (When deployed to free tiers like Render Web Service, it does not support persistent disks, meaning `structura.db` will be wiped on every redeploy or sleep cycle.)
6464
- **No /metrics Prometheus endpoint:** Only a simple `/stats` JSON endpoint exists.
6565

6666
## Setup / running locally

0 commit comments

Comments
 (0)