AGENTS.mdA

AGENTS.md from mr-macharia/mpesa-daraja-skills-and-mcp is an AGENTS.md file: the standing instructions coding agents read in that repo.

Install it, pinned
mdr add mr-macharia/mpesa-daraja-skills-and-mcp/AGENTS.md@git:20261028.0602c87

Pins git:20261028.0602c87 in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 14 of 14 checks passed
Kind
AGENTS.md file
Repository
mr-macharia/mpesa-daraja-skills-and-mcp
Path
AGENTS.md
Versions recorded
5
Latest version
git:20261028.0602c87, committed Oct 28, 2026
First version recorded
Oct 20, 2026
Size
2,297 bytes
Repository stars
3
License
MIT

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

# AGENTS.md

Guidance for AI coding agents working in this repository or on M-Pesa Daraja integrations.

## Repository layout

- `skills/`: Agent Skills (`SKILL.md` per folder). Start with `skills/mpesa-daraja/SKILL.md`, which routes to the right skill for each Daraja API.
- `mcp-server/`: the `mpesa-daraja` MCP server (Python, `src/mpesa_mcp/`).
- `shared/scripts/`: sources for the skills' command-line scripts.
- `tools/sync_skills.py`: generates the scripts inside `skills/*/scripts/`.
- `node/packages/mpesa-daraja/`: the Node library (TypeScript, no runtime dependencies).
- `node/packages/n8n-nodes-daraja-mpesa/`: n8n community nodes built on the Node library.
- `shared/fixtures/`: JSON cases both the Python and Node code must pass. Change a rule here first.

## Rules for M-Pesa work

These rules apply whether or not your agent loads the skills:

1. **`ResponseCode "0"` means accepted, not paid.** Only the callback, STK Query or Transaction Status confirms the outcome.
2. **Never automatically resend a money request whose outcome is unknown** (B2C, B2B, tax, reversal, Ratiba). Query its status first. With the MCP server, reuse the same `idempotency_key`.
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add mr-macharia/mpesa-daraja-skills-and-mcp/AGENTS.md@sha256:b3e25cb64e1ac939

