Skip to content

feat: 为协议导出工具添加MCP支持#178

Open
thisxiangyu wants to merge 1 commit intoqq362946:mainfrom
thisxiangyu:FT-Updating
Open

feat: 为协议导出工具添加MCP支持#178
thisxiangyu wants to merge 1 commit intoqq362946:mainfrom
thisxiangyu:FT-Updating

Conversation

@thisxiangyu
Copy link
Copy Markdown
Contributor

@thisxiangyu thisxiangyu commented Apr 9, 2026

  • 新增McpServerCommand支持MCP协议调用
  • JSON-RPC实现(避免现在.NET官方 MCP SDK不稳定问题)
  • 添加.md中文使用说明文档
image

踩坑记录:

  • MCP调用时Environment.ProcessPath不可靠,需从命令行参数解析DLL路径或配置路径
  • 相对路径基于配置文件目录解析避免路径漂移
  • 有的客户端比如OpenCode不支持workingDirectory需用command数组显式传参
  • serverInfo需要version字段否则初始化失败

- 新增McpServerCommand支持MCP协议调用
- 新增ProtocolExportService用于带基准目录的配置加载
- 新增自定义JSON-RPC实现(避免官方SDK不稳定问题)
- 添加export_protocols工具支持远程调用协议导出
- 添加详细的中文使用说明文档

踩坑记录:
- MCP调用时Environment.ProcessPath不可靠,需从命令行参数解析DLL路径
- 相对路径基于配置文件目录解析避免路径漂移
- OpenCode不支持workingDirectory需用command数组显式传参
- serverInfo需要version字段否则初始化失败
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant