mirror of
https://github.com/langchain-ai/langchainjs-mcp-adapters.git
synced 2026-07-01 12:27:48 -04:00
[PR #20] [MERGED] fix: pass MCP tool schemas through to LangChain tools #45
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/langchain-ai/langchainjs-mcp-adapters/pull/20
Author: @benjamincburns
Created: 3/18/2025
Status: ✅ Merged
Merged: 3/18/2025
Merged by: @benjamincburns
Base:
main← Head:ben/fix-tool-schemas📝 Commits (1)
0141384fix: pass inputSchema to LangChain tools & fail loudly📊 Changes
13 files changed (+3518 additions, -4597 deletions)
View changed files
📝
__tests__/client.basic.test.ts(+120 -128)📝
__tests__/client.comprehensive.test.ts(+164 -177)📝
__tests__/logger.test.ts(+42 -36)📝
__tests__/tools.test.ts(+70 -186)➖
jest.config.js(+0 -27)📝
package-lock.json(+2804 -3890)📝
package.json(+7 -7)📝
src/client.ts(+208 -54)📝
src/index.ts(+1 -2)📝
src/logger.ts(+2 -2)📝
src/tools.ts(+76 -83)➕
vitest.config.ts(+18 -0)📝
vitest.setup.ts(+6 -5)📄 Description
Required some fairly substantial changes.
Also migrates test suite to vitest for better support for mocked modules with ESMs, and cleaned up some other miscellaneous things.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.