I craft unique cereal names, stories, and ridiculously cute Cereal Baby images.

MCP-Langchain-TS-CLIENT
Langchain.js客户端用于模型上下文协议。
1
Github Watches
2
Github Forks
28
Github Stars
mcp-langchain-ts-client
A LangChain.js client for Model Context Protocol.
This is a port of rectalogic/langchain-mcp to the JS/TS LangChain and MCP APIs.
Installation
npm install mcp-langchain-ts-client
Usage
const serverParams = {
command: "npx",
args: [
"-y",
"@modelcontextprotocol/server-everything"
]
}
// Initialize the toolkit
const toolkit = new MCPToolkit(serverParams);
await toolkit.initialize();
// Extract LangChain.js compatible tools
const tools = toolkit.tools;
// Use the tools
import { createReactAgent } from "@langchain/langgraph/prebuilt";
import { ChatAnthropic } from "@langchain/anthropic";
const llm = new ChatAnthropic({ model: 'claude-3-5-sonnet-20241022' });
const agent = createReactAgent({ llm, tools });
相关推荐
Evaluator for marketplace product descriptions, checks for relevancy and keyword stuffing.
Confidential guide on numerology and astrology, based of GG33 Public information
Emulating Dr. Jordan B. Peterson's style in providing life advice and insights.
Reviews

user_zdRzl20C
As a dedicated user of the MCP Server by Protagonistss, I highly recommend it for anyone looking for a reliable server solution. It's robust, efficient, and user-friendly, making server management a breeze. The support and regular updates from Protagonistss ensure that the server stays current with the latest technology trends. For more details, check out their official page: https://mcp.so/server/code-mcp-server/Protagonistss.