Set up Relay connection for secure API access. Use when: (1) First-time setup of Revtelligent skills (2) Relay connection issues or troubleshooting (3) User asks to connect or reconnect to Relay
From relay-connectnpx claudepluginhub revtelligent/platform-marketplace --plugin relay-connectThis skill uses the workspace's default tool permissions.
references/relay-api.mdreferences/troubleshooting.mdscripts/relay-setup.shDesigns and optimizes AI agent action spaces, tool definitions, observation formats, error recovery, and context for higher task completion rates.
Structured self-debugging workflow for AI agent failures using capture, diagnosis, contained recovery, and introspection reports.
Compares coding agents like Claude Code and Aider on custom YAML-defined codebase tasks using git worktrees, measuring pass rate, cost, time, and consistency.
Connect to the Relay platform for secure access to all integrated services.
MCP tools use OAuth automatically via mcp-remote. An optional script config stores the Relay URL for local health checks.
Before running /setup, Relay MCP must already be configured in the current agent.
/setup saves URL/config for diagnostics, but it does not create connectors by itself.
| Environment | Required MCP setup | Quick test |
|---|---|---|
| Claude Code / Claude Desktop | Install relay-connect from marketplace. If Relay tools still do not appear, add a Relay custom connector to <base-url>/mcp. | Ask the agent to run list_workflows. |
| Codex | Run ./deploy/install.sh --plugin relay-connect --agents codex (or add [mcp_servers.relay] manually). | Run list_workflows. |
| Gemini CLI | Run ./deploy/install.sh --plugin relay-connect --agents gemini-cli (or add mcpServers.relay manually). | Run list_workflows. |
Run the setup script to check for saved configuration:
${CLAUDE_PLUGIN_ROOT:-$HOME/.agents}/skills/setup/scripts/relay-setup.sh check
If configured, the output includes url, mcpUrl, and connection status.
If not configured, proceed to Step 2.
Tell the user:
Relay MCP tools authenticate automatically via OAuth when first used. We just need to save your organization's Relay URL for health checks and diagnostics.
Ask your IT admin for the Relay base URL if you don't have it.
Once the user provides the base URL:
${CLAUDE_PLUGIN_ROOT:-$HOME/.agents}/skills/setup/scripts/relay-setup.sh save <base-url>
This saves configuration to ~/.config/revtelligent/relay.env containing:
| Variable | Purpose | Example |
|---|---|---|
RELAY_URL | Base URL | https://relay.acme-corp.revtelligent.com |
RELAY_MCP_URL | MCP server endpoint | https://relay.acme-corp.revtelligent.com/mcp |
The file is stored with chmod 600 (owner-only access).
Run the health check to confirm the Relay MCP server is reachable:
${CLAUDE_PLUGIN_ROOT:-$HOME/.agents}/skills/setup/scripts/relay-setup.sh health
Expected output when healthy:
{
"healthy": true,
"mcp": { "reachable": true, "status": 200 }
}
If the endpoint fails, load references/troubleshooting.md for diagnostic steps.
If health check fails but list_workflows succeeds, treat MCP connectivity as working.
In restricted/sandboxed environments, the health script may not have the same network path as MCP tool calls.
If healthy, tell the user:
All set! Your Relay connection is active.
MCP tools (workflow queries, approvals, task management, etc.) connect through OAuth automatically. Available tools are documented in
references/relay-api.md.All Revtelligent skills are now ready to use.
Once connected, these tools are available through the Relay MCP server:
| Tool | Description |
|---|---|
list_workflows | List available workflow types |
start_workflow | Start a new workflow execution |
get_workflow_status | Check workflow execution status |
send_message | Send a message to the AI agent for routing |
approve_workflow | Approve or reject a workflow |
create_approval_request | Create a new approval request |
query_workflow_history | Search past workflow executions |
See references/relay-api.md for full details on each tool.
| Symptom | Cause | Fix |
|---|---|---|
configured: false | No config file | Run setup (Steps 2-3) |
| MCP unreachable | Server down or URL wrong | Check URL with IT admin |
| OAuth login loop | Browser cookie issue | Clear cookies, retry |
401 / 403 errors | Insufficient permissions | Contact admin for access |
See references/troubleshooting.md for detailed diagnostics.