Skip to content

Conversation

streamnsight
Copy link

No description provided.

usage:
On the MCP server side, specify the key to map to the state with annotations:
@mcp.tool(annotations={"injected_state": "state"})
def tool(a, b, state):
   pass

On the client side, it is handled automatically
# Conflicts:
#	langchain_mcp_adapters/tools.py
@streamnsight
Copy link
Author

This is an update on #287

because of merges PRs and conflict, refactoring from a different branch

@eyurtsev
Copy link
Collaborator

Thanks for the PR @streamnsight , we're going to solve state injection in a different way. What would be useful is an issue describing precisely your use case so inform design unless it already matches some of the existing issues

@eyurtsev eyurtsev closed this Sep 24, 2025
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.

2 participants