# EPS for AI agents

Everything an AI coding agent needs to integrate Eko Platform Services, auto-generated from our API source of truth.

## Quick start — how to build with AI

1. **Get an AI coding agent** — Claude Code, Cursor, Codex, GitHub Copilot, or any MCP-compatible tool.
2. **Add EPS to your agent (one-time)** — Claude Code and Codex install the EPS plugin; other tools wire the MCP server or a context pack. Exact steps below.
3. **Ask in plain English** — sample prompts:
   - **Find the right API:** "Which EPS API should I use to verify a customer's bank account?"
   - **Integrate an API:** "Integrate EPS PAN verification into my app, end to end, and test it in the sandbox."
   - **Fix a bug:** "My EPS money transfer call fails with error 401. Find the cause and fix it."

## Plugin install (Claude Code & Codex)

Two-step native plugin install — add the marketplace, then install the `eps` plugin (skills + `/eps` command; wires the MCP automatically on Claude Code). Other agents: see the manual install matrix below.

**Claude Code**

```bash
/plugin marketplace add ekoindia/eps-platform
/plugin install eps@ekoindia
```
> Run both inside the Claude Code prompt. Installs the skills and the /eps command, and wires the eps MCP automatically. The manual MCP command below is only needed if you skip the plugin.

**Codex**

```bash
codex plugin marketplace add ekoindia/eps-platform
codex plugin add eps@ekoindia
```
> Installs the eps skills. Codex does not yet auto-launch the plugin's bundled MCP server, so also run the MCP install command below to get the eps tools.

## Context packs (fallback)
Append-able EPS sections for agents without MCP or skills support — add to your existing instruction file, don't replace it:
| Target | File |
| --- | --- |
| Any agent (AGENTS.md) | https://eps.eko.in/agent/AGENTS.md |
| Claude Code (CLAUDE.md) | https://eps.eko.in/agent/CLAUDE.md |
| Cursor (.cursorrules) | https://eps.eko.in/agent/.cursorrules |
| GitHub Copilot | https://eps.eko.in/agent/copilot-instructions.md |

## Local MCP server

```bash
npx -y @ekoindia/eps-context-mcp@latest
```

## Offline mock server

Pairs with the MCP for offline testing — the mock server replays golden sample responses (with recipe-aware error branching) so agents develop and test without ever touching the live API:

```bash
npx -y @ekoindia/eps-mock-server
```

It mirrors the real EPS paths — point your EPS base URL at `http://localhost:4010`, then append `?eps_scenario=<code>` (a documented example's envelope `status` or `response_type_id`) to force a documented error branch.

## Manual install matrix (other agents)
EPS rides on open standards (MCP + `AGENTS.md`-style context packs), so it works in any modern coding agent. Wire it into each harness:
| Harness | MCP install | Pack file | Placement |
| --- | --- | --- | --- |
| Claude Code | `claude mcp add eps --scope project -- npx -y @ekoindia/eps-context-mcp@latest` | [CLAUDE.md](https://eps.eko.in/agent/CLAUDE.md) | `./CLAUDE.md` |
| Codex | `codex mcp add eps npx -y @ekoindia/eps-context-mcp@latest` | [AGENTS.md](https://eps.eko.in/agent/AGENTS.md) | `./AGENTS.md` |
| Cursor | `.cursor/mcp.json` | [.cursorrules](https://eps.eko.in/agent/.cursorrules) | `./.cursorrules` |
| Antigravity | `~/.gemini/config/mcp_config.json` | [AGENTS.md](https://eps.eko.in/agent/AGENTS.md) | `./GEMINI.md` |
| GitHub Copilot | `code --add-mcp '{"name":"eps","command":"npx","args":["-y","@ekoindia/eps-context-mcp@latest"]}'` | [copilot-instructions.md](https://eps.eko.in/agent/copilot-instructions.md) | `./.github/copilot-instructions.md` |
| OpenCode | `opencode.json` | [AGENTS.md](https://eps.eko.in/agent/AGENTS.md) | `./AGENTS.md` |
| Kiro | `.kiro/settings/mcp.json` | [AGENTS.md](https://eps.eko.in/agent/AGENTS.md) | `.kiro/steering/eps.md` |
| Zed | `Zed settings.json` | [AGENTS.md](https://eps.eko.in/agent/AGENTS.md) | — |
| Aider | — | [AGENTS.md](https://eps.eko.in/agent/AGENTS.md) | `CONVENTIONS.md` |
| JetBrains AI | `MCP config` | [AGENTS.md](https://eps.eko.in/agent/AGENTS.md) | — |
| Others | `MCP config` | [AGENTS.md](https://eps.eko.in/agent/AGENTS.md) | — |

## Machine bundle
- Canonical: https://eps.eko.in/agent/eps.json
- Index: https://eps.eko.in/agent/index.json
- Per-API: https://eps.eko.in/agent/api/<slug>.json
- OpenAPI: https://eps.eko.in/openapi.json

## SDKs & tools
| Tool | Link |
| --- | --- |
| npm i @ekoindia/eps-sdk (npm — Node.js) | https://www.npmjs.com/package/@ekoindia/eps-sdk |
| composer require ekoindia/eps-sdk (Packagist — PHP) | https://packagist.org/packages/ekoindia/eps-sdk |
| pip install eps-sdk (PyPI — Python) | https://pypi.org/project/eps-sdk/ |
| go get github.com/ekoindia/eps-sdk-go (Go modules) | https://pkg.go.dev/github.com/ekoindia/eps-sdk-go |
| com.github.ekoindia:eps-sdk-java (JitPack — Java) | https://jitpack.io/#ekoindia/eps-sdk-java |
| Postman collection | https://eps.eko.in/agent/eps.postman_collection.json |
Backend-only signed SDKs (HMAC baked in); keep `access_key` server-side only.

## Recipes
- **[DMT (Fino) — Send Money](https://eps.eko.in/recipe/dmt-fino-send-money.md)** — Full Fino DMT money-transfer flow: look up the sender, onboard and biometric-eKYC them if new, pick or add the recipient, then send an OTP-verified transfer.
- **[AePS (Fingpay) — Cash Withdrawal](https://eps.eko.in/recipe/aeps-fingpay-cash-withdrawal.md)** — Aadhaar-enabled cash withdrawal: one-time agent activation and eKYC, daily KYC, a transaction OTP for amounts above ₹5,000, then the biometric withdrawal.
- **[UPI Cash Withdrawal](https://eps.eko.in/recipe/upi-cash-withdrawal.md)** — Generate a single-use UPI QR for the withdrawal amount, show it to the customer, then poll the status API on the returned schedule — hand over cash only when `tx_status` is "0".
- **[BBPS — Pay a Utility Bill](https://eps.eko.in/recipe/bbps-bill-payment.md)** — Pick a biller by category, read the fields it requires, fetch the live bill, then pay the exact amount. Get Locations is an optional extra filter on the biller list, and UPPCL (operator 190) additionally needs a district_discome from Get District Discome — neither is a step here because neither applies to every biller.
- **[BBPS — Prepaid Mobile / DTH Recharge](https://eps.eko.in/recipe/bbps-mobile-recharge.md)** — Detect the operator and circle from the customer's mobile number, read the operator's input fields, list the available plans, then submit the chosen plan as a payment.
