World Monitor
Real-time global intelligence on conflict, markets, energy, trade, shipping and cyber. 100 tools.
Unofficial MCP server for FawryPay Pay-at-Fawry cash payments in Egypt. Not affiliated with Fawry.
Lists are ordered by a usage score (out of 100) built from these parts
| Popularity | 0/80 | GitHub stars or weekly downloads: the larger counts 60, the smaller 20 |
|---|---|---|
| Freshness | 12/12 | Full marks for a release or code change within 30 days |
| Still answering | 0/8 | The cloud endpoint answered at the last check |
| Usage score | 12/100 |
Quality: Passed 3/3 basic checks (shown, not used for ordering) · Momentum: No data yet (Used only on the Trending tab)
Pick the AI app you use, then copy the settings.
Let your AI install it with one sentence
Please install FawryPay cash payments (unofficial). Follow https://mcp.popnx.com/i/mohamedaly-cloud-masr-pay-mcp-unofficial.md, show me the commands and wait for my OK before running them.Paste it into an AI that can work on your computer (such as Claude Code or Cursor). It reads our steps, shows you the commands and waits for your OK. No key, no sign-up. · See the full text your AI reads
Passed 3/3 checks · Runs on your computer · ✓ Commands checked Nov 14, 2026
First: which AI do you use?
Pick your app and the steps appear below.
Works with Claude, with some setup first
You need a FawryPay cash payments (unofficial) key (create it on the maker’s site) · 1 setting(s) to fill in (FAWRY_MERCHANT_CODE) · Install Python (uv) on your computer first (one time) · Only the Claude desktop app (Windows or Mac), not the web or phone
Copy this message into a Claude chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.
Please install the MCP server FawryPay cash payments (unofficial) for Claude on this computer, in this order: 1) Check uv with uv --version. If it is missing, tell me to install it from https://docs.astral.sh/uv/getting-started/installation/; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "mcpServers": { "masr-pay-unofficial": { "command": "uvx", "args": [ "masr-pay-mcp-unofficial" ], "env": { "FAWRY_MERCHANT_CODE": "your-value", "FAWRY_SECURE_KEY": "your-value" } } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) For FAWRY_SECURE_KEY, FAWRY_MERCHANT_CODE, leave "your-value" in place and tell me to paste the real value myself into the file or the app’s field. Never ask me to type a key in chat. 5) Do what we agreed, then check that the FawryPay cash payments (unofficial) tools really show up.This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.
Already installed? Check first · Open Terminal, type this command and press Enter
uv --versionMac: press ⌘ + Space, type Terminal, press Enter
Windows: open Start, type Windows PowerShell, then Open
Not installed: uv has no click-through installer. Copy the one-line command for your system (macOS or Windows) from uv’s official page into Terminal · no separate Python install needed; uv downloads it when required
When it’s done, close Terminal, open it again and run the same command. You should see a version number: uv --version
Install once; it works for everything that needs uv
Open the maker’s site, sign up and create an API key for the next step. Check the maker’s site for pricing and free plans.
How to get a key is in the maker’s README below
These are program settings, not keys. No sign-up needed; fill them in as the maker describes.
FAWRY_MERCHANT_CODE Your FawryPay merchant codeDescriptions are as written by the maker.
SettingsDeveloperEdit Config
{
"mcpServers": {
"masr-pay-unofficial": {
"command": "uvx",
"args": [
"masr-pay-mcp-unofficial"
],
"env": {
"FAWRY_MERCHANT_CODE": "your-value",
"FAWRY_SECURE_KEY": "your-value"
}
}
}
}Paste the key only into the app’s field, never into a chat or to anyone
Use FawryPay cash payments (unofficial) and tell me what you can do for me, then show me one thing✓ If Claude says it is using FawryPay cash payments (unofficial) or shows a FawryPay cash payments (unofficial) tool in the answer, you are connected
The command above works without these. Add them only if you want to change something, following the maker’s description.
FAWRY_ENV mock (default), staging or production · default mockMASR_PAY_ENABLE_DESTRUCTIVE_TOOLS true adds refund and cancel tools (merchant staff only). Default off. · default falseDescriptions are as written by the maker.
Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version
ChatGPT cannot connect FawryPay cash payments (unofficial) yet
FawryPay cash payments (unofficial) runs on your computer, but ChatGPT can only connect servers that run on the web
A · Use an app that can connect FawryPay cash payments (unofficial)
B · Others in Other that work with ChatGPT
Picked from the most used in the same category, only ones that connect by address with no key
Works with Claude Code, with some setup first
You need a FawryPay cash payments (unofficial) key (create it on the maker’s site) · 1 setting(s) to fill in (FAWRY_MERCHANT_CODE) · Install Python (uv) on your computer first (one time)
Copy this message into a Claude Code chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.
Please install the MCP server FawryPay cash payments (unofficial) for Claude Code on this computer, in this order: 1) Check uv with uv --version. If it is missing, tell me to install it from https://docs.astral.sh/uv/getting-started/installation/; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): claude mcp add --scope user masr-pay-unofficial --env FAWRY_MERCHANT_CODE=your-value --env FAWRY_SECURE_KEY=your-value -- uvx masr-pay-mcp-unofficial 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) For FAWRY_SECURE_KEY, FAWRY_MERCHANT_CODE, leave "your-value" in place and tell me to paste the real value myself into the file or the app’s field. Never ask me to type a key in chat. 5) Do what we agreed, then check that the FawryPay cash payments (unofficial) tools really show up.This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.
Already installed? Check first · Open Terminal, type this command and press Enter
uv --versionMac: press ⌘ + Space, type Terminal, press Enter
Windows: open Start, type Windows PowerShell, then Open
Not installed: uv has no click-through installer. Copy the one-line command for your system (macOS or Windows) from uv’s official page into Terminal · no separate Python install needed; uv downloads it when required
When it’s done, close Terminal, open it again and run the same command. You should see a version number: uv --version
Install once; it works for everything that needs uv
Open the maker’s site, sign up and create an API key for the next step. Check the maker’s site for pricing and free plans.
How to get a key is in the maker’s README below
These are program settings, not keys. No sign-up needed; fill them in as the maker describes.
FAWRY_MERCHANT_CODE Your FawryPay merchant codeDescriptions are as written by the maker.
Mac: press Command+Space and type Terminal · Windows: open PowerShell
claude mcp add --scope user masr-pay-unofficial --env FAWRY_MERCHANT_CODE=your-value --env FAWRY_SECURE_KEY=your-value -- uvx masr-pay-mcp-unofficialReplace “your-value” with your key before pressing Enter
Paste the key only into the app’s field, never into a chat or to anyone
You should see FawryPay cash payments (unofficial) listed as connected
Use FawryPay cash payments (unofficial) and tell me what you can do for me, then show me one thing✓ If Claude Code says it is using FawryPay cash payments (unofficial) or shows a FawryPay cash payments (unofficial) tool in the answer, you are connected
The command above works without these. Add them only if you want to change something, following the maker’s description.
FAWRY_ENV mock (default), staging or production · default mockMASR_PAY_ENABLE_DESTRUCTIVE_TOOLS true adds refund and cancel tools (merchant staff only). Default off. · default falseDescriptions are as written by the maker.
Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version
Works with Cursor, with some setup first
You need a FawryPay cash payments (unofficial) key (create it on the maker’s site) · 1 setting(s) to fill in (FAWRY_MERCHANT_CODE) · Install Python (uv) on your computer first (one time)
Copy this message into a Cursor chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.
Please install the MCP server FawryPay cash payments (unofficial) for Cursor on this computer, in this order: 1) Check uv with uv --version. If it is missing, tell me to install it from https://docs.astral.sh/uv/getting-started/installation/; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "mcpServers": { "masr-pay-unofficial": { "command": "uvx", "args": [ "masr-pay-mcp-unofficial" ], "env": { "FAWRY_MERCHANT_CODE": "your-value", "FAWRY_SECURE_KEY": "your-value" } } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) For FAWRY_SECURE_KEY, FAWRY_MERCHANT_CODE, leave "your-value" in place and tell me to paste the real value myself into the file or the app’s field. Never ask me to type a key in chat. 5) Do what we agreed, then check that the FawryPay cash payments (unofficial) tools really show up.This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.
Already installed? Check first · Open Terminal, type this command and press Enter
uv --versionMac: press ⌘ + Space, type Terminal, press Enter
Windows: open Start, type Windows PowerShell, then Open
Not installed: uv has no click-through installer. Copy the one-line command for your system (macOS or Windows) from uv’s official page into Terminal · no separate Python install needed; uv downloads it when required
When it’s done, close Terminal, open it again and run the same command. You should see a version number: uv --version
Install once; it works for everything that needs uv
Open the maker’s site, sign up and create an API key for the next step. Check the maker’s site for pricing and free plans.
How to get a key is in the maker’s README below
These are program settings, not keys. No sign-up needed; fill them in as the maker describes.
FAWRY_MERCHANT_CODE Your FawryPay merchant codeDescriptions are as written by the maker.
In the FawryPay cash payments (unofficial) settings, FAWRY_SECURE_KEY, FAWRY_MERCHANT_CODE is empty; add your key and save
Paste the key only into the app’s field, never into a chat or to anyone
Use FawryPay cash payments (unofficial) and tell me what you can do for me, then show me one thing✓ If Cursor says it is using FawryPay cash payments (unofficial) or shows a FawryPay cash payments (unofficial) tool in the answer, you are connected
The command above works without these. Add them only if you want to change something, following the maker’s description.
FAWRY_ENV mock (default), staging or production · default mockMASR_PAY_ENABLE_DESTRUCTIVE_TOOLS true adds refund and cancel tools (merchant staff only). Default off. · default falseDescriptions are as written by the maker.
Menu names checked against Cursor’s help page on Nov 11, 2026 · your screen may differ slightly by app version
Works with VS Code, with some setup first
You need a FawryPay cash payments (unofficial) key (create it on the maker’s site) · 1 setting(s) to fill in (FAWRY_MERCHANT_CODE) · Install Python (uv) on your computer first (one time)
Copy this message into a VS Code chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.
Please install the MCP server FawryPay cash payments (unofficial) for VS Code on this computer, in this order: 1) Check uv with uv --version. If it is missing, tell me to install it from https://docs.astral.sh/uv/getting-started/installation/; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "servers": { "masr-pay-unofficial": { "type": "stdio", "command": "uvx", "args": [ "masr-pay-mcp-unofficial" ], "env": { "FAWRY_MERCHANT_CODE": "your-value", "FAWRY_SECURE_KEY": "your-value" } } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) For FAWRY_SECURE_KEY, FAWRY_MERCHANT_CODE, leave "your-value" in place and tell me to paste the real value myself into the file or the app’s field. Never ask me to type a key in chat. 5) Do what we agreed, then check that the FawryPay cash payments (unofficial) tools really show up.This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.
Already installed? Check first · Open Terminal, type this command and press Enter
uv --versionMac: press ⌘ + Space, type Terminal, press Enter
Windows: open Start, type Windows PowerShell, then Open
Not installed: uv has no click-through installer. Copy the one-line command for your system (macOS or Windows) from uv’s official page into Terminal · no separate Python install needed; uv downloads it when required
When it’s done, close Terminal, open it again and run the same command. You should see a version number: uv --version
Install once; it works for everything that needs uv
Open the maker’s site, sign up and create an API key for the next step. Check the maker’s site for pricing and free plans.
How to get a key is in the maker’s README below
These are program settings, not keys. No sign-up needed; fill them in as the maker describes.
FAWRY_MERCHANT_CODE Your FawryPay merchant codeDescriptions are as written by the maker.
In the FawryPay cash payments (unofficial) settings, FAWRY_SECURE_KEY, FAWRY_MERCHANT_CODE is empty; add your key and save
Paste the key only into the app’s field, never into a chat or to anyone
Use FawryPay cash payments (unofficial) and tell me what you can do for me, then show me one thing✓ If VS Code says it is using FawryPay cash payments (unofficial) or shows a FawryPay cash payments (unofficial) tool in the answer, you are connected
The command above works without these. Add them only if you want to change something, following the maker’s description.
FAWRY_ENV mock (default), staging or production · default mockMASR_PAY_ENABLE_DESTRUCTIVE_TOOLS true adds refund and cancel tools (merchant staff only). Default off. · default falseDescriptions are as written by the maker.
Menu names checked against VS Code’s help page on Nov 11, 2026 · your screen may differ slightly by app version
Other apps that use MCP, such as Windsurf, Zed or Gemini CLI, each add servers differently. See how in the app list.
JSON settings are under “For developers” below
Claude Code
claude mcp add --scope user masr-pay-unofficial --env FAWRY_MERCHANT_CODE=your-value --env FAWRY_SECURE_KEY=your-value -- uvx masr-pay-mcp-unofficialClaude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"masr-pay-unofficial": {
"command": "uvx",
"args": [
"masr-pay-mcp-unofficial"
],
"env": {
"FAWRY_MERCHANT_CODE": "your-value",
"FAWRY_SECURE_KEY": "your-value"
}
}
}
}Cursor (~/.cursor/mcp.json)
{
"mcpServers": {
"masr-pay-unofficial": {
"command": "uvx",
"args": [
"masr-pay-mcp-unofficial"
],
"env": {
"FAWRY_MERCHANT_CODE": "your-value",
"FAWRY_SECURE_KEY": "your-value"
}
}
}
}VS Code (mcp.json)
{
"servers": {
"masr-pay-unofficial": {
"type": "stdio",
"command": "uvx",
"args": [
"masr-pay-mcp-unofficial"
],
"env": {
"FAWRY_MERCHANT_CODE": "your-value",
"FAWRY_SECURE_KEY": "your-value"
}
}
}
}FAWRY_MERCHANT_CODE required envFAWRY_SECURE_KEY secret required envFAWRY_ENV envMASR_PAY_ENABLE_DESTRUCTIVE_TOOLS envDescriptions are as written by the maker.
These settings are generated from the maker’s registry entry. If the README says otherwise, follow the README.
Based on how this server connects and on each app’s own docs, checked Nov 10, 2026.
Run on your computer in
ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast
Runs on your computer; the tool list appears in your AI app after you install it.
We check information anyone can see; we have not read the code. Checks that do not apply are left out of the count. · Checked Nov 20, 2026
The registry name was verified with the GitHub account mohamedaly-cloud, which owns the repo
Code last changed 19 days ago
Uses MIT
This one runs on your computer; there is no internet endpoint
Runs on your computer and uses local settings instead
Runs on your computer; we can only read tool lists from internet endpoints
No entries on OSV.dev for masr-pay-mcp-unofficial@0.1.0
Checks only this package version, not every dependency · checked Nov 15, 2026
If you made this, paste this code into your README. The badge links back to this page.
[](https://mcp.popnx.com/en/servers/mohamedaly-cloud-masr-pay-mcp-unofficial)Ask, share a tip or report that it does not work. Sorted by what people marked helpful.
No posts yet. Be the first to ask or share.
Posts here are written by users, not the PopNx team.
No reviews yet
Compared with every active server in this category in the registry. Stars count only when the publisher owns the repo.
It passed 3 of 3 applicable basic checks. We have not read the code. Before adding a key or token, see what access the server asks for and use a key with only the permissions you need.
You need to fill in: FAWRY_SECURE_KEY
It runs on your computer. Your AI app starts it when needed, and data does not pass through the maker’s servers (unless it calls an online service itself).
The GitHub repo last changed 19 days ago, and the latest version (0.1.0) reached the registry 19 days ago.
Apps that support MCP, such as Claude Desktop, Claude Code, Cursor and VS Code. You also need Python (uv) on your computer.
In the same category: World Monitor, openstatus, Oh My Posh Validator, Strata, Jitsu
Same category, other makers, commands already checked. Official ones first, then by stars.
Reading a card:↓ Downloads per weeki★ GitHub starsiThree pillars: reviews · checks · usageiUpdated = latest version published to the registryi
Real-time global intelligence on conflict, markets, energy, trade, shipping and cyber. 100 tools.
Manage monitors, status pages, incidents and maintenances in your openstatus workspace.
Validate oh-my-posh configurations and segment snippets against the official schema.
MCP server for progressive tool usage at any scale (see https://klavis.ai)
Manage Jitsu data pipelines: destinations, streams, connections, functions, live events.
| This one FawryPay cash payments (unofficial) | World Monitor | openstatus | Oh My Posh Validator | Strata | Jitsu | |
|---|---|---|---|---|---|---|
| Runs where | Installs on your computer | Runs in the cloud, nothing to install | Runs in the cloud, nothing to install | Runs in the cloud, nothing to install | Runs in the cloud, nothing to install | Runs in the cloud, nothing to install |
| Needs a key | Yes | No | No | No | No | No |
| Add with + in Claude | No | No | No | No | No | No |
| Basic checks | 3/3 | 4/4 | 4/4 | 4/4 | 1/4 | 4/4 |
| License | MIT | AGPL-3.0 | AGPL-3.0 | MIT | Apache-2.0 | MIT |
| Price | No cost listed in the registry | No cost listed in the registry | No cost listed in the registry | No cost listed in the registry | No cost listed in the registry | No cost listed in the registry |
Copied from the maker’s repo as written. PopNx MCP has not reviewed or endorsed it. HTML, images and scripts are removed. Links lead off this site.
An unofficial MCP server that lets an AI assistant take cash payments in Egypt through FawryPay's Pay-at-Fawry.
[Try it in your browser](https://hdodp82c89.execute-api.eu-west-1.amazonaws.com/): chat with Claude while it uses this server against a mock of Fawry (fake money, nothing to install). For example:
Merchant: Charge Ahmed 150 EGP for order 42, he'll pay cash.
Assistant: Done. Ahmed can pay 150.00 EGP at any Fawry outlet with reference 974376251, before 3 Nov.
*(Ahmed pays at a Fawry shop.)*
Merchant: Did Ahmed pay?
Assistant: Yes, order 42 is paid: 150.00 EGP received on 31 Oct at 22:47.
It's for merchants contracted directly with FawryPay, and for the developers and agencies who build sales bots for them. Paymob has an official MCP server; Fawry doesn't, so this one talks to FawryPay's own API and its network of outlets.
Not affiliated with, endorsed by, or supported by Fawry. "Fawry" and "FawryPay" are used
only to describe the API this project talks to. The server never stores credentials, customer
data or funds.
The quickest way is the browser page (Claude Haiku 5.5, limited messages per day). The same public copy runs on AWS against a mock of Fawry (fake merchant, fake money), so you can also point any MCP client that supports Streamable HTTP and custom headers at it:
{
"type": "http", "url": "https://3t8oh2vfxb.execute-api.eu-west-1.amazonaws.com/mcp", "headers": { "X-Fawry-Merchant-Code": "MOCKMERCHANT0001", "X-Fawry-Secure-Key": "mock-secure-key-not-a-real-fawry-key" } }
Or use MCP Inspector: transport Streamable HTTP, that URL, those two headers.
Then ask your assistant to charge someone, and play the customer paying cash at an outlet:
curl -X POST https://ig7kh4i8u8.execute-api.eu-west-1.amazonaws.com/__admin/kiosk-pay/<reference_number>
The demo is public: use made-up names, phones and emails.
sequenceDiagram
participant M as Merchant participant A as AI assistant participant S as This MCP server participant F as FawryPay participant C as Customer M->>A: "Charge Ahmed 150 EGP for order 42" A->>S: create_cash_payment S->>F: signed charge request F-->>S: reference number (signature verified) S-->>A: reference + instructions A-->>M: "Ahmed can pay with reference 974376251" C->>F: pays cash at a Fawry outlet M->>A: "Did Ahmed pay?" A->>S: get_payment_status S->>F: signed status request F-->>S: PAID (signature verified) A-->>M: "Yes, paid at 22:47"
v0.1. Four tools, over stdio locally and over Streamable HTTP on AWS Lambda, built on the official MCP Python SDK v2 (protocol 2026-07-28). Until FawryPay issues sandbox credentials, everything is built and tested against our own mock of the Fawry API. What still needs Fawry's confirmation is listed in docs/decisions.md.
| Tool | What it does | Safety |
|---|---|---|
create_cash_payment | Creates a Pay-at-Fawry reference for an order (amount in EGP, customer mobile/email, expiry in hours, default 72) | |
get_payment_status | Is it paid? Normalized status (awaiting_payment, paid, expired, …) plus Fawry's raw status | read-only |
cancel_unpaid_payment | Cancels a reference before it's paid | destructive, needs confirmation, off by default |
refund_payment | Refunds a paid order (full by default; one refund per order) | destructive, needs confirmation, off by default, max 2,000 EGP per refund |
Refunds and cancellations are off unless the merchant turns them on (MASR_PAY_ENABLE_DESTRUCTIVE_TOOLS=true). Keep them off when the assistant talks to customers (a sales bot): the person saying "yes" to a refund must be the merchant, never the customer being refunded. Turn them on only for an assistant that the merchant or their staff use.
A destructive tool never acts on the first call. That call returns a preview and a confirmation token, which is HMAC-signed, bound to the exact order, amount and reason, and valid for 5 minutes. The action happens only on a second call that carries the token. The host's approval prompt (destructiveHint) also applies, and when the client supports MCP elicitation the server asks the human directly.
Also built in: one redacted JSON audit line per tool call (stderr), a per-payment limit (default 50,000 EGP), refunds capped at the order amount, and Fawry response signatures verified before anything is reported as paid. See docs/threat-model.md.
The server is on PyPI and speaks stdio. With uv installed, a host runs it with uvx masr-pay-mcp-unofficial, no clone needed. Example host entry (the mcpServers format most MCP hosts use), pointed at the local mock:
{
"mcpServers": { "fawry-unofficial": { "command": "uvx", "args": ["masr-pay-mcp-unofficial"], "env": { "FAWRY_ENV": "mock", "FAWRY_MERCHANT_CODE": "MOCKMERCHANT0001", "FAWRY_SECURE_KEY": "mock-secure-key-not-a-real-fawry-key", "MASR_PAY_ENABLE_DESTRUCTIVE_TOOLS": "true" } } } }
Start the mock first: `uvx --from "masr-pay-mcp-unofficial[mock]" python -m mock_fawry`. From a
clone, use .venv/bin/masr-pay-mcp-unofficial (or python -m masr_pay_mcp) as the command instead.
| Env var | Meaning |
|---|---|
FAWRY_MERCHANT_CODE, FAWRY_SECURE_KEY | Required. Read on every call, never stored. |
FAWRY_ENV | mock (default, http://127.0.0.1:8080), staging or production |
FAWRY_BASE_URL | Overrides the URL picked by FAWRY_ENV |
FAWRY_LOG_LEVEL | Default INFO. Logs go to stderr, redacted. The audit log is always on. |
MASR_PAY_ENABLE_DESTRUCTIVE_TOOLS | true adds cancel_unpaid_payment and refund_payment. Default off. |
MASR_PAY_MAX_PAYMENT_EGP | Per-payment limit, default 50000 |
MASR_PAY_MAX_REFUND_EGP | Per-refund limit, default 2000. Larger refunds go through Fawry directly. |
MASR_PAY_CONFIRM_SECRET | HMAC key for confirmation tokens, at least 32 characters. If unset, a random key per process (fine for stdio). The HTTP server requires it, or: |
MASR_PAY_CONFIRM_SECRET_ARN | HTTP server only: read the key from this Secrets Manager secret (what the AWS stack does). |
See docs/inspector.md to watch the raw MCP traffic.
python scripts/demo.py # create 150 EGP for order 42 -> pay -> "paid?" -> refund preview -> confirm
MCP client --HTTPS--> API Gateway (HTTP API, throttled) --> Lambda: MCP server --> Fawry
\-> mock (demo)
- **Endpoint:** `POST https://<api-id>.execute-api.eu-west-1.amazonaws.com/mcp` (the stack's
McpUrl output), Streamable HTTP, stateless.
X-Fawry-Merchant-Code and X-Fawry-Secure-Key. They're used for that request and never stored or logged. For the public demo, use the mock's fake merchant: MOCKMERCHANT0001 / mock-secure-key-not-a-real-fawry-key.GET /__admin/orders), so never put real customer names, phones or emails into it. Use made-up ones, like 01012345678./masr-pay-mcp/masr-pay-mcp/mcp, one JSON line per tool call, kept 30 days.Deploy:
# once, as an AWS admin: GitHub OIDC deploy role, CloudFormation role, permissions boundary, bucket
aws cloudformation deploy --template-file infra/ci-bootstrap.yaml \ --stack-name masr-pay-mcp-ci --capabilities CAPABILITY_NAMED_IAM
sam build && sam deploy --role-arn --s3-bucket python scripts/smoke_remote.py
python -m mock_fawry # http://127.0.0.1:8080, OpenAPI docs at /docs
| Env var | Default |
|---|---|
MOCK_MERCHANT_CODE | MOCKMERCHANT0001 |
MOCK_SECURE_KEY | a built-in fake key |
MOCK_FAWRY_FEES | 0 (EGP added to each order's payment amount) |
MOCK_HOST / MOCK_PORT | 127.0.0.1 / 8080 |
Fawry endpoints (same paths as Fawry): POST /ECommerceWeb/Fawry/payments/charge, GET /ECommerceWeb/Fawry/payments/status/v2, POST /ECommerceWeb/Fawry/payments/refund, POST /ECommerceWeb/api/orders/cancel-unpaid-order.
Mock-only admin endpoints:
| Endpoint | Does |
|---|---|
POST /__admin/kiosk-pay/{referenceNumber} | Simulates the customer paying cash at an outlet |
GET /__admin/orders | Lists all orders |
POST /__admin/reset | Clears all orders |
Order lifecycle in the mock: UNPAID → PAID (kiosk-pay), UNPAID → EXPIRED (after paymentExpiry), UNPAID → CANCELED, PAID → REFUNDED (one refund per order).
python3.12 -m venv .venv && . .venv/bin/activate
pip install -e ".[dev]" pytest ruff check . && ruff format --check .
masr_pay_mcp/server.py the four MCP tools
masr_pay_mcp/web.py the hosted server (Streamable HTTP, for Lambda) masr_pay_mcp/core/confirm.py stateless HMAC confirmation tokens masr_pay_mcp/core/audit.py one structured audit line per tool call masr_pay_mcp/core/guardrails.py payment limit, refund cap masr_pay_mcp/core/redaction.p