Skip to content
This repository was archived by the owner on May 16, 2025. It is now read-only.

Releases: langchain-ai/langchainjs-mcp-adapters

v0.3.0

20 Mar 02:00
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.2.4...v0.3.0

v0.2.4

17 Mar 16:54
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.2.3...v0.2.4

v0.2.3

13 Mar 19:14
Compare
Choose a tag to compare

What's Changed

  • remove unnecessary dependencies by @vbarda in #15

Full Changelog: v0.2.2...v0.2.3

v0.2.2

13 Mar 15:32
Compare
Choose a tag to compare

First release as @langchain/mcp-adapters

v0.2.0- Bump up langchain version

13 Mar 11:04
Compare
Choose a tag to compare

v0.1.8: Improved SSE Headers Support and Test Coverage

08 Mar 11:16
Compare
Choose a tag to compare

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

04 Mar 06:15
Compare
Choose a tag to compare

Full Changelog: v0.1.5...v0.1.6

v0.1.5: SSE Headers Support and Node.js EventSource Integration

04 Mar 06:13
Compare
Choose a tag to compare

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 connections
  • test_sse_headers.ts: Test script for SSE headers functionality
  • auth_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

03 Mar 20:29
Compare
Choose a tag to compare

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.