承接 ayasoftware/magento2-mcp-api 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

ayasoftware/magento2-mcp-api

最新稳定版本:1.1.0

Composer 安装命令:

composer require ayasoftware/magento2-mcp-api

包简介

Magento 2 MCP API - Additional REST API endpoints for Magento 2 MCP Server

README 文档

README

Additional REST API endpoints for Magento 2 MCP Server that extend Magento's native capabilities.

Version

Current Version: 1.1.0

Installation

composer require ayasoftware/magento2-mcp-api
php bin/magento module:enable Ayasoftware_McpApi
php bin/magento setup:upgrade
php bin/magento cache:flush

Features

Indexer Management

Advanced indexer operations beyond Magento's default REST API.

Coupon Management

Update individual coupon properties (not available in Magento's default REST API).

Layout

  • composer.json
  • src/registration.php
  • src/etc/module.xml
  • src/etc/acl.xml
  • src/etc/di.xml
  • src/etc/webapi.xml
  • src/Api/IndexerManagementInterface.php
  • src/Model/IndexerManagement.php
  • src/Api/CouponManagementInterface.php
  • src/Model/CouponManagement.php

Endpoints

Indexer Management

  • POST /V1/mg_indexer_reindex - Reindex all indexers
  • GET /V1/mg_indexer_info - Get info for all indexers
  • GET /V1/mg_indexer_info/:indexerId - Get info for specific indexer
  • POST /V1/mg_indexer_reindex/:indexerId - Reindex specific indexer
  • POST /V1/mg_indexer_reindex_search - Reindex search index only
  • GET /V1/mg_indexer_status - Get status for all indexers
  • GET /V1/mg_indexer_status/:indexerId - Get status for specific indexer

Coupon Management

  • PUT /V1/mg_coupon/:couponId - Update coupon properties

Update Coupon Example

curl -X PUT "https://your-store.com/rest/V1/mg_coupon/123" \
  -H "Authorization: Bearer your-access-token" \
  -H "Content-Type: application/json" \
  -d '{
    "couponData": {
      "code": "SUMMER2026",
      "usage_limit": 1000,
      "usage_per_customer": 5,
      "expiration_date": "2026-08-31"
    }
  }'

Updatable Fields:

  • code - Coupon code string
  • usage_limit - Maximum number of times coupon can be used
  • usage_per_customer - Maximum uses per customer
  • times_used - Current usage count
  • expiration_date - Expiration date (Y-m-d format)
  • is_primary - Whether this is the primary coupon for the rule

License

MIT

统计信息

  • 总下载量: 3
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 11
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-05-11

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固