Skip to content

[#77] Added sampling support to tools #115

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 2 commits into
base: main
Choose a base branch
from

Conversation

oenic
Copy link

@oenic oenic commented Jun 19, 2025

I added a simple passthrough function to the underlying mcp sdk createMessage function to allow for sampling requests from tools.

The server is now injected into the tools at startup, which allows this.

I wrote some unit tests and I also packed the project and tested manually using VSCode's copilot agent mode. All appears to work there.

@oenic oenic mentioned this pull request Jun 19, 2025
@oenic oenic changed the title Added sampling support to tools [#77] Added sampling support to tools Jun 19, 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.

1 participant