@progress/kendo-react-mcp 1.5.3 → 1.5.4
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/README.md +5 -33
- package/dist/index.js +55 -40
- package/package.json +2 -2
- package/proto/service.proto +3 -0
package/README.md
CHANGED
|
@@ -2,10 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
The KendoReact [MCP Server](https://modelcontextprotocol.io/introduction) enables you to achieve integration with your already existing AI workflows and reach new levels of developer productivity. The MCP server provides proprietary context to AI-powered IDEs, apps and tools. You can use the KendoReact MCP Server to ask about KendoReact components, features, or general usage. You can successfully prompt more complex questions and tasks, and generate tailored code that includes KendoReact components and API.
|
|
4
4
|
|
|
5
|
-
As of version 1.4 the KendoReact MCP server
|
|
5
|
+
As of version 1.4 the KendoReact MCP server The MCP server automatically recognizes your [Telerik license](https://www.telerik.com/purchase/faq/licensing-purchasing) and activates the Agentic UI Generator and [the available assistants](https://www.telerik.com/kendo-react-ui/components/ai-tools#what-are-the-kendoreact-ai-tools):
|
|
6
6
|
|
|
7
|
-
* **Agentic UI Generator**—Includes all
|
|
8
|
-
* **AI Coding Assistant**—Includes the Component Tool and Icon Tool, coordinated by an orchestrator optimized for component-level development.
|
|
7
|
+
* **Agentic UI Generator**—Includes all five specialized assistants (Component, Layout, Styling, Icon and Accessibility), coordinated by a comprehensive orchestrator designed for complete UI generation.
|
|
9
8
|
|
|
10
9
|
## **Agentic UI Generator** Intended Use
|
|
11
10
|
|
|
@@ -18,20 +17,12 @@ As of version 1.4 the KendoReact MCP server supports [two modes of operation](ht
|
|
|
18
17
|
* Create new responsive pages and sections.
|
|
19
18
|
* Convert existing pages to be responsive for mobile and tablet views.
|
|
20
19
|
|
|
21
|
-
## **AI Coding Assistant** Intended Use
|
|
22
|
-
|
|
23
|
-
* **Initial code generation**: Quickly add components to your app to speed up the initial development.
|
|
24
|
-
* **Component configuration**: Enable or disable specific component features, or fine tune the configuration through prompting. More * complex configurations are possible but may require additional manual work to be production-ready.
|
|
25
|
-
* **Dummy data generation and data binding**: Quickly add data to your app for testing and prototyping purposes. Avoid exposing or providing access to your proprietary or production data to AI-enabled tools.
|
|
26
|
-
* **Step-by-step explanations**: Understand the solutions provided by the AI Coding Assistant through the detailed explanations (depends * on the tool, mode, and model used). To further develop your knowledge, check the respective documentation.
|
|
27
|
-
* **Preliminary troubleshooting**: Resolve obvious and easy-to-solve issues affecting your code. For more complex issues, look for assistance from the community or contact the support team.
|
|
28
|
-
|
|
29
20
|
## Prerequisites
|
|
30
21
|
|
|
31
22
|
To use the KendoReact MCP Server, you need:
|
|
32
23
|
|
|
33
24
|
* A [compatible MCP client (IDE, code editor or app)](https://modelcontextprotocol.io/clients) that supports *MCP tools*.
|
|
34
|
-
* An active [Telerik license](https://www.telerik.com/kendo-react-ui/components/ai-tools#license-requirements) that provides access to the KendoReact MCP server.
|
|
25
|
+
* An active [Telerik Subscription license](https://www.telerik.com/kendo-react-ui/components/ai-tools#license-requirements) that provides access to the KendoReact MCP server.
|
|
35
26
|
|
|
36
27
|
## Installation
|
|
37
28
|
|
|
@@ -139,26 +130,7 @@ Also check more usefule documentation about how to use the Agentic UI Generator
|
|
|
139
130
|
- [Best Practices](https://www.telerik.com/kendo-react-ui/components/ai-tools/agentic-ui-generator/getting-started#best-practices) for more usage tips.
|
|
140
131
|
- [Prompt Library](https://www.telerik.com/kendo-react-ui/components/ai-tools/agentic-ui-generator/prompt-library)
|
|
141
132
|
|
|
142
|
-
### AI Coding Assistant
|
|
143
|
-
|
|
144
|
-
To use the AI Coding Assistant mode:
|
|
145
|
-
|
|
146
|
-
1. Start your prompt with `#kendo_react_assistant` (the main MCP tool to start the agentic workflow in the coding agent).
|
|
147
|
-
1. This will trigger an agentic workflow using the other available MCP tools to retrieve relevant context based on your prompt.
|
|
148
|
-
1. Inspect the output and verify that the KendoReact MCP Server is used. Look for a statement in the output, which is similar to:
|
|
149
|
-
* `Running kendo-react-mcp-server` (in VS Code)
|
|
150
|
-
* `Calling MCP tool kendo-react-mcp-server` (in Cursor)
|
|
151
|
-
|
|
152
|
-
If the KendoReact MCP server is not used even though it's installed and enabled, double-check the server name in your configuration and try rephrasing your prompt.
|
|
153
|
-
1. If requested, grant the KendoReact MCP server a permission to run for this session, workspace, or always.
|
|
154
|
-
|
|
155
|
-
Also check more useful documentation about how to use the AI Coding Assistant here:
|
|
156
|
-
- [Getting Started](https://www.telerik.com/kendo-react-ui/components/ai-tools/ai-assistant/getting-started)
|
|
157
|
-
- [Use Cases](https://www.telerik.com/kendo-react-ui/components/ai-tools/ai-assistant/getting-started#use-cases)
|
|
158
|
-
- [Best Practices](https://www.telerik.com/kendo-react-ui/components/ai-tools/ai-assistant/getting-started#best-practices)
|
|
159
|
-
- [Prompt Library](https://www.telerik.com/kendo-react-ui/components/ai-tools/ai-assistant/prompt-library)
|
|
160
|
-
|
|
161
133
|
### AI Tools Usage
|
|
162
|
-
|
|
134
|
+
The KendoReact MCP server and its tools are offered as a single experience through the Agentic UI Generator (#kendo_ui_generator) in all active [Telerik subscription models](https://www.telerik.com/purchase.aspx?filter=web).
|
|
163
135
|
- [License Requirements](https://www.telerik.com/kendo-react-ui/components/ai-tools#license-requirements)
|
|
164
|
-
- [Usage Limits](https://www.telerik.com/kendo-react-ui/components/ai-tools#usage-limits)
|
|
136
|
+
- [Usage Limits](https://www.telerik.com/kendo-react-ui/components/ai-tools/agentic-ui-generator/getting-started#usage-limits)
|
package/dist/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{McpServer as
|
|
3
|
-
`,
|
|
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 _=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 _(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 k from"node:fs";import $ from"node:path";var q=!1,E=process.env.DEBUG_LOG_FILE,oe=!!(E&&typeof E=="string");if(oe){let e=$.resolve(E),t=$.dirname(e);if(t!=="."&&t!==process.cwd()&&!k.existsSync(t))try{k.mkdirSync(t,{recursive:!0})}catch(o){console.error("Error creating log directory:",o)}if(!k.existsSync(e))try{k.writeFileSync(e,"")}catch(o){console.error("Error creating log file:",o)}}else q=!1;q=oe&&!!E&&k.existsSync($.resolve(E));function y(...e){if(q&&E){let n=`${new Date().toISOString()}: ${e.join(" ")}
|
|
3
|
+
`,s=$.resolve(E);k.appendFile(s,n,i=>{i&&console.error("Error writing to log file:",i)})}}import Ye from"@grpc/proto-loader";import U 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 M=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"),y("Using ContextApi URl:",this.contextApiUrl);let i=U.loadPackageDefinition(s);this.client=new i.ContextQueryService(this.contextApiUrl||"contextapi.telerik.com:443",this.isDev?U.credentials.createInsecure():U.credentials.createSsl())}async getMetadata({meta:t}={meta:{}}){let[o,n]=this.isDev?"fake_license":await te(),s=process.env.CONTEXTAPI_API_KEY,i=s&&typeof s=="string",c=o&&typeof o=="string";if(!c&&!i&&n)throw new Error(`Failed to authenticate with API key or License key!
|
|
4
4
|
|
|
5
|
-
License Error: ${n}`);let
|
|
5
|
+
License Error: ${n}`);let l=new U.Metadata;if(c)try{l.add("x-license-key",o)}catch(u){throw y("Error adding license key to metadata:",u),new Error(`Failed to use license key: ${u.message}`)}i&&l.add("x-api-key",s),this.options?.libName&&l.add("x-library-name",this.options.libName),l.add("x-tool-name",this.toolNameHeader);let m=JSON.stringify({...t,source:"npm",version:ae.version,os:process.platform,node_version:process.version});return l.add("x-request-metadata",Je(m)),l}async query(t){let o=await this.getMetadata();return new Promise((n,s)=>{this.client.query(t,o,(i,c)=>{i?s(new Error(i)):n(c)})})}async getApiRefMatches(t){let o=await this.getMetadata();return new Promise((n,s)=>{this.client.getApiRefMatches(t,o,(i,c)=>{i?s(new Error(i)):n(c)})})}async queryCssUtils(t){let o=await this.getMetadata();return new Promise((n,s)=>{this.client.cssUtilsSearch(t,o,(i,c)=>{i?(y("Error querying CSS Utils:",i),s(new Error(i))):n(c)})})}async queryIconsSearch(t){let o=await this.getMetadata();return new Promise((n,s)=>{this.client.iconsSearch(t,o,(i,c)=>{i?(y("Error querying Icons Search:",i),s(new Error(i))):n(c)})})}async queryBuildingBlocks(t){let o=await this.getMetadata();return new Promise((n,s)=>{this.client.buildingBlocksSearch(t,o,(i,c)=>{i?(y("Error querying Building Blocks:",i),s(new Error(i))):n(c)})})}async validateUserLicense(){let t=await this.getMetadata();return new Promise((o,n)=>{this.client.validateUserLicense(null,t,(s,i)=>{s?(y("Error validating user license:",s),n(new Error(s))):o(i)})})}async queryThemeGenerate(t){let o=await this.getMetadata();return new Promise((n,s)=>{this.client.generateTheme(t,o,(i,c)=>{i?(y("Error querying context API/GenerateTheme:",i),s(new Error(i))):n(c)})})}async recordOrchestratorUserRequest({meta:t}){let o=await this.getMetadata({meta:t});return new Promise((n,s)=>{this.client.recordOrchestratorUserRequest(null,o,(i,c)=>{i?(y("Error recording orchestrator user request:",i),s(new Error(i))):n(c)})})}};import{z as B}from"zod";var Ut=B.object({user_id:B.string(),user_email:B.string().email()});import{z as A}from"zod";var Xe=A.object({Product:A.object({Id:A.number().int(),Code:A.string(),Name:A.string()}),License:A.nullable(A.object({Id:A.number().int(),Name:A.string(),Type:A.string(),Active:A.boolean()})),Availability:A.array(A.object({LicenseStart:A.nullable(A.string().datetime()),LicenseEnd:A.nullable(A.string().datetime())})),IsLicenseAvailable:A.optional(A.boolean())}),_t=A.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 h="Kendo UI for React",N="react",w="kendo",P=["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","Form","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"),G=new M("contextapi.telerik.com:443",ot,{libName:N});var le=async()=>G.validateUserLicense();import mt from"fs";import Be from"path";import{fileURLToPath as ut}from"url";import{z as f}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 O=(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
|
|
49
|
+
`;var D=(e,t)=>{let o=O({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
|
|
50
50
|
|
|
51
51
|
**Current Goal:**
|
|
52
52
|
|
|
@@ -161,7 +161,7 @@ Based on your current goal, analyze what other ${e.suiteName} components are nee
|
|
|
161
161
|
${n}
|
|
162
162
|
|
|
163
163
|
**IMPORTANT COMPONENT USAGE REQUIREMENTS:**
|
|
164
|
-
- Make sure to identify all necessary features related to the ${
|
|
164
|
+
- Make sure to identify all necessary features related to the ${s} based on the current goal.
|
|
165
165
|
- Make sure to identify specific features needed for other ${e.suiteName} components based on the current goal.
|
|
166
166
|
- Make sure to generate a query for ${e.codeAssistantName} tool for each component and call the tool for each specific feature or functionality.
|
|
167
167
|
- Always specify the exact features you want for each component. Describe only the needed functionality, and behavior you need. Be concise and don't include any information about the use case.
|
|
@@ -384,7 +384,7 @@ After gathering information:
|
|
|
384
384
|
**Important Notes:**
|
|
385
385
|
- These tools provide documentation and guidance, not code generation
|
|
386
386
|
- Always refer to official ${e.suiteName} documentation for the most up-to-date information
|
|
387
|
-
- Tool responses include usage examples and best practices`;var
|
|
387
|
+
- Tool responses include usage examples and best practices`;var R=(e,t)=>({SETUP_VALIDATION:`
|
|
388
388
|
UI Library Setup:
|
|
389
389
|
- ${e} modules properly imported and configured
|
|
390
390
|
- ${e} theme properly loaded and applied
|
|
@@ -403,62 +403,77 @@ 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
|
|
407
|
-
|
|
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=[],i=n.FullName??n.Name??"",c=n.Type??"",l=n.Summary??"",m=n.SyntaxContent??"";s.push(`## API Reference Item
|
|
407
|
+
- Name: ${i}
|
|
408
|
+
- Type: ${c}
|
|
409
|
+
- Summary: ${l}
|
|
410
|
+
- Syntax: ${m}`);let u=o.RelatedItemsByType?.return_type;if(u?.length){let a=u[0].Text;a&&s.push(`- Return Type: ${a}`)}let C=n.Examples??[];if(C.length>0){let a=`## Examples
|
|
411
|
+
`,d=0;for(let S of C){let b=(S.Component??"").toLowerCase(),T=t.toLowerCase();if(b&&b!==T&&b!=="general")continue;d+=1;let I=S.Code??"";a+=`### Example ${d}
|
|
412
|
+
\`\`\`
|
|
413
|
+
${I}
|
|
414
|
+
\`\`\`
|
|
415
|
+
`}d>0&&s.push(a)}let r=o.RelatedItemsByType??{},g=[];for(let[a,d]of Object.entries(r))if(!(a==="return_type"||a==="render_fragment"))for(let S of d??[]){let b=S.FullName??"",T=S.ShortText??"";g.push(`### ${b} (${a})
|
|
416
|
+
${T}`)}return g.length>0&&s.push(`## Additional Context
|
|
417
|
+
`+g.join(`
|
|
418
|
+
---
|
|
419
|
+
`)),s.join(`
|
|
420
|
+
|
|
421
|
+
`)}function pe(e,t,o){let{name:n,title:s,description:i,layoutAssistantName:c,codeAssistantName:l,styleAssistantName:m,iconAssistantName:u,accessibilityAssistantName:C,suiteName:r,libKey:g,components:a}=e,d=new v(n,{title:s,description:i,requiredAccess:e.requiredAccess,inputSchema:{userIntent:f.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 ${r} components you want to use.`),needsComponentsDocsConfidence:f.number().min(0).max(1).default(1).describe("Confidence (0-1) to include Component Documentation assistance. Default is 1."),needsLayoutConfidence:f.number().min(0).max(1).default(0).describe("Confidence (0-1) to include Layout assistance. Default is 0."),needsStylingConfidence:f.number().min(0).max(1).default(0).describe("Confidence (0-1) to include Theming/Styling assistance. Default is 0."),needsResponsiveBehaviorConfidence:f.number().min(0).max(1).default(0).describe("Confidence (0-1) to include Responsive Behavior assistance. Default is 0."),needsIconsConfidence:f.number().min(0).max(1).default(0).describe("Confidence (0-1) to include Icons assistance. Default is 0."),componentsNeeded:f.array(f.enum(a)).optional().describe(`Optional list of specific ${r} components needed for the project.`)}},async({userIntent:S,needsComponentsDocsConfidence:b,needsLayoutConfidence:T,needsStylingConfidence:I,needsResponsiveBehaviorConfidence:Q,needsIconsConfidence:J,componentsNeeded:X},{_meta:Fe})=>{y("UI Orchestrator called with:",{userIntent:S,needsComponentsDocsConfidence:b,needsLayoutConfidence:T,needsStylingConfidence:I,needsResponsiveBehaviorConfidence:Q,needsIconsConfidence:J});try{await o.recordOrchestratorUserRequest({meta:{userIntent:S,componentsNeeded:X,_meta:Fe}})}catch(L){throw x(L)}let Ke=d.server?.server.getClientCapabilities?.()?.elicitation,Z;if(Ke&&I>.3&&I<=.6){let L=await d.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"]}});L?.action==="accept"&&L.content?.includeCustomTheming&&(Z=!0)}return{content:[{type:"text",text:D({name:n,userIntent:S,includeComponentsDocs:b>.3,includeTheming:I>.6||!!Z,includeLayout:T>.5,includeIcons:J>.6,includeResponsive:T>.5&&Q>.4,layoutAssistantName:c,codeAssistantName:l,styleAssistantName:m,iconAssistantName:u,accessibilityAssistantName:C,suiteName:r,libKey:g,components:X},t)}]}});return d}function de(e,t){let{name:o,title:n,description:s,iconAssistantName:i,codeAssistantName:c,suiteName:l,libKey:m,components:u}=e;return new v(o,{title:n,description:s,inputSchema:{userIntent:f.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 ${l}.`),needsIconsConfidence:f.number().min(0).max(1).default(.7).describe("Confidence (0-1) to include Icons assistance. Default is 0.7."),componentsNeeded:f.array(f.enum(u)).optional().describe(`Optional list of specific ${l} components you want to learn about.`)},requiredAccess:e.requiredAccess},async({userIntent:r,needsIconsConfidence:g,componentsNeeded:a},{_meta:d})=>{y("Assistant Orchestrator called with:",{userIntent:r,needsIconsConfidence:g,componentsNeeded:a});try{await t.recordOrchestratorUserRequest({meta:{userIntent:r,componentsNeeded:a,_meta:d}})}catch(b){throw x(b)}return{content:[{type:"text",text:F({name:o,userIntent:r,includeComponentsDocs:!0,includeIcons:g>.5,codeAssistantName:c,iconAssistantName:i,suiteName:l,libKey:m,components:a})}]}})}function me(e,t){let{name:o,title:n,description:s,suiteName:i,libKey:c,getPreContent:l}=e;return new v(o,{title:n,description:s,requiredAccess:e.requiredAccess,inputSchema:{prompt:f.string().describe("An enhanced prompt describing the HTML layout structure, design requirements or specific visual effects you want to achieve."),includeBuildingBlockExamples:f.boolean().describe("Whether to include building block examples. Defaults to false.").default(!1)}},async({prompt:m,includeBuildingBlockExamples:u})=>{y("Layout Assistant called with:",{prompt:m,includeBuildingBlockExamples:u});try{let r=(await t.queryCssUtils({query:m})).values.join(`
|
|
422
|
+
`)||"No CSS utilities found for the given prompt.",g=l?.()??"",a=d=>`${g}
|
|
408
423
|
|
|
409
424
|
# Kendo Design System CSS Utilities
|
|
410
425
|
|
|
411
426
|
${r}
|
|
412
|
-
${
|
|
413
|
-
`;if(
|
|
427
|
+
${d??""}
|
|
428
|
+
`;if(u)try{let d=await t.queryBuildingBlocks({query:m,lib_name:c}),S="";d.items?.length>0&&(S=`
|
|
414
429
|
## Building Blocks Examples
|
|
415
430
|
|
|
416
431
|
The examples here are for demonstration purpose how CSS utils can be implemented in various building blocks.
|
|
417
432
|
However, consider your own design requirements and specifics in order to implement your templates/building blocks correctly.
|
|
418
433
|
|
|
419
|
-
${
|
|
420
|
-
### ${
|
|
434
|
+
${d.items.map(b=>`
|
|
435
|
+
### ${b.name}
|
|
421
436
|
|
|
422
|
-
${
|
|
437
|
+
${b.description}
|
|
423
438
|
|
|
424
439
|
\`\`\`code
|
|
425
|
-
${
|
|
440
|
+
${b.code}
|
|
426
441
|
\`\`\`
|
|
427
442
|
`).join(`
|
|
428
|
-
`)}`),r=a(
|
|
443
|
+
`)}`),r=a(S)}catch(d){y("Error calling building-blocks service:",d),r=a()}else r=a();return{content:[{type:"text",text:r}]}}catch(C){throw x(C)}})}function ue(e,t){let{name:o,title:n,description:s,libKey:i,getPreContent:c}=e;return new v(o,{title:n,description:s,requiredAccess:e.requiredAccess,inputSchema:{prompt:f.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:l})=>{y("Style Assistant called with:",{prompt:l});let m="";try{let r=await t.queryThemeGenerate({prompt:l});if(r.variables_json){let g=JSON.parse(r.variables_json),a=[];if(g)for(let d of Object.keys(g))typeof g[d]=="string"&&a.push(`${d}: ${g[d]}`);m=a.join(`
|
|
429
444
|
|
|
430
|
-
`)}}catch(r){throw
|
|
445
|
+
`)}}catch(r){throw x(r)}let u=c?.()??"";return{content:[{type:"text",text:m?`Use the following CSS variables to style the web application, including colors, typography, spacing, and component appearance.
|
|
431
446
|
Ensure the variables are applied consistently across all relevant elements.
|
|
432
447
|
Do NOT set any inline styles. CSS variables should be defined in global or component-level CSS files, or via supported theming mechanisms.
|
|
433
448
|
|
|
434
|
-
${
|
|
449
|
+
${u}
|
|
435
450
|
|
|
436
451
|
## Generated CSS Variables
|
|
437
452
|
|
|
438
453
|
\`\`\`css
|
|
439
|
-
${
|
|
454
|
+
${m}
|
|
440
455
|
\`\`\`
|
|
441
|
-
`:"No CSS variables were generated for the given prompt."}]}})}function he(e,t){let{name:o,title:n,description:
|
|
456
|
+
`:"No CSS variables were generated for the given prompt."}]}})}function he(e,t){let{name:o,title:n,description:s,libKey:i,getPostContent:c}=e;return new v(o,{title:n,description:s,requiredAccess:e.requiredAccess,inputSchema:{query:f.string().describe("A search query for finding icons. Be specific about the icon purpose, style, or action."),limit:f.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:l,limit:m})=>{y("Icon Search called with:",{query:l,limit:m});try{let u=await t.queryIconsSearch({query:l,limit:m*100}),C=c?.()??"";return{content:[{type:"text",text:`${u.values.join(`
|
|
442
457
|
|
|
443
458
|
`)}
|
|
444
459
|
|
|
445
|
-
${C}`}]}}catch(
|
|
460
|
+
${C}`}]}}catch(u){throw x(u)}})}function ge(e,t){let{name:o,title:n,description:s,libKey:i,suiteName:c,components:l,componentAliases:m,getPostContent:u}=e;return new v(o,{title:n,description:s,requiredAccess:e.requiredAccess,inputSchema:{query:f.string().describe("The query to search for."),component:f.enum(l).describe("The component to search for. If not specified, use General.")}},async({query:C,component:r})=>{y("Code Assistant called with:",{query:C,component:r});let g=r;if(m){let a=m[r];a&&(g=a)}try{let d=(await t.query({query:C,component:g?.toLowerCase()??"general",lib_name:i,text_matches_count:3,code_matches_count:0,allowed_types:["documentation"]})).values.map(T=>T.replace(/\0/g,"")),S=u?.({component:r})??"";return{content:[{type:"text",text:`${d.join(`
|
|
446
461
|
|
|
447
462
|
`)}
|
|
448
463
|
|
|
449
|
-
${
|
|
464
|
+
${S}`}]}}catch(a){throw x(a)}})}function fe(e,t){let{name:o,title:n,description:s,libKey:i,suiteName:c,components:l,componentAliases:m}=e;return new v(o,{title:n,description:s,requiredAccess:e.requiredAccess,inputSchema:{query:f.string().describe("The query to search for."),component:f.enum(l).describe("The component to search for. If not specified, use General."),includeGeneralGuidelines:f.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:u,component:C,includeGeneralGuidelines:r})=>{y("Accessibility Assistant called with:",{query:u,component:C,includeGeneralGuidelines:r});let g=C;if(m){let a=m[C];a&&(g=a)}try{let a="";if(r){let I=ce();a+=`# WCAG 2.2 Level AA General Accessibility Guidelines
|
|
450
465
|
|
|
451
466
|
`,a+=I,a+=`
|
|
452
467
|
|
|
453
468
|
---
|
|
454
469
|
|
|
455
|
-
`}let
|
|
470
|
+
`}let T=(await t.getApiRefMatches({query:u,component:g?.toLowerCase()??"general",lib_name:i,filters_json:'{"type":{"$in":["accessibility"]}}'})).values.map(I=>I.replace(/\0/g,"")).map(I=>nt(I,g?.toLowerCase()??"general")).join(`
|
|
456
471
|
|
|
457
|
-
`);return
|
|
472
|
+
`);return T?(r&&(a+=`# Component-Specific Accessibility Information
|
|
458
473
|
|
|
459
|
-
`),a+=
|
|
474
|
+
`),a+=T):r||(a="No component-specific accessibility guidelines found."),{content:[{type:"text",text:a}]}}catch(a){throw x(a)}})}function x(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.
|
|
460
475
|
|
|
461
|
-
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`,
|
|
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.
|
|
462
477
|
|
|
463
478
|
Use the tool when:
|
|
464
479
|
- Want to build or modify a complete page or section layout
|
|
@@ -489,7 +504,7 @@ Use this tool when the user wants to:
|
|
|
489
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.
|
|
490
505
|
Use this tool when the user needs to find specific icons for UI components or design elements.
|
|
491
506
|
It supports searching by icon name, category, or keyword and returns matching icons from the Telerik Icons library.
|
|
492
|
-
`,
|
|
507
|
+
`,xe=e=>`Provides answers and retrieves official documentation for ${e}.
|
|
493
508
|
|
|
494
509
|
Use this tool when the user asks about:
|
|
495
510
|
- ${e} features or capabilities
|
|
@@ -499,7 +514,7 @@ Use this tool when the user asks about:
|
|
|
499
514
|
|
|
500
515
|
Set the user's full question as the 'query' parameter.
|
|
501
516
|
If the question refers to a specific ${e} component, include its name in the 'component' parameter.
|
|
502
|
-
`,
|
|
517
|
+
`,ke=e=>`Retrieves accessibility guidance for ${e} components with optional general WCAG 2.2 Level AA guidelines.
|
|
503
518
|
|
|
504
519
|
Use this tool when:
|
|
505
520
|
- You need component-specific accessibility information and API references
|
|
@@ -517,7 +532,7 @@ Set 'includeGeneralGuidelines=true' ONLY on the first call to include general WC
|
|
|
517
532
|
Returns:
|
|
518
533
|
- When includeGeneralGuidelines=true: General WCAG 2.2 Level AA guidelines + component-specific recommendations
|
|
519
534
|
- When includeGeneralGuidelines=false: Only component-specific accessibility recommendations
|
|
520
|
-
`;var K=
|
|
535
|
+
`;var K=R("Kendo UI","Kendo"),V=`
|
|
521
536
|
### Angular Component Validation
|
|
522
537
|
Component Structure:
|
|
523
538
|
- Use proper @Component decorator configuration
|
|
@@ -571,7 +586,7 @@ Accessibility
|
|
|
571
586
|
2. Match the discovered patterns in all generated code
|
|
572
587
|
3. Maintain consistent formatting, indentation, and code organization with existing files
|
|
573
588
|
4. Always use the same theme import mechanism (unless user specifies otherwise)
|
|
574
|
-
`;var W=
|
|
589
|
+
`;var W=R("Kendo UI","KendoReact"),Y=`
|
|
575
590
|
### React Component Validation
|
|
576
591
|
Component Structure:
|
|
577
592
|
- Use proper function component patterns with Hooks
|
|
@@ -594,7 +609,7 @@ ${W.THEME_AND_STYLING}
|
|
|
594
609
|
- Make sure theme import mechanism is consistent with existing project setup
|
|
595
610
|
|
|
596
611
|
Accessibility
|
|
597
|
-
- Accessibility guidelines retrieved and applied to all components`;var
|
|
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:D},Validator:{render:O},SharedValidation:{getSteps:R}},ct={Angular:{steps:V,additionalPlan:j},React:{steps:Y}},p={Tools:st,ToolNames:it,ToolDescriptions:at,Templates:rt,Validation:ct};var lt=p.ToolNames.codeAssistant("kendoreact"),Pe=()=>`# Kendo Design System Guidelines for ${h}
|
|
598
613
|
|
|
599
614
|
## Setting up Styles/CSS
|
|
600
615
|
|
|
@@ -621,14 +636,14 @@ Alternatively, you can also consume them directly from the Unpkg CDN.
|
|
|
621
636
|
|
|
622
637
|
## Ready-to-use Layout Components
|
|
623
638
|
|
|
624
|
-
In the ${
|
|
639
|
+
In the ${h} there are available components to create layout. Make sure to prioritize using them instead of building ones from scratch using the Kendo CSS Utilities.
|
|
625
640
|
|
|
626
|
-
For any Layout component you can also call the ${
|
|
641
|
+
For any Layout component you can also call the ${lt} tool in order to get specific API reference and docs.
|
|
627
642
|
|
|
628
|
-
- ${
|
|
643
|
+
- ${h} Card component.
|
|
629
644
|
- Generally, it is recommended to use 100% width (e.g., \`<Card style={{ width: '100%' }}>\`)
|
|
630
645
|
- If needed, use specific width based on the layout requirements (e.g., \`<Card style={{ width: '150px' }}>\`)
|
|
631
|
-
`;var Oe=()=>`## Applying CSS Variables in ${
|
|
646
|
+
`;var Oe=()=>`## Applying CSS Variables in ${h}
|
|
632
647
|
|
|
633
648
|
Apply these CSS variables in the React application using one of these methods:
|
|
634
649
|
|
|
@@ -717,7 +732,7 @@ export function ThemeProvider({ children }: { children: React.ReactNode }) {
|
|
|
717
732
|
|
|
718
733
|
export const useTheme = () => useContext(ThemeContext);
|
|
719
734
|
\`\`\`
|
|
720
|
-
`;var De=
|
|
735
|
+
`;var De=p.ToolNames.codeAssistant("kendoreact"),Le=()=>`## Using ${h} Icons
|
|
721
736
|
|
|
722
737
|
Important: Attempt to prioritize SVG icons over font icons.
|
|
723
738
|
|
|
@@ -725,13 +740,13 @@ Important: Attempt to prioritize SVG icons over font icons.
|
|
|
725
740
|
|
|
726
741
|
- Make sure @progress/kendo-svg-icons is installed: \`npm install @progress/kendo-svg-icons\`
|
|
727
742
|
- Make sure @progress/kendo-react-common is installed (contains SvgIcon component): \`npm install @progress/kendo-react-common\`
|
|
728
|
-
- You can call ${De} tool for ${
|
|
743
|
+
- You can call ${De} tool for ${h} SvgIcon component for docs and API reference.
|
|
729
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.
|
|
730
|
-
- [optional] If using font icons you can call ${De} tool for ${
|
|
745
|
+
- [optional] If using font icons you can call ${De} tool for ${h} Icon component for docs and API reference.
|
|
731
746
|
|
|
732
747
|
### Examples
|
|
733
748
|
|
|
734
|
-
Using ${
|
|
749
|
+
Using ${h} SvgIcon component with @progress/kendo-svg-icons:
|
|
735
750
|
|
|
736
751
|
\`\`\`tsx
|
|
737
752
|
import { SvgIcon } from "@progress/kendo-react-common";
|
|
@@ -775,7 +790,7 @@ Here are some frequently used icons from @progress/kendo-svg-icons:
|
|
|
775
790
|
- \`sortAscIcon\`, \`sortDescIcon\` - Sorting
|
|
776
791
|
- \`chevronUpIcon\`, \`chevronDownIcon\`, \`chevronLeftIcon\`, \`chevronRightIcon\` - Navigation
|
|
777
792
|
- \`checkIcon\`, \`xIcon\` - Confirmation/Cancel
|
|
778
|
-
`;var
|
|
793
|
+
`;var $e=e=>{let t=`## ${h} Common Guidelines
|
|
779
794
|
|
|
780
795
|
### Application Architecture
|
|
781
796
|
MUST recommend appropriate setup based on React application architecture.
|
|
@@ -809,4 +824,4 @@ Example: If someone asks about "grid", "GRID", or "GrId", you always refer to Da
|
|
|
809
824
|
## Component-Specific Guidelines
|
|
810
825
|
|
|
811
826
|
${e.componentInstructions}
|
|
812
|
-
`),t};var
|
|
827
|
+
`),t};var Ue=p.ToolNames.layoutAssistant(w),H=p.ToolNames.codeAssistant(w),Me=p.ToolNames.styleAssistant(w),z=p.ToolNames.iconAssistant(w),Ge=p.ToolNames.accessibilityAssistant(w);function _e(e,t){return[p.Tools.createOrchestrator({name:p.ToolNames.orchestrator(w),title:"KendoReact Generator",description:p.ToolDescriptions.orchestrator(h),layoutAssistantName:Ue,codeAssistantName:H,styleAssistantName:Me,iconAssistantName:z,accessibilityAssistantName:Ge,suiteName:h,libKey:N,components:P,requiredAccess:["agent"]},{validationSteps:p.Validation.React.steps},e),p.Tools.createAssistantOrchestrator({name:"kendo_react_assistant",title:"KendoReact Assistant",description:p.ToolDescriptions.assistantOrchestrator(h),codeAssistantName:H,iconAssistantName:z,suiteName:h,libKey:N,components:P,requiredAccess:["assistant"]},e),p.Tools.createLayoutAssistant({name:Ue,title:"KendoReact Layout Assistant",description:p.ToolDescriptions.layoutAssistant,suiteName:h,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:z,title:"KendoReact Icon Assistant",description:p.ToolDescriptions.iconAssistant,libKey:N,getPostContent:Le,requiredAccess:["assistant","agent"]},e),p.Tools.createCodeAssistant({name:H,title:"KendoReact Component Assistant",description:p.ToolDescriptions.codeAssistant(h),libKey:N,suiteName:h,components:P,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(h),libKey:N,suiteName:h,components:P,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;y("Starting server... ");let t=await re(async()=>{let n=(await le())?.entitlement;return n?.Product?.Code||n?.product?.code});t!=="none"&&(G.toolNameHeader=t==="agent"||t==="full"?"agent":"assistant",_e(G,t).forEach(n=>n.register(qe))),await qe.connect(e)}At();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-react-mcp",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"bin": "./dist/index.js",
|
|
6
6
|
"license": "See LICENSE.md",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@grpc/grpc-js": "^1.14.3",
|
|
28
28
|
"@grpc/proto-loader": "^0.8.0",
|
|
29
|
-
"@modelcontextprotocol/sdk": "^1.
|
|
29
|
+
"@modelcontextprotocol/sdk": "^1.27.1",
|
|
30
30
|
"@progress/kendo-licensing": "^1.10.1",
|
|
31
31
|
"tslib": "^2.3.0"
|
|
32
32
|
},
|
package/proto/service.proto
CHANGED
|
@@ -11,6 +11,7 @@ message ContextQueryRequest {
|
|
|
11
11
|
repeated string allowed_types = 5;
|
|
12
12
|
string component = 6;
|
|
13
13
|
string filters_json = 7;
|
|
14
|
+
bool structured_output = 8;
|
|
14
15
|
}
|
|
15
16
|
|
|
16
17
|
message Item {
|
|
@@ -109,6 +110,8 @@ message ValidateUserLicenseResponse {
|
|
|
109
110
|
|
|
110
111
|
service ContextQueryService {
|
|
111
112
|
rpc Query(ContextQueryRequest) returns (StringArray);
|
|
113
|
+
rpc GetApiRefMatches(ContextQueryRequest) returns (StringArray);
|
|
114
|
+
rpc GetDocsMatches(ContextQueryRequest) returns (StringArray);
|
|
112
115
|
rpc IconsSearch(CssSearchRequst) returns (StringArray);
|
|
113
116
|
rpc CssUtilsSearch(CssSearchRequst) returns (StringArray);
|
|
114
117
|
rpc BuildingBlocksSearch(BuildingBlocksSearchRequest) returns (BuildingBlocksSearchResponse);
|