Child CLI · protocol primitive

Uniswap CLI

A standalone protocol CLI for quoting swaps, checking approvals, and building unsigned Uniswap transaction payloads. It is designed to work on its own, through MCP, and inside Synthesis workflows.

npm i -g uniswap-clibin: uniswap / unicommand: uniswap mcpused by synthesis run uniswap-swap

What the CLI actually does

Shell surface

The current top-level commands are quote, swap, check-approval, setup, chains, tokens, and mcp.

MCP surface

The same package can run as an MCP server over stdio via uniswap mcp, making the protocol surface available to agent harnesses as tools.

CLI demos

These are individual Uniswap CLI commands, not synthesis workflow wrappers.

uniswap quote
uniswap check-approval
uniswap mcp

Actual command shapes

$ uniswap quote --from 0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174 --to 0xc2132D05D31c914a87C6611C10748AEb04B58e8F --amount 1000000 --chain 137 --wallet 0xd8dA... $ uniswap check-approval --token 0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174 --amount 1000000 --chain 137 --wallet 0xd8dA... $ uniswap mcp

Role inside Synthesis

Inside the Synthesis stack, uniswap-cli is the protocol-native primitive. The parent installs it, routes to it directly, and composes it into deterministic workflows like synthesis run uniswap-swap without reimplementing the Uniswap layer.

$ synthesis uniswap --version $ synthesis run uniswap-swap --plan --token-in 0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174 --token-out 0xc2132D05D31c914a87C6611C10748AEb04B58e8F --amount 1000000 --chain-id 137 --wallet agent