Skip to main content
Glama

NTV Scaffolding MCP Server

SELECTOR_CORRECTIONS.md•3.03 kB
# āœ… Selector Corrections - All Components Updated ## šŸ” **Issue Found** The MCP database had **outdated/incorrect selectors** that didn't match the actual component implementations in the NTV Scaffolding repository. **Example Found:** - MCP had: `lib-card` - Actual component: `ntv-card` --- ## šŸ“‹ **All Corrections Made (13 Components)** | Component | Old Selector | āœ… New Selector | Status | |-----------|--------------|-----------------|--------| | Button | ntv-button | **ntv-button** | āœ… Correct | | Input | **lib-input** | **ntv-input** | ✨ FIXED | | Card | **lib-card** | **ntv-card** | ✨ FIXED | | Autocomplete | **lib-autocomplete** | **ntv-autocomplete** | ✨ FIXED | | Accordion | **lib-accordion** | **ntv-accordion** | ✨ FIXED | | Stepper | **lib-stepper** | **ntv-stepper** | ✨ FIXED | | Popover | **lib-popover** | **ntv-popover** | ✨ FIXED | | ThumbnailGallery | **lib-thumbnail-gallery** | **ntv-thumbnail-gallery** | ✨ FIXED | | Modal | **lib-modal** | **ntv-modal** | ✨ FIXED | | Template | **lib-template** | **ntv-template** | ✨ FIXED | | Table | **lib-table** | **ntv-table** | ✨ FIXED | | Offcanvas | **lib-offcanvas** | **ntv-offcanvas** | ✨ FIXED | | ThumbnailItem | **lib-thumbnail-item** | **ntv-thumbnail-item** | ✨ FIXED | --- ## šŸ“Š **Summary** - **Total Components**: 13 - **Incorrect Selectors**: 12 (92%) - **Corrected**: 12 āœ… - **Already Correct**: 1 (Button) --- ## šŸŽÆ **What This Fixes** ### **Before (Broken):** ```typescript <lib-card>This would NOT work</lib-card> ``` ### **After (Fixed):** ```typescript <ntv-card>This works correctly!</ntv-card> ``` --- ## šŸ”„ **Verification** All selectors were verified against the actual component files in: ``` C:\Users\Admin\Documents\repos\component-mcp\ntv-scaffolding\libs\component-pantry\src\lib\component-pantry ``` Each component's `.ts` file was checked for the `selector:` metadata. --- ## šŸš€ **Updated Behavior** Now when AI generates code, it will produce: ### āœ… **Correct Template** ```html <ntv-button [config]="{ variant: 'primary' }">Click</ntv-button> <ntv-card>Content</ntv-card> <ntv-input placeholder="Name"></ntv-input> ``` ### āœ… **Instead of (Broken)** ```html <!-- These would NOT work anymore --> <lib-button [config]="{ variant: 'primary' }">Click</lib-button> <lib-card>Content</lib-card> <lib-input placeholder="Name"></lib-input> ``` --- ## šŸ“ **Naming Pattern** **The correct naming convention is:** - All selectors use `ntv-` prefix (not `lib-`) - Format: `ntv-{component-name}` - Examples: - `ntv-button` - `ntv-card` - `ntv-modal` - `ntv-thumbnail-gallery` --- ## ✨ **Files Updated** - āœ… `src/data/components.ts` - Updated all 12 selectors - āœ… `npm run build` - Recompiled successfully --- ## šŸŽ‰ **Result** The MCP server now has **100% accurate selectors** that match the actual NTV Scaffolding component library! **Version**: 1.0.2 (Corrected) **Status**: āœ… All selectors verified and corrected **Date**: November 3, 2025

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/stephenlumban/component-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server