@idealyst/mcp-server 1.2.26 → 1.2.28
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/chunk-QMHFAEAR.js +17859 -0
- package/dist/chunk-QMHFAEAR.js.map +1 -0
- package/dist/index.cjs +12525 -12645
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3249 -21160
- package/dist/index.js.map +1 -1
- package/dist/tools/index.cjs +17923 -0
- package/dist/tools/index.cjs.map +1 -0
- package/dist/tools/index.d.cts +249 -0
- package/dist/tools/index.d.ts +249 -0
- package/dist/tools/index.js +91 -0
- package/dist/tools/index.js.map +1 -0
- package/package.json +9 -4
|
@@ -0,0 +1,249 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tool Types
|
|
3
|
+
*
|
|
4
|
+
* TypeScript types for MCP tools provided by @idealyst/mcp-server.
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* JSON Schema input definition for a tool
|
|
8
|
+
*/
|
|
9
|
+
interface ToolInputSchema {
|
|
10
|
+
type: "object";
|
|
11
|
+
properties: Record<string, PropertySchema>;
|
|
12
|
+
required?: string[];
|
|
13
|
+
}
|
|
14
|
+
interface PropertySchema {
|
|
15
|
+
type: string;
|
|
16
|
+
description?: string;
|
|
17
|
+
enum?: string[];
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* MCP Tool definition structure
|
|
21
|
+
*/
|
|
22
|
+
interface ToolDefinition {
|
|
23
|
+
name: string;
|
|
24
|
+
description: string;
|
|
25
|
+
inputSchema: ToolInputSchema;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* MCP Tool response content
|
|
29
|
+
*/
|
|
30
|
+
interface ToolContent {
|
|
31
|
+
type: "text";
|
|
32
|
+
text: string;
|
|
33
|
+
[key: string]: unknown;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* MCP Tool response
|
|
37
|
+
*/
|
|
38
|
+
interface ToolResponse {
|
|
39
|
+
content: ToolContent[];
|
|
40
|
+
[key: string]: unknown;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Tool handler function signature
|
|
44
|
+
*/
|
|
45
|
+
type ToolHandler<TArgs = Record<string, unknown>> = (args: TArgs) => ToolResponse | Promise<ToolResponse>;
|
|
46
|
+
interface ListComponentsArgs {
|
|
47
|
+
}
|
|
48
|
+
interface GetComponentDocsArgs {
|
|
49
|
+
component: string;
|
|
50
|
+
}
|
|
51
|
+
interface GetComponentExampleArgs {
|
|
52
|
+
component: string;
|
|
53
|
+
example_type?: "basic" | "variants" | "with-icons" | "interactive";
|
|
54
|
+
}
|
|
55
|
+
interface SearchComponentsArgs {
|
|
56
|
+
query?: string;
|
|
57
|
+
category?: "layout" | "form" | "display" | "navigation" | "overlay" | "data";
|
|
58
|
+
}
|
|
59
|
+
interface GetComponentTypesArgs {
|
|
60
|
+
component: string;
|
|
61
|
+
format?: "typescript" | "json" | "both";
|
|
62
|
+
}
|
|
63
|
+
interface GetComponentExamplesTsArgs {
|
|
64
|
+
component: string;
|
|
65
|
+
}
|
|
66
|
+
interface GetCliUsageArgs {
|
|
67
|
+
command?: string;
|
|
68
|
+
}
|
|
69
|
+
interface SearchIconsArgs {
|
|
70
|
+
query: string;
|
|
71
|
+
limit?: number;
|
|
72
|
+
}
|
|
73
|
+
interface GetThemeTypesArgs {
|
|
74
|
+
format?: "typescript" | "json" | "both";
|
|
75
|
+
}
|
|
76
|
+
interface GetNavigationTypesArgs {
|
|
77
|
+
format?: "typescript" | "json" | "both";
|
|
78
|
+
}
|
|
79
|
+
interface GetTranslateGuideArgs {
|
|
80
|
+
topic: "overview" | "runtime-api" | "babel-plugin" | "translation-files" | "examples";
|
|
81
|
+
}
|
|
82
|
+
interface GetStorageGuideArgs {
|
|
83
|
+
topic: "overview" | "api" | "examples";
|
|
84
|
+
}
|
|
85
|
+
interface ListPackagesArgs {
|
|
86
|
+
category?: "core" | "ui" | "media" | "data" | "auth" | "utility" | "tooling";
|
|
87
|
+
}
|
|
88
|
+
interface GetPackageDocsArgs {
|
|
89
|
+
package: string;
|
|
90
|
+
section?: "overview" | "installation" | "features" | "quickstart" | "api";
|
|
91
|
+
}
|
|
92
|
+
interface SearchPackagesArgs {
|
|
93
|
+
query: string;
|
|
94
|
+
}
|
|
95
|
+
interface ListRecipesArgs {
|
|
96
|
+
category?: "forms" | "navigation" | "data" | "layout" | "auth" | "settings" | "media";
|
|
97
|
+
difficulty?: "beginner" | "intermediate" | "advanced";
|
|
98
|
+
}
|
|
99
|
+
interface GetRecipeArgs {
|
|
100
|
+
recipe: string;
|
|
101
|
+
}
|
|
102
|
+
interface SearchRecipesArgs {
|
|
103
|
+
query: string;
|
|
104
|
+
}
|
|
105
|
+
type ToolName = "list_components" | "get_component_docs" | "get_component_example" | "search_components" | "get_component_types" | "get_component_examples_ts" | "get_cli_usage" | "search_icons" | "get_theme_types" | "get_navigation_types" | "get_translate_guide" | "get_storage_guide" | "list_packages" | "get_package_docs" | "search_packages" | "list_recipes" | "get_recipe" | "search_recipes";
|
|
106
|
+
type ToolArgs = ListComponentsArgs | GetComponentDocsArgs | GetComponentExampleArgs | SearchComponentsArgs | GetComponentTypesArgs | GetComponentExamplesTsArgs | GetCliUsageArgs | SearchIconsArgs | GetThemeTypesArgs | GetNavigationTypesArgs | GetTranslateGuideArgs | GetStorageGuideArgs | ListPackagesArgs | GetPackageDocsArgs | SearchPackagesArgs | ListRecipesArgs | GetRecipeArgs | SearchRecipesArgs;
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* Tool Definitions
|
|
110
|
+
*
|
|
111
|
+
* MCP tool schema definitions for all Idealyst tools.
|
|
112
|
+
* These can be used to register tools with an MCP server or other systems.
|
|
113
|
+
*/
|
|
114
|
+
|
|
115
|
+
declare const listComponentsDefinition: ToolDefinition;
|
|
116
|
+
declare const getComponentDocsDefinition: ToolDefinition;
|
|
117
|
+
declare const getComponentExampleDefinition: ToolDefinition;
|
|
118
|
+
declare const searchComponentsDefinition: ToolDefinition;
|
|
119
|
+
declare const getComponentTypesDefinition: ToolDefinition;
|
|
120
|
+
declare const getComponentExamplesTsDefinition: ToolDefinition;
|
|
121
|
+
declare const getCliUsageDefinition: ToolDefinition;
|
|
122
|
+
declare const searchIconsDefinition: ToolDefinition;
|
|
123
|
+
declare const getThemeTypesDefinition: ToolDefinition;
|
|
124
|
+
declare const getNavigationTypesDefinition: ToolDefinition;
|
|
125
|
+
declare const getTranslateGuideDefinition: ToolDefinition;
|
|
126
|
+
declare const getStorageGuideDefinition: ToolDefinition;
|
|
127
|
+
declare const listPackagesDefinition: ToolDefinition;
|
|
128
|
+
declare const getPackageDocsDefinition: ToolDefinition;
|
|
129
|
+
declare const searchPackagesDefinition: ToolDefinition;
|
|
130
|
+
declare const listRecipesDefinition: ToolDefinition;
|
|
131
|
+
declare const getRecipeDefinition: ToolDefinition;
|
|
132
|
+
declare const searchRecipesDefinition: ToolDefinition;
|
|
133
|
+
/**
|
|
134
|
+
* Array of all tool definitions.
|
|
135
|
+
* Use this to register all tools with an MCP server.
|
|
136
|
+
*/
|
|
137
|
+
declare const toolDefinitions: ToolDefinition[];
|
|
138
|
+
/**
|
|
139
|
+
* Map of tool definitions by name.
|
|
140
|
+
* Use this for quick lookup of a specific tool definition.
|
|
141
|
+
*/
|
|
142
|
+
declare const toolDefinitionMap: Record<string, ToolDefinition>;
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* Tool Handlers
|
|
146
|
+
*
|
|
147
|
+
* Implementation functions for all MCP tools.
|
|
148
|
+
* These handlers can be used directly or through an MCP server.
|
|
149
|
+
*/
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
* List all available Idealyst components with brief descriptions
|
|
153
|
+
*/
|
|
154
|
+
declare function listComponents(_args?: ListComponentsArgs): ToolResponse;
|
|
155
|
+
/**
|
|
156
|
+
* Get detailed documentation for a specific component
|
|
157
|
+
*/
|
|
158
|
+
declare function getComponentDocs(args: GetComponentDocsArgs): ToolResponse;
|
|
159
|
+
/**
|
|
160
|
+
* Get a code example for a specific component
|
|
161
|
+
*/
|
|
162
|
+
declare function getComponentExample(args: GetComponentExampleArgs): ToolResponse;
|
|
163
|
+
/**
|
|
164
|
+
* Search for components by name, category, or feature
|
|
165
|
+
*/
|
|
166
|
+
declare function searchComponents(args?: SearchComponentsArgs): ToolResponse;
|
|
167
|
+
/**
|
|
168
|
+
* Get TypeScript type definitions for a component
|
|
169
|
+
*/
|
|
170
|
+
declare function getComponentTypes(args: GetComponentTypesArgs): ToolResponse;
|
|
171
|
+
/**
|
|
172
|
+
* Get validated TypeScript examples for a component
|
|
173
|
+
*/
|
|
174
|
+
declare function getComponentExamplesTs(args: GetComponentExamplesTsArgs): ToolResponse;
|
|
175
|
+
/**
|
|
176
|
+
* Get information about CLI commands and usage
|
|
177
|
+
*/
|
|
178
|
+
declare function getCliUsage(args?: GetCliUsageArgs): ToolResponse;
|
|
179
|
+
/**
|
|
180
|
+
* Search for Material Design Icons
|
|
181
|
+
*/
|
|
182
|
+
declare function searchIcons(args: SearchIconsArgs): ToolResponse;
|
|
183
|
+
/**
|
|
184
|
+
* Get TypeScript type definitions for theme types
|
|
185
|
+
*/
|
|
186
|
+
declare function getThemeTypes(args?: GetThemeTypesArgs): ToolResponse;
|
|
187
|
+
/**
|
|
188
|
+
* Get TypeScript type definitions for navigation types
|
|
189
|
+
*/
|
|
190
|
+
declare function getNavigationTypes(args?: GetNavigationTypesArgs): ToolResponse;
|
|
191
|
+
/**
|
|
192
|
+
* Get documentation for the translate package
|
|
193
|
+
*/
|
|
194
|
+
declare function getTranslateGuide(args: GetTranslateGuideArgs): ToolResponse;
|
|
195
|
+
/**
|
|
196
|
+
* Get documentation for the storage package
|
|
197
|
+
*/
|
|
198
|
+
declare function getStorageGuide(args: GetStorageGuideArgs): ToolResponse;
|
|
199
|
+
/**
|
|
200
|
+
* List all available packages
|
|
201
|
+
*/
|
|
202
|
+
declare function listPackages(args?: ListPackagesArgs): ToolResponse;
|
|
203
|
+
/**
|
|
204
|
+
* Get detailed documentation for a package
|
|
205
|
+
*/
|
|
206
|
+
declare function getPackageDocs(args: GetPackageDocsArgs): ToolResponse;
|
|
207
|
+
/**
|
|
208
|
+
* Search across all packages
|
|
209
|
+
*/
|
|
210
|
+
declare function searchPackages(args: SearchPackagesArgs): ToolResponse;
|
|
211
|
+
/**
|
|
212
|
+
* List all available recipes
|
|
213
|
+
*/
|
|
214
|
+
declare function listRecipes(args?: ListRecipesArgs): ToolResponse;
|
|
215
|
+
/**
|
|
216
|
+
* Get a complete code recipe
|
|
217
|
+
*/
|
|
218
|
+
declare function getRecipe(args: GetRecipeArgs): ToolResponse;
|
|
219
|
+
/**
|
|
220
|
+
* Search for recipes
|
|
221
|
+
*/
|
|
222
|
+
declare function searchRecipes(args: SearchRecipesArgs): ToolResponse;
|
|
223
|
+
/**
|
|
224
|
+
* Map of all tool handlers by name.
|
|
225
|
+
* Use this for dynamic tool dispatch.
|
|
226
|
+
*/
|
|
227
|
+
declare const toolHandlers: Record<string, (args: any) => ToolResponse>;
|
|
228
|
+
/**
|
|
229
|
+
* Call a tool by name with arguments.
|
|
230
|
+
* Returns a tool response or throws if the tool is not found.
|
|
231
|
+
*/
|
|
232
|
+
declare function callTool(name: string, args?: Record<string, unknown>): ToolResponse;
|
|
233
|
+
|
|
234
|
+
/**
|
|
235
|
+
* Get list of all available components
|
|
236
|
+
*/
|
|
237
|
+
declare function getAvailableComponents(): string[];
|
|
238
|
+
/**
|
|
239
|
+
* Get the full component registry from @idealyst/tooling
|
|
240
|
+
* This is the single source of truth for component props and values
|
|
241
|
+
*/
|
|
242
|
+
declare function getComponentRegistry(): Record<string, any>;
|
|
243
|
+
/**
|
|
244
|
+
* Get theme values from the registry
|
|
245
|
+
* This is the single source of truth for available intents, sizes, etc.
|
|
246
|
+
*/
|
|
247
|
+
declare function getRegistryThemeValues(): any;
|
|
248
|
+
|
|
249
|
+
export { type GetCliUsageArgs, type GetComponentDocsArgs, type GetComponentExampleArgs, type GetComponentExamplesTsArgs, type GetComponentTypesArgs, type GetNavigationTypesArgs, type GetPackageDocsArgs, type GetRecipeArgs, type GetStorageGuideArgs, type GetThemeTypesArgs, type GetTranslateGuideArgs, type ListComponentsArgs, type ListPackagesArgs, type ListRecipesArgs, type PropertySchema, type SearchComponentsArgs, type SearchIconsArgs, type SearchPackagesArgs, type SearchRecipesArgs, type ToolArgs, type ToolContent, type ToolDefinition, type ToolHandler, type ToolInputSchema, type ToolName, type ToolResponse, callTool, getAvailableComponents, getCliUsage, getCliUsageDefinition, getComponentDocs, getComponentDocsDefinition, getComponentExample, getComponentExampleDefinition, getComponentExamplesTs, getComponentExamplesTsDefinition, getComponentRegistry, getComponentTypes, getComponentTypesDefinition, getNavigationTypes, getNavigationTypesDefinition, getPackageDocs, getPackageDocsDefinition, getRecipe, getRecipeDefinition, getRegistryThemeValues, getStorageGuide, getStorageGuideDefinition, getThemeTypes, getThemeTypesDefinition, getTranslateGuide, getTranslateGuideDefinition, listComponents, listComponentsDefinition, listPackages, listPackagesDefinition, listRecipes, listRecipesDefinition, searchComponents, searchComponentsDefinition, searchIcons, searchIconsDefinition, searchPackages, searchPackagesDefinition, searchRecipes, searchRecipesDefinition, toolDefinitionMap, toolDefinitions, toolHandlers };
|
|
@@ -0,0 +1,249 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tool Types
|
|
3
|
+
*
|
|
4
|
+
* TypeScript types for MCP tools provided by @idealyst/mcp-server.
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* JSON Schema input definition for a tool
|
|
8
|
+
*/
|
|
9
|
+
interface ToolInputSchema {
|
|
10
|
+
type: "object";
|
|
11
|
+
properties: Record<string, PropertySchema>;
|
|
12
|
+
required?: string[];
|
|
13
|
+
}
|
|
14
|
+
interface PropertySchema {
|
|
15
|
+
type: string;
|
|
16
|
+
description?: string;
|
|
17
|
+
enum?: string[];
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* MCP Tool definition structure
|
|
21
|
+
*/
|
|
22
|
+
interface ToolDefinition {
|
|
23
|
+
name: string;
|
|
24
|
+
description: string;
|
|
25
|
+
inputSchema: ToolInputSchema;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* MCP Tool response content
|
|
29
|
+
*/
|
|
30
|
+
interface ToolContent {
|
|
31
|
+
type: "text";
|
|
32
|
+
text: string;
|
|
33
|
+
[key: string]: unknown;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* MCP Tool response
|
|
37
|
+
*/
|
|
38
|
+
interface ToolResponse {
|
|
39
|
+
content: ToolContent[];
|
|
40
|
+
[key: string]: unknown;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Tool handler function signature
|
|
44
|
+
*/
|
|
45
|
+
type ToolHandler<TArgs = Record<string, unknown>> = (args: TArgs) => ToolResponse | Promise<ToolResponse>;
|
|
46
|
+
interface ListComponentsArgs {
|
|
47
|
+
}
|
|
48
|
+
interface GetComponentDocsArgs {
|
|
49
|
+
component: string;
|
|
50
|
+
}
|
|
51
|
+
interface GetComponentExampleArgs {
|
|
52
|
+
component: string;
|
|
53
|
+
example_type?: "basic" | "variants" | "with-icons" | "interactive";
|
|
54
|
+
}
|
|
55
|
+
interface SearchComponentsArgs {
|
|
56
|
+
query?: string;
|
|
57
|
+
category?: "layout" | "form" | "display" | "navigation" | "overlay" | "data";
|
|
58
|
+
}
|
|
59
|
+
interface GetComponentTypesArgs {
|
|
60
|
+
component: string;
|
|
61
|
+
format?: "typescript" | "json" | "both";
|
|
62
|
+
}
|
|
63
|
+
interface GetComponentExamplesTsArgs {
|
|
64
|
+
component: string;
|
|
65
|
+
}
|
|
66
|
+
interface GetCliUsageArgs {
|
|
67
|
+
command?: string;
|
|
68
|
+
}
|
|
69
|
+
interface SearchIconsArgs {
|
|
70
|
+
query: string;
|
|
71
|
+
limit?: number;
|
|
72
|
+
}
|
|
73
|
+
interface GetThemeTypesArgs {
|
|
74
|
+
format?: "typescript" | "json" | "both";
|
|
75
|
+
}
|
|
76
|
+
interface GetNavigationTypesArgs {
|
|
77
|
+
format?: "typescript" | "json" | "both";
|
|
78
|
+
}
|
|
79
|
+
interface GetTranslateGuideArgs {
|
|
80
|
+
topic: "overview" | "runtime-api" | "babel-plugin" | "translation-files" | "examples";
|
|
81
|
+
}
|
|
82
|
+
interface GetStorageGuideArgs {
|
|
83
|
+
topic: "overview" | "api" | "examples";
|
|
84
|
+
}
|
|
85
|
+
interface ListPackagesArgs {
|
|
86
|
+
category?: "core" | "ui" | "media" | "data" | "auth" | "utility" | "tooling";
|
|
87
|
+
}
|
|
88
|
+
interface GetPackageDocsArgs {
|
|
89
|
+
package: string;
|
|
90
|
+
section?: "overview" | "installation" | "features" | "quickstart" | "api";
|
|
91
|
+
}
|
|
92
|
+
interface SearchPackagesArgs {
|
|
93
|
+
query: string;
|
|
94
|
+
}
|
|
95
|
+
interface ListRecipesArgs {
|
|
96
|
+
category?: "forms" | "navigation" | "data" | "layout" | "auth" | "settings" | "media";
|
|
97
|
+
difficulty?: "beginner" | "intermediate" | "advanced";
|
|
98
|
+
}
|
|
99
|
+
interface GetRecipeArgs {
|
|
100
|
+
recipe: string;
|
|
101
|
+
}
|
|
102
|
+
interface SearchRecipesArgs {
|
|
103
|
+
query: string;
|
|
104
|
+
}
|
|
105
|
+
type ToolName = "list_components" | "get_component_docs" | "get_component_example" | "search_components" | "get_component_types" | "get_component_examples_ts" | "get_cli_usage" | "search_icons" | "get_theme_types" | "get_navigation_types" | "get_translate_guide" | "get_storage_guide" | "list_packages" | "get_package_docs" | "search_packages" | "list_recipes" | "get_recipe" | "search_recipes";
|
|
106
|
+
type ToolArgs = ListComponentsArgs | GetComponentDocsArgs | GetComponentExampleArgs | SearchComponentsArgs | GetComponentTypesArgs | GetComponentExamplesTsArgs | GetCliUsageArgs | SearchIconsArgs | GetThemeTypesArgs | GetNavigationTypesArgs | GetTranslateGuideArgs | GetStorageGuideArgs | ListPackagesArgs | GetPackageDocsArgs | SearchPackagesArgs | ListRecipesArgs | GetRecipeArgs | SearchRecipesArgs;
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* Tool Definitions
|
|
110
|
+
*
|
|
111
|
+
* MCP tool schema definitions for all Idealyst tools.
|
|
112
|
+
* These can be used to register tools with an MCP server or other systems.
|
|
113
|
+
*/
|
|
114
|
+
|
|
115
|
+
declare const listComponentsDefinition: ToolDefinition;
|
|
116
|
+
declare const getComponentDocsDefinition: ToolDefinition;
|
|
117
|
+
declare const getComponentExampleDefinition: ToolDefinition;
|
|
118
|
+
declare const searchComponentsDefinition: ToolDefinition;
|
|
119
|
+
declare const getComponentTypesDefinition: ToolDefinition;
|
|
120
|
+
declare const getComponentExamplesTsDefinition: ToolDefinition;
|
|
121
|
+
declare const getCliUsageDefinition: ToolDefinition;
|
|
122
|
+
declare const searchIconsDefinition: ToolDefinition;
|
|
123
|
+
declare const getThemeTypesDefinition: ToolDefinition;
|
|
124
|
+
declare const getNavigationTypesDefinition: ToolDefinition;
|
|
125
|
+
declare const getTranslateGuideDefinition: ToolDefinition;
|
|
126
|
+
declare const getStorageGuideDefinition: ToolDefinition;
|
|
127
|
+
declare const listPackagesDefinition: ToolDefinition;
|
|
128
|
+
declare const getPackageDocsDefinition: ToolDefinition;
|
|
129
|
+
declare const searchPackagesDefinition: ToolDefinition;
|
|
130
|
+
declare const listRecipesDefinition: ToolDefinition;
|
|
131
|
+
declare const getRecipeDefinition: ToolDefinition;
|
|
132
|
+
declare const searchRecipesDefinition: ToolDefinition;
|
|
133
|
+
/**
|
|
134
|
+
* Array of all tool definitions.
|
|
135
|
+
* Use this to register all tools with an MCP server.
|
|
136
|
+
*/
|
|
137
|
+
declare const toolDefinitions: ToolDefinition[];
|
|
138
|
+
/**
|
|
139
|
+
* Map of tool definitions by name.
|
|
140
|
+
* Use this for quick lookup of a specific tool definition.
|
|
141
|
+
*/
|
|
142
|
+
declare const toolDefinitionMap: Record<string, ToolDefinition>;
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* Tool Handlers
|
|
146
|
+
*
|
|
147
|
+
* Implementation functions for all MCP tools.
|
|
148
|
+
* These handlers can be used directly or through an MCP server.
|
|
149
|
+
*/
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
* List all available Idealyst components with brief descriptions
|
|
153
|
+
*/
|
|
154
|
+
declare function listComponents(_args?: ListComponentsArgs): ToolResponse;
|
|
155
|
+
/**
|
|
156
|
+
* Get detailed documentation for a specific component
|
|
157
|
+
*/
|
|
158
|
+
declare function getComponentDocs(args: GetComponentDocsArgs): ToolResponse;
|
|
159
|
+
/**
|
|
160
|
+
* Get a code example for a specific component
|
|
161
|
+
*/
|
|
162
|
+
declare function getComponentExample(args: GetComponentExampleArgs): ToolResponse;
|
|
163
|
+
/**
|
|
164
|
+
* Search for components by name, category, or feature
|
|
165
|
+
*/
|
|
166
|
+
declare function searchComponents(args?: SearchComponentsArgs): ToolResponse;
|
|
167
|
+
/**
|
|
168
|
+
* Get TypeScript type definitions for a component
|
|
169
|
+
*/
|
|
170
|
+
declare function getComponentTypes(args: GetComponentTypesArgs): ToolResponse;
|
|
171
|
+
/**
|
|
172
|
+
* Get validated TypeScript examples for a component
|
|
173
|
+
*/
|
|
174
|
+
declare function getComponentExamplesTs(args: GetComponentExamplesTsArgs): ToolResponse;
|
|
175
|
+
/**
|
|
176
|
+
* Get information about CLI commands and usage
|
|
177
|
+
*/
|
|
178
|
+
declare function getCliUsage(args?: GetCliUsageArgs): ToolResponse;
|
|
179
|
+
/**
|
|
180
|
+
* Search for Material Design Icons
|
|
181
|
+
*/
|
|
182
|
+
declare function searchIcons(args: SearchIconsArgs): ToolResponse;
|
|
183
|
+
/**
|
|
184
|
+
* Get TypeScript type definitions for theme types
|
|
185
|
+
*/
|
|
186
|
+
declare function getThemeTypes(args?: GetThemeTypesArgs): ToolResponse;
|
|
187
|
+
/**
|
|
188
|
+
* Get TypeScript type definitions for navigation types
|
|
189
|
+
*/
|
|
190
|
+
declare function getNavigationTypes(args?: GetNavigationTypesArgs): ToolResponse;
|
|
191
|
+
/**
|
|
192
|
+
* Get documentation for the translate package
|
|
193
|
+
*/
|
|
194
|
+
declare function getTranslateGuide(args: GetTranslateGuideArgs): ToolResponse;
|
|
195
|
+
/**
|
|
196
|
+
* Get documentation for the storage package
|
|
197
|
+
*/
|
|
198
|
+
declare function getStorageGuide(args: GetStorageGuideArgs): ToolResponse;
|
|
199
|
+
/**
|
|
200
|
+
* List all available packages
|
|
201
|
+
*/
|
|
202
|
+
declare function listPackages(args?: ListPackagesArgs): ToolResponse;
|
|
203
|
+
/**
|
|
204
|
+
* Get detailed documentation for a package
|
|
205
|
+
*/
|
|
206
|
+
declare function getPackageDocs(args: GetPackageDocsArgs): ToolResponse;
|
|
207
|
+
/**
|
|
208
|
+
* Search across all packages
|
|
209
|
+
*/
|
|
210
|
+
declare function searchPackages(args: SearchPackagesArgs): ToolResponse;
|
|
211
|
+
/**
|
|
212
|
+
* List all available recipes
|
|
213
|
+
*/
|
|
214
|
+
declare function listRecipes(args?: ListRecipesArgs): ToolResponse;
|
|
215
|
+
/**
|
|
216
|
+
* Get a complete code recipe
|
|
217
|
+
*/
|
|
218
|
+
declare function getRecipe(args: GetRecipeArgs): ToolResponse;
|
|
219
|
+
/**
|
|
220
|
+
* Search for recipes
|
|
221
|
+
*/
|
|
222
|
+
declare function searchRecipes(args: SearchRecipesArgs): ToolResponse;
|
|
223
|
+
/**
|
|
224
|
+
* Map of all tool handlers by name.
|
|
225
|
+
* Use this for dynamic tool dispatch.
|
|
226
|
+
*/
|
|
227
|
+
declare const toolHandlers: Record<string, (args: any) => ToolResponse>;
|
|
228
|
+
/**
|
|
229
|
+
* Call a tool by name with arguments.
|
|
230
|
+
* Returns a tool response or throws if the tool is not found.
|
|
231
|
+
*/
|
|
232
|
+
declare function callTool(name: string, args?: Record<string, unknown>): ToolResponse;
|
|
233
|
+
|
|
234
|
+
/**
|
|
235
|
+
* Get list of all available components
|
|
236
|
+
*/
|
|
237
|
+
declare function getAvailableComponents(): string[];
|
|
238
|
+
/**
|
|
239
|
+
* Get the full component registry from @idealyst/tooling
|
|
240
|
+
* This is the single source of truth for component props and values
|
|
241
|
+
*/
|
|
242
|
+
declare function getComponentRegistry(): Record<string, any>;
|
|
243
|
+
/**
|
|
244
|
+
* Get theme values from the registry
|
|
245
|
+
* This is the single source of truth for available intents, sizes, etc.
|
|
246
|
+
*/
|
|
247
|
+
declare function getRegistryThemeValues(): any;
|
|
248
|
+
|
|
249
|
+
export { type GetCliUsageArgs, type GetComponentDocsArgs, type GetComponentExampleArgs, type GetComponentExamplesTsArgs, type GetComponentTypesArgs, type GetNavigationTypesArgs, type GetPackageDocsArgs, type GetRecipeArgs, type GetStorageGuideArgs, type GetThemeTypesArgs, type GetTranslateGuideArgs, type ListComponentsArgs, type ListPackagesArgs, type ListRecipesArgs, type PropertySchema, type SearchComponentsArgs, type SearchIconsArgs, type SearchPackagesArgs, type SearchRecipesArgs, type ToolArgs, type ToolContent, type ToolDefinition, type ToolHandler, type ToolInputSchema, type ToolName, type ToolResponse, callTool, getAvailableComponents, getCliUsage, getCliUsageDefinition, getComponentDocs, getComponentDocsDefinition, getComponentExample, getComponentExampleDefinition, getComponentExamplesTs, getComponentExamplesTsDefinition, getComponentRegistry, getComponentTypes, getComponentTypesDefinition, getNavigationTypes, getNavigationTypesDefinition, getPackageDocs, getPackageDocsDefinition, getRecipe, getRecipeDefinition, getRegistryThemeValues, getStorageGuide, getStorageGuideDefinition, getThemeTypes, getThemeTypesDefinition, getTranslateGuide, getTranslateGuideDefinition, listComponents, listComponentsDefinition, listPackages, listPackagesDefinition, listRecipes, listRecipesDefinition, searchComponents, searchComponentsDefinition, searchIcons, searchIconsDefinition, searchPackages, searchPackagesDefinition, searchRecipes, searchRecipesDefinition, toolDefinitionMap, toolDefinitions, toolHandlers };
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import {
|
|
2
|
+
callTool,
|
|
3
|
+
getAvailableComponents,
|
|
4
|
+
getCliUsage,
|
|
5
|
+
getCliUsageDefinition,
|
|
6
|
+
getComponentDocs,
|
|
7
|
+
getComponentDocsDefinition,
|
|
8
|
+
getComponentExample,
|
|
9
|
+
getComponentExampleDefinition,
|
|
10
|
+
getComponentExamplesTs,
|
|
11
|
+
getComponentExamplesTsDefinition,
|
|
12
|
+
getComponentRegistry,
|
|
13
|
+
getComponentTypes,
|
|
14
|
+
getComponentTypesDefinition,
|
|
15
|
+
getNavigationTypes,
|
|
16
|
+
getNavigationTypesDefinition,
|
|
17
|
+
getPackageDocs,
|
|
18
|
+
getPackageDocsDefinition,
|
|
19
|
+
getRecipe,
|
|
20
|
+
getRecipeDefinition,
|
|
21
|
+
getRegistryThemeValues,
|
|
22
|
+
getStorageGuide,
|
|
23
|
+
getStorageGuideDefinition,
|
|
24
|
+
getThemeTypes,
|
|
25
|
+
getThemeTypesDefinition,
|
|
26
|
+
getTranslateGuide,
|
|
27
|
+
getTranslateGuideDefinition,
|
|
28
|
+
listComponents,
|
|
29
|
+
listComponentsDefinition,
|
|
30
|
+
listPackages,
|
|
31
|
+
listPackagesDefinition,
|
|
32
|
+
listRecipes,
|
|
33
|
+
listRecipesDefinition,
|
|
34
|
+
searchComponents,
|
|
35
|
+
searchComponentsDefinition,
|
|
36
|
+
searchIcons,
|
|
37
|
+
searchIconsDefinition,
|
|
38
|
+
searchPackages,
|
|
39
|
+
searchPackagesDefinition,
|
|
40
|
+
searchRecipes,
|
|
41
|
+
searchRecipesDefinition,
|
|
42
|
+
toolDefinitionMap,
|
|
43
|
+
toolDefinitions,
|
|
44
|
+
toolHandlers
|
|
45
|
+
} from "../chunk-QMHFAEAR.js";
|
|
46
|
+
export {
|
|
47
|
+
callTool,
|
|
48
|
+
getAvailableComponents,
|
|
49
|
+
getCliUsage,
|
|
50
|
+
getCliUsageDefinition,
|
|
51
|
+
getComponentDocs,
|
|
52
|
+
getComponentDocsDefinition,
|
|
53
|
+
getComponentExample,
|
|
54
|
+
getComponentExampleDefinition,
|
|
55
|
+
getComponentExamplesTs,
|
|
56
|
+
getComponentExamplesTsDefinition,
|
|
57
|
+
getComponentRegistry,
|
|
58
|
+
getComponentTypes,
|
|
59
|
+
getComponentTypesDefinition,
|
|
60
|
+
getNavigationTypes,
|
|
61
|
+
getNavigationTypesDefinition,
|
|
62
|
+
getPackageDocs,
|
|
63
|
+
getPackageDocsDefinition,
|
|
64
|
+
getRecipe,
|
|
65
|
+
getRecipeDefinition,
|
|
66
|
+
getRegistryThemeValues,
|
|
67
|
+
getStorageGuide,
|
|
68
|
+
getStorageGuideDefinition,
|
|
69
|
+
getThemeTypes,
|
|
70
|
+
getThemeTypesDefinition,
|
|
71
|
+
getTranslateGuide,
|
|
72
|
+
getTranslateGuideDefinition,
|
|
73
|
+
listComponents,
|
|
74
|
+
listComponentsDefinition,
|
|
75
|
+
listPackages,
|
|
76
|
+
listPackagesDefinition,
|
|
77
|
+
listRecipes,
|
|
78
|
+
listRecipesDefinition,
|
|
79
|
+
searchComponents,
|
|
80
|
+
searchComponentsDefinition,
|
|
81
|
+
searchIcons,
|
|
82
|
+
searchIconsDefinition,
|
|
83
|
+
searchPackages,
|
|
84
|
+
searchPackagesDefinition,
|
|
85
|
+
searchRecipes,
|
|
86
|
+
searchRecipesDefinition,
|
|
87
|
+
toolDefinitionMap,
|
|
88
|
+
toolDefinitions,
|
|
89
|
+
toolHandlers
|
|
90
|
+
};
|
|
91
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@idealyst/mcp-server",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.28",
|
|
4
4
|
"description": "MCP server providing documentation and examples for the Idealyst framework",
|
|
5
5
|
"main": "dist/index.cjs",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -14,6 +14,11 @@
|
|
|
14
14
|
"types": "./dist/index.d.ts",
|
|
15
15
|
"import": "./dist/index.js",
|
|
16
16
|
"require": "./dist/index.cjs"
|
|
17
|
+
},
|
|
18
|
+
"./tools": {
|
|
19
|
+
"types": "./dist/tools/index.d.ts",
|
|
20
|
+
"import": "./dist/tools/index.js",
|
|
21
|
+
"require": "./dist/tools/index.cjs"
|
|
17
22
|
}
|
|
18
23
|
},
|
|
19
24
|
"files": [
|
|
@@ -44,9 +49,9 @@
|
|
|
44
49
|
"author": "Idealyst",
|
|
45
50
|
"license": "MIT",
|
|
46
51
|
"dependencies": {
|
|
47
|
-
"@idealyst/components": "^1.2.
|
|
48
|
-
"@idealyst/navigation": "^1.2.
|
|
49
|
-
"@idealyst/theme": "^1.2.
|
|
52
|
+
"@idealyst/components": "^1.2.28",
|
|
53
|
+
"@idealyst/navigation": "^1.2.28",
|
|
54
|
+
"@idealyst/theme": "^1.2.28",
|
|
50
55
|
"@idealyst/tooling": "^1.2.1",
|
|
51
56
|
"@modelcontextprotocol/sdk": "^1.0.4"
|
|
52
57
|
},
|