-
Notifications
You must be signed in to change notification settings - Fork 144
Design plan for Claude MCP skill compatibility #171
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
|
@copilot MCP 工具是否需要支持异步执行?- 需要 |
已更新设计计划,纳入以下确认需求:
计划已从 6 阶段扩展为 7 阶段,确认后开始实现。 |
|
@copilot 开始实现。 |
…nd protocol handler Co-authored-by: galaxyeye <1701451+galaxyeye@users.noreply.github.com>
已开始实现。首批代码已提交 (43ad9c6),包含: 已完成 (Phase 1-4):
测试: 75 个单元测试全部通过 待完成:
|
…ix template matching Co-authored-by: galaxyeye <1701451+galaxyeye@users.noreply.github.com>
|
@copilot 继续 |
…ensive tests Co-authored-by: galaxyeye <1701451+galaxyeye@users.noreply.github.com>
已继续实现 Phase 6 REST API (c456b84): 新增:
总测试数: 91 个 (pulsar-agentic: 75 + pulsar-rest: 16) 待完成:
|
|
@copilot 继续 |
Co-authored-by: galaxyeye <1701451+galaxyeye@users.noreply.github.com>
已继续实现 Phase 5 MCP Server 传输层 (52c7bda): 新增:
总测试数: 108 个 (全部通过) 待完成:
|
|
@copilot 继续 |
Co-authored-by: galaxyeye <1701451+galaxyeye@users.noreply.github.com>
已继续实现 Phase 4.4 异步工具执行集成 (c291d82): 新增:
总测试数: 120+ 个 (全部通过) 完成进度:
|
|
@copilot 支持 Claude Skills,先制定计划 |
Claude Skills 支持计划背景Claude Skills 是 Claude 的可重用能力单元,允许用户定义自定义技能并在对话中调用。Browser4 需要支持将现有工具导出为 Claude Skills 格式。 与 MCP 的关系
当前 MCP 实现已完成通信协议,现需添加 Skills 格式支持。 Phase 1: Skills 数据结构 (
|
|
@copilot 开始实现 |
…, and REST API (Phase 1-6) Co-authored-by: galaxyeye <1701451+galaxyeye@users.noreply.github.com>
已完成 Claude Skills 实现 (e4a23e6): 新增功能:
使用示例: # 导出 Claude Desktop 配置
curl http://localhost:8182/api/skills/export/claude-desktop > skills.json |
Co-authored-by: galaxyeye <1701451+galaxyeye@users.noreply.github.com>
Claude Skill/MCP 兼容性实现
MCP 实现已完成 ✅
Claude Skills 实现已完成 ✅
Phase 1: Skills 数据结构 (
pulsar-agentic/skills)ClaudeSkill- 技能定义 (name, description, instructions, tools, examples)SkillTool- 技能工具定义 (基于 MCP tool schema)SkillExample,SkillExampleStep- 使用示例SkillMetadata- 技能元数据 (版本/作者/标签)SkillCategory- 技能分类枚举ClaudeDesktopSkillsConfig- Claude Desktop 格式Phase 2: 技能生成器 (
SkillGenerator.kt)toSkillTool()- MCP 工具转换generateWebBrowsingSkill()- 网页浏览技能generateFormAutomationSkill()- 表单自动化技能generateDataExtractionSkill()- 数据提取技能generateFileOperationsSkill()- 文件操作技能generateSystemSkill()- 系统工具技能generateSkillFromToolNames()- 自定义技能生成Phase 3: 预置技能库
web_browsing- 18 个导航和交互工具form_automation- 10 个表单操作工具data_extraction- 4 个数据提取工具file_operations- 3 个文件操作工具system- 1 个帮助工具Phase 4: Skills 导出格式 (
SkillRenderer.kt)Phase 5: Skills 管理 (
SkillRegistry.kt)Phase 6: REST API (
pulsar-rest)GET /api/skills- 列出所有技能GET /api/skills/{name}- 获取技能详情GET /api/skills/category/{category}- 按类别获取GET /api/skills/search?q=- 搜索技能GET /api/skills/with-tool?tool=- 查找包含工具的技能GET /api/skills/{name}/export/json- JSON 导出GET /api/skills/{name}/export/yaml- YAML 导出GET /api/skills/{name}/export/claude-desktop- Claude Desktop 导出GET /api/skills/{name}/export/mcp- MCP 工具导出GET /api/skills/{name}/export/markdown- Markdown 文档GET /api/skills/export/claude-desktop- 导出所有 (skills.json)POST /api/skills- 创建自定义技能DELETE /api/skills/{name}- 删除技能GET /api/skills/categories- 获取分类列表GET /api/skills/templates- 获取模板GET /api/skills/stats- 统计信息Phase 7: 单元测试
新增文件
使用示例
Security Summary
代码审查已完成,无安全漏洞。修复了一处未使用的导入。
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.