Imagio Relay Discovery
Officialby imagiolabs
README.md
# Imagio Relay Discovery
A thin, published, open-source MCP wrapper for Imagio Relay. It exposes free discovery over stdio: `initialize`, `ping`, and `tools/list` (fetched from the live hosted relay). Paid `tools/call` is intentionally refused here and points clients to the direct relay at `https://relay.imagiolabs.com/mcp`.
- Repository: https://github.com/imagiolabs/imagio-relay (public)
- License: Apache-2.0 (`LICENSE`)
- npm package: https://www.npmjs.com/package/@imagiolabs/relay-mcp
- Hosted relay endpoint: https://relay.imagiolabs.com/mcp
## Run
```bash
npm install
npm start
```
Or use the published package:
```bash
npx -y @imagiolabs/relay-mcp
```
The server reads newline-delimited JSON-RPC on stdin and writes responses on stdout. `tools/list` proxies the live relay's free discovery list; no credentials, payment headers, wallets or keys are used or stored. `tools/call` is refused with `-32000` because paid execution belongs on the direct x402 relay.
## Docker
`Dockerfile` uses `node:20-alpine`, installs dependencies, and runs `node server.mjs`. It starts and answers MCP introspection without any secrets.
## Verify locally
```bash
printf '%s\n' \
'{"jsonrpc":"2.0","id":1,"method":"initialize","params":{}}' \
'{"jsonrpc":"2.0","id":2,"method":"tools/list","params":{}}' \
'{"jsonrpc":"2.0","id":3,"method":"tools/call","params":{}}' | node server.mjs
```
`initialize` returns an MCP result, `tools/list` returns the live relay tools, and `tools/call` returns error `-32000`.
## Hosted connector
For a hosted MCP endpoint, Glama recommends submitting a **connector** rather than a source server: https://glama.ai/mcp/servers → Connectors → Add Server → Hosted endpoint, using `https://relay.imagiolabs.com/mcp`. No repository is required for a connector. This repository exists for the source-server route and for reproducible local/Docker verification.
## Trust and scope
No tenant credentials, tokens, browser sessions, wallet keys or payment authorizations are handled here. This wrapper performs free discovery only. Terms: https://relay.imagiolabs.com/terms