feat: add packages/mcp-server from tdesign-mcp-server source - #924
Open
liweijie0812 wants to merge 16 commits into
Open
liweijie0812 wants to merge 16 commits into
liweijie0812 wants to merge 16 commits into
Conversation
Bring in the MCP server source code from cnb.cool/tencent/tdesign/tdesign-mcp-server. Exclude script-generated files (packages/docs and __snapshots__). Update pnpm workspace to include nested mcp-server packages. Add mcp-server build scripts to root package.json.
commit: |
TDesign Component Site Preview CI Open |
- 添加 docs 脚本,从各框架组件仓库提取 API 文档和示例代码 - 生成组件映射 JSON,支持 web、mobile 和 chat 平台 - 支持小程序和 uni-app 多文件示例的提取与依赖内联 - 添加快照目录到 .gitignore
- changelog.ts: 修复组件匹配不到时 logs 为 undefined 导致抛 TypeError 的问题 - cache.ts: 不再将错误信息作为正常内容返回,改为抛出明确错误,避免下游二次解析出错
Per CR4: the pure function call addTdPrefix(getDomPrefix(framework)) does not depend on loop variable, hoist it outside the loop to avoid redundant computation.
Remove unused workspace importers (common, scripts, server) from the lockfile. These sub-packages no longer have their own package.json and the code references them via relative paths, so the corresponding dependencies are now resolved through the single packages/mcp-server importer.
- 图标搜索改用 icons-manifest.json,匹配范围扩展至图标名、关键词与分类 - 更新工具描述与参数说明以反映中英文匹配能力 - 移除已废弃的 build:icon 脚本及其调用
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

🤔 这个 PR 的性质是?
🔗 相关 Issue
💡 需求背景和解决方案
📝 更新日志
fix(组件名称): 处理问题或特性描述 ...
本条 PR 不需要纳入 Changelog
☑️ 请求合并前的自查清单