The line at the top of this page pins the label git:20261028.0602c87, 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.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_3sdfbimiy67bklea.svg)](https://markdownregistry.com/a/art_3sdfbimiy67bklea)

1 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 5 versions of this file, between Oct 20, 2026 and Oct 28, 2026, about one every 2 days.

versioncommittedcommitsizeaudit
git:20261028.0602c87 latest2026-10-28 0602c87 2,297 BA view · diff
git:20261027.8da3f3f2026-10-27 8da3f3f 2,291 BA view · diff
git:20261027.8dcdf412026-10-27 8dcdf41 2,207 BA view · diff
git:20261027.7be656f2026-10-27 7be656f 1,951 BA view · diff
git:20261020.f2e8fad2026-10-20 f2e8fad 1,955 BA view

Audit of the latest version

A  14 of 14 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Size between 200 bytes and 200 KB (2297 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

GitHub

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_3sdfbimiy67bklea
GET https://markdownregistry.com/api/v1/resolve?ref=mr-macharia/mpesa-daraja-skills-and-mcp/AGENTS.md
GET https://markdownregistry.com/api/v1/blob/b3e25cb64e1ac939fde14cc31f9b70d739e4a0807bf8d606e5a9591f4ca4a4eb

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: how to write a good AGENTS.md · AGENTS.md vs CLAUDE.md · which agent file does what.

More from mr-macharia/mpesa-daraja-skills-and-mcp

daraja-account-ops SKILL.md skill
mr-macharia/mpesa-daraja-skills-and-mcp · skills/daraja-account-ops/SKILL.md · Uses Safaricom Daraja's Transaction Status, Transaction Reversal and Account Balance APIs, whose results arrive…
git:20261020.f2e8fad · audit A · 3 stars
daraja-agent-storefront SKILL.md skill
mr-macharia/mpesa-daraja-skills-and-mcp · skills/daraja-agent-storefront/SKILL.md · Recipe for an AI agent that sells and takes M-Pesa payments for a store, either inside a developer-built store with its…
git:20261027.d560781 · audit A · 3 stars
daraja-auth SKILL.md skill
mr-macharia/mpesa-daraja-skills-and-mcp · skills/daraja-auth/SKILL.md · Generates, caches and refreshes Safaricom Daraja OAuth 2.0 access tokens from the Consumer Key and Secret…
git:20261021.84f51bc · audit A · 3 stars
daraja-b2b SKILL.md skill
mr-macharia/mpesa-daraja-skills-and-mcp · skills/daraja-b2b/SKILL.md · Implements Safaricom Daraja B2B payments between shortcodes: BusinessPayBill (to a Paybill and account)…
git:20261020.f2e8fad · audit A · 3 stars
daraja-b2c SKILL.md skill
mr-macharia/mpesa-daraja-skills-and-mcp · skills/daraja-b2c/SKILL.md · Implements Safaricom Daraja B2C payouts from a business shortcode to customers' M-Pesa wallets (BusinessPayment…
git:20261020.f2e8fad · audit A · 3 stars
daraja-bill-manager SKILL.md skill
mr-macharia/mpesa-daraja-skills-and-mcp · skills/daraja-bill-manager/SKILL.md · Integrates M-Pesa Bill Manager through Safaricom Daraja. Covers opting a Paybill in, sending single or bulk SMS…
git:20261020.f2e8fad · audit A · 3 stars
daraja-c2b SKILL.md skill
mr-macharia/mpesa-daraja-skills-and-mcp · skills/daraja-c2b/SKILL.md · Implements Safaricom Daraja C2B (Customer-to-Business) for Paybill and Till numbers. Covers registering Validation and…
git:20261020.f2e8fad · audit A · 3 stars
daraja-callbacks SKILL.md skill
mr-macharia/mpesa-daraja-skills-and-mcp · skills/daraja-callbacks/SKILL.md · Builds resilient Safaricom Daraja callback and webhook receivers: STK CallBackURL; C2B Validation and Confirmation…
git:20261021.84f51bc · audit A · 3 stars
daraja-checkout SKILL.md skill
mr-macharia/mpesa-daraja-skills-and-mcp · skills/daraja-checkout/SKILL.md · End-to-end recipe for adding M-Pesa checkout to an existing web or mobile app with STK Push. Works out the stack…
git:20261027.d560781 · audit A · 3 stars
daraja-credentials-security SKILL.md skill
mr-macharia/mpesa-daraja-skills-and-mcp · skills/daraja-credentials-security/SKILL.md · Manages Safaricom Daraja secrets safely (Consumer Key and Secret, M-Pesa Express passkey, initiator password…
git:20261021.84f51bc · audit A · 3 stars
daraja-dynamic-qr SKILL.md skill
mr-macharia/mpesa-daraja-skills-and-mcp · skills/daraja-dynamic-qr/SKILL.md · Generates M-Pesa Dynamic QR codes with Safaricom Daraja for Buy Goods, Paybill, agent withdrawal, send money or…
git:20261020.f2e8fad · audit A · 3 stars
daraja-paybill-collections SKILL.md skill
mr-macharia/mpesa-daraja-skills-and-mcp · skills/daraja-paybill-collections/SKILL.md · End-to-end recipe for collecting payments that customers start themselves on a Paybill or Till (C2B), and matching them…
git:20261027.d560781 · audit A · 3 stars

Every file in mr-macharia/mpesa-daraja-skills-and-mcp

Other files named AGENTS.md

AGENTS.md AGENTS.md file
morluto/rea · AGENTS.md
git:20261102.920d634 · audit A · 433,876 stars
AGENTS.md AGENTS.md file
obra/superpowers · AGENTS.md
git:20261020.b739a8a · audit A · 314,583 stars
AGENTS.md AGENTS.md file
affaan-m/ecc · AGENTS.md
git:20261030.f29e332 · audit A · 299,696 stars
AGENTS.md AGENTS.md file
firecrawl/firecrawl · AGENTS.md
git:20261008.5a75dca · audit A · 199,595 stars
AGENTS.md AGENTS.md file
dietrichgebert/ponytail · AGENTS.md
git:20261008.2a1fe84 · audit A · 185,249 stars
AGENTS.md AGENTS.md file
graphify-labs/graphify · AGENTS.md
git:20260926.98d73fe · audit A · 144,492 stars
AGENTS.md AGENTS.md file
garrytan/gstack · AGENTS.md
git:20261107.ef99eb5 · audit A · 140,694 stars
AGENTS.md AGENTS.md file
juliusbrussee/caveman · AGENTS.md
git:20261106.e45976c · audit A · 118,366 stars

Browse by kind, by grade A, or by owner.