We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/ChiR24/Unreal_mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
AGENTS.md•1.09 kB
# src/automation
WebSocket bridge client and protocol handling.
## OVERVIEW
Manages connection to Unreal Engine and provides a promise-based API for requests.
## WHERE TO LOOK
| Task | File | Notes |
|------|------|-------|
| Bridge Client | `bridge.ts` | Main AutomationBridge class |
| Connection | `connection-manager.ts` | Reconnect logic, heartbeat |
| Handshake | `handshake.ts` | Protocol version negotiation |
| Protocol Logic | `message-handler.ts` | JSON-RPC frame processing |
## CONVENTIONS
- **Request Tracking**: Every request must have a unique ID tracked in `request-tracker.ts`.
- **Handshake Protocol**: Must negotiate capabilities before sending commands.
- **Byte Checks**: WebSocket size limits must be checked in **BYTES**, not string length.
- **Retry Strategy**: Exponential backoff for connection failures.
## ANTI-PATTERNS
- **Raw WS Send**: Never use `ws.send()` directly; use the bridge's send queue.
- **Unhandled Timeouts**: Every request must have a configurable timeout.
- **Logging Secret Tokens**: Never log the `MCP_AUTOMATION_CAPABILITY_TOKEN`.