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.

Maintainers

Package info

github.com/Sylius/sylius-mate-extension

Type:symfony-ai-mate

pkg:composer/sylius/sylius-mate-extension

Fund package maintenance!

sylius

Statistics

Installs: 1

Dependents: 1

Suggesters: 0

Stars: 0

Open Issues: 0

v0.1.0 2026-05-29 05:12 UTC

This package is auto-updated.

Last update: 2026-05-29 05:25:30 UTC


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.