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. Authorize safely
Sign in and use the role-appropriate OAuth/MCP or CLI access path. Do not share your password with an agent.
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.
Claude Code setup
Add the remote HTTP MCP server, then run /mcp or claude mcp login fromasia to complete browser authorization.
Copy Claude command
claude mcp add --transport http fromasia https://fromasiafoods.com/api/mcpCopy .mcp.json
{
"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 the correct access page.
Copy OAuth authorization URL
https://fromasiafoods.com/oauth/authorize?client_name=Agent%20Client&redirect_uri=urn:ietf:wg:oauth:2.0:oob&scope=supplier:products:read%20supplier:products:writeSupplier CLI dry-run
fromasia supplier products import-json products.json --dry-run --jsonPrompt for your agent
Do not share your FromAsia password. Use OAuth/MCP or a revocable 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.