Agent-assisted product upload
CLI / MCP Agent Tools
Let Codex, Claude Code, or another agent turn Excel, PDF, web pages, or images into FromAsia product data. The agent must run a dry-run preview first; products are created only after you confirm the upload.
1. Authorize safely
Sign in, open Agent Access, and approve OAuth for product upload.
2. Ask your agent
Give it supplier files and ask it to call preview_product_import first.
3. Confirm only after review
Do not run confirm_product_import until the supplier approves the preview.
Claude Code setup
Add the remote HTTP MCP server, then run /mcp or claude mcp login fromasia to complete browser authorization.
Copy Claude command
Copyclaude mcp add --transport http fromasia https://fromasiafoods.com/api/mcpCopy .mcp.json
Copy{
"mcpServers": {
"fromasia": {
"type": "http",
"url": "https://fromasiafoods.com/api/mcp",
"oauth": {
"scopes": "supplier:products:read supplier:products:write"
}
}
}
}Codex and CLI setup
Use MCP when your Codex surface supports it. Otherwise use the FromAsia CLI fallback token from Agent Access.
Copy OAuth authorization URL
Copyhttps://fromasiafoods.com/oauth/authorize?client_name=Agent%20Client&redirect_uri=urn:ietf:wg:oauth:2.0:oob&scope=supplier:products:read%20supplier:products:writeCLI dry-run
Copyfromasia supplier products import-json products.json --dry-run --jsonPrompt for your agent
Do not share your FromAsia password. Use OAuth/MCP or a fallback token only.
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.