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: POST

Querying 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

MethodPathDescription
POST/api/publishPublish manifest
GET/api/registryList/search tools (?q=, ?domain=)
GET/api/registry/:idTool detail + analytics
POST/api/proxySecure tool execution
POST/api/mcp/:idMCP gateway
GET/api/healthSystem health
GET/api/dashboardDashboard stats
GET/api/security/eventsSecurity audit log