zerocommerce-mcp 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,201 @@
1
+ # Byte-compiled / optimized / DLL files
2
+ __pycache__/
3
+ *.py[cod]
4
+ *$py.class
5
+
6
+ # Test database
7
+ *.db
8
+ *.sqlite
9
+ *.sqlite3
10
+
11
+ # Environment variables
12
+ .env
13
+ .venv/
14
+ venv/
15
+ env/
16
+
17
+ # IDE specific files
18
+ .idea/
19
+ .vscode/
20
+ *.swp
21
+ *.swo
22
+ *~
23
+
24
+ # Logs
25
+ *.log
26
+
27
+ # Local development
28
+ .DS_Store
29
+ Thumbs.db
30
+
31
+ # C extensions
32
+ *.so
33
+
34
+ # Distribution / packaging
35
+ .Python
36
+ build/
37
+ develop-eggs/
38
+ dist/
39
+ downloads/
40
+ eggs/
41
+ .eggs/
42
+ lib/
43
+ !frontend/lib/
44
+ !frontend/lib/*.ts
45
+ lib64/
46
+ parts/
47
+ sdist/
48
+ var/
49
+ wheels/
50
+ share/python-wheels/
51
+ *.egg-info/
52
+ .installed.cfg
53
+ *.egg
54
+ MANIFEST
55
+
56
+ # PyInstaller
57
+ # Usually these files are written by a python script from a template
58
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
59
+ *.manifest
60
+ *.spec
61
+
62
+ # Installer logs
63
+ pip-log.txt
64
+ pip-delete-this-directory.txt
65
+
66
+ # Unit test / coverage reports
67
+ htmlcov/
68
+ .tox/
69
+ .nox/
70
+ .coverage
71
+ .coverage.*
72
+ .cache
73
+ nosetests.xml
74
+ coverage.xml
75
+ *.cover
76
+ *.py,cover
77
+ .hypothesis/
78
+ .pytest_cache/
79
+ cover/
80
+
81
+ # Translations
82
+ *.mo
83
+ *.pot
84
+
85
+ # Django stuff:
86
+ *.log
87
+ local_settings.py
88
+ db.sqlite3
89
+ db.sqlite3-journal
90
+
91
+ # Flask stuff:
92
+ instance/
93
+ .webassets-cache
94
+
95
+ # Scrapy stuff:
96
+ .scrapy
97
+
98
+ # Sphinx documentation
99
+ docs/_build/
100
+
101
+ # PyBuilder
102
+ .pybuilder/
103
+ target/
104
+
105
+ # Jupyter Notebook
106
+ .ipynb_checkpoints
107
+
108
+ # IPython
109
+ profile_default/
110
+ ipython_config.py
111
+
112
+ # pyenv
113
+ # For a library or package, you might want to ignore these files since the code is
114
+ # intended to run in multiple environments; otherwise, check them in:
115
+ # .python-version
116
+
117
+ # pipenv
118
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
119
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
120
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
121
+ # install all needed dependencies.
122
+ #Pipfile.lock
123
+
124
+ # UV
125
+ # Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
126
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
127
+ # commonly ignored for libraries.
128
+ #uv.lock
129
+
130
+ # poetry
131
+ # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
132
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
133
+ # commonly ignored for libraries.
134
+ # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
135
+ #poetry.lock
136
+
137
+ # pdm
138
+ # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
139
+ #pdm.lock
140
+ # pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
141
+ # in version control.
142
+ # https://pdm.fming.dev/latest/usage/project/#working-with-version-control
143
+ .pdm.toml
144
+ .pdm-python
145
+ .pdm-build/
146
+
147
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
148
+ __pypackages__/
149
+
150
+ # Celery stuff
151
+ celerybeat-schedule
152
+ celerybeat.pid
153
+
154
+ # SageMath parsed files
155
+ *.sage.py
156
+
157
+ # Environments
158
+ .env
159
+ .venv
160
+ env/
161
+ venv/
162
+ ENV/
163
+ env.bak/
164
+ venv.bak/
165
+
166
+ # Spyder project settings
167
+ .spyderproject
168
+ .spyproject
169
+
170
+ # Rope project settings
171
+ .ropeproject
172
+
173
+ # mkdocs documentation
174
+ /site
175
+
176
+ # mypy
177
+ .mypy_cache/
178
+ .dmypy.json
179
+ dmypy.json
180
+
181
+ # Pyre type checker
182
+ .pyre/
183
+
184
+ # pytype static type analyzer
185
+ .pytype/
186
+
187
+ # Cython debug symbols
188
+ cython_debug/
189
+
190
+ # PyCharm
191
+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
192
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
193
+ # and can be added to the global gitignore or merged into this file. For a more nuclear
194
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
195
+ #.idea/
196
+
197
+ # Ruff stuff:
198
+ .ruff_cache/
199
+
200
+ # PyPI configuration file
201
+ .pypirc
@@ -0,0 +1,110 @@
1
+ Metadata-Version: 2.4
2
+ Name: zerocommerce-mcp
3
+ Version: 0.1.0
4
+ Summary: MCP server for ZeroCommerce — natural language commerce management
5
+ License-Expression: MIT
6
+ Requires-Python: >=3.10
7
+ Requires-Dist: fastmcp>=2.0
8
+ Requires-Dist: httpx>=0.27
9
+ Description-Content-Type: text/markdown
10
+
11
+ # ZeroCommerce MCP Server
12
+
13
+ MCP server for ZeroCommerce — manage your store with natural language.
14
+
15
+ ## Quick Start
16
+
17
+ ```bash
18
+ pip install zerocommerce-mcp
19
+ ```
20
+
21
+ Set environment variables:
22
+
23
+ ```bash
24
+ export ZEROCOMMERCE_API_URL=https://zerocommerce-production.up.railway.app
25
+ export ZEROCOMMERCE_API_KEY=your-api-key
26
+ ```
27
+
28
+ Run the server:
29
+
30
+ ```bash
31
+ zerocommerce-mcp
32
+ ```
33
+
34
+ ## Claude Desktop Configuration
35
+
36
+ Add to `~/.claude/claude_desktop_config.json`:
37
+
38
+ ```json
39
+ {
40
+ "mcpServers": {
41
+ "zerocommerce": {
42
+ "command": "zerocommerce-mcp",
43
+ "env": {
44
+ "ZEROCOMMERCE_API_URL": "https://zerocommerce-production.up.railway.app",
45
+ "ZEROCOMMERCE_API_KEY": "your-api-key"
46
+ }
47
+ }
48
+ }
49
+ }
50
+ ```
51
+
52
+ ## Tools (46)
53
+
54
+ ### Catalog (12)
55
+ - `list_products` — list products with prices and stock
56
+ - `get_product` — get full product details
57
+ - `create_product` — add a new product
58
+ - `update_product` — modify product fields
59
+ - `delete_product` — remove a product
60
+ - `search_products_semantic` — natural language product search
61
+ - `update_stock` — set absolute stock level
62
+ - `adjust_stock` — add/remove stock units
63
+ - `bulk_update_prices` — batch price updates
64
+ - `activate_product` — make product visible
65
+ - `deactivate_product` — hide product from storefront
66
+ - `duplicate_product` — clone a product
67
+
68
+ ### Orders (10)
69
+ - `list_orders` — list recent orders
70
+ - `get_order` — order details with line items
71
+ - `update_order_status` — change order status
72
+ - `cancel_order` — cancel with reason
73
+ - `refund_order` — full or partial refund
74
+ - `add_tracking` — add shipping tracking
75
+ - `list_orders_by_customer` — customer order history
76
+ - `get_order_analytics` — order statistics
77
+ - `export_orders_csv` — CSV export
78
+ - `search_orders` — search by email/name
79
+
80
+ ### Customers (6)
81
+ - `list_customers` — all customers with stats
82
+ - `get_customer` — customer profile + orders
83
+ - `get_customer_lifetime_value` — LTV calculation
84
+ - `search_customers` — search by name/email
85
+ - `get_top_customers` — ranked by spend
86
+ - `export_customers_csv` — CSV export
87
+
88
+ ### Analytics (8)
89
+ - `get_revenue_summary` — revenue totals and averages
90
+ - `get_top_products` — best sellers by revenue
91
+ - `get_conversion_funnel` — cart-to-order conversion
92
+ - `get_revenue_by_day` — daily breakdown
93
+ - `get_inventory_status` — stock health overview
94
+ - `get_recent_activity` — latest orders/events
95
+ - `get_store_health` — overall health score
96
+ - `compare_periods` — period-over-period comparison
97
+
98
+ ### Store Config (6)
99
+ - `get_store_info` — store settings
100
+ - `update_store_settings` — modify settings
101
+ - `get_webhooks` — list webhooks
102
+ - `create_webhook` — subscribe to events
103
+ - `delete_webhook` — remove webhook
104
+ - `get_api_keys` — list API keys (masked)
105
+
106
+ ### Storefront (4)
107
+ - `get_storefront_url` — public store URL
108
+ - `preview_storefront` — storefront state description
109
+ - `set_featured_products` — set featured product list
110
+ - `get_inventory_alerts` — low stock warnings
@@ -0,0 +1,100 @@
1
+ # ZeroCommerce MCP Server
2
+
3
+ MCP server for ZeroCommerce — manage your store with natural language.
4
+
5
+ ## Quick Start
6
+
7
+ ```bash
8
+ pip install zerocommerce-mcp
9
+ ```
10
+
11
+ Set environment variables:
12
+
13
+ ```bash
14
+ export ZEROCOMMERCE_API_URL=https://zerocommerce-production.up.railway.app
15
+ export ZEROCOMMERCE_API_KEY=your-api-key
16
+ ```
17
+
18
+ Run the server:
19
+
20
+ ```bash
21
+ zerocommerce-mcp
22
+ ```
23
+
24
+ ## Claude Desktop Configuration
25
+
26
+ Add to `~/.claude/claude_desktop_config.json`:
27
+
28
+ ```json
29
+ {
30
+ "mcpServers": {
31
+ "zerocommerce": {
32
+ "command": "zerocommerce-mcp",
33
+ "env": {
34
+ "ZEROCOMMERCE_API_URL": "https://zerocommerce-production.up.railway.app",
35
+ "ZEROCOMMERCE_API_KEY": "your-api-key"
36
+ }
37
+ }
38
+ }
39
+ }
40
+ ```
41
+
42
+ ## Tools (46)
43
+
44
+ ### Catalog (12)
45
+ - `list_products` — list products with prices and stock
46
+ - `get_product` — get full product details
47
+ - `create_product` — add a new product
48
+ - `update_product` — modify product fields
49
+ - `delete_product` — remove a product
50
+ - `search_products_semantic` — natural language product search
51
+ - `update_stock` — set absolute stock level
52
+ - `adjust_stock` — add/remove stock units
53
+ - `bulk_update_prices` — batch price updates
54
+ - `activate_product` — make product visible
55
+ - `deactivate_product` — hide product from storefront
56
+ - `duplicate_product` — clone a product
57
+
58
+ ### Orders (10)
59
+ - `list_orders` — list recent orders
60
+ - `get_order` — order details with line items
61
+ - `update_order_status` — change order status
62
+ - `cancel_order` — cancel with reason
63
+ - `refund_order` — full or partial refund
64
+ - `add_tracking` — add shipping tracking
65
+ - `list_orders_by_customer` — customer order history
66
+ - `get_order_analytics` — order statistics
67
+ - `export_orders_csv` — CSV export
68
+ - `search_orders` — search by email/name
69
+
70
+ ### Customers (6)
71
+ - `list_customers` — all customers with stats
72
+ - `get_customer` — customer profile + orders
73
+ - `get_customer_lifetime_value` — LTV calculation
74
+ - `search_customers` — search by name/email
75
+ - `get_top_customers` — ranked by spend
76
+ - `export_customers_csv` — CSV export
77
+
78
+ ### Analytics (8)
79
+ - `get_revenue_summary` — revenue totals and averages
80
+ - `get_top_products` — best sellers by revenue
81
+ - `get_conversion_funnel` — cart-to-order conversion
82
+ - `get_revenue_by_day` — daily breakdown
83
+ - `get_inventory_status` — stock health overview
84
+ - `get_recent_activity` — latest orders/events
85
+ - `get_store_health` — overall health score
86
+ - `compare_periods` — period-over-period comparison
87
+
88
+ ### Store Config (6)
89
+ - `get_store_info` — store settings
90
+ - `update_store_settings` — modify settings
91
+ - `get_webhooks` — list webhooks
92
+ - `create_webhook` — subscribe to events
93
+ - `delete_webhook` — remove webhook
94
+ - `get_api_keys` — list API keys (masked)
95
+
96
+ ### Storefront (4)
97
+ - `get_storefront_url` — public store URL
98
+ - `preview_storefront` — storefront state description
99
+ - `set_featured_products` — set featured product list
100
+ - `get_inventory_alerts` — low stock warnings
@@ -0,0 +1,21 @@
1
+ [build-system]
2
+ requires = ["hatchling"]
3
+ build-backend = "hatchling.build"
4
+
5
+ [project]
6
+ name = "zerocommerce-mcp"
7
+ version = "0.1.0"
8
+ description = "MCP server for ZeroCommerce — natural language commerce management"
9
+ readme = "README.md"
10
+ requires-python = ">=3.10"
11
+ license = "MIT"
12
+ dependencies = [
13
+ "fastmcp>=2.0",
14
+ "httpx>=0.27",
15
+ ]
16
+
17
+ [project.scripts]
18
+ zerocommerce-mcp = "zerocommerce_mcp.server:main"
19
+
20
+ [tool.hatch.build.targets.wheel]
21
+ packages = ["zerocommerce_mcp"]
File without changes