Skip to content

Repository files navigation

Pollora

Nectar — AI-powered development context for Pollora

Latest Stable VersionTotal DownloadsLicense

About Nectar

Nectar feeds AI agents with the context they need to write high-quality Pollora code. Built on top of Laravel Boost, it provides AI guidelines, agent skills, and a dedicated MCP server tailored to the Pollora framework and WordPress integration.

What it provides

FeatureDescription
AI GuidelinesPollora architecture, PHP attributes, WordPress routing, Blade theming — injected into your agent's context via Boost
8 Agent SkillsOn-demand knowledge for post types, taxonomies, theming, hooks, blocks, REST API, scheduling, and modules
10 MCP ToolsLive introspection of your WordPress & Pollora environment directly from your AI agent
Upgrade PromptsStep-by-step MCP prompts for upgrading between Pollora major versions (e.g., 12→13)

Installation

composer require pollora/nectar --dev

Then run Boost to install guidelines and skills:

php artisan boost:install

Select pollora/nectar when prompted for third-party packages, or add it manually to boost.json:

{
"packages": ["pollora/nectar"]
}

Then update:

php artisan boost:update

MCP Server

Nectar registers a pollora-nectar MCP server that gives AI agents live access to your WordPress and Pollora environment.

Starting the server

php artisan nectar:mcp

Or register it in your .mcp.json:

{
"mcpServers": {
"pollora-nectar": {
"command": "php",
"args": ["artisan", "nectar:mcp"]
}
}
}

Available MCP Tools

ToolDescription
pollora_statusPHP, Laravel, Pollora & WordPress versions, active theme, discovery cache status
wordpress_infoWordPress version, plugins, theme, multisite status, constants, locale
post_types_infoAll registered custom post types with supports, taxonomies, and configuration
taxonomies_infoAll registered taxonomies with associated post types
registered_hooksHooks discovered via #[Action] and #[Filter] attributes
active_theme_infoTheme structure, service providers, config files, Vite/Tailwind status, blocks
discovered_componentsAll auto-discovered components grouped by type (post types, taxonomies, hooks, schedules, REST routes)
wordpress_routesAll routes including Route::wp() with WordPress conditions and middleware
modules_infoInstalled Laravel Modules with status
wp_optionRead any WordPress option by key

AI Guidelines

Guidelines are loaded automatically when Boost runs. They cover:

  • Pollora architecture (Laravel + WordPress bridge)
  • PHP 8 attributes (#[PostType], #[Taxonomy], #[Action], #[Filter], #[Schedule], #[WpRestRoute])
  • WordPress routing with Route::wp() and template hierarchy
  • Blade templating with Sage Directives
  • Theme development conventions
  • Available Artisan commands

Agent Skills

Skills are activated on-demand when working on specific tasks:

SkillWhen it activates
pollora-post-typesCreating custom post types with attributes
pollora-taxonomiesCreating custom taxonomies
pollora-themingTheme development (Blade, Vite, Tailwind, assets)
pollora-hooksRegistering WordPress actions & filters
pollora-blocksGutenberg block development with JSX & Tailwind
pollora-rest-apiREST API endpoints with #[WpRestRoute]
pollora-schedulingScheduled tasks with #[Schedule]
pollora-modulesLaravel Modules with auto-discovery

Upgrade Assistance

Nectar provides MCP upgrade prompts that guide AI agents through Pollora major version upgrades. Prompts are automatically registered when the current project version matches.

PromptAvailable whenCovers
upgrade-pollora-v13Pollora 12.x detectedLoop facade removal, config registration removal, CSRF middleware rename, Vite theme.json setup, WordPress 7.0, and more

The upgrade prompt includes:

  • Step-by-step process (assess → safety net → analyze → apply → update deps → clean up)
  • All breaking changes with search patterns and before/after code examples
  • Theme build pipeline updates (@roots/vite-plugin, wordpressThemeJson)
  • Post-upgrade cleanup (wp transient delete --all)

Configuration

Publish the config file:

php artisan vendor:publish --tag=nectar-config
// config/nectar.phpreturn [
'enabled' => env('NECTAR_ENABLED', true),
'mcp' => [
'tools' => [
'exclude' => [], // Tool class names to exclude'include' => [], // Additional tool class names to include
],
],
];

Requirements

  • PHP ^8.3
  • Laravel 12.x or 13.x
  • Pollora Framework (any version)
  • Laravel Boost ^2.0

License

Nectar is open-sourced software licensed under the GPL-2.0-or-later.

About

AI-powered development context for Pollora — guidelines, skills, and MCP tools for AI agents.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages