Skip to content

v0.3.4

Choose a tag to compare

@YunTaiHua YunTaiHua released this 31 Jul 07:43
· 149 commits to main since this release

Highlights

  • MCP SDK v2 Migration: Upgraded from MCP v1 to v2 with full API compatibility updates
  • Agent Tool Visualization: Enhanced frontend display of agent tool calls and results
  • Cross-platform Path Validation: Consistent path validation across Windows and Linux

重点更新

  • MCP SDK v2 迁移: 从 MCP v1 升级到 v2,全面更新 API 兼容性
  • Agent 工具可视化: 增强前端工具调用和结果的展示
  • 跨平台路径验证: 统一 Windows 和 Linux 的路径验证行为

New Features

  • MCP v2 Compatibility: Updated to MCP Python SDK 2.0.0 with renamed APIs (MCPError, streamable_http_client, snake_case fields)
  • Agent Tool UI: Enhanced tool call visualization in terminal and web interfaces
  • HTTP Client Configuration: Streamable HTTP transport now configures headers/auth via httpx2.AsyncClient

新功能

  • MCP v2 兼容性: 升级到 MCP Python SDK 2.0.0,更新重命名的 API(MCPErrorstreamable_http_client、snake_case 字段)
  • Agent 工具 UI: 增强终端和 Web 界面的工具调用可视化
  • HTTP 客户端配置: Streamable HTTP 传输现在通过 httpx2.AsyncClient 配置 headers/auth

Important Fixes

  • Removed WebSocket transport support (MCP v2 specification change)
  • Fixed context usage token count accuracy
  • Fixed auto-compact threshold calculation
  • Fixed streaming flush server disconnect handling

重要修复

  • 移除 WebSocket 传输支持(MCP v2 规范变更)
  • 修复 context usage token 计数准确性
  • 修复自动压缩阈值计算
  • 修复流式 flush 服务器断开连接处理

Refactoring

  • Updated protocol field names from camelCase to snake_case (inputSchemainput_schema, structuredContentstructured_content)
  • Simplified rewind modes (removed code-only mode)
  • Migrated memory directory to ~/.illusion/memory

重构

  • 协议字段名从 camelCase 更新为 snake_case
  • 简化 rewind 模式(移除仅代码模式)
  • 内存目录迁移到 ~/.illusion/memory

Documentation

  • Updated MCP transport type documentation (removed WebSocket)
  • Synced bilingual docs with latest API changes

文档

  • 更新 MCP 传输类型文档(移除 WebSocket)
  • 同步双语文档与最新 API 变更

Installation

pip install illusion-agent==0.3.4

安装

pip install illusion-agent==0.3.4

Full Changelog: v0.3.3...v0.3.4