What is Relay
Relay is a registry and secure proxy for AI agent tools. Publish a manifest once; agents discover tools via the registry and execute them through Layer 2 security checks.
Publishing your first tool
yaml
name: GitAnalyzer
version: "1.0.0"
description: Analyzes GitHub repositories
serverUrl: https://api.example.com/v1
authType: none
domain: devtools
tools:
- name: search_repos
endpoint: /repos/search
method: POSTQuerying the registry
bash
curl "https://your-app.vercel.app/api/registry?q=github&domain=devtools"
Using the MCP gateway
json
POST /api/mcp/{manifestId}
{ "tool": "search_repos", "input": { "keyword": "react" }, "agentId": "agent_1" }Setting up the security proxy
Route agent calls through Layer 2 with one endpoint:
json
POST /api/proxy
{ "manifestId": "...", "toolName": "search_repos", "payload": { } }API reference
| Method | Path | Description |
|---|---|---|
| POST | /api/publish | Publish manifest |
| GET | /api/registry | List/search tools (?q=, ?domain=) |
| GET | /api/registry/:id | Tool detail + analytics |
| POST | /api/proxy | Secure tool execution |
| POST | /api/mcp/:id | MCP gateway |
| GET | /api/health | System health |
| GET | /api/dashboard | Dashboard stats |
| GET | /api/security/events | Security audit log |