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

On this page you can find all versions of the php package magebitcom/magento2-mcp-cms-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-cms-tools

Magento2 MCP - CMS Tools

This is a sub-module for the Magento2 MCP module


CMS-domain MCP tools for Magebit_Mcp. Reads and writes against CMS pages and blocks.

Each tool is a thin wrapper over a Magento service contract (PageRepositoryInterface, BlockRepositoryInterface, GetPageByIdentifierInterface, GetBlockByIdentifierInterface) and composes its read response from field resolvers that 3rd-party modules can extend.

Install

Ships with Magebit_Mcp as its only Magebit dependency. If you only want the base MCP transport (no CMS tools), install Magebit_Mcp alone; this module is designed to be optional.

Tool catalog

Read tools

Tool What it does
cms.page.list Paginated CMS-page search; filter by identifier (exact / glob / array), title substring, is_active, store_id, website_id (expanded to store-view ids), creation_time range, update_time range.
cms.page.get Single CMS page by numeric id or identifier (+ optional store_id for identifier lookup).
cms.block.list Paginated CMS-block search with the same filter vocabulary as pages.
cms.block.get Single CMS block by numeric id or identifier.

Write tools

All writes require the global magebit_mcp/general/allow_writes flag and the token's own allow_writes flag to be 1. Every write sets requires_confirmation so MCP clients (Claude Desktop, etc.) prompt before firing.

Tool Confirm? Delegates to Underlying ACL
cms.page.create yes PageRepositoryInterface::save() Magento_Cms::save
cms.page.update yes PageRepositoryInterface::save() (PATCH) Magento_Cms::save
cms.page.delete yes PageRepositoryInterface::delete() Magento_Cms::page_delete
cms.block.create yes BlockRepositoryInterface::save() Magento_Cms::block
cms.block.update yes BlockRepositoryInterface::save() (PATCH) Magento_Cms::block
cms.block.delete yes BlockRepositoryInterface::delete() Magento_Cms::block

Every write tool also implements Magebit\Mcp\Api\UnderlyingAclAwareInterface so the handler blocks calls from admins who wouldn't be allowed to perform the same action in the admin UI.

Identifier lookups and store scope

cms.page.get, cms.page.update, cms.page.delete (and the block siblings) accept either id (numeric primary key) or identifier (the admin URL key). Identifier lookups require a store scope:

Pages / blocks assigned to a specific store view are invisible from other stores by design.

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-cms-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-cms-tools contains the following files

Loading the files please wait ...