定制 sylius/sylius-mate-extension 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

sylius/sylius-mate-extension

Composer 安装命令:

composer require --dev sylius/sylius-mate-extension

包简介

Dev-only Symfony AI Mate extension for Sylius: exposes the runtime domain (resources, hooks, grids, routes, services) to AI clients via MCP.

README 文档

README

Sylius Logo.

Sylius Mate Extension

Dev-only Symfony AI Mate extension exposing the Sylius runtime domain to AI assistants via MCP.

About

The Sylius Mate Extension is an AI Mate extension for Sylius. It exposes the Sylius runtime domain — resources, hooks, grids, routes, services, Twig helpers, mailer configuration — to AI assistants over the Model Context Protocol (MCP).

Every tool runs against the host project's booted Symfony kernel, so listings, inspections, and audits reflect the real container, real grid configuration, real route map, real installed plugins. Agents generate Sylius code against the actual shape of your application instead of hallucinating Twig helpers, routes, or resource patterns.

The extension is dev-only. Install it as a require-dev dependency; never ship it to production.

Documentation

See INSTRUCTIONS.md for the full description of every MCP tool, when to call it, and the hard rules agents must follow (Twig helper verification, route lookup, resource scaffolding, mutating-tool confirmation).

General Sylius documentation is available at docs.sylius.com.

Installation

Add the extension as a dev dependency of your Sylius project:

$ composer require --dev sylius/sylius-mate-extension

Initialize the Mate environment and discover the extension:

$ vendor/bin/mate init
$ vendor/bin/mate discover

Extension discovery runs automatically after Composer install and update. Run vendor/bin/mate discover manually to refresh discovery state and regenerate agent instruction artifacts.

Available Tools

Tools are grouped by domain. Full reference in INSTRUCTIONS.md.

  • Resourcesylius_domain_list_resources, sylius_domain_resource_template, sylius_resource_inspect
  • Gridsylius_domain_list_grids, sylius_grid_actions_audit
  • Hooksylius_hooks_list, sylius_hooks_find_for_template, sylius_hooks_list_hookables, sylius_hooks_resolve_for_visibility
  • Twigsylius_twig_list_functions, sylius_twig_function_verify, sylius_test_render_template
  • Routesylius_routes_show, sylius_route_inspect
  • Mailer / Emailsylius_email_capture_status, sylius_mailer_verify_template, sylius_email_template_skeleton
  • Service configurationsylius_services_yaml_profile, sylius_services_yaml_audit, sylius_services_yaml_patch_exclude
  • Projectsylius_project_profile, sylius_installed_plugins, sylius_project_audit
  • Translationsylius_translation_create
  • Admin / Playwrightsylius_admin_restock_via_http, sylius_playwright_recipe
  • Cachesylius_cache_clear

Development

$ composer install
$ vendor/bin/phpunit

Useful Mate commands while developing:

$ vendor/bin/mate debug:capabilities
$ vendor/bin/mate debug:extensions
$ vendor/bin/mate mcp:tools:list

Contributing

Would like to help us build a more capable Sylius developer experience? Start from reading our Contribution Guide.

Bug Tracking

If you want to report a bug or suggest an idea, please use GitHub issues.

Community Support

Get Sylius support on Slack, Forum or Stack Overflow.

MIT License

The Sylius Mate Extension is released under the terms of the MIT License.

统计信息

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

GitHub 信息

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

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固