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

MCP-Langchain-TS-CLIENT
Langchain.js客户端用于模型上下文协议。
3 years
Works with Finder
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 });
相关推荐
Confidential guide on numerology and astrology, based of GG33 Public information
Professional Flask/SQLAlchemy code guide. Follow: https://x.com/navid_re
Oede knorrepot die vasthoudt an de goeie ouwe tied van 't boerenleven
A world class elite tech co-founder entrepreneur, expert in software development, entrepreneurship, marketing, coaching style leadership and aligned with ambition for excellence, global market penetration and worldy perspectives.
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.