Skip to content

Commit cc45f6a

Browse files
committed
Update CI and Dockerfile for upstream args
1 parent d73d6be commit cc45f6a

3 files changed

Lines changed: 4 additions & 3 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
- name: Run and Test Docker Container
4141
run: |
4242
# 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
43+
docker run --name proxy -d -p 4000:4000 structura-proxy --key mock --secret mock --toolsets payments stdio
4444
4545
# Wait for boot
4646
sleep 5
@@ -52,7 +52,7 @@ jobs:
5252
docker rm -f proxy
5353
5454
# 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
55+
echo '{"jsonrpc":"2.0","method":"tools/list","id":1}' | docker run -i structura-proxy --key mock --secret mock --toolsets payments stdio > response.txt
5656
5757
cat response.txt
5858
grep -q 'fetch_all_payments' response.txt

‎Dockerfile‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,5 @@ ENV STRUCTURA_POLICY_PATH="/app/policy.yaml"
4848

4949
EXPOSE 4000
5050

51-
CMD ["node", "packages/proxy/dist/index.js", "stdio"]
51+
ENTRYPOINT ["node", "packages/proxy/dist/index.js"]
52+
CMD ["stdio"]

‎run.log‎

-1.25 KB
Binary file not shown.

0 commit comments

Comments
 (0)