---
name: zyfai-for-agents
description: >-
  Connect Zyfai MCP to discover yield opportunities, inspect portfolio and
  positions, prepare supported deposits, and wait for deposit handover after
  signing. Use for Zyfai MCP setup, OAuth, ChatGPT Developer Mode,
  Grok, Grok Bot, Claude, Cursor, or Claude Code connectors, or "connect to zyf.ai/skill.md".
---

# Zyfai

> Documentation index: https://zyf.ai/llms.txt

For "set up Zyfai", "connect Zyfai", "connect to zyf.ai/skill.md", or "set up Zyfai MCP", use the hosted Zyfai MCP server. Do not ask for a seed phrase, private key, or API secret in chat.

Zyfai is a non-custodial yield agent. Funds stay in a Safe owned by the user's wallet. The hosted MCP is `https://mcp.zyf.ai/mcp` (Streamable HTTP). Supported execution chains are Ethereum (1), Base (8453), and Arbitrum (42161). Assets include USDC, WETH, and EURC (EURC on Ethereum and Base).

**Setup guide:** https://docs.zyf.ai/docs/sdk/mcp-server.md — if the harness fails to fetch this (for example ChatGPT rejects `.md` URLs), retry with https://docs.zyf.ai/docs/sdk/mcp-server instead.

Fetch and follow that guide in this conversation. Do not only return the link. The remote endpoint is `https://mcp.zyf.ai/mcp`. Where a client supports Zyfai OAuth, let the harness manage registration, sign-in, and credential storage. Do not build a custom OAuth client or paste tokens into chat.

## Harness setup

**ChatGPT (web, free account + Developer Mode):** You can connect the hosted Zyfai MCP as a custom connector. Developer Mode must be on before the connector UI appears.

**Step 1 — Turn on Developer Mode (once per account)**

