{"id":50478449,"url":"https://github.com/magebitcom/magento2-mcp-marketing-tools","last_synced_at":"2026-06-01T15:04:54.185Z","repository":{"id":360644365,"uuid":"1222444828","full_name":"magebitcom/magento2-mcp-marketing-tools","owner":"magebitcom","description":"Marketing tool extension for the Magebit's Magento2 MCP module","archived":false,"fork":false,"pushed_at":"2026-05-27T08:04:13.000Z","size":37,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-05-27T10:07:33.658Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PHP","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/magebitcom.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-04-27T11:23:19.000Z","updated_at":"2026-05-27T08:03:42.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/magebitcom/magento2-mcp-marketing-tools","commit_stats":null,"previous_names":["magebitcom/magento2-mcp-marketing-tools"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/magebitcom/magento2-mcp-marketing-tools","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magebitcom%2Fmagento2-mcp-marketing-tools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magebitcom%2Fmagento2-mcp-marketing-tools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magebitcom%2Fmagento2-mcp-marketing-tools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magebitcom%2Fmagento2-mcp-marketing-tools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/magebitcom","download_url":"https://codeload.github.com/magebitcom/magento2-mcp-marketing-tools/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magebitcom%2Fmagento2-mcp-marketing-tools/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33780117,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-01T02:00:06.963Z","response_time":115,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2026-06-01T15:04:52.930Z","updated_at":"2026-06-01T15:04:54.180Z","avatar_url":"https://github.com/magebitcom.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Magento2 MCP - Marketing Tools\n\nThis is a sub-module for the [Magento2 MCP module](https://github.com/magebitcom/magento2-mcp-module)\n\n----\n\nPromotion-domain MCP tools for `Magebit_Mcp`. Reads and toggles **catalog\nprice rules** and **cart price rules**, and manages **coupon supply** for\ncart rules — all as MCP tools.\n\nEach tool is a thin wrapper over a Magento service contract\n(`CatalogRuleRepositoryInterface`, `SalesRule\\RuleRepositoryInterface`,\n`CouponRepositoryInterface`, `CouponManagementInterface`) and composes its\nread responses from field resolvers that 3rd-party modules can extend.\n\n## Install\n\n```bash\ncomposer require magebitcom/magento2-mcp-marketing-tools\nbin/magento module:enable Magebit_McpMarketingTools\nbin/magento setup:upgrade\nbin/magento setup:di:compile\nbin/magento cache:flush\n```\n\n## Tool catalog\n\n### Catalog rules (read)\n\n| Tool | What it does |\n|---|---|\n| `marketing.catalog_rule.list` | Paginated catalog-rule search; filter by name, is_active, customer_group_id, website_id, from_date_after, to_date_before. |\n| `marketing.catalog_rule.get` | Single catalog rule by id with full detail (identity, scope, schedule, conditions, action, lifecycle). |\n\n### Cart rules (read)\n\n| Tool | What it does |\n|---|---|\n| `marketing.cart_rule.list` | Paginated cart-rule search; filter by name, is_active, coupon_type, customer_group_id, website_id, date range. |\n| `marketing.cart_rule.get` | Single cart rule by id including the full `condition` and `action_condition` trees as JSON. |\n\n### Coupons (read)\n\n| Tool | What it does |\n|---|---|\n| `marketing.cart_rule.coupon.list` | Paginated coupon search; filter by rule_id, code substring, type (MANUAL/GENERATED), is_primary, created_after. |\n| `marketing.cart_rule.coupon.get` | Single coupon by id. |\n\n### Catalog rules (write)\n\nWrite tools require the global `magebit_mcp/general/allow_writes` flag **and**\nthe token's own `allow_writes` flag to be `1`. Destructive operations\nadditionally set the `requires_confirmation` hint so MCP clients prompt\nbefore firing.\n\n| Tool | Confirm? | What it does |\n|---|---|---|\n| `marketing.catalog_rule.set_active` | no | Toggles `is_active` on the rule; storefront prices update on the next `catalogrule_rule` reindex. |\n| `marketing.catalog_rule.delete` | yes | Permanently deletes a catalog rule. |\n| `marketing.catalog_rule.apply_all` | yes | Invalidates `catalogrule_rule` so the next reindex pass rebuilds the `catalogrule_product_*` aggregation tables. **Heavy** on `realtime` indexers — run off-peak. |\n\n### Cart rules (write)\n\n| Tool | Confirm? | What it does |\n|---|---|---|\n| `marketing.cart_rule.set_active` | no | Toggles `is_active` on the rule. Disabling immediately stops it applying to new carts; existing orders are unaffected. |\n| `marketing.cart_rule.delete` | yes | Permanently deletes a cart rule and cascade-deletes its coupons via FK. Existing orders are unaffected. |\n\n### Coupons (write)\n\n| Tool | Confirm? | What it does |\n|---|---|---|\n| `marketing.cart_rule.coupon.generate` | yes | Bulk-generates coupon codes for a cart rule. The rule must have `coupon_type = SPECIFIC_COUPON` and `use_auto_generation = true`. |\n| `marketing.cart_rule.coupon.delete` | yes | Bulk-deletes coupons by id list or code list. Existing orders that previously used a deleted code are unaffected. |\n\nEvery write tool also implements `Magebit\\Mcp\\Api\\UnderlyingAclAwareInterface`\nso the handler blocks calls from admins who wouldn't be allowed to perform\nthe same action in the admin UI.\n\n## Extending\n\nSee `docs/EXTENDING.md` for:\n- adding a new field to any tool response via `*FieldResolverInterface`;\n- adding a new filter to a `list` tool via `*FilterTranslatorInterface`;\n- the ACL layering rules for custom write tools.\n\n## License\n\nReleased under the [MIT License](LICENSE).\n\n---\n\n![magebit (1)](https://github.com/user-attachments/assets/cdc904ce-e839-40a0-a86f-792f7ab7961f)\n\n*Have questions or need help? Contact us at info@magebit.com*\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmagebitcom%2Fmagento2-mcp-marketing-tools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmagebitcom%2Fmagento2-mcp-marketing-tools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmagebitcom%2Fmagento2-mcp-marketing-tools/lists"}