Agent-assisted product upload
CLI / MCP Agent Tools
Let Codex, Claude Code, or another agent use FromAsia safely. Suppliers can upload products after a dry-run preview; buyers can search products and prepare order requests through CLI commands.
1. Use scoped access
Use browser OAuth when it is offered, or a scoped revocable fallback token for a compatible CLI client; never share your password.
2. Ask your agent
Give the agent product files, product requirements, or order tasks and ask it to use the FromAsia commands.
3. Confirm after review
Agents should run dry-run checks first. Confirm uploads or order actions only after you review the result.
Connect Codex with OAuth
OAuth browser authorization is enabled. Add the FromAsia MCP server, then sign in and approve only the scopes Codex requests.
Add FromAsia to Codex
codex mcp add fromasia --url https://fromasiafoods.com/api/mcp --oauth-resource https://fromasiafoods.com/api/mcpSign in to FromAsia from Codex
codex mcp login fromasia --scopes supplier:products:read,supplier:products:writeCodex and CLI setup
Use MCP when your Codex surface supports it. Otherwise use the FromAsia CLI fallback token from the correct access page.
Supplier CLI dry-run
fromasia supplier products import-json products.json --dry-run --jsonPrompt for your agent
Do not share your FromAsia password. Use scoped, revocable access and review every requested permission.
Read these product materials and create FromAsia product JSON.
Preserve names, SKU, unit, package size, price, MOQ, stock, and HTTPS images.
Call preview_product_import first and fix validation errors.
Do not call confirm_product_import until I approve the preview.