opencode icon indicating copy to clipboard operation
opencode copied to clipboard

MCP tool schema transformation for OpenAI/Azure providers

Open ribelo opened this issue 6 months ago • 0 comments

Fixes MCP tools failing with OpenAI/Azure providers due to schema compatibility issues.

Resolves:

  • #250
  • #441

Changes:

  • Transform MCP tool schemas to make optional parameters nullable + required for OpenAI/Azure
  • Move transformation logic to MCP module for cleaner architecture
  • Graceful fallback for complex schemas

Tested with: context7-mcp, works with OpenAI models

ribelo avatar Jul 05 '25 12:07 ribelo