# ShaBaas Pay MCP Server

ShaBaas Pay MCP lets AI agents securely create PayTo agreements, initiate payments, and check statuses via structured tools. Authenticate with your ShaBaas Pay API key and control tool access from th…

## Quick Start

```bash
# Connect this server (installs CLI if needed)
npx -y @smithery/cli@latest mcp add bilalrana344/ShaBaas_Pay_MCP_Server

# Browse available tools
npx -y @smithery/cli@latest tool list bilalrana344/ShaBaas_Pay_MCP_Server

# Get full schema for a tool
npx -y @smithery/cli@latest tool get bilalrana344/ShaBaas_Pay_MCP_Server get_payment_agreement

# Call a tool
npx -y @smithery/cli@latest tool call bilalrana344/ShaBaas_Pay_MCP_Server get_payment_agreement '{}'
```

## Direct MCP Connection

Endpoint: `https://shabaaspay-mcp.run.tools`

**Required config:**
- `api_key` (header) — API key for authenticating requests to the ShabaasPay MCP server. Paste your ShabaasPay API key.

## Tools (5)

- `get_payment_agreement` — Retrieve payment agreement details with AI insights. Remote MCP (HTTP): session is authenticated via OAuth or Authoriza…
- `create_payment_agreement` — Create a new payment agreement. Remote MCP (HTTP): session is authenticated via OAuth or Authorization header—do not as…
- `initiate_payment` — Initiate a payment against an agreement. Remote MCP (HTTP): session is authenticated via OAuth or Authorization header—…
- `get_payment_initiation` — Retrieve payment initiation by ID. Remote MCP (HTTP): session is authenticated via OAuth or Authorization header—do not…
- `get_auth_token` — Get ShaBaas API authorization token (non-production helper). Remote MCP (HTTP): session is authenticated via OAuth or A…

```bash
# Get full input/output schema for a tool
npx -y @smithery/cli@latest tool get bilalrana344/ShaBaas_Pay_MCP_Server <tool-name>
```

## Prompts (2)

- `create_payto_agreement` (payer_name, pay_id, maximum_amount, frequency) — Draft parameters for a new PayTo agreement, then call create_payment_agreement with validated fields.
- `check_payment_status` (payment_agreement_id, payment_initiation_id) — Given an agreement or initiation ID, retrieve status and summarize next actions for the user.
