Skip to content
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

Fix registering multiple tools/resources/prompts #126

Merged
merged 2 commits into from
Jan 21, 2025

Conversation

jspahrsummers
Copy link
Member

@jspahrsummers jspahrsummers commented Jan 21, 2025

Request handlers were being re-registered every time a new tool/resource/prompt was added, which would fail since the handlers were already registered. Now we track whether handlers have been initialized and only register them once.

Added tests to verify that multiple registrations work correctly.

Resolves #124.

To do

After merging

  • Release

Request handlers were being re-registered every time a new tool/resource/prompt was added, which would fail since the handlers were already registered. Now we track whether handlers have been initialized and only register them once.

Added tests to verify that multiple registrations work correctly.

Resolves #124.
@jspahrsummers jspahrsummers merged commit 1fb33e8 into main Jan 21, 2025
4 checks passed
@jspahrsummers jspahrsummers deleted the justin/fix-multiple-registrations branch January 21, 2025 12:56
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.

Registering multiple tools or resources fails
2 participants