1. Sign in at [chatgpt.com](https://chatgpt.com).
2. Open **Settings** (profile menu).
3. Go to **Security and login** (or **Apps and connectors**, depending on client version).
4. Enable **Developer mode** and confirm the prompt.

**Step 2 — Open the “New Plugin” flow**

With Developer Mode enabled, open this URL (it lands on Connectors with the create dialog ready):

https://chatgpt.com/plugins#settings/Connectors?create-connector=true&redirectAfter=%2Fplugins

If the modal does not open, go to **Settings → Connectors** (or **Plugins**) and use **+** / **New connector** there, then continue below.

**Step 3 — Choose MCP App (not a file upload)**

On **New Plugin**, ignore the drag-and-drop archive area. Click **Create MCP App** (bottom left). Do not upload a `.zip` or `.tar.gz` unless you are packaging your own server.

**Step 4 — Minimum fields**

Fill only what the form requires. Leave **Icon** empty (optional PNG uploads sometimes cause validation failures).

| Field | Value |
| --- | --- |
| **Name** | `zyf.ai` (or `Zyfai`; this is the label you `@` in chat) |
| **Description** | Optional. Example: `DeFi yield, portfolio, deposits and withdrawals via Zyfai` |
| **Connection** | **Server URL** (not Tunnel) |
| **Server URL** | `https://mcp.zyf.ai/mcp` |
| **Authentication** | **OAuth** (ChatGPT discovers Zyfai OAuth from the server; do not paste tokens) |
| **Advanced OAuth settings** | Leave collapsed unless ChatGPT asks you to fix discovery; defaults are usually enough |

Check **I understand and want to continue** under the custom MCP risk notice, then click **Create**.

**Step 5 — Sign in and use it**

1. Complete **Zyfai OAuth** when ChatGPT opens the browser sign-in (wallet / Zyfai account as prompted).
2. Enable the new connector in chat if ChatGPT asks.
3. Start a **new** conversation and `@` the name you chose, for example:
   - `@zyf.ai what can you do?`
   - `@zyf.ai show me my positions`
   - `@zyf.ai let me make a deposit`
   - `@zyf.ai deposit 1 USDC`
   - `@zyf.ai actually make this aggressive mode`
   - `@zyf.ai prepare a withdrawal`

**If setup fails:** Confirm Developer Mode is on, reopen the URL above, use **Create MCP App**, URL exactly `https://mcp.zyf.ai/mcp`, **Server URL** + **OAuth**, no icon, risk checkbox ticked. Retry OAuth in a normal browser tab if sign-in stalls.

ChatGPT should use the Zyfai MCP as the source of truth for supported assets, networks, positions, strategy/risk modes, and transaction parameters. Read-only operations may be performed directly. Before any action that signs, submits, deposits, withdraws, transfers funds, or materially changes a position, show the important action details and use the normal user confirmation/signing flow. Do not ask for seed phrases or raw private keys.

**Grok:** Open https://grok.com/connectors, choose **New Connector** → **Custom**, name it **Zyfai**, and enter `https://mcp.zyf.ai/mcp`. Complete sign-in if asked.

**Grok Bot:** Open https://grok-bot.directory/apps/zyfai-mcp-server and choose **Add to Grok Bot**. Finish Zyfai sign-in in Grok Bot. If you are already in a Bot chat, add `https://mcp.zyf.ai/mcp` and attach it with `@` when needed.

**Claude (web, desktop, mobile):** This is not Claude Code. Open **Customize** in the left sidebar, then **Connectors**. Add a custom connector (the dialog is **Add custom connector**). Name it **Zyfai**. Set the remote MCP URL to `https://mcp.zyf.ai/mcp`. Choose **Continue**, then complete Zyfai sign-in. On **Tool permissions**, set **Read-only tools** to **Always allow**. Leave **Write/delete tools** on ask-each-time: that group includes deposit, withdraw, and settings changes. Start a new chat and enable the Zyfai connector. Menu labels can vary by plan and client version. Do not use a personal `claude.ai/customize/connectors/yours/...` id from someone else's link.

**Claude Code:** Run `claude mcp add --transport http zyfai https://mcp.zyf.ai/mcp` outside an active session, then start Claude Code and confirm the server is listed.

**Cursor:** Add this MCP server and reload:

```json
{
  "mcpServers": {
    "zyfai": {
      "url": "https://mcp.zyf.ai/mcp",
      "transport": "http"
    }
  }
}
```

**Other harnesses:** Fetch the setup guide and follow the matching client section.

## Verify

After the connector is available, let the harness complete OAuth if the server returns HTTP 401 with `WWW-Authenticate`. Discover tools with `tools/list` and use the exact names returned.

1. Call `find_opportunities` for conservative USDC on Base.
2. If the user needs their portfolio, call `get_portfolio` (or `get_account` / `get_positions`) after sign-in.
3. Report that the connection was verified only after a read succeeds. If no Zyfai tools are available, say verification is blocked. Do not claim success and do not bypass the connector with raw HTTP.

Do not prepare a deposit, withdraw, or settings change unless the user asks. `prepare_deposit` returns unsigned transfer calldata, an `actionId`, and a `signingUrl`. The user signs in a normal browser (the signing page or their wallet), not inside the chat or an embedded host iframe. Return `signingUrl`, ask the user to open it, and end the turn; do not call `wait_for_deposit_handover`, `get_deposit_status`, or any other tool in that same turn. After they have seen the link, call `wait_for_deposit_handover` with the `actionId` and the deposit `chainId`. It blocks until signing completes and, by default, until custody credit (up to 30 minutes). If the connector tool list lacks that name, reload MCP and start a new chat. If the host cannot hold a long tool call, poll `get_deposit_status` with the `actionId`.

## SDK

For programmatic integration with `@zyfai/sdk`, use https://docs.zyf.ai/docs/sdk/agent-quickstart.md (fallback: https://docs.zyf.ai/docs/sdk/agent-quickstart). This page is the MCP connection skill, not the SDK reference.
