Comprehensive Svelte + shadcn-svelte + Routify development server with modular orchestrator system
A powerful MCP (Model Context Protocol) server that integrates shadcn-svelte, Svelte 5, and Routify for rapid website building, plus a complete modular orchestrator system for complex application state management.
This repository contains two major systems:
/src/
)Strategic Core 8 MCP functions for rapid Svelte development:
Core Functions (6):
generate_component
- Create Svelte components with shadcn-svelte integrationgenerate_page
- Generate complete pages with routingscaffold_project
- Create full project structurecreate_route
- Set up Routify routes with parametersgenerate_theme
- Create consistent design systemslist_templates
- Browse available templates and patternsStrategic Functions (2):
search_examples
- Find relevant code examples and documentationcompose_patterns
- Build complex UI patterns from multiple components/orchestrator-modules/
)Pluggable module system for sophisticated Svelte applications:
Core Foundation:
@orchestrator/core
- Singleton state management, hooks system (always included)Plugin Modules:
@orchestrator/websocket
- Real-time WebSocket integration@orchestrator/api
- REST API management with retry logic@orchestrator/workflow
- Visual workflow engine with node execution@orchestrator/files
- File processing (JSON, YAML, CSV) and uploads@orchestrator/state-ui
- State visualization and management interface@orchestrator/hooks-ui
- Hook management and debugging interface# Install the MCP server globally
npm install -g @theagencyinstitute/mcp-webdev
# Add to your Claude Desktop config
claude mcp add --scope user webdev -- mcp-webdev-server
// Minimal setup (just state management)
import { Orchestrator } from '@orchestrator/core';
const app = Orchestrator.getInstance({
debug: true,
persistence: { type: 'localStorage', prefix: 'my-app' }
});
app.setState('user', { name: 'John', theme: 'dark' });
// Full-featured real-time dashboard
import { Orchestrator } from '@orchestrator/core';
import { WebSocketModule } from '@orchestrator/websocket';
import { ApiModule } from '@orchestrator/api';
import { StateUIModule } from '@orchestrator/state-ui';
const dashboard = Orchestrator.getInstance()
.use(WebSocketModule, { url: 'ws://localhost:8080' })
.use(ApiModule, { baseUrl: 'https://api.example.com' })
.use(StateUIModule);
ā Complete shadcn-svelte Integration (40+ components)
ā Svelte 5 Runes Support
$state
, $derived
, $effect
, $props
integrationā Routify File-based Routing
ā Advanced Code Generation
ā Always-Present State Management
ā Powerful Hook System
ā Visual Workflow Engine
ā Real-time Integration
ā File Processing
mcp_webdev/
āāā src/ # MCP WebDev Server
ā āāā index.ts # Main server entry point
ā āāā integrations/ # shadcn-svelte integration
ā āāā services/ # Code generation services
ā āāā templates/ # Component and page templates
ā āāā generators/ # File generators
āāā orchestrator-modules/ # Modular Orchestrator System
ā āāā core/ # Core orchestrator (state + hooks)
ā āāā websocket/ # WebSocket module
ā āāā api/ # API integration module
ā āāā workflow/ # Workflow engine module
ā āāā files/ # File processing module
ā āāā state-ui/ # State management UI
ā āāā hooks-ui/ # Hook debugging UI
ā āāā examples/ # Usage examples
āāā dist/ # Compiled output
āāā README.md # This file
import { Orchestrator } from '@orchestrator/core';
const app = Orchestrator.getInstance({
persistence: { type: 'localStorage', prefix: 'minimal-app' }
});
app.setState('user', { name: 'John', preferences: { theme: 'dark' } });
app.addHook('afterStateUpdate', (context) => {
console.log(`State updated: ${context.data.key}`, context.data.value);
});
import { Orchestrator } from '@orchestrator/core';
import { WebSocketModule } from '@orchestrator/websocket';
import { ApiModule } from '@orchestrator/api';
const dashboard = Orchestrator.getInstance()
.use(WebSocketModule, {
url: 'ws://localhost:8080/metrics',
autoReconnect: true
})
.use(ApiModule, {
baseUrl: 'https://api.metrics.com',
timeout: 15000
});
dashboard.addHook('websocketMessage', async (context) => {
const { data } = context.data;
if (data.type === 'metrics') {
dashboard.setState('metrics.realtime', data.payload);
}
});
dashboard.connectWebSocket();
import { Orchestrator } from '@orchestrator/core';
import { ApiModule } from '@orchestrator/api';
import { FilesModule } from '@orchestrator/files';
import { WorkflowModule } from '@orchestrator/workflow';
const ecommerce = Orchestrator.getInstance()
.use(ApiModule, { baseUrl: 'https://api.shop.com' })
.use(FilesModule, { allowedTypes: ['csv', 'json'] })
.use(WorkflowModule);
// Order processing workflow
const orderWorkflow = {
id: 'order-processing',
name: 'Order Processing',
nodes: [
{ id: 'validate-cart', type: 'condition' },
{ id: 'create-order', type: 'action' },
{ id: 'send-confirmation', type: 'action' }
]
// ... connections and config
};
ecommerce.saveWorkflow(orderWorkflow);
Function | Purpose | Example |
---|---|---|
Core 6 Functions | ||
mcp__webdev__generate_component |
Create Svelte components | Button, Card, Form |
mcp__webdev__generate_page |
Build complete pages | Landing, About, Blog |
mcp__webdev__scaffold_project |
Full project setup | Startup, Corporate |
mcp__webdev__create_route |
Routing automation | /about, /blog/[slug] |
mcp__webdev__generate_theme |
Theme generation | Modern Blue, Bold Red |
mcp__webdev__list_templates |
Show available templates | Components, Pages |
Strategic +2 Functions | ||
mcp__webdev__search_examples |
Find code examples | Authentication forms, data tables |
mcp__webdev__compose_patterns |
Build complex UI patterns | Dashboard, E-commerce grid |
git clone https://github.com/TheAgencyInstitute/mcp_webdev.git
cd mcp_webdev
npm install
# Build the MCP server
npm run build
# Test the server
npm test
# Development mode
npm run dev
# Test MCP server connection
node test-server.js
# Test individual functions
npm run test:generate-component
npm run test:scaffold-project
cd orchestrator-modules/core
npm run build
cd ../websocket
npm run build
# ... etc for other modules
Works seamlessly with:
git checkout -b feature/amazing-feature
)git commit -m 'Add amazing feature'
)git push origin feature/amazing-feature
)MIT License - see LICENSE for details.
MCP Server Enhancements
Orchestrator Modules
Developer Experience
Built with ā¤ļø by The Agency Institute
Empowering rapid, modular, and scalable Svelte application development