NTV Scaffolding MCP Server
Enables discovery, documentation access, and code generation for NTV Scaffolding Angular components, including templates, TypeScript classes, styles, and tests.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@NTV Scaffolding MCP Servershow me the documentation for the Button component"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
π€ NTV Scaffolding MCP Server
MCP (Model Context Protocol) Server for NTV Scaffolding Components - Enables AI assistants to easily discover, understand, and generate code for NTV Scaffolding Angular components.
π Quick Start
Prerequisites
Node.js 18+
npm or yarn
Installation
# Clone or navigate to the project
cd component-mcp
# Install dependencies
npm install
# Build TypeScript
npm run build
# Start the server
npm startπ§ Development
# Watch mode (rebuild on changes)
npm run watch
# Run in development mode
npm run devπ Available Tools
The MCP Server provides 7 powerful tools for working with NTV components:
1. list_ntv_components
Lists all available NTV Scaffolding components with filtering options.
Parameters:
category(optional): Filter by category (ui, form, navigation, data, layout, utility)
Example:
{
"category": "form"
}2. get_ntv_component_doc
Gets comprehensive documentation for a specific component.
Parameters:
component(required): Component name (e.g., 'Button', 'Input')
Returns:
Component name, selector, category, description
All props with types and defaults
Events, slots, examples
Best practices
3. get_ntv_component_props
Get detailed information about component properties.
Parameters:
component(required): Component namepropName(optional): Specific property to details
Example:
{
"component": "Button",
"propName": "variant"
}4. generate_ntv_template_code
Generates HTML template code for a component with custom configuration.
Parameters:
component(required): Component namevariant(optional): Visual variantsize(optional): Component sizecontent(optional): Content/text insideadditionalProps(optional): Additional propertiesuseConfigPattern(optional): Use config pattern. Default: true
Example:
{
"component": "Button",
"variant": "primary",
"size": "lg",
"content": "Click Me",
"useConfigPattern": true
}5. generate_ntv_component_usage
Generates complete component usage examples with TypeScript class and template.
Parameters:
component(required): Component nameusageType(optional): Type of example (basic, advanced, full-form). Default: basiccomponentName(optional): Custom component name for example
Example:
{
"component": "Button",
"usageType": "advanced",
"componentName": "CustomButton"
}6. generate_ntv_component_file
Generates complete component files (TypeScript, template, styles, tests).
Parameters:
component(required): Component namefilename(optional): Output filename in kebab-caseselector(optional): Angular component selectorincludeStyles(optional): Include CSS file. Default: trueincludeTests(optional): Include test file. Default: true
Example:
{
"component": "Button",
"filename": "my-button",
"selector": "app-my-button",
"includeStyles": true,
"includeTests": true
}7. get_ntv_component_examples
Gets predefined usage examples and code snippets.
Parameters:
component(required): Component nameincludeCode(optional): Include code snippets. Default: true
ποΈ Project Structure
component-mcp/
βββ src/
β βββ index.ts # Main MCP server entry point
β βββ tools/
β β βββ index.ts # Tools registry
β β βββ listComponents.ts # List components tool
β β βββ getComponentDoc.ts # Get documentation tool
β β βββ getComponentProps.ts # Get properties tool
β β βββ generateTemplateCode.ts # Generate template tool
β β βββ generateComponentUsage.ts # Generate usage examples
β β βββ generateComponent.ts # Generate component files
β β βββ getComponentExamples.ts # Get examples tool
β βββ data/
β β βββ components.ts # Component database
β βββ resources/
β βββ index.ts # Resource handlers
βββ dist/ # Compiled output
βββ package.json
βββ tsconfig.json
βββ README.mdπ§© Supported Components
The MCP server currently supports:
Button - Versatile button with multiple variants
Input - Form input with validation
Card - Container component
Autocomplete - Input with suggestions
Accordion - Collapsible panels
Stepper - Multi-step workflow
Popover - Contextual tooltip
ThumbnailGallery - Image gallery
Modal - Dialog overlay
Template - Page template layout
π‘ Use Cases
For AI Assistants:
Discover Components: Use
list_ntv_componentsto see what's availableGet Documentation: Use
get_ntv_component_docfor detailed infoGenerate Code: Use
generate_ntv_template_codefor quick snippetsCreate Examples: Use
generate_ntv_component_usagefor complete examplesGenerate Files: Use
generate_ntv_component_filefor full component files
For Developers:
Quick reference for component APIs
Auto-generation of boilerplate code
Examples and best practices
Type-safe configuration objects
π Integration with Claude/Other AIs
Using with Cursor/Claude:
Start the MCP server:
npm startConfigure your AI client to connect to the server
Ask the AI to use the NTV component tools
The AI can generate components, templates, and code
Example Prompts:
"Show me all available form components"
"Generate a Button component with primary variant and large size"
"Create a complete Button component file with tests"
"Show me advanced usage of the Stepper component"
"Generate a form with Button, Input, and Card components"
π Component Database
The MCP server includes a comprehensive component database (components.ts) with:
Component metadata (name, selector, category)
All properties with types and defaults
Events and slots
Usage examples
Best practices
Configuration interfaces
To add new components:
Edit
src/data/components.tsAdd component metadata to
COMPONENTS_DBarrayRebuild:
npm run buildRestart server:
npm start
π Deployment
Build for production:
npm run buildRun in production:
npm startDocker (Optional):
FROM node:20-alpine
WORKDIR /app
COPY package*.json ./
RUN npm install --production
COPY dist ./dist
CMD ["npm", "start"]π€ Contributing
To add new tools:
Create a new file in
src/tools/Implement the
MCPToolinterfaceExport it from
src/tools/index.tsThe tool will automatically be registered
π API Response Format
All tools return responses in this format:
{
"content": [
{
"type": "text",
"text": "response content here"
}
]
}π Troubleshooting
Server won't start:
# Check Node version
node --version # Should be 18+
# Clear cache and reinstall
rm -rf node_modules package-lock.json
npm install
npm run buildTool not found:
Ensure all imports are correct
Verify tool is exported from
tools/index.tsCheck that tool names match exactly
TypeScript errors:
npm run build -- --noEmitπ Resources
π License
MIT
π¨βπ» Author
NTV Scaffolding Team
Happy coding! π
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
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