@progress/kendo-react-mcp 1.5.5 → 1.6.0-dev.fb926bc2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env node
2
- import{McpServer as pt}from"@modelcontextprotocol/sdk/server/mcp.js";import{StdioServerTransport as dt}from"@modelcontextprotocol/sdk/server/stdio.js";import{dirname as Ze,join as et}from"path";import{fileURLToPath as tt}from"url";import{loadLicense as Ve,decodeLicenseKey as je,decodeLicenseEvidence as We}from"@progress/kendo-licensing/utils";var q=class extends Error{constructor(t){super(t),this.name="LicenseError"}};function ee(e){return e.replace(/^\uFEFF/,"")}async function te(){let e=null,t=null;try{let o=Ve();if(!o.success)throw new q(o.message);try{e=(await je(o.value)).licenses.find(async s=>!!(await We(s)).userId)}catch(n){console.log(n.message)}if(!e)return[ee(o.value),null]}catch(o){return t=o.message||"Unknown error loading license.",[null,t]}return[ee(e),null]}import P from"node:fs";import U from"node:path";var B=!1,w=process.env.DEBUG_LOG_FILE,oe=!!(w&&typeof w=="string");if(oe){let e=U.resolve(w),t=U.dirname(e);if(t!=="."&&t!==process.cwd()&&!P.existsSync(t))try{P.mkdirSync(t,{recursive:!0})}catch(o){console.error("Error creating log directory:",o)}if(!P.existsSync(e))try{P.writeFileSync(e,"")}catch(o){console.error("Error creating log file:",o)}}else B=!1;B=oe&&!!w&&P.existsSync(U.resolve(w));function C(...e){if(B&&w){let n=`${new Date().toISOString()}: ${e.join(" ")}
3
- `,s=U.resolve(w);P.appendFile(s,n,a=>{a&&console.error("Error writing to log file:",a)})}}import Ye from"@grpc/proto-loader";import M from"@grpc/grpc-js";import ie from"path";import ne from"fs";import{fileURLToPath as He}from"url";var ze=He(import.meta.url),Qe=ie.dirname(ze),ae={version:"unknown"},se=ie.resolve(Qe,"../package.json");ne.existsSync(se)&&(ae=JSON.parse(ne.readFileSync(se,"utf-8")));function Je(e){return e.replace(/\u2014/g,"--").replace(/\u2013/g,"-").replace(/[^\x20-\x7E]/g,"")}var G=class{constructor(t,o,n){this.contextApiUrl=t;this.protoPath=o;this.options=n;this.toolNameHeader="assistant";let s=Ye.loadSync(this.protoPath,{keepCase:!0,longs:String,enums:String,defaults:!0,oneofs:!0});this.isDev=this.contextApiUrl?.includes("localhost")||this.contextApiUrl?.includes("127.0.0.1"),C("Using ContextApi URl:",this.contextApiUrl);let a=M.loadPackageDefinition(s);this.client=new a.ContextQueryService(this.contextApiUrl||"contextapi.telerik.com:443",this.isDev?M.credentials.createInsecure():M.credentials.createSsl())}async getMetadata({meta:t}={meta:{}}){let[o,n]=this.isDev?"fake_license":await te(),s=process.env.CONTEXTAPI_API_KEY,a=s&&typeof s=="string",i=o&&typeof o=="string";if(!i&&!a&&n)throw new Error(`Failed to authenticate with API key or License key!
2
+ import{McpServer as St}from"@modelcontextprotocol/sdk/server/mcp.js";import{StdioServerTransport as Tt}from"@modelcontextprotocol/sdk/server/stdio.js";import{dirname as ct,join as lt}from"path";import{fileURLToPath as dt}from"url";import{loadLicense as Je,decodeLicenseKey as Xe,decodeLicenseEvidence as Ze}from"@progress/kendo-licensing/utils";var B=class extends Error{constructor(t){super(t),this.name="LicenseError"}};function te(e){return e.replace(/^\uFEFF/,"")}async function oe(e){let t=null,n=null;try{let o=Je();if(!o.success){let s=new B(o.message);throw e&&await e("license_load_failed",{error:o.message}).catch(()=>{}),s}try{t=(await Xe(o.value)).licenses.find(async r=>!!(await Ze(r)).userId)}catch(s){console.log(s.message),e&&await e("license_load_failed",{error:s.message||"Unknown decoding error"}).catch(()=>{})}if(!t)return[te(o.value),null]}catch(o){return n=o.message||"Unknown error loading license.",e&&await e("license_load_failed",{error:n}).catch(()=>{}),[null,n]}return[te(t),null]}import P from"node:fs";import U from"node:path";var q=!1,E=process.env.DEBUG_LOG_FILE,ne=!!(E&&typeof E=="string");if(ne){let e=U.resolve(E),t=U.dirname(e);if(t!=="."&&t!==process.cwd()&&!P.existsSync(t))try{P.mkdirSync(t,{recursive:!0})}catch(n){console.error("Error creating log directory:",n)}if(!P.existsSync(e))try{P.writeFileSync(e,"")}catch(n){console.error("Error creating log file:",n)}}else q=!1;q=ne&&!!E&&P.existsSync(U.resolve(E));function h(...e){if(q&&E){let o=`${new Date().toISOString()}: ${e.join(" ")}
3
+ `,s=U.resolve(E);P.appendFile(s,o,r=>{r&&console.error("Error writing to log file:",r)})}}import et from"@grpc/proto-loader";import $ from"@grpc/grpc-js";import re from"path";import se from"fs";import{fileURLToPath as tt}from"url";var ot=tt(import.meta.url),nt=re.dirname(ot),ie={version:"unknown"},ae=re.resolve(nt,"../package.json");se.existsSync(ae)&&(ie=JSON.parse(se.readFileSync(ae,"utf-8")));function st(e){return e.replace(/\u2014/g,"--").replace(/\u2013/g,"-").replace(/[^\x20-\x7E]/g,"")}var M=class{constructor(t,n,o){this.contextApiUrl=t;this.protoPath=n;this.options=o;this.toolNameHeader="assistant";let s=et.loadSync(this.protoPath,{keepCase:!0,longs:String,enums:String,defaults:!0,oneofs:!0});this.isDev=this.contextApiUrl?.includes("localhost")||this.contextApiUrl?.includes("127.0.0.1"),h("Using ContextApi URl:",this.contextApiUrl);let r=$.loadPackageDefinition(s);this.client=new r.ContextQueryService(this.contextApiUrl||"contextapi.telerik.com:443",this.isDev?$.credentials.createInsecure():$.credentials.createSsl())}async getMetadata({meta:t}={meta:{}}){let[n,o]=this.isDev?["fake_license",null]:await oe((m,A)=>this.logEvent(m,A)),s=process.env.CONTEXTAPI_API_KEY,r=s&&typeof s=="string",a=n&&typeof n=="string";if(!a&&!r&&o)throw new Error(`Failed to authenticate with API key or License key!
4
4
 
5
- License Error: ${n}`);let r=new M.Metadata;if(i)try{r.add("x-license-key",o)}catch(h){throw C("Error adding license key to metadata:",h),new Error(`Failed to use license key: ${h.message}`)}a&&r.add("x-api-key",s),this.options?.libName&&r.add("x-library-name",this.options.libName),r.add("x-tool-name",this.toolNameHeader);let f=JSON.stringify({...t,source:"npm",version:ae.version,os:process.platform,node_version:process.version});return r.add("x-request-metadata",Je(f)),r}async query(t,o){let n=await this.getMetadata({meta:o});return new Promise((s,a)=>{this.client.query(t,n,(i,r)=>{i?a(new Error(i)):s(r)})})}async getApiRefMatches(t,o){let n=await this.getMetadata({meta:o});return new Promise((s,a)=>{this.client.getApiRefMatches(t,n,(i,r)=>{i?a(new Error(i)):s(r)})})}async queryCssUtils(t,o){let n=await this.getMetadata({meta:o});return new Promise((s,a)=>{this.client.cssUtilsSearch(t,n,(i,r)=>{i?(C("Error querying CSS Utils:",i),a(new Error(i))):s(r)})})}async queryIconsSearch(t,o){let n=await this.getMetadata({meta:o});return new Promise((s,a)=>{this.client.iconsSearch(t,n,(i,r)=>{i?(C("Error querying Icons Search:",i),a(new Error(i))):s(r)})})}async queryBuildingBlocks(t,o){let n=await this.getMetadata({meta:o});return new Promise((s,a)=>{this.client.buildingBlocksSearch(t,n,(i,r)=>{i?(C("Error querying Building Blocks:",i),a(new Error(i))):s(r)})})}async validateUserLicense(){let t=await this.getMetadata();return new Promise((o,n)=>{this.client.validateUserLicense(null,t,(s,a)=>{s?(C("Error validating user license:",s),n(new Error(s))):o(a)})})}async queryThemeGenerate(t,o){let n=await this.getMetadata({meta:o});return new Promise((s,a)=>{this.client.generateTheme(t,n,(i,r)=>{i?(C("Error querying context API/GenerateTheme:",i),a(new Error(i))):s(r)})})}async recordOrchestratorUserRequest({meta:t}){let o=await this.getMetadata({meta:t});return new Promise((n,s)=>{this.client.recordOrchestratorUserRequest(null,o,(a,i)=>{a?(C("Error recording orchestrator user request:",a),s(new Error(a))):n(i)})})}};import{z as F}from"zod";var Ut=F.object({user_id:F.string(),user_email:F.string().email()});import{z as S}from"zod";var Xe=S.object({Product:S.object({Id:S.number().int(),Code:S.string(),Name:S.string()}),License:S.nullable(S.object({Id:S.number().int(),Name:S.string(),Type:S.string(),Active:S.boolean()})),Availability:S.array(S.object({LicenseStart:S.nullable(S.string().datetime()),LicenseEnd:S.nullable(S.string().datetime())})),IsLicenseAvailable:S.optional(S.boolean())}),_t=S.array(Xe);async function re(e){let t=process.env.KENDO_MCP_ACCESS;if(t==="true"||t==="1"||t==="full")return"full";if(typeof t=="string"&&(t.toLowerCase()==="agent"||t.toLowerCase()==="assistant"))return t.toLowerCase();let o=await e();return o.toLocaleLowerCase()==="agentic_ui_generator"?"agent":o.toLocaleLowerCase()==="ai_coding_assistants"?"assistant":"none"}function ce(){return'**Accessibility Guidelines: WCAG 2.2 Level AA Compliance**\n\n**Core Principles:**\n1. Use semantic HTML and ARIA correctly\n2. Ensure WCAG 2.2 AA compliance\n3. Follow W3C ARIA Authoring Practices\n4. Provide standards-based accessibility fixes\n\n**1. Form Control Labels** (WCAG 1.3.1, 3.3.2, 4.1.2)\nEvery input must have an associated label.\nCORRECT: `<input type="search" aria-label="Search products" placeholder="Search...">`\nWRONG: `<span>Email</span><input type="email">` (no association)\nWRONG: `<input type="email" placeholder="Email">` (placeholder as label)\n\n**2. Button Accessibility** (WCAG 4.1.2, 2.4.6, 2.5.3)\nAll buttons need accessible names describing their purpose.\nCORRECT: `<button type="button">Save Changes</button>`\nCORRECT: `<button aria-label="Close dialog"><svg aria-hidden="true" focusable="false">...</svg></button>`\nWRONG: `<button><svg>...</svg></button>` (no accessible name)\nWRONG: `<button>Click here</button>` (generic text)\n\n**3. Popup/Menu Triggers** (WCAG 4.1.2, 1.3.1)\nIndicate popup purpose and state using aria-haspopup, aria-expanded, aria-controls.\nCORRECT: `<button aria-expanded="false" aria-haspopup="menu" aria-controls="menu-id">Settings</button>`\n\n**4. Image Accessibility** (WCAG 1.1.1)\nInformative: `<img src="chart.png" alt="Sales increased 25% in Q4 2024">`\nFunctional: `<a href="/home"><img src="logo.png" alt="Company Name Home"></a>`\nDecorative: `<img src="border.png" alt="" role="presentation">`\nComplex: `<img src="chart.png" alt="Sales data" aria-describedby="desc-id">`\nWRONG: Missing alt, filename as alt, generic alt for decorative images\n\n**5. Link Accessibility** (WCAG 2.4.4, 2.4.6)\nLinks must be descriptive and understandable out of context.\nCORRECT: `<a href="/products">View All Products</a>`\nCORRECT: `<a href="/article" aria-label="Read more about New Product Launch">Read more</a>`\nWRONG: "Click here", "Read more", "Learn more" without context\n\n**6. Form Validation** (WCAG 3.3.1, 3.3.2, 3.3.3)\nErrors must be identified, associated with inputs, and provide suggestions. Use aria-describedby, aria-invalid="true", and role="alert".\n\n**7. Heading Structure** (WCAG 1.3.1, 2.4.6)\nEach page should have an `<h1>` that describes its content. Use hierarchical, descriptive headings with no skipped levels (h1\u2192h2\u2192h3).\nCORRECT: `<h1>Dashboard</h1> <h2>Sales</h2> <h3>By Region</h3>`\nWRONG: No `<h1>` on the page, or skipping levels (h1\u2192h3)\nIf a heading should look smaller than its semantic level, use CSS: `<h2 class="text-sm">Subtitle</h2>`\n\n**8. Page Component Landmark Rules** (WCAG 1.3.1, 4.1.2)\nPage components (route components) may be rendered inside a layout that already provides `<main>`, `<header>`, or `<footer>`. Since the layout configuration is unknown, avoid using these landmarks in page components to prevent potential duplication and nesting violations. Use `<div>`, `<section>`, or `<article>` as the top-level wrapper instead.\n\n**Quick Checklist:**\n- **Forms:** Associated labels, aria-required on required fields, autocomplete attributes, aria-describedby for errors, aria-invalid for invalid fields, fieldsets with legends\n- **Buttons/Links:** Accessible names, aria-label for icon buttons, aria-hidden on decorative icons, descriptive link text\n- **Popups/Dialogs:** aria-haspopup, aria-expanded, aria-controls, role="dialog", aria-modal="true", aria-labelledby, focus trap, Escape to close\n- **Images:** alt on all images, descriptive alt for informative, empty alt for decorative, aria-describedby for complex\n- **Structure:** One h1, logical heading hierarchy, avoid `<main>`, `<header>`, or `<footer>` in page/route components (the layout may already provide them), use `<section>` or `<div>` as page-level wrappers, semantic HTML\n- **Dynamic Content:** role="status"/aria-live="polite" for updates, role="alert"/aria-live="assertive" for critical alerts\n- **Keyboard/Focus:** All interactive elements keyboard accessible, logical focus order, visible focus indicators, no keyboard traps (except modals)\n- **Color/Contrast:** 4.5:1 text contrast (3:1 large text), 3:1 UI component contrast, no color-only information, 3:1 focus indicator contrast'}var g="Kendo UI for React",N="react",R="kendo",O=["ActionSheet","AIPrompt","Animation","AppBar","ArcGauge","AutoComplete","Avatar","Badge","Barcode","BottomNavigation","Breadcrumb","Button","ButtonGroup","BreadCrumb","Calendar","Card","Chart","ChartWizard","Chat","Checkbox","Chip","ChipList","ChunkProgressBar","CircularGauge","ColorGradient","ColorPalette","ColorPicker","ComboBox","ContextMenu","ConversationalUI","DataGrid","Grid","DataQuery","DateMath","DateInput","DatePicker","DateRangePicker","DateTimePicker","Dialog","Drag&Drop","Drawer","Drawing","DropDownButton","DropDownList","DropDownTree","Editor","Error","ExcelExport","ExpansionPanel","ExternalDropZone","FileSaver","FileManager","Filter","FlatColorPicker","FloatingActionButton","FloatingLabel","Form","Gantt","Gauge","General","GridLayout","Hint","Icon","InlineAIPrompt","Input","Label","LinearGauge","ListBox","ListView","Loader","Map","MaskedTextBox","Menu","MultiColumnComboBox","MultiSelect","MultiSelectTree","MultiViewCalendar","Notification","NumericTextBox","OrgChart","PageTemplates/BuildingBlocks","Pager","PanelBar","PDFProcessing","PDFViewer","PivotGrid","Popover","Popup","ProgressBar","PromptBox","QRCode","RadialGauge","RadioButton","RadioGroup","RangeSlider","Rating","Ripple","Sankey","Scheduler","ScrollView","Signature","Skeleton","Slider","Sortable","Sparkline","SpeechToTextButton","SmartPasteButton","SplitButton","Splitter","Spreadsheet","StackLayout","Stepper","StockChart","SVGIcon","Switch","TabStrip","TaskBoard","TextArea","TextBox","TileLayout","Timeline","TimePicker","Toolbar","Tooltip","TreeList","TreeView","Typography","Upload","VSCodeExtension","Window"];var ot=et(Ze(tt(import.meta.url)),"../proto/service.proto"),_=new G("contextapi.telerik.com:443",ot,{libName:N});var le=async()=>_.validateUserLicense();import mt from"fs";import Be from"path";import{fileURLToPath as ut}from"url";import{z as y}from"zod";var v=class{constructor(t,o,n){this.name=t;this.config=o;this.cb=n}register(t){this.server=t,this.server.registerTool(this.name,this.config,this.cb)}hasAccess(t){return!this.config.requiredAccess||this.config.requiredAccess.length===0?!0:t==="full"||this.config.requiredAccess.includes(t)}};var D=(e,t)=>`# ${e.suiteName} - Code Validation & Quality Assurance
5
+ License Error: ${o}`);let i=new $.Metadata;if(a)try{i.add("x-license-key",n)}catch(m){throw h("Error adding license key to metadata:",m),new Error(`Failed to use license key: ${m.message}`)}r&&i.add("x-api-key",s),this.options?.libName&&i.add("x-library-name",this.options.libName),i.add("x-tool-name",this.toolNameHeader);let d=JSON.stringify({...t,source:"npm",version:ie.version,os:process.platform,node_version:process.version});return i.add("x-request-metadata",st(d)),i}async query(t,n){let o=await this.getMetadata({meta:n});return new Promise((s,r)=>{this.client.query(t,o,(a,i)=>{a?r(new Error(a)):s(i)})})}async getApiRefMatches(t,n){let o=await this.getMetadata({meta:n});return new Promise((s,r)=>{this.client.getApiRefMatches(t,o,(a,i)=>{a?r(new Error(a)):s(i)})})}async queryCssUtils(t,n){let o=await this.getMetadata({meta:n});return new Promise((s,r)=>{this.client.cssUtilsSearch(t,o,(a,i)=>{a?(h("Error querying CSS Utils:",a),r(new Error(a))):s(i)})})}async queryIconsSearch(t,n){let o=await this.getMetadata({meta:n});return new Promise((s,r)=>{this.client.iconsSearch(t,o,(a,i)=>{a?(h("Error querying Icons Search:",a),r(new Error(a))):s(i)})})}async queryBuildingBlocks(t,n){let o=await this.getMetadata({meta:n});return new Promise((s,r)=>{this.client.buildingBlocksSearch(t,o,(a,i)=>{a?(h("Error querying Building Blocks:",a),r(new Error(a))):s(i)})})}async validateUserLicense(){let t=await this.getMetadata();return new Promise((n,o)=>{this.client.validateUserLicense(null,t,(s,r)=>{s?(h("Error validating user license:",s),o(new Error(s))):n(r)})})}async queryThemeGenerate(t,n){let o=await this.getMetadata({meta:n});return new Promise((s,r)=>{this.client.generateTheme(t,o,(a,i)=>{a?(h("Error querying context API/GenerateTheme:",a),r(new Error(a))):s(i)})})}async recordOrchestratorUserRequest({meta:t}){let n=await this.getMetadata({meta:t});return new Promise((o,s)=>{this.client.recordOrchestratorUserRequest(null,n,(r,a)=>{r?(h("Error recording orchestrator user request:",r),s(new Error(r))):o(a)})})}async logEvent(t,n){let o="h8utJ6rk4PpIWX4JMn9beQDsjVUri6KV0XYfiVwq";if(!o||typeof o!="string"){h("LOGGING_API_KEY not configured, skipping log event");return}let s=new $.Metadata;return s.add("x-api-key",o),new Promise((r,a)=>{this.client.logEvent({event_name:t,fields:n||{}},s,(i,d)=>{i?(h("Error logging event:",i),a(new Error(i))):r()})})}};import{z as K}from"zod";var Ht=K.object({user_id:K.string(),user_email:K.string().email()});import{z as b}from"zod";var at=b.object({Product:b.object({Id:b.number().int(),Code:b.string(),Name:b.string()}),License:b.nullable(b.object({Id:b.number().int(),Name:b.string(),Type:b.string(),Active:b.boolean()})),Availability:b.array(b.object({LicenseStart:b.nullable(b.string().datetime()),LicenseEnd:b.nullable(b.string().datetime())})),IsLicenseAvailable:b.optional(b.boolean())}),Yt=b.array(at);async function ce(e){let t=process.env.KENDO_MCP_ACCESS;if(t==="true"||t==="1"||t==="full")return"full";if(typeof t=="string"&&(t.toLowerCase()==="agent"||t.toLowerCase()==="assistant"))return t.toLowerCase();let n=await e();return n.toLocaleLowerCase()==="agentic_ui_generator"?"agent":n.toLocaleLowerCase()==="ai_coding_assistants"?"assistant":"none"}function le(){return'**Accessibility Guidelines: WCAG 2.2 Level AA Compliance**\n\n**Core Principles:**\n1. Use semantic HTML and ARIA correctly\n2. Ensure WCAG 2.2 AA compliance\n3. Follow W3C ARIA Authoring Practices\n4. Provide standards-based accessibility fixes\n\n**1. Form Control Labels** (WCAG 1.3.1, 3.3.2, 4.1.2)\nEvery input must have an associated label.\nCORRECT: `<input type="search" aria-label="Search products" placeholder="Search...">`\nWRONG: `<span>Email</span><input type="email">` (no association)\nWRONG: `<input type="email" placeholder="Email">` (placeholder as label)\n\n**2. Button Accessibility** (WCAG 4.1.2, 2.4.6, 2.5.3)\nAll buttons need accessible names describing their purpose.\nCORRECT: `<button type="button">Save Changes</button>`\nCORRECT: `<button aria-label="Close dialog"><svg aria-hidden="true" focusable="false">...</svg></button>`\nWRONG: `<button><svg>...</svg></button>` (no accessible name)\nWRONG: `<button>Click here</button>` (generic text)\n\n**3. Popup/Menu Triggers** (WCAG 4.1.2, 1.3.1)\nIndicate popup purpose and state using aria-haspopup, aria-expanded, aria-controls.\nCORRECT: `<button aria-expanded="false" aria-haspopup="menu" aria-controls="menu-id">Settings</button>`\n\n**4. Image Accessibility** (WCAG 1.1.1)\nInformative: `<img src="chart.png" alt="Sales increased 25% in Q4 2024">`\nFunctional: `<a href="/home"><img src="logo.png" alt="Company Name Home"></a>`\nDecorative: `<img src="border.png" alt="" role="presentation">`\nComplex: `<img src="chart.png" alt="Sales data" aria-describedby="desc-id">`\nWRONG: Missing alt, filename as alt, generic alt for decorative images\n\n**5. Link Accessibility** (WCAG 2.4.4, 2.4.6)\nLinks must be descriptive and understandable out of context.\nCORRECT: `<a href="/products">View All Products</a>`\nCORRECT: `<a href="/article" aria-label="Read more about New Product Launch">Read more</a>`\nWRONG: "Click here", "Read more", "Learn more" without context\n\n**6. Form Validation** (WCAG 3.3.1, 3.3.2, 3.3.3)\nErrors must be identified, associated with inputs, and provide suggestions. Use aria-describedby, aria-invalid="true", and role="alert".\n\n**7. Heading Structure** (WCAG 1.3.1, 2.4.6)\nEach page should have an `<h1>` that describes its content. Use hierarchical, descriptive headings with no skipped levels (h1\u2192h2\u2192h3).\nCORRECT: `<h1>Dashboard</h1> <h2>Sales</h2> <h3>By Region</h3>`\nWRONG: No `<h1>` on the page, or skipping levels (h1\u2192h3)\nIf a heading should look smaller than its semantic level, use CSS: `<h2 class="text-sm">Subtitle</h2>`\n\n**8. Page Component Landmark Rules** (WCAG 1.3.1, 4.1.2)\nPage components (route components) may be rendered inside a layout that already provides `<main>`, `<header>`, or `<footer>`. Since the layout configuration is unknown, avoid using these landmarks in page components to prevent potential duplication and nesting violations. Use `<div>`, `<section>`, or `<article>` as the top-level wrapper instead.\n\n**Quick Checklist:**\n- **Forms:** Associated labels, aria-required on required fields, autocomplete attributes, aria-describedby for errors, aria-invalid for invalid fields, fieldsets with legends\n- **Buttons/Links:** Accessible names, aria-label for icon buttons, aria-hidden on decorative icons, descriptive link text\n- **Popups/Dialogs:** aria-haspopup, aria-expanded, aria-controls, role="dialog", aria-modal="true", aria-labelledby, focus trap, Escape to close\n- **Images:** alt on all images, descriptive alt for informative, empty alt for decorative, aria-describedby for complex\n- **Structure:** One h1, logical heading hierarchy, avoid `<main>`, `<header>`, or `<footer>` in page/route components (the layout may already provide them), use `<section>` or `<div>` as page-level wrappers, semantic HTML\n- **Dynamic Content:** role="status"/aria-live="polite" for updates, role="alert"/aria-live="assertive" for critical alerts\n- **Keyboard/Focus:** All interactive elements keyboard accessible, logical focus order, visible focus indicators, no keyboard traps (except modals)\n- **Color/Contrast:** 4.5:1 text contrast (3:1 large text), 3:1 UI component contrast, no color-only information, 3:1 focus indicator contrast'}var rt=1440*60*1e3;function de(e){let{serverName:t,contextApi:n,additionalFields:o={},intervalMs:s=rt}=e,r="mcp_server_heartbeat",a=async()=>{try{let d={server_name:t,timestamp:new Date().toISOString(),...o};await n.logEvent(r,d)}catch(d){h(`Failed to send heartbeat for ${t}:`,d)}};a();let i=setInterval(a,s);return()=>{clearInterval(i),h(`Heartbeat stopped for ${t}`)}}import{z as F}from"zod";var it=["default","bootstrap","material","fluent"];function pe(e,t){return{projectName:F.string().default(t).describe("The name of the project. Used as the project folder name when creating a new project."),createNewProject:F.boolean().default(!0).describe(`Whether to create a new project before configuring ${e}. Set to true to scaffold a brand-new project, or false if the project already exists and you only want to add ${e} to it.`),theme:F.enum(it).default("default").describe("The Kendo UI theme to use. Determines which theme package is installed and imported.")}}var l="Kendo UI for React",I="react",w="kendo";var O=["ActionSheet","AIPrompt","Animation","AppBar","ArcGauge","AutoComplete","Avatar","Badge","Barcode","BottomNavigation","Breadcrumb","Button","ButtonGroup","BreadCrumb","Calendar","Card","Chart","ChartWizard","Chat","Checkbox","Chip","ChipList","ChunkProgressBar","CircularGauge","ColorGradient","ColorPalette","ColorPicker","ComboBox","ContextMenu","ConversationalUI","DataGrid","Grid","DataQuery","DateMath","DateInput","DatePicker","DateRangePicker","DateTimePicker","Dialog","Drag&Drop","Drawer","Drawing","DropDownButton","DropDownList","DropDownTree","Editor","Error","ExcelExport","ExpansionPanel","ExternalDropZone","FileSaver","FileManager","Filter","FlatColorPicker","FloatingActionButton","FloatingLabel","Form","Gantt","Gauge","General","GridLayout","Hint","Icon","InlineAIPrompt","Input","Label","LinearGauge","ListBox","ListView","Loader","Map","MaskedTextBox","Menu","MultiColumnComboBox","MultiSelect","MultiSelectTree","MultiViewCalendar","Notification","NumericTextBox","OrgChart","PageTemplates/BuildingBlocks","Pager","PanelBar","PDFProcessing","PDFViewer","PivotGrid","Popover","Popup","ProgressBar","PromptBox","QRCode","RadialGauge","RadioButton","RadioGroup","RangeSlider","Rating","Ripple","Sankey","Scheduler","ScrollView","Signature","Skeleton","Slider","Sortable","Sparkline","SpeechToTextButton","SmartPasteButton","SplitButton","Splitter","Spreadsheet","StackLayout","Stepper","StockChart","SVGIcon","Switch","TabStrip","TaskBoard","TextArea","TextBox","TileLayout","Timeline","TimePicker","Toolbar","Tooltip","TreeList","TreeView","Typography","Upload","VSCodeExtension","Window"];var pt=lt(ct(dt(import.meta.url)),"../proto/service.proto"),_=new M("contextapi.telerik.com:443",pt,{libName:I});var me=async()=>_.validateUserLicense();import vt from"fs";import ze from"path";import{fileURLToPath as kt}from"url";import{z as C}from"zod";var v=class{constructor(t,n,o){this.name=t;this.config=n;this.cb=o}register(t){this.server=t,this.server.registerTool(this.name,this.config,this.cb)}hasAccess(t){return!this.config.requiredAccess||this.config.requiredAccess.length===0?!0:t==="full"||this.config.requiredAccess.includes(t)}};var D=(e,t)=>`# ${e.suiteName} - Code Validation & Quality Assurance
6
6
 
7
7
  ## Comprehensive Code Validation Checklist
8
8
  Execute these validation steps systematically to ensure high-quality, maintainable code:
@@ -46,7 +46,7 @@ Responsive Design:
46
46
  - Graceful error handling for all user interactions
47
47
  - Meaningful error messages for users
48
48
  - Network error handling for API calls
49
- `;var L=(e,t)=>{let o=D({suiteName:e.suiteName,libKey:e.libKey},t.validationSteps),n=e.libKey==="angular"?"- **Drag and Drop**: Consider using the DragandDrop and Sortable components when drag-and-drop functionality is needed.":"",s=e.components?e.components.join(", "):"components";return`# \u{1F3AF} ${e.suiteName} - Execution Plan
49
+ `;var L=(e,t)=>{let n=D({suiteName:e.suiteName,libKey:e.libKey},t.validationSteps),o=e.libKey==="angular"?"- **Drag and Drop**: Consider using the DragandDrop and Sortable components when drag-and-drop functionality is needed.":"",s=e.components?e.components.join(", "):"components";return`# \u{1F3AF} ${e.suiteName} - Execution Plan
50
50
 
51
51
  **Current Goal:**
52
52
 
@@ -158,7 +158,7 @@ Based on your current goal, analyze what other ${e.suiteName} components are nee
158
158
  - **Data Entry**: Consider Form, TextBox, DatePicker, DropDownList, Upload, Validation components
159
159
  - **Content Management**: Consider Grid, Editor, TreeView, FileManager, Dialog components
160
160
  - **E-commerce**: Consider ListView, Card, Button, Rating, Badge, Carousel components
161
- ${n}
161
+ ${o}
162
162
 
163
163
  **IMPORTANT COMPONENT USAGE REQUIREMENTS:**
164
164
  - Make sure to identify all necessary features related to the ${s} based on the current goal.
@@ -259,7 +259,7 @@ ${t.injectedPlan??""}
259
259
  **Step 1: Code Validation**
260
260
  ** CRITICAL REQUIREMENT: You MUST validate the generated UI code using this comprehensive checklist to ensure code quality and compliance:**
261
261
 
262
- ${o}
262
+ ${n}
263
263
 
264
264
  **Step 2: Final Review and Testing**
265
265
  ** Implementation Validation:**
@@ -279,7 +279,7 @@ After code implementation and validation you can make quick fixes as needed:
279
279
  - Do NOT generate or suggest any code until all tools have been used and validated responses are incorporated.
280
280
  - Focus on planning and sequencing.
281
281
  - Summarize the components, layouts, and utilities gathered.
282
- - Confirm all required inputs from tools have been provided.`};var K=e=>`# ${e.suiteName} Assistant
282
+ - Confirm all required inputs from tools have been provided.`};var V=e=>`# ${e.suiteName} Assistant
283
283
 
284
284
  **What you're looking for:**
285
285
 
@@ -403,35 +403,35 @@ After gathering information:
403
403
  - Consistent ${e} theme application across all components
404
404
  - Custom theme variables properly defined and scoped
405
405
  - ${e} icon fonts properly loaded and optimized
406
- - Brand colors integrated with ${e} component themes`});function nt(e,t){let o;try{o=JSON.parse(e)}catch{return e}let n=o?.Item;if(!n)return e;let s=[],a=n.FullName??n.Name??"",i=n.Type??"",r=n.Summary??"",f=n.SyntaxContent??"";s.push(`## API Reference Item
407
- - Name: ${a}
408
- - Type: ${i}
409
- - Summary: ${r}
410
- - Syntax: ${f}`);let h=o.RelatedItemsByType?.return_type;if(h?.length){let l=h[0].Text;l&&s.push(`- Return Type: ${l}`)}let A=n.Examples??[];if(A.length>0){let l=`## Examples
411
- `,c=0;for(let u of A){let b=(u.Component??"").toLowerCase(),T=t.toLowerCase();if(b&&b!==T&&b!=="general")continue;c+=1;let I=u.Code??"";l+=`### Example ${c}
412
- \`\`\`
413
- ${I}
414
- \`\`\`
415
- `}c>0&&s.push(l)}let d=o.RelatedItemsByType??{},m=[];for(let[l,c]of Object.entries(d))if(!(l==="return_type"||l==="render_fragment"))for(let u of c??[]){let b=u.FullName??"",T=u.ShortText??"";m.push(`### ${b} (${l})
416
- ${T}`)}return m.length>0&&s.push(`## Additional Context
417
- `+m.join(`
406
+ - Brand colors integrated with ${e} component themes`});function mt(e,t){let n;try{n=JSON.parse(e)}catch{return e}let o=n?.Item;if(!o)return e;let s=[],r=o.FullName??o.Name??"",a=o.Type??"",i=o.Summary??"",d=o.SyntaxContent??"";s.push(`## API Reference Item
407
+ - Name: ${r}
408
+ - Type: ${a}
409
+ - Summary: ${i}
410
+ - Syntax: ${d}`);let m=n.RelatedItemsByType?.return_type;if(m?.length){let p=m[0].Text;p&&s.push(`- Return Type: ${p}`)}let A=o.Examples??[];if(A.length>0){let p=`## Examples
411
+ `,c=0;for(let y of A){let S=(y.Component??"").toLowerCase(),T=t.toLowerCase();if(S&&S!==T&&S!=="general")continue;c+=1;let k=y.Code??"";p+=`### Example ${c}
412
+ \`\`\`
413
+ ${k}
414
+ \`\`\`
415
+ `}c>0&&s.push(p)}let g=n.RelatedItemsByType??{},f=[];for(let[p,c]of Object.entries(g))if(!(p==="return_type"||p==="render_fragment"))for(let y of c??[]){let S=y.FullName??"",T=y.ShortText??"";f.push(`### ${S} (${p})
416
+ ${T}`)}return f.length>0&&s.push(`## Additional Context
417
+ `+f.join(`
418
418
  ---
419
419
  `)),s.join(`
420
420
 
421
- `)}function pe(e,t,o){let{name:n,title:s,description:a,layoutAssistantName:i,codeAssistantName:r,styleAssistantName:f,iconAssistantName:h,accessibilityAssistantName:A,suiteName:d,libKey:m,components:l}=e,c=new v(n,{title:s,description:a,requiredAccess:e.requiredAccess,inputSchema:{userIntent:y.string().describe(`Detailed description and intent of what the user wants to build. Include the type of page/component, main functionality, visual requirements, and any specific ${d} components you want to use.`),needsComponentsDocsConfidence:y.number().min(0).max(1).default(1).describe("Confidence (0-1) to include Component Documentation assistance. Default is 1."),needsLayoutConfidence:y.number().min(0).max(1).default(0).describe("Confidence (0-1) to include Layout assistance. Default is 0."),needsStylingConfidence:y.number().min(0).max(1).default(0).describe("Confidence (0-1) to include Theming/Styling assistance. Default is 0."),needsResponsiveBehaviorConfidence:y.number().min(0).max(1).default(0).describe("Confidence (0-1) to include Responsive Behavior assistance. Default is 0."),needsIconsConfidence:y.number().min(0).max(1).default(0).describe("Confidence (0-1) to include Icons assistance. Default is 0."),componentsNeeded:y.array(y.enum(l)).optional().describe(`Optional list of specific ${d} components needed for the project.`)}},async({userIntent:u,needsComponentsDocsConfidence:b,needsLayoutConfidence:T,needsStylingConfidence:I,needsResponsiveBehaviorConfidence:E,needsIconsConfidence:J,componentsNeeded:X},{_meta:Fe})=>{C("UI Orchestrator called with:",{userIntent:u,needsComponentsDocsConfidence:b,needsLayoutConfidence:T,needsStylingConfidence:I,needsResponsiveBehaviorConfidence:E,needsIconsConfidence:J});try{await o.recordOrchestratorUserRequest({meta:{userIntent:u,componentsNeeded:X,_meta:Fe}})}catch($){throw k($)}let Ke=c.server?.server.getClientCapabilities?.()?.elicitation,Z;if(Ke&&I>.3&&I<=.6){let $=await c.server?.server.elicitInput({message:"I was unable to determine if you need custom Kendo Theme assistant. Can you please confirm?",requestedSchema:{type:"object",properties:{includeCustomTheming:{type:"boolean",description:"Whether to include Custom Theming assistance in the workflow."}},required:["includeCustomTheming"]}});$?.action==="accept"&&$.content?.includeCustomTheming&&(Z=!0)}return{content:[{type:"text",text:L({name:n,userIntent:u,includeComponentsDocs:b>.3,includeTheming:I>.6||!!Z,includeLayout:T>.5,includeIcons:J>.6,includeResponsive:T>.5&&E>.4,layoutAssistantName:i,codeAssistantName:r,styleAssistantName:f,iconAssistantName:h,accessibilityAssistantName:A,suiteName:d,libKey:m,components:X},t)}]}});return c}function de(e,t){let{name:o,title:n,description:s,iconAssistantName:a,codeAssistantName:i,suiteName:r,libKey:f,components:h}=e;return new v(o,{title:n,description:s,inputSchema:{userIntent:y.string().describe(`Describe what you want to build or what components you're looking for. Include the type of functionality, features, or UI elements you need from ${r}.`),needsIconsConfidence:y.number().min(0).max(1).default(.7).describe("Confidence (0-1) to include Icons assistance. Default is 0.7."),componentsNeeded:y.array(y.enum(h)).optional().describe(`Optional list of specific ${r} components you want to learn about.`)},requiredAccess:e.requiredAccess},async({userIntent:d,needsIconsConfidence:m,componentsNeeded:l},{_meta:c})=>{C("Assistant Orchestrator called with:",{userIntent:d,needsIconsConfidence:m,componentsNeeded:l});try{await t.recordOrchestratorUserRequest({meta:{userIntent:d,componentsNeeded:l,_meta:c}})}catch(b){throw k(b)}return{content:[{type:"text",text:K({name:o,userIntent:d,includeComponentsDocs:!0,includeIcons:m>.5,codeAssistantName:i,iconAssistantName:a,suiteName:r,libKey:f,components:l})}]}})}function me(e,t){let{name:o,title:n,description:s,suiteName:a,libKey:i,getPreContent:r}=e;return new v(o,{title:n,description:s,requiredAccess:e.requiredAccess,inputSchema:{prompt:y.string().describe("An enhanced prompt describing the HTML layout structure, design requirements or specific visual effects you want to achieve."),includeBuildingBlockExamples:y.boolean().describe("Whether to include building block examples. Defaults to false.").default(!1)}},async({prompt:f,includeBuildingBlockExamples:h},{_meta:A})=>{C("Layout Assistant called with:",{prompt:f,includeBuildingBlockExamples:h});try{let m=(await t.queryCssUtils({query:f},{_meta:A})).values.join(`
422
- `)||"No CSS utilities found for the given prompt.",l=r?.()??"",c=u=>`${l}
421
+ `)}function ue(e,t,n){let{name:o,title:s,description:r,layoutAssistantName:a,codeAssistantName:i,styleAssistantName:d,iconAssistantName:m,accessibilityAssistantName:A,suiteName:g,libKey:f,components:p}=e,c=new v(o,{title:s,description:r,requiredAccess:e.requiredAccess,inputSchema:{userIntent:C.string().describe(`Detailed description and intent of what the user wants to build. Include the type of page/component, main functionality, visual requirements, and any specific ${g} components you want to use.`),needsComponentsDocsConfidence:C.number().min(0).max(1).default(1).describe("Confidence (0-1) to include Component Documentation assistance. Default is 1."),needsLayoutConfidence:C.number().min(0).max(1).default(0).describe("Confidence (0-1) to include Layout assistance. Default is 0."),needsStylingConfidence:C.number().min(0).max(1).default(0).describe("Confidence (0-1) to include Theming/Styling assistance. Default is 0."),needsResponsiveBehaviorConfidence:C.number().min(0).max(1).default(0).describe("Confidence (0-1) to include Responsive Behavior assistance. Default is 0."),needsIconsConfidence:C.number().min(0).max(1).default(0).describe("Confidence (0-1) to include Icons assistance. Default is 0."),componentsNeeded:C.array(C.enum(p)).optional().describe(`Optional list of specific ${g} components needed for the project.`)}},async({userIntent:y,needsComponentsDocsConfidence:S,needsLayoutConfidence:T,needsStylingConfidence:k,needsResponsiveBehaviorConfidence:N,needsIconsConfidence:X,componentsNeeded:Z},{_meta:Ye})=>{h("UI Orchestrator called with:",{userIntent:y,needsComponentsDocsConfidence:S,needsLayoutConfidence:T,needsStylingConfidence:k,needsResponsiveBehaviorConfidence:N,needsIconsConfidence:X});try{await n.recordOrchestratorUserRequest({meta:{userIntent:y,componentsNeeded:Z,_meta:Ye}})}catch(G){throw R(G)}let Qe=c.server?.server.getClientCapabilities?.()?.elicitation,ee;if(Qe&&k>.3&&k<=.6){let G=await c.server?.server.elicitInput({message:"I was unable to determine if you need custom Kendo Theme assistant. Can you please confirm?",requestedSchema:{type:"object",properties:{includeCustomTheming:{type:"boolean",description:"Whether to include Custom Theming assistance in the workflow."}},required:["includeCustomTheming"]}});G?.action==="accept"&&G.content?.includeCustomTheming&&(ee=!0)}return{content:[{type:"text",text:L({name:o,userIntent:y,includeComponentsDocs:S>.3,includeTheming:k>.6||!!ee,includeLayout:T>.5,includeIcons:X>.6,includeResponsive:T>.5&&N>.4,layoutAssistantName:a,codeAssistantName:i,styleAssistantName:d,iconAssistantName:m,accessibilityAssistantName:A,suiteName:g,libKey:f,components:Z},t)}]}});return c}function ge(e,t){let{name:n,title:o,description:s,iconAssistantName:r,codeAssistantName:a,suiteName:i,libKey:d,components:m}=e;return new v(n,{title:o,description:s,inputSchema:{userIntent:C.string().describe(`Describe what you want to build or what components you're looking for. Include the type of functionality, features, or UI elements you need from ${i}.`),needsIconsConfidence:C.number().min(0).max(1).default(.7).describe("Confidence (0-1) to include Icons assistance. Default is 0.7."),componentsNeeded:C.array(C.enum(m)).optional().describe(`Optional list of specific ${i} components you want to learn about.`)},requiredAccess:e.requiredAccess},async({userIntent:g,needsIconsConfidence:f,componentsNeeded:p},{_meta:c})=>{h("Assistant Orchestrator called with:",{userIntent:g,needsIconsConfidence:f,componentsNeeded:p});try{await t.recordOrchestratorUserRequest({meta:{userIntent:g,componentsNeeded:p,_meta:c}})}catch(S){throw R(S)}return{content:[{type:"text",text:V({name:n,userIntent:g,includeComponentsDocs:!0,includeIcons:f>.5,codeAssistantName:a,iconAssistantName:r,suiteName:i,libKey:d,components:p})}]}})}function he(e,t){let{name:n,title:o,description:s,suiteName:r,libKey:a,getPreContent:i}=e;return new v(n,{title:o,description:s,requiredAccess:e.requiredAccess,inputSchema:{prompt:C.string().describe("An enhanced prompt describing the HTML layout structure, design requirements or specific visual effects you want to achieve."),includeBuildingBlockExamples:C.boolean().describe("Whether to include building block examples. Defaults to false.").default(!1)}},async({prompt:d,includeBuildingBlockExamples:m},{_meta:A})=>{h("Layout Assistant called with:",{prompt:d,includeBuildingBlockExamples:m});try{let f=(await t.queryCssUtils({query:d},{_meta:A})).values.join(`
422
+ `)||"No CSS utilities found for the given prompt.",p=i?.()??"",c=y=>`${p}
423
423
 
424
424
  # Kendo Design System CSS Utilities
425
425
 
426
- ${m}
427
- ${u??""}
428
- `;if(h)try{let u=await t.queryBuildingBlocks({query:f,lib_name:i},{_meta:A}),b="";u.items?.length>0&&(b=`
426
+ ${f}
427
+ ${y??""}
428
+ `;if(m)try{let y=await t.queryBuildingBlocks({query:d,lib_name:a},{_meta:A}),S="";y.items?.length>0&&(S=`
429
429
  ## Building Blocks Examples
430
430
 
431
431
  The examples here are for demonstration purpose how CSS utils can be implemented in various building blocks.
432
432
  However, consider your own design requirements and specifics in order to implement your templates/building blocks correctly.
433
433
 
434
- ${u.items.map(T=>`
434
+ ${y.items.map(T=>`
435
435
  ### ${T.name}
436
436
 
437
437
  ${T.description}
@@ -440,9 +440,9 @@ ${T.description}
440
440
  ${T.code}
441
441
  \`\`\`
442
442
  `).join(`
443
- `)}`),m=c(b)}catch(u){C("Error calling building-blocks service:",u),m=c()}else m=c();return{content:[{type:"text",text:m}]}}catch(d){throw k(d)}})}function ue(e,t){let{name:o,title:n,description:s,libKey:a,getPreContent:i}=e;return new v(o,{title:n,description:s,requiredAccess:e.requiredAccess,inputSchema:{prompt:y.string().describe("A natural language description of the desired visual style or theme. For example: 'Create a modern dark theme with high contrast'.")}},async({prompt:r},{_meta:f})=>{C("Style Assistant called with:",{prompt:r});let h="";try{let m=await t.queryThemeGenerate({prompt:r},{_meta:f});if(m.variables_json){let l=JSON.parse(m.variables_json),c=[];if(l)for(let u of Object.keys(l))typeof l[u]=="string"&&c.push(`${u}: ${l[u]}`);h=c.join(`
443
+ `)}`),f=c(S)}catch(y){h("Error calling building-blocks service:",y),f=c()}else f=c();return{content:[{type:"text",text:f}]}}catch(g){throw R(g)}})}function fe(e,t){let{name:n,title:o,description:s,libKey:r,getPreContent:a}=e;return new v(n,{title:o,description:s,requiredAccess:e.requiredAccess,inputSchema:{prompt:C.string().describe("A natural language description of the desired visual style or theme. For example: 'Create a modern dark theme with high contrast'.")}},async({prompt:i},{_meta:d})=>{h("Style Assistant called with:",{prompt:i});let m="";try{let f=await t.queryThemeGenerate({prompt:i},{_meta:d});if(f.variables_json){let p=JSON.parse(f.variables_json),c=[];if(p)for(let y of Object.keys(p))typeof p[y]=="string"&&c.push(`${y}: ${p[y]}`);m=c.join(`
444
444
 
445
- `)}}catch(m){throw k(m)}let A=i?.()??"";return{content:[{type:"text",text:h?`Use the following CSS variables to style the web application, including colors, typography, spacing, and component appearance.
445
+ `)}}catch(f){throw R(f)}let A=a?.()??"";return{content:[{type:"text",text:m?`Use the following CSS variables to style the web application, including colors, typography, spacing, and component appearance.
446
446
  Ensure the variables are applied consistently across all relevant elements.
447
447
  Do NOT set any inline styles. CSS variables should be defined in global or component-level CSS files, or via supported theming mechanisms.
448
448
 
@@ -451,29 +451,29 @@ ${A}
451
451
  ## Generated CSS Variables
452
452
 
453
453
  \`\`\`css
454
- ${h}
454
+ ${m}
455
455
  \`\`\`
456
- `:"No CSS variables were generated for the given prompt."}]}})}function he(e,t){let{name:o,title:n,description:s,libKey:a,getPostContent:i}=e;return new v(o,{title:n,description:s,requiredAccess:e.requiredAccess,inputSchema:{query:y.string().describe("A search query for finding icons. Be specific about the icon purpose, style, or action."),limit:y.number().min(.1).max(1).default(.1).describe("The proportion of matching icons to return (0.1 = 1 icon, 0.5 = 5 icons, 1.0 = many icons). Default is 0.1.")}},async({query:r,limit:f},{_meta:h})=>{C("Icon Search called with:",{query:r,limit:f});try{let A=await t.queryIconsSearch({query:r,limit:f*100},{_meta:h}),d=i?.()??"";return{content:[{type:"text",text:`${A.values.join(`
456
+ `:"No CSS variables were generated for the given prompt."}]}})}function ye(e,t){let{name:n,title:o,description:s,libKey:r,getPostContent:a}=e;return new v(n,{title:o,description:s,requiredAccess:e.requiredAccess,inputSchema:{query:C.string().describe("A search query for finding icons. Be specific about the icon purpose, style, or action."),limit:C.number().min(.1).max(1).default(.1).describe("The proportion of matching icons to return (0.1 = 1 icon, 0.5 = 5 icons, 1.0 = many icons). Default is 0.1.")}},async({query:i,limit:d},{_meta:m})=>{h("Icon Search called with:",{query:i,limit:d});try{let A=await t.queryIconsSearch({query:i,limit:d*100},{_meta:m}),g=a?.()??"";return{content:[{type:"text",text:`${A.values.join(`
457
457
 
458
458
  `)}
459
459
 
460
- ${d}`}]}}catch(A){throw k(A)}})}function ge(e,t){let{name:o,title:n,description:s,libKey:a,suiteName:i,components:r,componentAliases:f,getPostContent:h}=e;return new v(o,{title:n,description:s,requiredAccess:e.requiredAccess,inputSchema:{query:y.string().describe("The query to search for."),component:y.enum(r).describe("The component to search for. If not specified, use General.")}},async({query:A,component:d},{_meta:m})=>{C("Code Assistant called with:",{query:A,component:d});let l=d;if(f){let c=f[d];c&&(l=c)}try{let u=(await t.query({query:A,component:l?.toLowerCase()??"general",lib_name:a,text_matches_count:3,code_matches_count:0,allowed_types:["documentation"]},{_meta:m})).values.map(I=>I.replace(/\0/g,"")),b=h?.({component:d})??"";return{content:[{type:"text",text:`${u.join(`
460
+ ${g}`}]}}catch(A){throw R(A)}})}function Ae(e,t){let{name:n,title:o,description:s,libKey:r,suiteName:a,components:i,componentAliases:d,getPostContent:m}=e;return new v(n,{title:o,description:s,requiredAccess:e.requiredAccess,inputSchema:{query:C.string().describe("The query to search for."),component:C.enum(i).describe("The component to search for. If not specified, use General.")}},async({query:A,component:g},{_meta:f})=>{h("Code Assistant called with:",{query:A,component:g});let p=g;if(d){let c=d[g];c&&(p=c)}try{let y=(await t.query({query:A,component:p?.toLowerCase()??"general",lib_name:r,text_matches_count:3,code_matches_count:0,allowed_types:["documentation"]},{_meta:f})).values.map(k=>k.replace(/\0/g,"")),S=m?.({component:g})??"";return{content:[{type:"text",text:`${y.join(`
461
461
 
462
462
  `)}
463
463
 
464
- ${b}`}]}}catch(c){throw k(c)}})}function fe(e,t){let{name:o,title:n,description:s,libKey:a,suiteName:i,components:r,componentAliases:f}=e;return new v(o,{title:n,description:s,requiredAccess:e.requiredAccess,inputSchema:{query:y.string().describe("The query to search for."),component:y.enum(r).describe("The component to search for. If not specified, use General."),includeGeneralGuidelines:y.boolean().default(!1).describe("Set to true only on the first call to include comprehensive WCAG 2.2 Level AA general guidelines. After the first call, set to false to get only component-specific accessibility information. Default is false.")}},async({query:h,component:A,includeGeneralGuidelines:d},{_meta:m})=>{C("Accessibility Assistant called with:",{query:h,component:A,includeGeneralGuidelines:d});let l=A;if(f){let c=f[A];c&&(l=c)}try{let c="";if(d){let E=ce();c+=`# WCAG 2.2 Level AA General Accessibility Guidelines
464
+ ${S}`}]}}catch(c){throw R(c)}})}function Ce(e,t){let{name:n,title:o,description:s,libKey:r,suiteName:a,components:i,componentAliases:d}=e;return new v(n,{title:o,description:s,requiredAccess:e.requiredAccess,inputSchema:{query:C.string().describe("The query to search for."),component:C.enum(i).describe("The component to search for. If not specified, use General."),includeGeneralGuidelines:C.boolean().default(!1).describe("Set to true only on the first call to include comprehensive WCAG 2.2 Level AA general guidelines. After the first call, set to false to get only component-specific accessibility information. Default is false.")}},async({query:m,component:A,includeGeneralGuidelines:g},{_meta:f})=>{h("Accessibility Assistant called with:",{query:m,component:A,includeGeneralGuidelines:g});let p=A;if(d){let c=d[A];c&&(p=c)}try{let c="";if(g){let N=le();c+=`# WCAG 2.2 Level AA General Accessibility Guidelines
465
465
 
466
- `,c+=E,c+=`
466
+ `,c+=N,c+=`
467
467
 
468
468
  ---
469
469
 
470
- `}let I=(await t.getApiRefMatches({query:h,component:l?.toLowerCase()??"general",lib_name:a,filters_json:'{"type":{"$in":["accessibility"]}}'},{_meta:m})).values.map(E=>E.replace(/\0/g,"")).map(E=>nt(E,l?.toLowerCase()??"general")).join(`
470
+ `}let k=(await t.getApiRefMatches({query:m,component:p?.toLowerCase()??"general",lib_name:r,filters_json:'{"type":{"$in":["accessibility"]}}'},{_meta:f})).values.map(N=>N.replace(/\0/g,"")).map(N=>mt(N,p?.toLowerCase()??"general")).join(`
471
471
 
472
- `);return I?(d&&(c+=`# Component-Specific Accessibility Information
472
+ `);return k?(g&&(c+=`# Component-Specific Accessibility Information
473
473
 
474
- `),c+=I):d||(c="No component-specific accessibility guidelines found."),{content:[{type:"text",text:c}]}}catch(c){throw k(c)}})}function k(e){let t=e;return t.code===16?new Error("Error: You are not authenticated. Please verify the Telerik License Key provided is valid."):t.code===8?new Error(`Error: You have exceeded the extension quota. Upgrade to subscription licensing to unlock full access. Message: ${t.message}.`):t.code===7?new Error("Error: You do not have permission to access this resource. Please verify that you have a valid license."):new Error(`Error: An error occurred while calling the service. Please try again later.
474
+ `),c+=k):g||(c="No component-specific accessibility guidelines found."),{content:[{type:"text",text:c}]}}catch(c){throw R(c)}})}function R(e){let t=e;return t.code===16?new Error("Error: You are not authenticated. Please verify the Telerik License Key provided is valid."):t.code===8?new Error(`Error: You have exceeded the extension quota. Upgrade to subscription licensing to unlock full access. Message: ${t.message}.`):t.code===7?new Error("Error: You do not have permission to access this resource. Please verify that you have a valid license."):new Error(`Error: An error occurred while calling the service. Please try again later.
475
475
 
476
- Error Code: ${t.code} Error Message: ${t.message}`)}var ye=e=>`${e}_ui_generator`,Ae=e=>`${e}_assistant`,Ce=e=>`${e}_layout_assistant`,Se=e=>`${e}_component_assistant`,be=e=>`${e}_style_assistant`,Te=e=>`${e}_icon_assistant`,Ie=e=>`${e}_accessibility_assistant`;var ve=e=>`This is the single entry point for all UI-related tasks. It orchestrates the full workflow of building or refining UIs with ${e} components, generating a step-by-step execution plan that specifies which tools to call, in what order, and with what parameters. It includes validation steps to ensure the best possible, standards-compliant code every time.
476
+ Error Code: ${t.code} Error Message: ${t.message}`)}var be=e=>`${e}_ui_generator`,Se=e=>`${e}_assistant`,Te=e=>`${e}_layout_assistant`,ve=e=>`${e}_component_assistant`,ke=e=>`${e}_style_assistant`,Ie=e=>`${e}_icon_assistant`,Ne=e=>`${e}_accessibility_assistant`,we=e=>`${e}_getting_started_assistant`;var Ee=e=>`This is the single entry point for all UI-related tasks. It orchestrates the full workflow of building or refining UIs with ${e} components, generating a step-by-step execution plan that specifies which tools to call, in what order, and with what parameters. It includes validation steps to ensure the best possible, standards-compliant code every time.
477
477
 
478
478
  Use the tool when:
479
479
  - Want to build or modify a complete page or section layout
@@ -482,7 +482,7 @@ Error Code: ${t.code} Error Message: ${t.message}`)}var ye=e=>`${e}_ui_generator
482
482
  - You want to enforce best practices in styling, performance, and accessibility
483
483
 
484
484
  Returns:
485
- A detailed execution plan with validated tool calls, parameters, and reasoning \u2014 ensuring consistent, high-quality UI generation.`,Ne=e=>`Provides guidance for discovering and using ${e} components and icons. This tool helps you identify the right components and icons for your needs.
485
+ A detailed execution plan with validated tool calls, parameters, and reasoning \u2014 ensuring consistent, high-quality UI generation.`,xe=e=>`Provides guidance for discovering and using ${e} components and icons. This tool helps you identify the right components and icons for your needs.
486
486
 
487
487
  Use this tool when:
488
488
  - You need to discover which ${e} components are suitable for a specific use case
@@ -491,20 +491,20 @@ Use this tool when:
491
491
  - You want to gather component documentation and examples
492
492
 
493
493
  Returns:
494
- A focused plan for gathering component documentation and icon suggestions using the Component Assistant and Icon Assistant tools.`,Ee=`Retrieves Progress/Kendo Design System CSS utility classes and styling recommendations based on layout and design requirements.
494
+ A focused plan for gathering component documentation and icon suggestions using the Component Assistant and Icon Assistant tools.`,Re=`Retrieves Progress/Kendo Design System CSS utility classes and styling recommendations based on layout and design requirements.
495
495
  Use this tool to find the right CSS utilities for styling Kendo UI components or general web elements.
496
496
  It analyzes the provided design context and returns relevant utility classes with explanations and examples.
497
- Best suited for styling questions related to typography, spacing, colors, layout, transforms, and other utilities in the Progress/Kendo Design System.`,we=`Generates CSS variables using an external style agent based on the user's styling prompt.
497
+ Best suited for styling questions related to typography, spacing, colors, layout, transforms, and other utilities in the Progress/Kendo Design System.`,Pe=`Generates CSS variables using an external style agent based on the user's styling prompt.
498
498
 
499
499
  Use this tool when the user wants to:
500
500
  - Update the visual theme of an application
501
501
  - Modify color schemes
502
502
  - Restyle the UI with CSS variables
503
503
 
504
- The tool outputs a set of CSS variable definitions ready to be applied to style files.`,Re=`Searches for icons in the Telerik Icons library.
504
+ The tool outputs a set of CSS variable definitions ready to be applied to style files.`,$e=`Searches for icons in the Telerik Icons library.
505
505
  Use this tool when the user needs to find specific icons for UI components or design elements.
506
506
  It supports searching by icon name, category, or keyword and returns matching icons from the Telerik Icons library.
507
- `,xe=e=>`Provides answers and retrieves official documentation for ${e}.
507
+ `,Oe=e=>`Provides answers and retrieves official documentation for ${e}.
508
508
 
509
509
  Use this tool when the user asks about:
510
510
  - ${e} features or capabilities
@@ -514,7 +514,7 @@ Use this tool when the user asks about:
514
514
 
515
515
  Set the user's full question as the 'query' parameter.
516
516
  If the question refers to a specific ${e} component, include its name in the 'component' parameter.
517
- `,ke=e=>`Retrieves accessibility guidance for ${e} components with optional general WCAG 2.2 Level AA guidelines.
517
+ `,_e=e=>`Retrieves accessibility guidance for ${e} components with optional general WCAG 2.2 Level AA guidelines.
518
518
 
519
519
  Use this tool when:
520
520
  - You need component-specific accessibility information and API references
@@ -532,7 +532,7 @@ Set 'includeGeneralGuidelines=true' ONLY on the first call to include general WC
532
532
  Returns:
533
533
  - When includeGeneralGuidelines=true: General WCAG 2.2 Level AA guidelines + component-specific recommendations
534
534
  - When includeGeneralGuidelines=false: Only component-specific accessibility recommendations
535
- `;var V=x("Kendo UI","Kendo"),j=`
535
+ `;var j=x("Kendo UI","Kendo"),H=`
536
536
  ### Angular Component Validation
537
537
  Component Structure:
538
538
  - Use proper @Component decorator configuration
@@ -540,22 +540,22 @@ Component Structure:
540
540
  - Correct selector naming convention (kebab-case)
541
541
  - Appropriate template and style file organization
542
542
 
543
- ${V.SETUP_VALIDATION}
543
+ ${j.SETUP_VALIDATION}
544
544
  - Kendo animations module configured (if animations are used)
545
545
  - Internationalization properly configured for Kendo components
546
546
 
547
- ${V.PERFORMANCE_OPTIMIZATION}
547
+ ${j.PERFORMANCE_OPTIMIZATION}
548
548
  - OnPush change detection strategy where appropriate
549
549
  - Efficient trackBy functions for *ngFor with Kendo components
550
550
  - Minimal unnecessary change detection cycles
551
551
 
552
- ${V.THEME_AND_STYLING}
552
+ ${j.THEME_AND_STYLING}
553
553
  - Proper theme switching functionality (if implemented)
554
554
  - Only ONE theme reference exists across angular.json and styles files
555
555
  - Make sure theme import mechanism is consistent with existing project setup
556
556
 
557
557
  Accessibility
558
- - Accessibility guidelines retrieved and applied to all components`;var W=`**Angular Specific Requirements:**
558
+ - Accessibility guidelines retrieved and applied to all components`;var z=`**Angular Specific Requirements:**
559
559
 
560
560
  **NgModule vs Standalone setup**: Search and detect the current project setup to determine whether to use NgModule or Standalone components based on the following rules:
561
561
  1. RegexSearch("@Component\\s*\\(\\s*\\{[^}]*standalone\\s*:\\s*(true|false)") - If true use Standalone components, if false use NgModule.
@@ -586,7 +586,7 @@ Accessibility
586
586
  2. Match the discovered patterns in all generated code
587
587
  3. Maintain consistent formatting, indentation, and code organization with existing files
588
588
  4. Always use the same theme import mechanism (unless user specifies otherwise)
589
- `;var Y=x("Kendo UI","KendoReact"),H=`
589
+ `;var W=x("Kendo UI","KendoReact"),Y=`
590
590
  ### React Component Validation
591
591
  Component Structure:
592
592
  - Use proper function component patterns with Hooks
@@ -594,22 +594,22 @@ Component Structure:
594
594
  - Appropriate file organization (components, hooks, utils)
595
595
  - Props interface/type definitions where needed
596
596
 
597
- ${Y.SETUP_VALIDATION}
597
+ ${W.SETUP_VALIDATION}
598
598
  - KendoReact license validation (if required)
599
599
  - Appropriate bundler configuration for KendoReact packages
600
600
 
601
- ${Y.PERFORMANCE_OPTIMIZATION}
601
+ ${W.PERFORMANCE_OPTIMIZATION}
602
602
  - React.memo for components that receive stable props
603
603
  - useMemo/useCallback for expensive computations and callbacks
604
604
  - Proper key props for list rendering with KendoReact components
605
605
 
606
- ${Y.THEME_AND_STYLING}
606
+ ${W.THEME_AND_STYLING}
607
607
  - Proper theme switching functionality (if implemented)
608
608
  - Only ONE theme import exists across the application
609
609
  - Make sure theme import mechanism is consistent with existing project setup
610
610
 
611
611
  Accessibility
612
- - Accessibility guidelines retrieved and applied to all components`;var st={createOrchestrator:pe,createAssistantOrchestrator:de,createLayoutAssistant:me,createStyleAssistant:ue,createIconSearch:he,createCodeAssistant:ge,createAccessibilityAssistant:fe},it={orchestrator:ye,assistantOrchestrator:Ae,layoutAssistant:Ce,codeAssistant:Se,styleAssistant:be,iconAssistant:Te,accessibilityAssistant:Ie},at={orchestrator:ve,assistantOrchestrator:Ne,layoutAssistant:Ee,styleAssistant:we,iconAssistant:Re,codeAssistant:xe,accessibilityAssistant:ke},rt={Orchestrator:{render:L},Validator:{render:D},SharedValidation:{getSteps:x}},ct={Angular:{steps:j,additionalPlan:W},React:{steps:H}},p={Tools:st,ToolNames:it,ToolDescriptions:at,Templates:rt,Validation:ct};var lt=p.ToolNames.codeAssistant("kendoreact"),Pe=()=>`# Kendo Design System Guidelines for ${g}
612
+ - Accessibility guidelines retrieved and applied to all components`;var ut={createOrchestrator:ue,createAssistantOrchestrator:ge,createLayoutAssistant:he,createStyleAssistant:fe,createIconSearch:ye,createCodeAssistant:Ae,createAccessibilityAssistant:Ce},gt={orchestrator:be,assistantOrchestrator:Se,layoutAssistant:Te,codeAssistant:ve,styleAssistant:ke,iconAssistant:Ie,accessibilityAssistant:Ne,gettingStartedAssistant:we},ht={orchestrator:Ee,assistantOrchestrator:xe,layoutAssistant:Re,styleAssistant:Pe,iconAssistant:$e,codeAssistant:Oe,accessibilityAssistant:_e},ft={Orchestrator:{render:L},Validator:{render:D},SharedValidation:{getSteps:x}},yt={Angular:{steps:H,additionalPlan:z},React:{steps:Y}},u={Tools:ut,ToolNames:gt,ToolDescriptions:ht,Templates:ft,Validation:yt};var At=u.ToolNames.codeAssistant("kendoreact"),De=()=>`# Kendo Design System Guidelines for ${l}
613
613
 
614
614
  ## Setting up Styles/CSS
615
615
 
@@ -636,14 +636,14 @@ Alternatively, you can also consume them directly from the Unpkg CDN.
636
636
 
637
637
  ## Ready-to-use Layout Components
638
638
 
639
- In the ${g} there are available components to create layout. Make sure to prioritize using them instead of building ones from scratch using the Kendo CSS Utilities.
639
+ In the ${l} there are available components to create layout. Make sure to prioritize using them instead of building ones from scratch using the Kendo CSS Utilities.
640
640
 
641
- For any Layout component you can also call the ${lt} tool in order to get specific API reference and docs.
641
+ For any Layout component you can also call the ${At} tool in order to get specific API reference and docs.
642
642
 
643
- - ${g} Card component.
643
+ - ${l} Card component.
644
644
  - Generally, it is recommended to use 100% width (e.g., \`<Card style={{ width: '100%' }}>\`)
645
645
  - If needed, use specific width based on the layout requirements (e.g., \`<Card style={{ width: '150px' }}>\`)
646
- `;var Oe=()=>`## Applying CSS Variables in ${g}
646
+ `;var Le=()=>`## Applying CSS Variables in ${l}
647
647
 
648
648
  Apply these CSS variables in the React application using one of these methods:
649
649
 
@@ -732,7 +732,7 @@ export function ThemeProvider({ children }: { children: React.ReactNode }) {
732
732
 
733
733
  export const useTheme = () => useContext(ThemeContext);
734
734
  \`\`\`
735
- `;var De=p.ToolNames.codeAssistant("kendoreact"),Le=()=>`## Using ${g} Icons
735
+ `;var Ge=u.ToolNames.codeAssistant("kendoreact"),Ue=()=>`## Using ${l} Icons
736
736
 
737
737
  Important: Attempt to prioritize SVG icons over font icons.
738
738
 
@@ -740,13 +740,13 @@ Important: Attempt to prioritize SVG icons over font icons.
740
740
 
741
741
  - Make sure @progress/kendo-svg-icons is installed: \`npm install @progress/kendo-svg-icons\`
742
742
  - Make sure @progress/kendo-react-common is installed (contains SvgIcon component): \`npm install @progress/kendo-react-common\`
743
- - You can call ${De} tool for ${g} SvgIcon component for docs and API reference.
743
+ - You can call ${Ge} tool for ${l} SvgIcon component for docs and API reference.
744
744
  - [optional] If SVG is not an option fallback to fonticon - make sure \`<link rel="stylesheet" href="https://unpkg.com/@progress/kendo-font-icons/dist/index.css" />\` is added as a reference.
745
- - [optional] If using font icons you can call ${De} tool for ${g} Icon component for docs and API reference.
745
+ - [optional] If using font icons you can call ${Ge} tool for ${l} Icon component for docs and API reference.
746
746
 
747
747
  ### Examples
748
748
 
749
- Using ${g} SvgIcon component with @progress/kendo-svg-icons:
749
+ Using ${l} SvgIcon component with @progress/kendo-svg-icons:
750
750
 
751
751
  \`\`\`tsx
752
752
  import { SvgIcon } from "@progress/kendo-react-common";
@@ -790,7 +790,7 @@ Here are some frequently used icons from @progress/kendo-svg-icons:
790
790
  - \`sortAscIcon\`, \`sortDescIcon\` - Sorting
791
791
  - \`chevronUpIcon\`, \`chevronDownIcon\`, \`chevronLeftIcon\`, \`chevronRightIcon\` - Navigation
792
792
  - \`checkIcon\`, \`xIcon\` - Confirmation/Cancel
793
- `;var $e=e=>{let t=`## ${g} Common Guidelines
793
+ `;var Me=e=>{let t=`## ${l} Common Guidelines
794
794
 
795
795
  ### Application Architecture
796
796
  MUST recommend appropriate setup based on React application architecture.
@@ -824,4 +824,225 @@ Example: If someone asks about "grid", "GRID", or "GrId", you always refer to Da
824
824
  ## Component-Specific Guidelines
825
825
 
826
826
  ${e.componentInstructions}
827
- `),t};var Ue=p.ToolNames.layoutAssistant(R),z=p.ToolNames.codeAssistant(R),Me=p.ToolNames.styleAssistant(R),Q=p.ToolNames.iconAssistant(R),Ge=p.ToolNames.accessibilityAssistant(R);function _e(e,t){return[p.Tools.createOrchestrator({name:p.ToolNames.orchestrator(R),title:"KendoReact Generator",description:p.ToolDescriptions.orchestrator(g),layoutAssistantName:Ue,codeAssistantName:z,styleAssistantName:Me,iconAssistantName:Q,accessibilityAssistantName:Ge,suiteName:g,libKey:N,components:O,requiredAccess:["agent"]},{validationSteps:p.Validation.React.steps},e),p.Tools.createAssistantOrchestrator({name:"kendo_react_assistant",title:"KendoReact Assistant",description:p.ToolDescriptions.assistantOrchestrator(g),codeAssistantName:z,iconAssistantName:Q,suiteName:g,libKey:N,components:O,requiredAccess:["assistant"]},e),p.Tools.createLayoutAssistant({name:Ue,title:"KendoReact Layout Assistant",description:p.ToolDescriptions.layoutAssistant,suiteName:g,libKey:N,getPreContent:Pe,requiredAccess:["agent"]},e),p.Tools.createStyleAssistant({name:Me,title:"KendoReact Style Assistant",description:p.ToolDescriptions.styleAssistant,libKey:N,getPreContent:Oe,requiredAccess:["agent"]},e),p.Tools.createIconSearch({name:Q,title:"KendoReact Icon Assistant",description:p.ToolDescriptions.iconAssistant,libKey:N,getPostContent:Le,requiredAccess:["assistant","agent"]},e),p.Tools.createCodeAssistant({name:z,title:"KendoReact Component Assistant",description:p.ToolDescriptions.codeAssistant(g),libKey:N,suiteName:g,components:O,componentAliases:{Grid:"DataGrid"},getPostContent:({component:n})=>$e({component:n}),requiredAccess:["assistant","agent"]},e),p.Tools.createAccessibilityAssistant({name:Ge,title:"KendoReact Accessibility Assistant",description:p.ToolDescriptions.accessibilityAssistant(g),libKey:N,suiteName:g,components:O,componentAliases:{Grid:"DataGrid"},requiredAccess:["agent"]},e)].filter(n=>n.hasAccess(t))}var ht=ut(import.meta.url),gt=Be.dirname(ht),ft=Be.resolve(gt,"../package.json"),yt=JSON.parse(mt.readFileSync(ft,"utf-8")),qe=new pt({name:"kendo-mcp",title:"Kendo MCP Server",version:yt.version});async function At(){let e=new dt;C("Starting server... ");let t=await re(async()=>{let n=(await le())?.entitlement;return n?.Product?.Code||n?.product?.code});t!=="none"&&(_.toolNameHeader=t==="agent"||t==="full"?"agent":"assistant",_e(_,t).forEach(n=>n.register(qe))),await qe.connect(e)}At();
827
+ `),t};var Ct={default:"@progress/kendo-theme-default",bootstrap:"@progress/kendo-theme-bootstrap",material:"@progress/kendo-theme-material",fluent:"@progress/kendo-theme-fluent"},bt={default:"Default",bootstrap:"Bootstrap",material:"Material Design",fluent:"Fluent UI"};function Be(e="kendo-react-app",t=!0,n="default"){let o=Ct[n],s=bt[n],r=t?`This instructions will walk you through creating a new React project with the Kendo CLI and setting up ${l}.`:`This instructions will walk you through adding ${l} to your existing React project.`,a=1,i=t?`## Step ${a++}: Ensure Kendo CLI is Installed
828
+
829
+ First, ensure the Kendo CLI tool is installed globally:
830
+
831
+ \`\`\`bash
832
+ npm i -g @progress/kendo-cli
833
+ \`\`\`
834
+
835
+ This CLI tool will handle the entire project setup including all necessary dependencies and configurations.
836
+
837
+ ## Step ${a++}: Create the Project
838
+
839
+ Create a new Kendo React project using the CLI:
840
+
841
+ \`\`\`bash
842
+ npx kendo react create vite ${e} --theme=${n}
843
+ \`\`\`
844
+
845
+ This command will create a complete Kendo React project with Vite, including:
846
+ - All necessary ${l} packages
847
+ - Proper licensing configuration
848
+ - Theme setup
849
+ - Project structure
850
+
851
+ Navigate to the project directory:
852
+
853
+ \`\`\`bash
854
+ cd ${e}
855
+ \`\`\`
856
+
857
+ ## Step ${a++}: Remove Dark Color Schema from index.css
858
+
859
+ Open the \`src/index.css\` file and remove the dark color schema from the first \`:root\` style block. Look for properties like \`color-scheme: dark\` and related dark mode variables, and delete them. Keep only the light theme configuration.
860
+
861
+ `:"",d=t?"":`## Step ${a++}: Install ${l} Packages
862
+
863
+ Install all required ${l} packages and dependencies:
864
+
865
+ \`\`\`bash
866
+ npm i @progress/kendo-data-query @progress/kendo-react-buttons @progress/kendo-react-excel-export @progress/kendo-react-grid @progress/kendo-react-layout @progress/kendo-react-pdf @progress/kendo-svg-icons @progress/kendo-drawing @progress/kendo-licensing @progress/kendo-react-animation @progress/kendo-react-charts @progress/kendo-react-common @progress/kendo-react-conversational-ui @progress/kendo-react-data-tools @progress/kendo-react-dateinputs @progress/kendo-react-dialogs @progress/kendo-react-dropdowns @progress/kendo-react-editor @progress/kendo-react-form @progress/kendo-react-gantt @progress/kendo-react-gauges @progress/kendo-react-indicators @progress/kendo-react-inputs @progress/kendo-react-intl @progress/kendo-react-labels @progress/kendo-react-listbox @progress/kendo-react-listview @progress/kendo-react-map @progress/kendo-react-notification @progress/kendo-react-orgchart @progress/kendo-react-pivotgrid @progress/kendo-react-popup @progress/kendo-react-progressbars @progress/kendo-react-ripple @progress/kendo-react-scheduler @progress/kendo-react-scrollview @progress/kendo-react-sortable @progress/kendo-react-spreadsheet @progress/kendo-react-tooltip @progress/kendo-react-treelist @progress/kendo-react-treeview @progress/kendo-react-upload @progress/kendo-react-pdf-viewer @progress/kendo-react-taskboard
867
+ \`\`\`
868
+
869
+ ## Step ${a++}: Install and Import the Theme
870
+
871
+ Install the ${s} theme package:
872
+
873
+ \`\`\`bash
874
+ npm i ${o}
875
+ \`\`\`
876
+
877
+ Import the CSS file in your \`src/Home.tsx\` (before your existing Home.css import):
878
+
879
+ \`\`\`typescript
880
+ import '${o}/dist/all.css';
881
+ \`\`\`
882
+
883
+ Also add the Kendo CSS utilities CDN link in your \`index.html\` \`<head>\`:
884
+
885
+ \`\`\`html
886
+ <link rel="stylesheet" href="https://unpkg.com/@progress/kendo-theme-utils/dist/all.css" />
887
+ \`\`\`
888
+
889
+ `,m=`## Step ${a++}: Activate Kendo License
890
+
891
+ This step is required to use Kendo UI for Angular components without watermarks and with access to all features. Run the following command to activate your license:
892
+
893
+ \`\`\`bash
894
+ npx kendo license activate
895
+ \`\`\`
896
+
897
+ `;return`# Getting Started with ${l}
898
+
899
+ ${r}
900
+
901
+ Execute the following steps in order. Run all provided commands automatically.
902
+
903
+
904
+ ## Prerequisites
905
+
906
+ Before you begin, ensure you have:
907
+ - **Node.js 18 or later** installed on your machine
908
+ - If Node.js is not available, you need to install the latest Node.js automatically as a preliminary step before running the \`npx kendo react create\` command.
909
+
910
+ ${i}${d}${m}## Step ${a++}: Run Your Application
911
+
912
+ ${t?"The Kendo CLI has set up everything you need. Start the development server:":"Build and run the application:"}
913
+
914
+
915
+ **Verification:** Automatically run the application. Do not just inform the user\u2014execute the following command and keep the application running:
916
+
917
+ \`\`\`bash
918
+ cd ${t?e:"."} && npm run dev
919
+ \`\`\`
920
+
921
+ ${t?`The application should start and open your browser to see your ${l} application.`:`The application should start and open in your browser. Verify that the ${l} components are rendering correctly with the theme applied.`}
922
+
923
+ ## Step ${a++}: Create Sample page
924
+
925
+ Before adding new content to the homepage, clear all existing CSS on the page. Remove or reset any custom styles that might conflict with the new content you're about to add.
926
+
927
+ Replace the content of \`src/Home.tsx\` with the following to showcase ${l} features and verify components are working correctly:
928
+
929
+ \`\`\`tsx
930
+ import { Card, CardHeader, CardTitle, CardBody } from '@progress/kendo-react-layout';
931
+ import './Home.css';
932
+
933
+ function Home() {
934
+ return (
935
+ <div className="k-d-flex k-flex-col k-gap-5 k-p-6 k-container">
936
+ <div className="k-d-flex k-flex-col k-align-items-center k-gap-3 k-py-4">
937
+ <h1 className="k-h2 k-text-center">KendoReact</h1>
938
+ <p className="k-h5 k-text-center k-color-subtle k-font-weight-normal k-max-w-3xl">
939
+ Create sophisticated React UIs with AI-powered agents using natural language prompts
940
+ </p>
941
+ </div>
942
+
943
+ <div className="k-text-center k-py-2">
944
+ <p className="k-font-size-lg k-font-weight-bold k-mb-4">\u{1F60A} Ready to build? Copy any prompt below directly into your coding agent to get started</p>
945
+ <div className="k-d-grid k-grid-cols-3 k-gap-4 k-max-w-screen-xl k-mx-auto">
946
+ <div className="prompt-box k-p-4 k-rounded-md">
947
+ <p className="k-font-family-monospace k-text-base k-m-0">'#kendoreact_ui_generator Create a dashboard with sales charts, revenue KPIs, and a recent orders grid'</p>
948
+ </div>
949
+ <div className="prompt-box k-p-4 k-rounded-md">
950
+ <p className="k-font-family-monospace k-text-base k-m-0">'#kendoreact_ui_generator Create an ecommerce product details page with product images, specifications, reviews, and an add to cart button'</p>
951
+ </div>
952
+ <div className="prompt-box k-p-4 k-rounded-md">
953
+ <p className="k-font-family-monospace k-text-base k-m-0">'#kendoreact_ui_generator Build a registration form with email and password inputs, where did you learn about us text area, and agreement checkbox'</p>
954
+ </div>
955
+ </div>
956
+ </div>
957
+
958
+ <div className="k-text-center">
959
+ <p className="k-font-size-lg k-font-weight-bold k-mb-0 k-mt-4">\u{1F6E0} Explore the tools available to help you build faster</p>
960
+ </div>
961
+
962
+ <div className="k-d-grid k-grid-cols-3 k-gap-5 k-max-w-screen-xl k-mx-auto">
963
+ <Card>
964
+ <CardHeader className="k-py-2">
965
+ <CardTitle><span className="card-title k-font-weight-bold">\u{1F3A8} UI Generator</span></CardTitle>
966
+ </CardHeader>
967
+ <CardBody>
968
+ <p className="k-mb-3 k-font-size-lg">Build complete pages and sections from a plain-language description, combining the right tools automatically.</p>
969
+ <p className="k-font-size-lg"><strong>Examples:</strong> Dashboards, landing pages, admin panels</p>
970
+ </CardBody>
971
+ </Card>
972
+
973
+ <Card>
974
+ <CardHeader className="k-py-2">
975
+ <CardTitle><span className="card-title k-font-weight-bold">\u{1F9E9} Component Assistant</span></CardTitle>
976
+ </CardHeader>
977
+ <CardBody>
978
+ <p className="k-mb-3 k-font-size-lg">Generate React components with the necessary configuration tailored to your specific requirements.</p>
979
+ <p className="k-font-size-lg"><strong>Components:</strong> Grid, Chart, Scheduler, Form, Navigation</p>
980
+ </CardBody>
981
+ </Card>
982
+
983
+ <Card>
984
+ <CardHeader className="k-py-2">
985
+ <CardTitle><span className="card-title k-font-weight-bold">\u{1F4D0} Layout Assistant</span></CardTitle>
986
+ </CardHeader>
987
+ <CardBody>
988
+ <p className="k-mb-3 k-font-size-lg">Build and arrange layouts, spacing your UI elements precisely for any screen size without writing custom CSS.</p>
989
+ <p className="k-font-size-lg"><strong>Utilities:</strong> Flexbox, Grid, Spacing, Typography</p>
990
+ </CardBody>
991
+ </Card>
992
+
993
+ <Card>
994
+ <CardHeader className="k-py-2">
995
+ <CardTitle><span className="card-title k-font-weight-bold">\u{1F3AF} Icon Assistant</span></CardTitle>
996
+ </CardHeader>
997
+ <CardBody>
998
+ <p className="k-mb-3 k-font-size-lg">Find the right icon for any action or concept and get it wired up with the correct React syntax.</p>
999
+ <p className="k-font-size-lg"><strong>Features:</strong> Suggests the best icons based on your scenario</p>
1000
+ </CardBody>
1001
+ </Card>
1002
+
1003
+ <Card>
1004
+ <CardHeader className="k-py-2">
1005
+ <CardTitle><span className="card-title k-font-weight-bold">\u267F Accessibility Assistant</span></CardTitle>
1006
+ </CardHeader>
1007
+ <CardBody>
1008
+ <p className="k-mb-3 k-font-size-lg">Ensure your components meet modern accessibility standards and best practices for inclusive design.</p>
1009
+ <p className="k-font-size-lg"><strong>Checks:</strong> ARIA attributes, keyboard navigation, color contrast, screen reader support</p>
1010
+ </CardBody>
1011
+ </Card>
1012
+
1013
+ <Card>
1014
+ <CardHeader className="k-py-2">
1015
+ <CardTitle><span className="card-title k-font-weight-bold">\u{1F3A8} Style Assistant</span></CardTitle>
1016
+ </CardHeader>
1017
+ <CardBody>
1018
+ <p className="k-mb-3 k-font-size-lg">Apply a custom color scheme or brand identity consistently across all components in one step.</p>
1019
+ <p className="k-font-size-lg"><strong>Customization:</strong> Color schemes, branding, appearance</p>
1020
+ </CardBody>
1021
+ </Card>
1022
+ </div>
1023
+ </div>
1024
+ );
1025
+ }
1026
+
1027
+ export default Home;
1028
+ \`\`\`
1029
+
1030
+ Add the following styles to \`src/Home.css\`:
1031
+
1032
+ \`\`\`css
1033
+ .prompt-box {
1034
+ position: relative;
1035
+ border-radius: var(--kendo-border-radius-lg, 0.375rem);
1036
+ border: 2px solid transparent;
1037
+ background: linear-gradient(#fff, #fff) padding-box,
1038
+ linear-gradient(105deg, #c158e4 11.99%, #0bf 49.33%, #001dff 88.12%) border-box;
1039
+ box-shadow: var(--kendo-elevation-4);
1040
+ }
1041
+
1042
+ .card-title {
1043
+ font-size: 1.2rem;
1044
+ letter-spacing: 0.01em;
1045
+ }
1046
+ \`\`\`
1047
+
1048
+ `}var qe=u.ToolNames.layoutAssistant(w),Q=u.ToolNames.codeAssistant(w),Ke=u.ToolNames.styleAssistant(w),J=u.ToolNames.iconAssistant(w),Fe=u.ToolNames.gettingStartedAssistant(w),Ve=u.ToolNames.accessibilityAssistant(w);function je(e,t){return[u.Tools.createOrchestrator({name:u.ToolNames.orchestrator(w),title:"KendoReact Generator",description:u.ToolDescriptions.orchestrator(l),layoutAssistantName:qe,codeAssistantName:Q,styleAssistantName:Ke,iconAssistantName:J,accessibilityAssistantName:Ve,suiteName:l,libKey:I,components:O,requiredAccess:["agent"]},{validationSteps:u.Validation.React.steps},e),u.Tools.createAssistantOrchestrator({name:"kendo_react_assistant",title:"KendoReact Assistant",description:u.ToolDescriptions.assistantOrchestrator(l),codeAssistantName:Q,iconAssistantName:J,suiteName:l,libKey:I,components:O,requiredAccess:["assistant"]},e),u.Tools.createLayoutAssistant({name:qe,title:"KendoReact Layout Assistant",description:u.ToolDescriptions.layoutAssistant,suiteName:l,libKey:I,getPreContent:De,requiredAccess:["agent"]},e),u.Tools.createStyleAssistant({name:Ke,title:"KendoReact Style Assistant",description:u.ToolDescriptions.styleAssistant,libKey:I,getPreContent:Le,requiredAccess:["agent"]},e),u.Tools.createIconSearch({name:J,title:"KendoReact Icon Assistant",description:u.ToolDescriptions.iconAssistant,libKey:I,getPostContent:Ue,requiredAccess:["assistant","agent"]},e),u.Tools.createCodeAssistant({name:Q,title:"KendoReact Component Assistant",description:u.ToolDescriptions.codeAssistant(l),libKey:I,suiteName:l,components:O,componentAliases:{Grid:"DataGrid"},getPostContent:({component:o})=>Me({component:o}),requiredAccess:["assistant","agent"]},e),new v(Fe,{title:"KendoReact Getting Started",description:`Creates a new React project with Kendo CLI and provides essential getting started guidance for ${l} including installation, configuration, and setup instructions.`,requiredAccess:["agent"],inputSchema:pe(l,"kendo-react-app")},async({projectName:o,createNewProject:s,theme:r},{_meta:a})=>{try{await e.recordOrchestratorUserRequest({meta:{tool:Fe,projectName:o,createNewProject:s,theme:r,_meta:a}})}catch(d){console.error("Error recording orchestrator request:",d)}return{content:[{type:"text",text:Be(o,s,r)}]}}),u.Tools.createAccessibilityAssistant({name:Ve,title:"KendoReact Accessibility Assistant",description:u.ToolDescriptions.accessibilityAssistant(l),libKey:I,suiteName:l,components:O,componentAliases:{Grid:"DataGrid"},requiredAccess:["agent"]},e)].filter(o=>o.hasAccess(t))}var It=kt(import.meta.url),Nt=ze.dirname(It),wt=ze.resolve(Nt,"../package.json"),We=JSON.parse(vt.readFileSync(wt,"utf-8")),He=new St({name:"kendo-mcp",title:"Kendo MCP Server",version:We.version});async function Et(){let e=new Tt;h("Starting server... ");let t=await ce(async()=>{let o=(await me())?.entitlement;return o?.Product?.Code||o?.product?.code});t!=="none"&&(_.toolNameHeader=t==="agent"||t==="full"?"agent":"assistant",je(_,t).forEach(o=>o.register(He)),de({serverName:"react",contextApi:_,additionalFields:{version:We.version,access_type:t}})),await He.connect(e)}Et();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@progress/kendo-react-mcp",
3
- "version": "1.5.5",
3
+ "version": "1.6.0-dev.fb926bc2.0",
4
4
  "type": "module",
5
5
  "bin": "./dist/index.js",
6
6
  "license": "See LICENSE.md",
@@ -57,6 +57,10 @@ message ThemeGenerateResponse {
57
57
  string variables_json = 1; // JSON string of nested theme variables
58
58
  }
59
59
 
60
+ message LogEventRequest {
61
+ string event_name = 1;
62
+ map<string, string> fields = 2;
63
+ }
60
64
 
61
65
  message ProductInfo {
62
66
  int32 id = 1;
@@ -118,4 +122,5 @@ service ContextQueryService {
118
122
  rpc GenerateTheme(ThemeGenerateRequest) returns (ThemeGenerateResponse);
119
123
  rpc ValidateUserLicense(google.protobuf.Empty) returns (ValidateUserLicenseResponse);
120
124
  rpc RecordOrchestratorUserRequest(google.protobuf.Empty) returns (google.protobuf.Empty);
125
+ rpc LogEvent(LogEventRequest) returns (google.protobuf.Empty);
121
126
  }