mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-06-24 16:36:14 +00:00
* fix(agents): normalize empty MCP tool descriptions to undefined MCP servers (e.g. Asana MCP) can return tools with an empty string description. AWS Bedrock's converse API rejects toolSpec.description with length < 1, so any empty-description MCP tool caused the entire request to fail with a validation error. Convert empty strings to undefined at the two sites in loadToolDefinitions where MCP tool definitions are built. An undefined description is omitted from JSON serialization, so Bedrock never sees the empty value. OpenAI and Anthropic direct APIs are unaffected. Fixes #13209 * test(agents): add coverage for empty MCP tool description normalization Verify that loadToolDefinitions converts '' descriptions to undefined for both the sys__all__sys pattern and directly named MCP tools. |
||
|---|---|---|
| .. | ||
| src | ||
| types | ||
| .gitignore | ||
| babel.config.cjs | ||
| jest.config.mjs | ||
| jest.setup.cjs | ||
| package.json | ||
| rollup.config.js | ||
| tsconfig-paths-bootstrap.mjs | ||
| tsconfig.build.json | ||
| tsconfig.json | ||
| tsconfig.spec.json | ||