Download the PHP package magebitcom/magento2-mcp-report-tools without Composer

On this page you can find all versions of the php package magebitcom/magento2-mcp-report-tools. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package magento2-mcp-report-tools

Magento2 MCP - Report Tools

This is a sub-module for the Magento2 MCP module


Report-domain MCP tools for Magebit_Mcp. Exposes the admin Reports menu (sales, tax, customer, product, review, search-term, cart, newsletter), the admin Dashboard summary, a Customers Online live view, and the Statistics refresh machinery — all as MCP tools.

Each read tool is a thin wrapper over the same Magento collection or service the admin grid uses, so row counts and totals match the admin UI exactly. Statistics refresh tools dispatch the same aggregation models as Magento\Reports\Controller\Adminhtml\Report\Statistics\RefreshRecent / RefreshLifetime.

Install

Tool catalog

Shopping cart (live)

Tool What it does
reports.cart.products Products currently sitting in open carts with quantities and carts count.
reports.cart.abandoned Quotes that started checkout but were not converted. Optional from/to (YYYY-MM-DD) narrow the report by last-updated date.

Marketing (live)

Tool What it does
reports.marketing.search_terms Storefront search queries with popularity and number of matching products.
reports.marketing.newsletter_problems Newsletter queue problem reports (bounces, send failures).

Reviews (live)

Tool What it does
reports.reviews.by_product Products ranked by review count with average rating.
reports.reviews.by_customer Customers ranked by review count.

Sales (aggregated)

All sales reports read from the *_aggregated_created / *_aggregated_updated tables populated by reports.statistics.refresh_*. Arguments are shared: from, to, period (day/month/year), store_id?, show_empty?, order_statuses?.

Tool What it does
reports.sales.orders Revenue / profit / quantity / tax / shipping / discount per period.
reports.sales.tax Tax collected per rate, per period.
reports.sales.invoiced Invoiced vs. paid vs. outstanding per period.
reports.sales.shipping Shipping revenue per carrier / method / period.
reports.sales.refunds Online and offline refunds per period.
reports.sales.coupons Coupon usage and discount amount per rule / period.

Customers

Tool What it does
reports.customers.orders Order count per customer, date-ranged.
reports.customers.totals Lifetime / period spend per customer.
reports.customers.new Newly registered customer accounts per period.
reports.customers.online Live snapshot of visitors (logged in or guest), with cart contents and last activity.

Products

Tool What it does
reports.products.viewed Most-viewed products, aggregated (daily/monthly/yearly).
reports.products.bestsellers Bestselling products by quantity sold, aggregated.
reports.products.low_stock Products at or below their notify-stock threshold.
reports.products.ordered Quantity ordered per product within a date range.
reports.products.downloads Downloadable-product link purchases and downloads.

Dashboard

Tool What it does
reports.dashboard.summary One-call roll-up that mirrors the admin Dashboard — lifetime sales, average order, revenue for a period, recent orders, top search terms, top bestsellers.

Statistics refresh (write)

Write tools require the global magebit_mcp/general/allow_writes flag and the token's own allow_writes flag to be 1. Both refresh tools require explicit confirmation so MCP clients prompt before firing.

Tool Confirm? What it does
reports.statistics.status no (read) Last-refresh timestamp and flag state per aggregation code.
reports.statistics.refresh_recent yes Aggregates the last 25 hours (default) for the selected report codes. Mirrors admin Refresh Statistics for Last Day.
reports.statistics.refresh_lifetime yes Aggregates all time for the selected report codes. Mirrors admin Refresh Lifetime Statistics. Heavy — on stores with 500k+ orders this can take several minutes and will elevate DB load. Run off-peak.

Both refresh tools also implement Magebit\Mcp\Api\UnderlyingAclAwareInterface with Magento_Reports::statistics as the underlying Magento admin resource, so they block calls from admins who wouldn't be allowed to refresh stats in the admin UI.

Upgrade notes

Extending

See docs/EXTENDING.md for:

License

Released under the MIT License.


Magebit

Magebit - Full-service e-commerce agency

magebit.com


All versions of magento2-mcp-report-tools with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
magento/framework Version ^103.0
magebitcom/magento2-mcp-module Version ^1.1
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package magebitcom/magento2-mcp-report-tools contains the following files

Loading the files please wait ...