What problem does it solve?
Klytos Plugin Development provides a canonical, end-to-end guide for creating and maintaining plugins in the Klytos ecosystem, covering entry points, contract rules, and best practices so plugins integrate cleanly with MCP, admin pages, and the plugin loader.
Core Features & Use Cases
- Canonical identity contract: ensures each plugin is discovered via a main {plugin-id}.php file containing a Plugin Name header.
- Structured plugin layout: templates for core directories (admin, assets, lang, src, migrations) and clear guidance for hooks, tools, and routes.
- Lifecycle & internationalization: demonstrates how to register MCP tools, actions/filters, translations, and event hooks, plus proper asset loading with CSP nonces.
- Use Case: A developer creates a new payment gateway plugin that registers MCP tools, admin pages, and API routes, all following the canonical contract.
Quick Start
Create a minimal plugin directory under plugins/my-plugin, include my-plugin.php with a Plugin Name header, and register a basic admin menu item.