Command Palette

Search for a command to run...

UnylyUnyly
Весь каталог

Oms Client Agent

БесплатноНе проверен

Exposes the 0xSequence OMS wallet client as a local MCP server, enabling email-based wallet authentication, message signing, balance queries, and transaction se

GitHubEmbed

Описание

Exposes the 0xSequence OMS wallet client as a local MCP server, enabling email-based wallet authentication, message signing, balance queries, and transaction sending on supported networks like Polygon, Base, and Sepolia.

README

This project exposes the OMS client as a local MCP server over stdio.

How it works

The MCP host starts this server as a local stdio process. The agent calls the exposed MCP tools, and the server translates those tool calls into OMS Wallet SDK calls.

Email sign-in is a two-step flow: oms_start_email_auth sends the OTP to the email address from the user prompt, then oms_complete_email_auth completes the auth attempt with the OTP code. Those two calls need to run in the same server process.

After sign-in, wallet session metadata and the credential signer key are persisted in the platform secure store. That lets a later MCP process restore the wallet session and sign messages or transactions without exposing secrets to the agent.

Token transfers are intentionally narrow. ERC20 transfers use wallet.callContract with transfer(address,uint256), and native token transfers use wallet.sendTransaction with only to and value fields.

Configure

Run setup:

pnpm run setup:mcp

This creates .env from .env.example if it does not already exist, builds the local Keychain helper, and prints the Codex MCP config block for this checkout.

Then fill in .env:

OMS_PUBLISHABLE_KEY=...
OMS_PROJECT_ID=...

Wallet session data, redirect auth state, and the Node credential signer key are stored in macOS Keychain under fixed oms-client-agent-mcp:* service names.

On Linux, the same values are stored through Freedesktop Secret Service using secret-tool. Install libsecret-tools and ensure a Secret Service provider such as GNOME Keyring or KWallet is available and unlocked.

Example Prompts

Sign in

Sign in using [email protected]

Wait for response, then enter OTP code:

123456

Send USDC

Send 1 USDC to 0xB54d0b73a40f5b9a243D142EeDDA39Bb5ed76B50 on amoy

Get token balances

What's my USDC balance on Polygon mainnet?

Run

If you skip pnpm run setup:mcp, build the local Keychain helper once:

pnpm build:keychain-helper

Then run the MCP server:

pnpm --silent mcp

The check and test scripts compile src/storage/keychain-helper.swift to bin/keychain-helper before running. The mcp script expects that binary to already exist so MCP stdout stays protocol-clean.

Example MCP host config:

{
  "mcpServers": {
    "oms-client-agent": {
      "command": "pnpm",
      "args": ["--silent", "mcp"],
      "cwd": "/Users/theirname/path/to/oms-mcp"
    }
  }
}

Tools

  • oms_env_status: checks required environment keys without printing secrets.
  • oms_session_status: reports whether a wallet session is restored.
  • oms_start_email_auth: sends an email OTP to the email address provided in the tool call.
  • oms_complete_email_auth: completes the OTP flow in the same server process.
  • oms_sign_message: signs a message with the active wallet session.
  • oms_get_token_balances: queries token balances through the OMS indexer.
  • oms_get_native_token_balance: queries the native token balance.
  • oms_send_erc20_token: sends ERC20 tokens through wallet.callContract using transfer(address,uint256).
  • oms_send_native_token: sends native tokens through wallet.sendTransaction.
  • oms_sign_out: clears the active wallet session.

Default network is amoy. Pass a supported SDK network name such as polygon, base, or sepolia where tools accept network.

Transfer tools accept raw integer amounts: amountRaw for ERC20 base units and amountWei for native token wei.

from github.com/andygruening/oms-client-mcp

Установка Oms Client Agent

У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.

▸ github.com/andygruening/oms-client-mcp

FAQ

Oms Client Agent MCP бесплатный?

Да, Oms Client Agent MCP бесплатный — установка в пару кликов через Unyly без оплаты.

Нужен ли API-ключ для Oms Client Agent?

Нет, Oms Client Agent работает без API-ключей и переменных окружения.

Oms Client Agent — hosted или self-hosted?

Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.

Как установить Oms Client Agent в Claude Desktop, Claude Code или Cursor?

Открой Oms Client Agent на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.

Похожие MCP

Compare Oms Client Agent with

Не уверен что выбрать?

Найди свой стек за 60 секунд

Автор?

Embed-бейдж для README

Похожее

Все в категории communication