daraja-sandbox-setup SKILL.md skillA
daraja-sandbox-setup from mr-macharia/mpesa-daraja-skills-and-mcp is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add mr-macharia/mpesa-daraja-skills-and-mcp/daraja-sandbox-setup@git:20261021.84f51bcPins git:20261021.84f51bc in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- mr-macharia/mpesa-daraja-skills-and-mcp
- Path
skills/daraja-sandbox-setup/SKILL.md- Versions recorded
- 5
- Latest version
- git:20261021.84f51bc, committed Oct 21, 2026
- First version recorded
- Oct 19, 2026
- Size
- 3,739 bytes
- Repository stars
- 3
- License
- MIT
Sets up a Safaricom Daraja sandbox from scratch: creating the developer account and app with the right products, finding test credentials (shortcodes, passkey, initiator, certificate), writing the .env file, exposing callbacks through a tunnel, smoke testing each API, and running the production go-live checklist. Use when starting a new M-Pesa integration, when a sandbox setup is broken, or when preparing to go live.
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# Daraja sandbox setup and go-live ## 1. Create the app 1. Sign in at `https://developer.safaricom.co.ke/`. 2. Open **My Apps → Create new app** and select every product you need: M-Pesa Express, C2B, B2C, B2B, Transaction Status, Account Balance, Reversal, Dynamic QR, M-Pesa Ratiba, Bill Manager, Tax Remittance and so on. Calling an API whose product is not selected fails, even with a valid token. 3. Copy the **Consumer Key** and **Consumer Secret** into `.env`. ## 2. Test credentials These are on the portal's **Test Credentials** and simulator pages. Read them from the portal: they change from time to time, so don't hardcode them in docs. | Item | Where / typical value | |---|---| | M-Pesa Express shortcode | `174379` | | M-Pesa Express passkey | Simulator page (a public test passkey) | | C2B / B2C / B2B shortcodes | Test Credentials page (`600xxx`) | | Test MSISDN | `254708374149`, or your own Safaricom line to receive a real STK prompt | | Initiator name and password | Test Credentials page | | SecurityCredential | Generate it with the test credentials page tool or `scripts/security_credential.py` and the **sandbox** certificate | ## 3. `.env` template ```dotenv …
Read the whole file at its exact version.
How to install
mdr add mr-macharia/mpesa-daraja-skills-and-mcp/daraja-sandbox-setup@sha256:bca1ecf5c27d6bf9The line at the top of this page pins the label git:20261021.84f51bc, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_x43occuw6by2dngj)
1 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 5 versions of this file, between Oct 19, 2026 and Oct 21, 2026, more than one a day.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20261021.84f51bc latest | 2026-10-21 | 84f51bc | 3,739 B | A | view · diff |
| git:20261020.f2e8fad | 2026-10-20 | f2e8fad | 3,731 B | A | view · diff |
| git:20261020.7cb1e56 | 2026-10-20 | 7cb1e56 | 3,743 B | A | view · diff |
| git:20261020.312e4eb | 2026-10-20 | 312e4eb | 3,741 B | A | view · diff |
| git:20261019.9e3c915 | 2026-10-19 | 9e3c915 | 3,787 B | A | view |
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (3739 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
mr-macharia/mpesa-daraja-skills-and-mcp · 3 stars · license MIT · pushed 2026-11-03 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_x43occuw6by2dngj GET https://markdownregistry.com/api/v1/resolve?ref=mr-macharia/mpesa-daraja-skills-and-mcp/daraja-sandbox-setup GET https://markdownregistry.com/api/v1/blob/bca1ecf5c27d6bf9794b74bfbc6532ec6c0d05d0295b49ac49a7f2a295819b24
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.