Skip to content

Merge MCP tool annotations and meta into LangChain metadata #284

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

grantmca
Copy link

It would be nice to include the _meta from the MCP spec on the tool as well. I put it in it's own name space _meta to stop any potential conflicts. Let me know what you think

Adds metadata merging in convert_mcp_tool_to_langchain_tool to include both
annotations and optional tool.meta under _meta.
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