@douyinfe/semi-mcp 1.0.4 → 1.0.5

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.
Files changed (2) hide show
  1. package/dist/index.js +1 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -229,7 +229,7 @@ async function getComponentDocuments(componentName, version) {
229
229
  const componentFiles = contentFiles.filter((file)=>{
230
230
  if ('file' !== file.type) return false;
231
231
  const path = file.path.toLowerCase();
232
- const pathPattern = new RegExp(`/content/[^/]+/${componentNameLower}/[^/]+$`);
232
+ const pathPattern = new RegExp(`/content/[^/]+/${componentNameLower}/index\\.md$`);
233
233
  return pathPattern.test(path);
234
234
  });
235
235
  if (0 === componentFiles.length) return null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@douyinfe/semi-mcp",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "description": "Semi Design MCP Server - Model Context Protocol server for Semi Design components and documentation",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",