Skip to content

Preserve MCP resource name and description in Blob metadata#399

Open
Ankit Raj (ankit-raj00) wants to merge 1 commit intolangchain-ai:mainfrom
ankit-raj00:patch-1
Open

Preserve MCP resource name and description in Blob metadata#399
Ankit Raj (ankit-raj00) wants to merge 1 commit intolangchain-ai:mainfrom
ankit-raj00:patch-1

Conversation

@ankit-raj00

This change preserves MCP resource metadata (name and description) when converting resources into LangChain Blob objects.

Previously, resource metadata returned by session.list_resources() was discarded, making it unavailable downstream (e.g. for agent context, UI display, or debugging). This update enriches Blob.metadata in a backward-compatible way without modifying public APIs or function signatures.

No behavior changes occur for callers that do not rely on this metadata.

This change preserves MCP resource metadata (`name` and `description`) when converting
resources into LangChain Blob objects.

Previously, resource metadata returned by `session.list_resources()` was discarded,
making it unavailable downstream (e.g. for agent context, UI display, or debugging).
This update enriches Blob.metadata in a backward-compatible way without modifying
public APIs or function signatures.

No behavior changes occur for callers that do not rely on this metadata.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant