{"id":46770958,"url":"https://github.com/Upsonic/UCP-Agent","last_synced_at":"2026-03-24T00:01:15.346Z","repository":{"id":332105087,"uuid":"1132757412","full_name":"Upsonic/UCP-Agent","owner":"Upsonic","description":"A shopping assistant powered by Upsonic AI Agent and UCP (Universal Checkout Protocol).","archived":false,"fork":false,"pushed_at":"2026-01-12T14:59:53.000Z","size":27,"stargazers_count":8,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-02-01T20:47:24.655Z","etag":null,"topics":["agent","mcp","ucp","universal-commerce-protocol"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Upsonic.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-01-12T12:10:10.000Z","updated_at":"2026-01-18T02:43:09.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/Upsonic/UCP-Agent","commit_stats":null,"previous_names":["upsonic/ucp-agent"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Upsonic/UCP-Agent","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Upsonic%2FUCP-Agent","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Upsonic%2FUCP-Agent/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Upsonic%2FUCP-Agent/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Upsonic%2FUCP-Agent/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Upsonic","download_url":"https://codeload.github.com/Upsonic/UCP-Agent/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Upsonic%2FUCP-Agent/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30870076,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-23T21:38:10.789Z","status":"ssl_error","status_checked_at":"2026-03-23T21:37:51.191Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["agent","mcp","ucp","universal-commerce-protocol"],"created_at":"2026-03-09T23:00:31.190Z","updated_at":"2026-03-24T00:01:15.336Z","avatar_url":"https://github.com/Upsonic.png","language":"Python","funding_links":[],"categories":["AI \u0026 Agent Integrations"],"sub_categories":[],"readme":"# UCP Shopping Agent\n\nA shopping assistant powered by **Upsonic AI Agent** and **UCP (Universal Commerce Protocol)**.\n\n## How it works\n\n```mermaid\nflowchart LR\n    subgraph User\n        A[👤 You]\n    end\n    \n    subgraph Upsonic\n        B[🤖 AI Agent]\n    end\n    \n    subgraph UCP\n        C[🔌 UCP Tools]\n    end\n    \n    subgraph Merchant\n        D[🏪 Shop API]\n        E[(📦 Products)]\n        F[(🛒 Orders)]\n    end\n    \n    A --\u003e|Chat| B\n    B --\u003e|Tool Calls| C\n    C --\u003e|API Requests| D\n    D --\u003e E\n    D --\u003e F\n    D --\u003e|Response| C\n    C --\u003e|Results| B\n    B --\u003e|Answer| A\n```\n\n**UCP (Universal Checkout Protocol)** enables AI agents to interact with e-commerce systems through a standardized interface.\n\n| Tool | Description |\n|------|-------------|\n| `get_available_products()` | Browse product catalog |\n| `get_available_discount_codes()` | View discount codes |\n| `get_your_user()` | Get user info \u0026 addresses |\n| `discover_merchant()` | Merchant \u0026 payment info |\n| `create_cart()` | Create shopping cart |\n| `apply_discount()` | Apply discount to cart |\n| `set_shipping_address()` | Set delivery address |\n| `complete_purchase()` | Complete checkout |\n\n## Installation\n\n```bash\nuv venv\nuv pip install \"ucp-client[server]==0.0.11\"\nuv pip install upsonic==0.69.3\nuv pip install streamlit\n```\n## Usage\n\n**Terminal 1** - Start the mock server:\n```bash\nuv run ucp mockup_server\n```\n\n**Terminal 2** - Run the agent (CLI):\n```bash\nuv run upsonic_shopping_agent.py\n```\n\n## Streamlit UI\n\nYou can also use the Streamlit web interface:\n\n```bash\nuv run streamlit run streamlit_app.py\n```\n\nThen open http://localhost:8501 in your browser.\n\n\u003cimg width=\"1800\" height=\"981\" alt=\"Screenshot 2026-01-12 at 4 32 16 PM\" src=\"https://github.com/user-attachments/assets/596796a5-9fc0-471f-8c12-dd653537deb0\" /\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FUpsonic%2FUCP-Agent","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FUpsonic%2FUCP-Agent","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FUpsonic%2FUCP-Agent/lists"}