Skip to content

v2.6.0

Choose a tag to compare

@Eigenwise Eigenwise released this 03 Jan 17:52
· 97 commits to main since this release

What's New

MCP Output Schema Support

This release adds support for typed output schemas from MCP (Model Context Protocol) tools. When an MCP server provides an outputSchema for a tool, atomic-agents now creates a properly typed Pydantic model instead of using a generic output schema.

Features

  • Typed Output Schemas: Tools with MCP-provided outputSchema now generate typed Pydantic models with proper field definitions
  • Automatic Schema Detection: The system automatically detects when an MCP tool has an output schema and creates the appropriate typed model
  • Backwards Compatible: Tools without outputSchema continue to work exactly as before with the generic result field

Improvements

  • Enhanced error handling for structured content parsing with clear error messages
  • Added debug logging for JSON parse failures to aid troubleshooting
  • Added type validation for structuredContent responses
  • Improved documentation for is_output_schema parameter explaining discriminated union usage

Bug Fixes

  • Fixed silent failure when structuredContent has unexpected type (now raises TypeError)
  • Fixed fallback to generic handling that would fail for typed schemas
  • Added type check on content arrays before indexing to prevent errors on non-list types

Full Changelog

v2.5.0...v2.6.0