# AGENTS.md - Bippsi

Bippsi provides public discovery, A.I. Certified site tooling, account APIs, and AI Actions. Prefer structured APIs and MCP over HTML scraping.

## Discovery

- Unified site manifest: `https://bippsi.com/bippsi-unified.md`
- MCP: `https://bippsi.com/api/v1/mcp`
- MCP manifest: `https://bippsi.com/.well-known/mcp.json`
- OpenAPI: `https://bippsi.com/openapi.json`
- Human API documentation: `https://bippsi.com/api-docs`

Public discovery tools do not require authentication. User data, writes, scans for owned sites, deployment, and financial state require explicit scoped authority.

## Credentials

- Bippsi connections use `bippsi_` followed by 64 lowercase hexadecimal characters for scoped account and app operations.
- `actions:pay` allows eligible Action Credit operations on that same connection, within its effective per-action and daily caps.
- Valid legacy `bippsi_action_` credentials remain compatible only with their original read/execute authority, site restrictions and caps. They do not become general account credentials.
- Never place credentials in URLs, prompts, generated site files, logs, or public repositories.

Manage connected AIs and Basic API connections at `https://bippsi.com/ai-connection?tab=access`. Account policy is the ceiling; per-connection settings can only restrict it. Off or revoked connections cannot spend.

## AI Actions

AI Actions use USD-denominated, app-restricted Action Credits.

- Execution endpoint: `POST https://bippsi.com/api/v1/ai-actions`
- Balance summary: `GET https://bippsi.com/api/v1/ai-actions`
- Merchant configuration: `GET https://bippsi.com/api/v1/ai-actions/config`
- Buyer maximum: `X-Bippsi-Max-Action-USD`
- Money fields: integer `amount_micro_usd` and `price_micro_usd`
- Idempotency: each action uses a stable `action_ref`; retries must preserve it

The merchant authenticates independently through a signed A.I. Certified request or an Action Connector credential. The buyer authenticates with an `actions:pay` connection or a valid compatible legacy Action credential. A successful merchant response may include an AI Action result; a failed downstream request must use the merchant-authorized refund operation.

Agents must never increase a user's maximum, retry an insufficient balance in a loop, substitute a different site, or treat spending permission as unrelated account authority.

## MCP

MCP public tools: `scan_site`, `list_pages`, `get_certification_status`, `get_api_endpoints`, `list_resources`, and `get_resource`.

Standard account tools: `whoami`, `list_sites`, `start_site_scan`, `get_site_scan`, and `deploy_ai_files`.

Action Credit tool: `get_action_credit_balance` with `actions:pay`. Compatible legacy credentials retain their existing read permission.

## Safety

- Respect `robots.txt`, rate limits, account context, and capability scopes.
- Do not bypass human verification, reauthentication, consent, or payment limits.
- Do not infer private data from public registry records.
- Treat HTTP 401, 403, 409, 410, 422, and 429 responses as terminal until the human or system state changes.
- On HTTP 402, report the required USD amount and current limit to the user. Do not loop.

Security and privacy reports: `https://bippsi.com/contact`.
