mcp-use
Version:
A utility library for integrating Model Context Protocol (MCP) with LangChain, Zod, and related tools. Provides helpers for schema conversion, event streaming, and SDK usage.
18 lines (17 loc) • 473 B
JavaScript
import { StructuredTool } from '@langchain/core/tools';
export class MCPServerTool extends StructuredTool {
name = 'mcp_server_tool';
description = 'Base tool for MCP server operations.';
schema;
_manager;
constructor(manager) {
super();
this._manager = manager;
}
async _call(_arg, _runManager, _parentConfig) {
throw new Error('Method not implemented.');
}
get manager() {
return this._manager;
}
}