Skip to content

Latest commit

 

History

History
58 lines (40 loc) · 1.31 KB

File metadata and controls

58 lines (40 loc) · 1.31 KB

OpenAI Codex + Sei MCP Setup

Prerequisites

Important: Codex MCP Limitation

Codex supports MCP servers via STDIO transport only (not remote HTTP/SSE). To connect to the remote Sei MCP server, we use mcp-remote as a bridge.

Quick Start

# 1. Clone the repo
git clone https://github.com/stakeme-team/sei-agent-kit
cd sei-agent-kit

# 2. Install dependencies
npm install

# 3. Create a wallet
npm run wallet:simple

# 4. Run Codex
codex

Codex reads .codex/config.toml, which uses mcp-remote to proxy the Sei MCP server through STDIO.

Configuration

The .codex/config.toml contains:

[mcp_servers.sei]
command = "npx"
args = ["mcp-remote", "https://api.seistream.app/mcp"]

Usage

In Codex, ask:

"Check my Sei balances — addresses are in .env as WALLET_ADDRESS and COSMOS_ADDRESS"
"Send 0.001 SEI to myself on the Cosmos side"
"Deploy the SimpleStorage contract and verify it on Seistream"

Troubleshooting

  • mcp-remote not found: Run npm install -g mcp-remote
  • Timeout errors: The mcp-remote bridge may have connection timeouts. Try restarting Codex.
  • Tool discovery fails: Ensure https://api.seistream.app/mcp is accessible from your network.