@idealyst/mcp-server 1.2.49 → 1.2.51
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-WJCICXOJ.js → chunk-SRNAGZJL.js} +6251 -8769
- package/dist/chunk-SRNAGZJL.js.map +1 -0
- package/dist/index.cjs +2237 -4575
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +202 -13
- package/dist/index.js.map +1 -1
- package/dist/tools/index.cjs +6233 -8756
- package/dist/tools/index.cjs.map +1 -1
- package/dist/tools/index.d.cts +29 -3
- package/dist/tools/index.d.ts +29 -3
- package/dist/tools/index.js +5 -1
- package/package.json +4 -4
- package/dist/chunk-WJCICXOJ.js.map +0 -1
- package/dist/generated/types.json +0 -2560
package/dist/tools/index.d.cts
CHANGED
|
@@ -102,8 +102,11 @@ interface GetRecipeArgs {
|
|
|
102
102
|
interface SearchRecipesArgs {
|
|
103
103
|
query: string;
|
|
104
104
|
}
|
|
105
|
-
|
|
106
|
-
|
|
105
|
+
interface GetInstallGuideArgs {
|
|
106
|
+
package: string;
|
|
107
|
+
}
|
|
108
|
+
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" | "get_install_guide";
|
|
109
|
+
type ToolArgs = ListComponentsArgs | GetComponentDocsArgs | GetComponentExampleArgs | SearchComponentsArgs | GetComponentTypesArgs | GetComponentExamplesTsArgs | GetCliUsageArgs | SearchIconsArgs | GetThemeTypesArgs | GetNavigationTypesArgs | GetTranslateGuideArgs | GetStorageGuideArgs | ListPackagesArgs | GetPackageDocsArgs | SearchPackagesArgs | ListRecipesArgs | GetRecipeArgs | SearchRecipesArgs | GetInstallGuideArgs;
|
|
107
110
|
|
|
108
111
|
/**
|
|
109
112
|
* Tool Definitions
|
|
@@ -130,6 +133,7 @@ declare const searchPackagesDefinition: ToolDefinition;
|
|
|
130
133
|
declare const listRecipesDefinition: ToolDefinition;
|
|
131
134
|
declare const getRecipeDefinition: ToolDefinition;
|
|
132
135
|
declare const searchRecipesDefinition: ToolDefinition;
|
|
136
|
+
declare const getInstallGuideDefinition: ToolDefinition;
|
|
133
137
|
/**
|
|
134
138
|
* Array of all tool definitions.
|
|
135
139
|
* Use this to register all tools with an MCP server.
|
|
@@ -146,6 +150,11 @@ declare const toolDefinitionMap: Record<string, ToolDefinition>;
|
|
|
146
150
|
*
|
|
147
151
|
* Implementation functions for all MCP tools.
|
|
148
152
|
* These handlers can be used directly or through an MCP server.
|
|
153
|
+
*
|
|
154
|
+
* Component documentation now uses:
|
|
155
|
+
* - Types: Dynamically loaded from @idealyst/tooling via generated/types.json
|
|
156
|
+
* - Examples: Type-checked .examples.tsx files in examples/components/
|
|
157
|
+
* - Metadata: Minimal static metadata (category, description, features, best practices)
|
|
149
158
|
*/
|
|
150
159
|
|
|
151
160
|
/**
|
|
@@ -154,10 +163,20 @@ declare const toolDefinitionMap: Record<string, ToolDefinition>;
|
|
|
154
163
|
declare function listComponents(_args?: ListComponentsArgs): ToolResponse;
|
|
155
164
|
/**
|
|
156
165
|
* Get detailed documentation for a specific component
|
|
166
|
+
*
|
|
167
|
+
* Returns:
|
|
168
|
+
* - Description and category from metadata
|
|
169
|
+
* - TypeScript props from dynamic types
|
|
170
|
+
* - Features and best practices from metadata
|
|
171
|
+
* - Type-checked examples from .examples.tsx files
|
|
157
172
|
*/
|
|
158
173
|
declare function getComponentDocs(args: GetComponentDocsArgs): ToolResponse;
|
|
159
174
|
/**
|
|
160
175
|
* Get a code example for a specific component
|
|
176
|
+
*
|
|
177
|
+
* Returns the type-checked example file content.
|
|
178
|
+
* The example_type parameter is kept for API compatibility but all examples
|
|
179
|
+
* are now in a single .examples.tsx file.
|
|
161
180
|
*/
|
|
162
181
|
declare function getComponentExample(args: GetComponentExampleArgs): ToolResponse;
|
|
163
182
|
/**
|
|
@@ -170,6 +189,9 @@ declare function searchComponents(args?: SearchComponentsArgs): ToolResponse;
|
|
|
170
189
|
declare function getComponentTypes(args: GetComponentTypesArgs): ToolResponse;
|
|
171
190
|
/**
|
|
172
191
|
* Get validated TypeScript examples for a component
|
|
192
|
+
*
|
|
193
|
+
* These examples are type-checked against the actual component props
|
|
194
|
+
* to ensure they compile and are correct.
|
|
173
195
|
*/
|
|
174
196
|
declare function getComponentExamplesTs(args: GetComponentExamplesTsArgs): ToolResponse;
|
|
175
197
|
/**
|
|
@@ -220,6 +242,10 @@ declare function getRecipe(args: GetRecipeArgs): ToolResponse;
|
|
|
220
242
|
* Search for recipes
|
|
221
243
|
*/
|
|
222
244
|
declare function searchRecipes(args: SearchRecipesArgs): ToolResponse;
|
|
245
|
+
/**
|
|
246
|
+
* Get detailed installation guide for a package
|
|
247
|
+
*/
|
|
248
|
+
declare function getInstallGuide(args: GetInstallGuideArgs): ToolResponse;
|
|
223
249
|
/**
|
|
224
250
|
* Map of all tool handlers by name.
|
|
225
251
|
* Use this for dynamic tool dispatch.
|
|
@@ -246,4 +272,4 @@ declare function getComponentRegistry(): Record<string, any>;
|
|
|
246
272
|
*/
|
|
247
273
|
declare function getRegistryThemeValues(): any;
|
|
248
274
|
|
|
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 };
|
|
275
|
+
export { type GetCliUsageArgs, type GetComponentDocsArgs, type GetComponentExampleArgs, type GetComponentExamplesTsArgs, type GetComponentTypesArgs, type GetInstallGuideArgs, 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, getInstallGuide, getInstallGuideDefinition, 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 };
|
package/dist/tools/index.d.ts
CHANGED
|
@@ -102,8 +102,11 @@ interface GetRecipeArgs {
|
|
|
102
102
|
interface SearchRecipesArgs {
|
|
103
103
|
query: string;
|
|
104
104
|
}
|
|
105
|
-
|
|
106
|
-
|
|
105
|
+
interface GetInstallGuideArgs {
|
|
106
|
+
package: string;
|
|
107
|
+
}
|
|
108
|
+
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" | "get_install_guide";
|
|
109
|
+
type ToolArgs = ListComponentsArgs | GetComponentDocsArgs | GetComponentExampleArgs | SearchComponentsArgs | GetComponentTypesArgs | GetComponentExamplesTsArgs | GetCliUsageArgs | SearchIconsArgs | GetThemeTypesArgs | GetNavigationTypesArgs | GetTranslateGuideArgs | GetStorageGuideArgs | ListPackagesArgs | GetPackageDocsArgs | SearchPackagesArgs | ListRecipesArgs | GetRecipeArgs | SearchRecipesArgs | GetInstallGuideArgs;
|
|
107
110
|
|
|
108
111
|
/**
|
|
109
112
|
* Tool Definitions
|
|
@@ -130,6 +133,7 @@ declare const searchPackagesDefinition: ToolDefinition;
|
|
|
130
133
|
declare const listRecipesDefinition: ToolDefinition;
|
|
131
134
|
declare const getRecipeDefinition: ToolDefinition;
|
|
132
135
|
declare const searchRecipesDefinition: ToolDefinition;
|
|
136
|
+
declare const getInstallGuideDefinition: ToolDefinition;
|
|
133
137
|
/**
|
|
134
138
|
* Array of all tool definitions.
|
|
135
139
|
* Use this to register all tools with an MCP server.
|
|
@@ -146,6 +150,11 @@ declare const toolDefinitionMap: Record<string, ToolDefinition>;
|
|
|
146
150
|
*
|
|
147
151
|
* Implementation functions for all MCP tools.
|
|
148
152
|
* These handlers can be used directly or through an MCP server.
|
|
153
|
+
*
|
|
154
|
+
* Component documentation now uses:
|
|
155
|
+
* - Types: Dynamically loaded from @idealyst/tooling via generated/types.json
|
|
156
|
+
* - Examples: Type-checked .examples.tsx files in examples/components/
|
|
157
|
+
* - Metadata: Minimal static metadata (category, description, features, best practices)
|
|
149
158
|
*/
|
|
150
159
|
|
|
151
160
|
/**
|
|
@@ -154,10 +163,20 @@ declare const toolDefinitionMap: Record<string, ToolDefinition>;
|
|
|
154
163
|
declare function listComponents(_args?: ListComponentsArgs): ToolResponse;
|
|
155
164
|
/**
|
|
156
165
|
* Get detailed documentation for a specific component
|
|
166
|
+
*
|
|
167
|
+
* Returns:
|
|
168
|
+
* - Description and category from metadata
|
|
169
|
+
* - TypeScript props from dynamic types
|
|
170
|
+
* - Features and best practices from metadata
|
|
171
|
+
* - Type-checked examples from .examples.tsx files
|
|
157
172
|
*/
|
|
158
173
|
declare function getComponentDocs(args: GetComponentDocsArgs): ToolResponse;
|
|
159
174
|
/**
|
|
160
175
|
* Get a code example for a specific component
|
|
176
|
+
*
|
|
177
|
+
* Returns the type-checked example file content.
|
|
178
|
+
* The example_type parameter is kept for API compatibility but all examples
|
|
179
|
+
* are now in a single .examples.tsx file.
|
|
161
180
|
*/
|
|
162
181
|
declare function getComponentExample(args: GetComponentExampleArgs): ToolResponse;
|
|
163
182
|
/**
|
|
@@ -170,6 +189,9 @@ declare function searchComponents(args?: SearchComponentsArgs): ToolResponse;
|
|
|
170
189
|
declare function getComponentTypes(args: GetComponentTypesArgs): ToolResponse;
|
|
171
190
|
/**
|
|
172
191
|
* Get validated TypeScript examples for a component
|
|
192
|
+
*
|
|
193
|
+
* These examples are type-checked against the actual component props
|
|
194
|
+
* to ensure they compile and are correct.
|
|
173
195
|
*/
|
|
174
196
|
declare function getComponentExamplesTs(args: GetComponentExamplesTsArgs): ToolResponse;
|
|
175
197
|
/**
|
|
@@ -220,6 +242,10 @@ declare function getRecipe(args: GetRecipeArgs): ToolResponse;
|
|
|
220
242
|
* Search for recipes
|
|
221
243
|
*/
|
|
222
244
|
declare function searchRecipes(args: SearchRecipesArgs): ToolResponse;
|
|
245
|
+
/**
|
|
246
|
+
* Get detailed installation guide for a package
|
|
247
|
+
*/
|
|
248
|
+
declare function getInstallGuide(args: GetInstallGuideArgs): ToolResponse;
|
|
223
249
|
/**
|
|
224
250
|
* Map of all tool handlers by name.
|
|
225
251
|
* Use this for dynamic tool dispatch.
|
|
@@ -246,4 +272,4 @@ declare function getComponentRegistry(): Record<string, any>;
|
|
|
246
272
|
*/
|
|
247
273
|
declare function getRegistryThemeValues(): any;
|
|
248
274
|
|
|
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 };
|
|
275
|
+
export { type GetCliUsageArgs, type GetComponentDocsArgs, type GetComponentExampleArgs, type GetComponentExamplesTsArgs, type GetComponentTypesArgs, type GetInstallGuideArgs, 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, getInstallGuide, getInstallGuideDefinition, 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 };
|
package/dist/tools/index.js
CHANGED
|
@@ -12,6 +12,8 @@ import {
|
|
|
12
12
|
getComponentRegistry,
|
|
13
13
|
getComponentTypes,
|
|
14
14
|
getComponentTypesDefinition,
|
|
15
|
+
getInstallGuide,
|
|
16
|
+
getInstallGuideDefinition,
|
|
15
17
|
getNavigationTypes,
|
|
16
18
|
getNavigationTypesDefinition,
|
|
17
19
|
getPackageDocs,
|
|
@@ -42,7 +44,7 @@ import {
|
|
|
42
44
|
toolDefinitionMap,
|
|
43
45
|
toolDefinitions,
|
|
44
46
|
toolHandlers
|
|
45
|
-
} from "../chunk-
|
|
47
|
+
} from "../chunk-SRNAGZJL.js";
|
|
46
48
|
export {
|
|
47
49
|
callTool,
|
|
48
50
|
getAvailableComponents,
|
|
@@ -57,6 +59,8 @@ export {
|
|
|
57
59
|
getComponentRegistry,
|
|
58
60
|
getComponentTypes,
|
|
59
61
|
getComponentTypesDefinition,
|
|
62
|
+
getInstallGuide,
|
|
63
|
+
getInstallGuideDefinition,
|
|
60
64
|
getNavigationTypes,
|
|
61
65
|
getNavigationTypesDefinition,
|
|
62
66
|
getPackageDocs,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@idealyst/mcp-server",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.51",
|
|
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",
|
|
@@ -49,9 +49,9 @@
|
|
|
49
49
|
"author": "Idealyst",
|
|
50
50
|
"license": "MIT",
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@idealyst/components": "^1.2.
|
|
53
|
-
"@idealyst/navigation": "^1.2.
|
|
54
|
-
"@idealyst/theme": "^1.2.
|
|
52
|
+
"@idealyst/components": "^1.2.51",
|
|
53
|
+
"@idealyst/navigation": "^1.2.51",
|
|
54
|
+
"@idealyst/theme": "^1.2.51",
|
|
55
55
|
"@idealyst/tooling": "^1.2.30",
|
|
56
56
|
"@modelcontextprotocol/sdk": "^1.0.4"
|
|
57
57
|
},
|