Releases: langchain-ai/langchainjs-mcp-adapters
v0.3.0
What's Changed
-
break: remove winston in favor of the debug package by @benjamincburns in #25
-
fix: pass MCP tool schemas through to LangChain tools by @benjamincburns in #20
-
fix: correctly map MCP tool content to LangChain messages by @benjamincburns in #23
-
chore: move langgraph to dev dependency & minor build tweak by @benjamincburns in #19
-
chore: add example of server running in docker container by @benjamincburns in #21
New Contributors
- @benjamincburns made their first contribution in #19
Full Changelog: v0.2.4...v0.3.0
v0.2.4
v0.2.3
v0.2.2
v0.2.0- Bump up langchain version
Release v0.2.0
v0.1.8: Improved SSE Headers Support and Test Coverage
Overview
This release significantly improves SSE headers support, enhances error handling, and boosts test coverage to over 80%. It addresses several bugs and includes fixes for CI/CD workflows and development tooling.
Key Improvements
- Test Coverage: Increased from ~30% to over 80%
- Error Handling: Comprehensive error handling for SSE connections and client initialization
- Type Compatibility: Fixed compatibility issues with different versions of @langchain/core
Bug Fixes
- Fixed issues with passing headers to the eventsource library
- Improved support for Node.js EventSource implementation
- Fixed type errors in agent integration tests
- Resolved CI/CD issues in GitHub Actions
Development Improvements
- Updated ESLint configuration to properly exclude dist directory
- Improved build process to avoid linting errors
- Better handling of dependency version conflicts
Requirements
For SSE connections with headers in Node.js environments, install one of these dependencies:
# Basic support
npm install eventsource
# Enhanced support (recommended)
npm install extended-eventsource
See the CHANGELOG.md and RELEASE_NOTES.md for more details.
v0.1.6
Full Changelog: v0.1.5...v0.1.6
v0.1.5: SSE Headers Support and Node.js EventSource Integration
Release v0.1.5: SSE Headers Support
Overview
This release adds support for custom headers in Server-Sent Events (SSE) connections, which is particularly useful for authentication with MCP servers that require authorization headers.
New Features
- SSE Headers Support: Added the ability to pass custom headers to SSE connections
- Node.js EventSource Integration: Added support for using the Node.js EventSource implementation for better headers support
- Configuration Options: Extended the configuration options to include headers and EventSource settings
Improvements
- Updated Documentation: Improved README with clear examples of using headers with SSE connections
- Better Error Handling: Enhanced error handling for SSE connections with headers
- Type Declarations: Added TypeScript declarations for the eventsource module
- Fixed Package Structure: Corrected main and types paths in package.json to properly reference compiled files
Examples
Added new example files demonstrating the use of headers with SSE connections:
sse_with_headers_example.ts
: Shows how to use custom headers with SSE connectionstest_sse_headers.ts
: Test script for SSE headers functionalityauth_mcp.json
: Example configuration file with headers for SSE connections
Installation
npm install langchainjs-mcp-adapters
Requirements
For SSE connections with headers in Node.js environments, you need to install the optional dependency:
npm install eventsource
This release description provides a comprehensive overview of the changes in v0.1.5, highlighting the new features, improvements, and examples. It also includes installation instructions and mentions the requirement for the optional dependency when using SSE with headers.
LangChain.js MCP Adapters v0.1.3 - Improved GitHub Actions Workflow
LangChain.js MCP Adapters v0.1.3
This release includes improvements to the GitHub Actions workflow for npm publishing and resolves version conflicts.
What's New
- Automated Version Management: Enhanced GitHub Actions workflow to automatically handle version conflicts during npm publishing
- Version Bump: Incremented version from 0.1.2 to 0.1.3 to resolve npm publishing conflicts
Key Features
The LangChain.js MCP Adapters package provides seamless integration between LangChain.js and Model Context Protocol (MCP) servers, enabling:
- Multiple Transport Support: Connect to MCP servers via stdio and SSE transports
- Multi-Server Connections: Connect to multiple MCP servers simultaneously with
MultiServerMCPClient
- Configuration File Support: Easily configure MCP server connections using JSON configuration files
- LangChain.js Integration: Use MCP tools directly with LangChain.js agents
- Logging: Comprehensive logging capabilities for debugging and monitoring
Examples
The package includes several examples demonstrating various use cases:
- Basic MCP server connections
- Multi-transport configurations
- Integration with Google's Gemini models
- Agent-based workflows
- Logging and configuration options
Getting Started
# Install the package
npm install langchainjs-mcp-adapters
# Import in your project
import { MCPClient, MultiServerMCPClient } from 'langchainjs-mcp-adapters';
For more information, see the README and examples directory.