Skip to content

Passing client context to tools #375

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
samirbajaj opened this issue Mar 26, 2025 · 4 comments
Open

Passing client context to tools #375

samirbajaj opened this issue Mar 26, 2025 · 4 comments

Comments

@samirbajaj
Copy link

(This may be related to #373)

I would like to be able to pass some "out of band" context to a tool in an MCP server. This would be separate from the arguments that are extracted by the LLM and provided to the tool function.

How do I pass this "extra" data to the tool?

Thank you for any help.

@QuangTQV
Copy link

QuangTQV commented Apr 1, 2025

(This may be related to #373)

I would like to be able to pass some "out of band" context to a tool in an MCP server. This would be separate from the arguments that are extracted by the LLM and provided to the tool function.

How do I pass this "extra" data to the tool?

Thank you for any help.

I ran into the same issue. Instead of struggling to figure it out, I ended up writing my own MCP from scratch — it was much faster and way more optimized.

@TuanNH76
Copy link

TuanNH76 commented Apr 2, 2025

(This may be related to #373)

I would like to be able to pass some "out of band" context to a tool in an MCP server. This would be separate from the arguments that are extracted by the LLM and provided to the tool function.

How do I pass this "extra" data to the tool?

Thank you for any help.

I also had this problem because my app needs to add user data to the tool

@samirbajaj
Copy link
Author

Can one of the contributors / maintainers comment, please?

Perhaps there is a way to do this, that I haven't discovered?

Thank you.

@martina-zxy
Copy link

I've opened a PR to hopefully solve this issue #574

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

No branches or pull requests

4 participants