-
Notifications
You must be signed in to change notification settings - Fork 902
feat: add Claude Code plugin support with MCP integration #5247
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: v4
Are you sure you want to change the base?
Conversation
Add Claude Code plugin support with MCP server integration: - Add plugin manifest (.claude-plugin/plugin.json) - Configure HTTP transport MCP server (https://ui.nuxt.com/mcp) - Add SessionStart hook for automatic context loading - Create usage documentation (hooks/NUXTUI.md) - Update README with Claude Code installation instructions Features: - 13 MCP tools for components, documentation, templates, and examples - Automatic tool usage instructions on session start - Live documentation access via remote MCP server - Seamless integration with Claude Code plugin system
Move Claude Code plugin documentation from README to official MCP documentation: - Add dedicated "Claude Code Plugin" section in MCP guide - Remove plugin documentation from README (keep it focused on library installation) - Highlight plugin as recommended approach for Claude Code users - Document enhanced features: automatic setup, context loading, zero config - Position plugin section after basic MCP setup for progressive disclosure The plugin section emphasizes the benefits of using the plugin over manual MCP setup: - Automatic MCP server configuration - Auto-loading usage instructions on session start - Enhanced Claude integration with automatic tool discovery
commit: |
@amondnet I can't see what really changes between using the plugin or just connecting the MCP server, the only thing I see is that you add instructions via a .MD file but couldn't that be done in an AGENTS.MD file or something? 🤔 And if we adopt this approach, we'll have to publish the plugin under an official name |
- Add comprehensive /migrate-to-v4 slash command for v4 migration - Move commands and hooks to .claude-plugin/ directory for better isolation - Update plugin.json to reference new paths - Update MCP server config to use HTTP transport type The migrate-to-v4 command provides phased migration workflow: - Auto-detection of migration path (Nuxt UI Pro/v3 to v4) - Dependency and configuration updates - Component renames (ButtonGroup→FieldGroup, etc.) - Model modifier updates (nullify→nullable) - Nested form updates with new props - Import path migrations - Optional AI SDK v5 migration - Comprehensive verification steps Organizing plugin files under .claude-plugin/ keeps Claude Code plugin functionality separate from the main Nuxt UI repository.
@HugoRCD You're right that the current Nuxt UI plugin implementation primarily uses the SessionStart hook to load instructions. However, Claude Code plugins provide four major capabilities beyond just MCP servers that can significantly enhance the developer experience:
Real-world example from our company: We manage internal tools via a company marketplace. New developers run: /plugin marketplace add our-company/engineering-tools
/plugin install nuxt-ui@our-company // external plgin
/plugin install firebase@our-company // external plugin
/plugin install standards@our-company // commands, agents All tools auto-update when we push changes. No manual setup docs needed. For Nuxt: If you create a /plugin marketplace add nuxt/nuxt
/plugin install nuxt-ui@nuxt This gives Nuxt full control over distribution while users benefit from automatic updates across all Nuxt tooling (nuxt-ui, devtools, etc.). |
- Change plugin marketplace and installation commands to use `nuxt/nuxt` and `nuxt-ui@nuxt` respectively for clarity and consistency.
- Remove SessionStart hook and related scripts (`context.sh`, `hooks.json`, `NUXTUI.md`) - Update plugin.json to exclude hooks configuration This change streamlines the plugin by removing automatic context loading and usage instructions at session start, aligning with updated plugin requirements.
@HugoRCD I've updated it to use the agent skill. Since it loads into the context when the Nuxt UI component is needed, it's highly efficient and convenient. |
- Document workflows, tools, and commands for implementing Nuxt UI v4 components - Provide quick references for components, templates, and documentation setup - Outline naming conventions, tool categories, and example scenarios for user requests
🔗 Linked issue
N/A - This is a new feature addition that adds Claude Code plugin support to Nuxt UI. Discussion: Adding Claude Code plugin support to improve AI-assisted development experience with Nuxt UI.
❓ Type of change
📚 Description
This PR adds Claude Code plugin support for Nuxt UI, enabling seamless integration with Claude Code's plugin system and automatic MCP server configuration.
What's New
Plugin Configuration:
.claude-plugin/plugin.json
manifest with MCP server configurationhttps://ui.nuxt.com/mcp
Automatic Context Loading:
hooks/hooks.json
) for automatic initializationhooks/context.sh
)hooks/NUXTUI.md
) with tool descriptions and examplesDocumentation Updates:
Benefits
For Claude Code Users:
For Nuxt UI:
Installation
Users can install the plugin with:
Technical Details
https://ui.nuxt.com/mcp
(no server changes)Files Added/Modified
.claude-plugin/plugin.json
(new) - Plugin manifesthooks/hooks.json
(new) - SessionStart hook configurationhooks/context.sh
(new) - Context loading scripthooks/NUXTUI.md
(new) - Usage instructions and tool documentationdocs/content/docs/1.getting-started/7.ai/1.mcp.md
(modified) - Added plugin sectionTesting
References
📝 Checklist