mirror of
https://github.com/langchain-ai/langchainjs-mcp-adapters.git
synced 2026-07-01 12:27:48 -04:00
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/langchain-ai/langchainjs-mcp-adapters/pull/6
Author: @vrknetha
Created: 3/8/2025
Status: ✅ Merged
Merged: 3/8/2025
Merged by: @vrknetha
Base:
main← Head:bugfix/sse-headers-issue📝 Commits (7)
050886cFix issue #4: Ensure headers are properly sent in SSE connections2a3d6b7Update package-lock.json for SSE headers fixb46cb6cFix issue #4 and increase test coverage to 80%fd33e9aUpdate package-lock.json for extended-eventsource dependency02440e5Update MultiServerMCPClient with improved test coverage and ESLint configuration0cf4b11Remove unused imports from example files8f03e30Fix agent-integration test for GitHub Actions by adding type assertion📊 Changes
11 files changed (+1561 additions, -307 deletions)
View changed files
📝
README.md(+58 -0)📝
__tests__/agent-integration.test.ts(+1 -0)📝
__tests__/client.test.ts(+249 -53)📝
eslint.config.mjs(+34 -29)📝
examples/agent_example.ts(+12 -20)📝
examples/gemini_agent_example.ts(+10 -4)📝
examples/react_agent_bug_test.ts(+9 -4)📝
examples/sse_with_headers_example.ts(+82 -99)📝
package-lock.json(+1013 -69)📝
package.json(+11 -6)📝
src/client.ts(+82 -23)📄 Description
This PR addresses issue #4 where custom headers were not being properly sent in SSE connections.
Changes Made
Enhanced the SSE connection implementation to properly send headers:
Added comprehensive documentation:
Improved example file (sse_with_headers_example.ts) demonstrating different approaches:
Updated dependencies:
Testing
Tested the implementation using both standard eventsource and extended-eventsource to ensure headers are correctly passed in SSE connections.
Fixes #4
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.