Skip to content

v2.1.1

Choose a tag to compare

@github-actions github-actions released this 28 Feb 07:41
· 23 commits to main since this release
Immutable release. Only release title and notes can be modified.

Release v2.1.1

feat: 新增MCP服务供AI助手调用,完成前端i18n全面国际化

  1. 新增 MCP Server (pkg/mcpserver/)
    • 基于 mcp-go 实现 Streamable HTTP 协议,监听 localhost:9245/mcp
    • 10 个工具:流量查询、DSL搜索、漏洞获取、Repeater请求发送、Intruder攻击等
    • 支持通过配置文件 mcp_port 自定义端口
    • 添加 DEV.md 文档说明配置和各工具用法
  2. 前端 i18n 国际化完善(55个文件)
    • 消除所有硬编码中文字符串,统一使用 t() 调用
    • zh.json/en.json 新增约200个翻译key,两语言文件完全同步
    • 修复静态数组/对象未用 computed() 包裹导致语言切换不生效的问题
    • props 默认值改用 computed 提供 i18n 默认值
    • scanTarget.ts 常量数组改为函数式调用
    • IntruderUtils.ts 双标签模式改为 labelKey 模式
    • 清除所有 t('key') || '中文' fallback 模式
      Co-Authored-By: Claude Opus 4.6 noreply@anthropic.com

Changes

  • feat: 新增MCP服务供AI助手调用,完成前端i18n全面国际化

    1. 新增 MCP Server (pkg/mcpserver/)

      • 基于 mcp-go 实现 Streamable HTTP 协议,监听 localhost:9245/mcp
      • 10 个工具:流量查询、DSL搜索、漏洞获取、Repeater请求发送、Intruder攻击等
      • 支持通过配置文件 mcp_port 自定义端口
      • 添加 DEV.md 文档说明配置和各工具用法
    2. 前端 i18n 国际化完善(55个文件)

      • 消除所有硬编码中文字符串,统一使用 t() 调用
      • zh.json/en.json 新增约200个翻译key,两语言文件完全同步
      • 修复静态数组/对象未用 computed() 包裹导致语言切换不生效的问题
      • props 默认值改用 computed 提供 i18n 默认值
      • scanTarget.ts 常量数组改为函数式调用
      • IntruderUtils.ts 双标签模式改为 labelKey 模式
      • 清除所有 t('key') || '中文' fallback 模式

    Co-Authored-By: Claude Opus 4.6 noreply@anthropic.com

  • refactor: DSL查询数据源从内存改为数据库,修复前端DSL功能

    • 后端: QueryHistoryByDSL 改为从 SQLite 数据库读取历史记录,不再依赖内存中的 HTTPBodyMap
    • 后端: mergeDSLContext 改为接收 db.HTTPHistory,新增 dbHistoryToMitmHistory 转换函数
    • 后端: 删除 GetHistoryById/GetHTTPBody 死代码,清理 validateDSL 中过时的 flow_id/response_timestamp 字段
    • 前端: 修复 handleDSLSearchResults 中 dslFilterEnabled 标志设置时机,防止 watch 覆盖原始历史
    • 前端: 添加 snake_case 到 camelCase 的字段映射,修复 DSL 结果表格空列问题
    • 前端: DSL 搜索框实现上下文感知智能提示(根据光标位置提示字段/运算符/值)
    • 前端: 支持键盘导航(上下箭头选择、Tab/Enter 补全)
    • 前端: 清理调试残留代码,更新帮助弹窗移除过时的 flow_id 字段

    Co-Authored-By: Claude Opus 4.6 noreply@anthropic.com

  • fix: 修复布局溢出问题并精简主题切换文案
    移除主内容区域和侧边栏的 overflow: hidden,解决 tooltip 被裁切的问题;
    精简中英文主题名称(如"浅色模式"→"浅色")以适配紧凑 UI。

    Co-Authored-By: Claude Opus 4.6 noreply@anthropic.com

  • update build.yml

  • update go mod version


Full Changelog: v2.1.0...v2.1.1