@progress/kendo-angular-mcp 0.1.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/README.md +111 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +19 -0
- package/dist/lib/constants.d.ts +3 -0
- package/dist/lib/grpc-client.d.ts +3 -0
- package/package.json +32 -0
- package/proto/service.proto +30 -0
package/README.md
ADDED
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
# Kendo UI for Angular MCP Server
|
|
2
|
+
|
|
3
|
+
The Kendo UI for Angular [MCP Server](https://modelcontextprotocol.io/introduction) enables you achieve interation with AI and reach new levels of developer productivity. The MCP server provides proprietary context to AI-powered IDEs, apps and tools. You can use the Kendo UI for Angular MCP server to ask about Kendo UI for Angular components, features, or general usage. You can successfully prompt more complex questions and tasks, and generate tailored code that includes Kendo UI for Angular components and API.
|
|
4
|
+
|
|
5
|
+
> **Disclaimer:**
|
|
6
|
+
> This version of the Kendo UI for Angular MCP Server is a **beta release**. Behavior may change before the final release.
|
|
7
|
+
|
|
8
|
+
## Prerequisites
|
|
9
|
+
|
|
10
|
+
To use the Kendo UI for Angular MCP server, you need:
|
|
11
|
+
|
|
12
|
+
* A [compatible MCP client (IDE, code editor or app)](https://modelcontextprotocol.io/clients) that supports *MCP tools*.
|
|
13
|
+
* A [Telerik user account](https://www.telerik.com/account/).
|
|
14
|
+
* An active [DevCraft or Kendo UI for Angular license](https://www.telerik.com/purchase/kendo-ui) or a [Kendo UI for Angular trial](https://www.telerik.com/download).
|
|
15
|
+
|
|
16
|
+
## Installation
|
|
17
|
+
|
|
18
|
+
Use the documentation of your AI-powered MCP client to add the Kendo UI for Angular MCP server to a specific workspace or globally. You can see installation tips and examples for some popular MCP clients below.
|
|
19
|
+
|
|
20
|
+
The generic settings of the Kendo UI for Angular MCP server are:
|
|
21
|
+
|
|
22
|
+
* Server name: `kendo-angular-assistant`
|
|
23
|
+
* Type: `stdio` (standard input/output transport)
|
|
24
|
+
* Command: `npx` (the MCP server works through an npm package)
|
|
25
|
+
* Supported arguments: `-y`
|
|
26
|
+
* npm package name: `@progress/kendo-angular-mcp`
|
|
27
|
+
* You also need to add your [Telerik licence key](https://www.telerik.com/kendo-angular-ui/components/licensing) as an `env` parameter in the `mcp.json` file. There are two options:
|
|
28
|
+
* (recommended) Use a `TELERIK_LICENSE_PATH` argument and point to your Telerik license file location.
|
|
29
|
+
* Use a `TELERIK_LICENSE` argument and paste your Telerik license key. Make sure to [update the license key](https://www.telerik.com/kendo-angular-ui/components/licensing) when necessary.
|
|
30
|
+
|
|
31
|
+
## Authentication
|
|
32
|
+
|
|
33
|
+
The MCP server requires a valid Telerik account with a valid license. In order to get a valid license key check the [Kendo UI for Angular documentation](https://www.telerik.com/kendo-angular-ui/components/licensing).
|
|
34
|
+
|
|
35
|
+
To set up the license key, you need to set it up as an environment variable in the JSON configuration file.
|
|
36
|
+
|
|
37
|
+
## Configuration Examples
|
|
38
|
+
|
|
39
|
+
### VSCode - Copilot
|
|
40
|
+
|
|
41
|
+
Refer to [Use MCP servers in VS Code](https://code.visualstudio.com/docs/copilot/chat/mcp-servers).
|
|
42
|
+
|
|
43
|
+
To enable the Kendo UI for Angular MCP server in a specific workspace or Angular app, add a `.vscode` folder with an `mcp.json` file at the root of the workspace:
|
|
44
|
+
|
|
45
|
+
> .vscode/mcp.json at the workspace root
|
|
46
|
+
|
|
47
|
+
```json
|
|
48
|
+
{
|
|
49
|
+
"servers": {
|
|
50
|
+
"kendo-angular-assistant": {
|
|
51
|
+
"type": "stdio",
|
|
52
|
+
"command": "npx",
|
|
53
|
+
"args": ["-y", "@progress/kendo-angular-mcp@latest"],
|
|
54
|
+
"env": {
|
|
55
|
+
"TELERIK_LICENSE_PATH": "THE_PATH_TO_YOUR_LICENSE_FILE",
|
|
56
|
+
// or
|
|
57
|
+
"TELERIK_LICENSE": "YOUR_LICENSE_KEY"
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
### Cursor
|
|
65
|
+
|
|
66
|
+
Refer to [Model Context Protocol](https://docs.cursor.com/context/model-context-protocol).
|
|
67
|
+
|
|
68
|
+
To [enable the Kendo UI for Angular MCP server in a specific workspace](https://code.visualstudio.com/docs/copilot/chat/mcp-servers#_add-an-mcp-server-to-your-workspace) or Angular app, add a `.cursor` folder with an `mcp.json` file at the root of the workspace.
|
|
69
|
+
|
|
70
|
+
> .cursor/mcp.json at the workspace root
|
|
71
|
+
|
|
72
|
+
```json
|
|
73
|
+
{
|
|
74
|
+
"mcpServers": {
|
|
75
|
+
"kendo-angular-assistant": {
|
|
76
|
+
"type": "stdio",
|
|
77
|
+
"command": "npx",
|
|
78
|
+
"args": ["-y", "@progress/kendo-angular-mcp@latest"],
|
|
79
|
+
"env": {
|
|
80
|
+
"TELERIK_LICENSE_PATH": "THE_PATH_TO_YOUR_LICENSE_FILE",
|
|
81
|
+
// or
|
|
82
|
+
"TELERIK_LICENSE": "YOUR_LICENSE_KEY"
|
|
83
|
+
},
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
## Usage
|
|
90
|
+
|
|
91
|
+
To use the Kendo UI for Angular MCP server:
|
|
92
|
+
|
|
93
|
+
1. Start your prompt with one of the following:
|
|
94
|
+
* `kendo`
|
|
95
|
+
* `/kendo`
|
|
96
|
+
* `@kendo`
|
|
97
|
+
* `kendoangular`
|
|
98
|
+
* `/kendoangular`
|
|
99
|
+
* `@kendoangular`
|
|
100
|
+
|
|
101
|
+
Or if you are using VSCode you can type `#kendo_angular_assistant` to make sure the Copilot chat will call the Kendo UI for Angular MCP server.
|
|
102
|
+
|
|
103
|
+
1. Confirm that the Kendo UI for Angular MCP server is used, because this doesn't happen deterministically. Look for a statement in the output, which is similar to:
|
|
104
|
+
* `Running kendo-angular-assistant` (in VS Code)
|
|
105
|
+
* `Calling MCP tool kendo-angular-assistant` (in Cursor)
|
|
106
|
+
|
|
107
|
+
If the Kendo UI for Angular MCP server is not used even though it's installed and enabled, then try rephrasing your prompt and use another trigger syntax from the list in step 1.
|
|
108
|
+
1. Grant the Kendo UI for Angular MCP server a permission to run for this session, workspace, or always.
|
|
109
|
+
1. If you want to prompt for information or code that are not related to your previous prompts, it is a good practice to start a new session in a new chat window, so that the context is not polluted by irrelevant old information.
|
|
110
|
+
|
|
111
|
+
To increase the probability of the Kendo UI for Angular MCP Server being used, or to call it without the need to mention "kendo" explicitly, add custom idea instructions to your AI-powered tool. Here are examples for [GitHub Copilot](https://docs.github.com/en/copilot/customizing-copilot/adding-repository-custom-instructions-for-github-copilot#about-repository-custom-instructions-for-github-copilot-chat) and [Cursor](https://docs.cursor.com/context/rules).
|
package/dist/index.d.ts
ADDED
package/dist/index.js
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
var _=Object.defineProperty;var D=(e,r,o)=>r in e?_(e,r,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[r]=o;var d=(e,r,o)=>D(e,typeof r!="symbol"?r+"":r,o);import{McpServer as M}from"@modelcontextprotocol/sdk/server/mcp.js";import{StdioServerTransport as O}from"@modelcontextprotocol/sdk/server/stdio.js";import{z as C}from"zod";var h="Kendo UI for Angular",g="angular",S=["AIPrompt","ActionSheet","AppBar","ArcGauge","AutoComplete","Avatar","Badge","Barcode","BottomNavigation","BreadCrumb","Button","ButtonGroup","Calendar","Card","ChartWizard","Charts","CheckBox","Chip","ChipList","ChunkProgressBar","CircularGauge","CircularProgressBar","ColorGradient","ColorPalette","ColorPicker","ComboBox","ContextMenu","ConversationalUI","DataQuery","DateInput","DateMath","DatePicker","DateRange","DateTimePicker","Dialog","DragandDrop","Drawer","Drawing","DropDownButton","DropDownList","DropDownTree","Editor","ExcelExport","ExpansionPanel","FileSaver","FileSelect","Filter","FlatColorPicker","FloatingActionButton","FloatingLabel","Forms","FormField","Gantt","Gauges","General","Grid","GridLayout","Icon","Label","LinearGauge","ListBox","ListView","Loader","Map","MaskedTextBox","Menu","MultiColumnComboBox","MultiSelect","MultiSelectTree","MultiViewCalendar","Notification","NumericTextBox","OTPInput","Pager","PanelBar","PDFExport","PDFViewer","PivotGrid","Popover","Popup","ProgressBar","QRCode","RadialGauge","RadioButton","RangeSlider","Rating","Ripple","Sankey","Scheduler","ScrollView","Signature","Skeleton","Slider","Sortable","StockChart","Sparkline","SplitButton","Splitter","Spreadsheet","StackLayout","Stepper","SVGIcon","Switch","TabStrip","TextArea","TextBox","TileLayout","Timeline","TimePicker","ToolBar","Tooltip","TreeList","TreeView","Typography","Upload","Window"];import{dirname as R,join as B}from"path";import{fileURLToPath as G}from"url";import{readFileSync as L}from"node:fs";import a from"node:fs";import p from"node:path";import N from"@grpc/proto-loader";import l from"@grpc/grpc-js";var E=["TELERIK_LICENSE","KENDO_UI_LICENSE"],y="TELERIK_LICENSE_PATH",c=(e=>(e[e.UNAUTHENTICATED=16]="UNAUTHENTICATED",e[e.RESOURCE_EXHAUSTED=8]="RESOURCE_EXHAUSTED",e[e.PERMISSION_DENIED=7]="PERMISSION_DENIED",e))(c||{}),v=!1,i=process.env.DEBUG_LOG_FILE,x=!!(i&&typeof i=="string");if(x){let e=p.resolve(i),r=p.dirname(e);if(r!=="."&&r!==process.cwd()&&!a.existsSync(r))try{a.mkdirSync(r,{recursive:!0})}catch(o){console.error("Error creating log directory:",o)}if(!a.existsSync(e))try{a.writeFileSync(e,"")}catch(o){console.error("Error creating log file:",o)}}v=x&&!!i&&a.existsSync(p.resolve(i));function n(...e){if(v&&i){let r=`${new Date().toISOString()}: ${e.join(" ")}
|
|
3
|
+
`,o=p.resolve(i);a.appendFile(o,r,t=>{t&&console.error("Error writing to log file:",t)})}}var s=process.env[y],m=process.env[E[0]]||process.env[E[1]],u=class extends Error{constructor(e){super(e),this.name="LicenseError"}};function U(){if(!s&&!m)throw new u(`No license found. Please set one of the following environment variables: ${E.join(", ")} or ${y}`);let e;if(s)try{e=L(s,"utf8"),n("License key read from file: ",s)}catch{throw new u(`Error reading license file: ${s}. Please verify the file exists and is readable.`)}return m&&(e=m,n("License key read from environment variable.")),e}var A=class{constructor(e,r){d(this,"client");d(this,"isDev");this.contextApiUrl=e,this.protoPath=r;let o=N.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"),n("Using ContextApi URl:",this.contextApiUrl);let t=l.loadPackageDefinition(o);this.client=new t.ContextQueryService(this.contextApiUrl||"contextapi.telerik.com:443",this.isDev?l.credentials.createInsecure():l.credentials.createSsl())}async query(e){let r=this.isDev?"fake_license":U(),o=new l.Metadata;if(r&&typeof r=="string"){r=r.replace(/^\uFEFF/,"");try{o.add("x-license-key",r)}catch(t){return n("Error adding license key to metadata:",t),Promise.reject(new Error(`Failed to use license key: ${t.message}`))}}return r&&typeof r=="string"&&o.add("x-license-key",r),new Promise((t,P)=>{this.client.query(e,o,(f,I)=>{f?P(f):t(I)})})}};var F=B(R(G(import.meta.url)),"../proto/service.proto"),b=new A("staging.contextapi.telerik.com:443",F);async function w(e){return b.query(e)}import q from"fs";import k from"path";import{fileURLToPath as V}from"url";var $=V(import.meta.url),H=k.dirname($),K=k.resolve(H,"../package.json"),j=JSON.parse(q.readFileSync(K,"utf-8")),T=new M({name:"kendo-and-kendo-resources",version:j.version});T.tool("kendo_angular_assistant",`Answers questions and retrieves documentation about Kendo UI for Angular.
|
|
4
|
+
Use this tool when the user asks about Kendo UI for Angular features, specific components (e.g., Grid, Charts, Editor), implementation details, or general usage.
|
|
5
|
+
Provide the user's detailed question as the 'query'. If the question pertains to a specific Kendo UI for Angular component,
|
|
6
|
+
specify its name in the 'component' parameter. This tool can be automatically triggered when the following phrases are detected in the user's input/prompt:
|
|
7
|
+
- 'kendo';
|
|
8
|
+
- '/kendo';
|
|
9
|
+
- '/kendoangular'
|
|
10
|
+
- '/ask_kendo';
|
|
11
|
+
- '/help_kendo';
|
|
12
|
+
- '@kendo';
|
|
13
|
+
- '@kendoangular';
|
|
14
|
+
- '@ask_kendo';
|
|
15
|
+
- '@help_kendo'.`,{query:C.string().describe("The query to search for."),component:C.enum(S).describe("The component to search for. If not specified, you can use General.")},async({query:e,component:r})=>{n("Calling tool: ",JSON.stringify({query:e,component:r}));try{let t=[{type:"text",text:(await w({query:e,component:r.toLocaleLowerCase(),lib_name:g,text_matches_count:3,code_matches_count:0,allowed_types:["documentation"]})).values.join(`
|
|
16
|
+
|
|
17
|
+
`)}];return n("Response from tool: ",JSON.stringify(t)),{content:t}}catch(o){throw n("Error calling context API: ",JSON.stringify(o)),o?.code===c.UNAUTHENTICATED?new Error("Error: You are not authenticated. Please verify the Telerik License Key provided is valid."):o?.code===c.RESOURCE_EXHAUSTED?new Error(`Error: You have exceeded the extension quota. Upgrade to subscription licensing in order to unlock full access. Message: ${o.message}.`):o?.code===c.PERMISSION_DENIED?new Error(`Error: You do not have permission to access this resource. Please verify that you have a valid ${h} license key.`):o instanceof u?(n("License error: ",o.message),o):new Error(`Error: An error occurred while calling the service. Please try again later.
|
|
18
|
+
|
|
19
|
+
Error Message: ${o.message}`)}});async function J(){let e=new O;n("Starting server..."),await T.connect(e)}J();
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export declare const ANGULAR_SUITE_NAME = "Kendo UI for Angular";
|
|
2
|
+
export declare const Suite = "angular";
|
|
3
|
+
export declare const AngularComponents: readonly ["AIPrompt", "ActionSheet", "AppBar", "ArcGauge", "AutoComplete", "Avatar", "Badge", "Barcode", "BottomNavigation", "BreadCrumb", "Button", "ButtonGroup", "Calendar", "Card", "ChartWizard", "Charts", "CheckBox", "Chip", "ChipList", "ChunkProgressBar", "CircularGauge", "CircularProgressBar", "ColorGradient", "ColorPalette", "ColorPicker", "ComboBox", "ContextMenu", "ConversationalUI", "DataQuery", "DateInput", "DateMath", "DatePicker", "DateRange", "DateTimePicker", "Dialog", "DragandDrop", "Drawer", "Drawing", "DropDownButton", "DropDownList", "DropDownTree", "Editor", "ExcelExport", "ExpansionPanel", "FileSaver", "FileSelect", "Filter", "FlatColorPicker", "FloatingActionButton", "FloatingLabel", "Forms", "FormField", "Gantt", "Gauges", "General", "Grid", "GridLayout", "Icon", "Label", "LinearGauge", "ListBox", "ListView", "Loader", "Map", "MaskedTextBox", "Menu", "MultiColumnComboBox", "MultiSelect", "MultiSelectTree", "MultiViewCalendar", "Notification", "NumericTextBox", "OTPInput", "Pager", "PanelBar", "PDFExport", "PDFViewer", "PivotGrid", "Popover", "Popup", "ProgressBar", "QRCode", "RadialGauge", "RadioButton", "RangeSlider", "Rating", "Ripple", "Sankey", "Scheduler", "ScrollView", "Signature", "Skeleton", "Slider", "Sortable", "StockChart", "Sparkline", "SplitButton", "Splitter", "Spreadsheet", "StackLayout", "Stepper", "SVGIcon", "Switch", "TabStrip", "TextArea", "TextBox", "TileLayout", "Timeline", "TimePicker", "ToolBar", "Tooltip", "TreeList", "TreeView", "Typography", "Upload", "Window"];
|
package/package.json
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@progress/kendo-angular-mcp",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"bin": "./dist/index.js",
|
|
6
|
+
"license": "See LICENSE.md",
|
|
7
|
+
"description": "Model Context Protocol for Kendo UI for Angular",
|
|
8
|
+
"keywords": [
|
|
9
|
+
"MCP Server",
|
|
10
|
+
"Model Context Protocol",
|
|
11
|
+
"Angular",
|
|
12
|
+
"Kendo",
|
|
13
|
+
"Progress",
|
|
14
|
+
"AI",
|
|
15
|
+
"Copilot",
|
|
16
|
+
"Kendo UI for Angular"
|
|
17
|
+
],
|
|
18
|
+
"files": [
|
|
19
|
+
"dist",
|
|
20
|
+
"proto",
|
|
21
|
+
"README.md",
|
|
22
|
+
"LICENSE.md",
|
|
23
|
+
"!**/*.tsbuildinfo"
|
|
24
|
+
],
|
|
25
|
+
"dependencies": {
|
|
26
|
+
"@grpc/grpc-js": "^1.13.3",
|
|
27
|
+
"@grpc/proto-loader": "^0.7.15",
|
|
28
|
+
"@modelcontextprotocol/sdk": "^1.8.0",
|
|
29
|
+
"tslib": "^2.3.0",
|
|
30
|
+
"@local/mcp-common": "*"
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
option go_package = "github.com/telerik/ai-builder/contextapi/pkg/api/pb";
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
message ContextQueryRequest {
|
|
6
|
+
string lib_name = 1;
|
|
7
|
+
string query = 2;
|
|
8
|
+
int32 text_matches_count = 3;
|
|
9
|
+
int32 code_matches_count = 4;
|
|
10
|
+
repeated string allowed_types = 5;
|
|
11
|
+
string component = 6;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
message Item {
|
|
15
|
+
map<string, string> metadata = 1;
|
|
16
|
+
string content = 2;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
message ContextQueryResponse {
|
|
20
|
+
repeated Item text = 1;
|
|
21
|
+
repeated Item code = 2;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
message StringArray {
|
|
25
|
+
repeated string values = 1;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
service ContextQueryService {
|
|
29
|
+
rpc Query(ContextQueryRequest) returns (StringArray);
|
|
30
|
+
}
|