Skip to content

From Discord: Mismatch in MCP tool name causes Invalid output error in @effect/ai-openai #1708

@effect-bot

Description

@effect-bot

Summary

A new user reported an issue when using the MCP server with @effect/ai-openai. The expected tool call name "OpenAiMcp" does not match the tool name returned in OpenAI's MCP response ("mcp.CheckPackage"), resulting in an Invalid output AiError during decoding. The error occurs at the generateText call in LanguageModel. This appears to be a bug in the library handling MCP tool names.

Discord thread

https://discord.com/channels/795981131316985866/1481292188200472717

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions