# RTIE Platform — AGENTS.md Snippet

Add this section to your project's `AGENTS.md` file (Codex startup context):

---

## RTIE Platform

This project is built on [RTIE](https://rtie.ai) — a multi-tenant realtime intelligence runtime.

### MCP server

All RTIE module APIs are available as MCP tools via `https://mcp.rtie.ai/mcp`.
Authenticate with `Authorization: Bearer ${RTIE_API_KEY}`.

### SDK

```typescript
import { createClient } from "@rtie/sdk";
const rtie = createClient({ apiKey: process.env.RTIE_API_KEY! });
```

### Key rules for agents

1. Never call Supabase, SpacetimeDB, or Cloudflare APIs directly — use @rtie/sdk or MCP tools
2. Run migrations: `source ~/.zshrc && bun db:migrate` (never Supabase CLI)
3. Deploy: `source ~/.zshrc && bunx wrangler deploy` (never Railway/Vercel/AWS)
4. Every new module table needs `context_id` referencing the Context Graph
5. Modules emit events — don't query other modules' tables directly

### Core MCP tools

- `list_rooms`, `create_room`, `activate_room` — room lifecycle
- `get_presence` — who's in a room
- `send_chat_message` — post to a room
- `create_auction`, `start_auction`, `close_auction` — auction lifecycle
- `auction_place_bid` (requires human confirmation), `listing_buy_now` — buyer actions
- `ingest_signal`, `get_rules`, `set_rules` — Action Engine
- `create_webhook_endpoint`, `list_webhook_deliveries` — webhooks

### Context

- Docs: https://docs.rtie.ai
- AI tools: https://docs.rtie.ai/ai-tools
- RTIE.md: https://rtie.ai/RTIE.md (full context file)
