-
Notifications
You must be signed in to change notification settings - Fork 53
Add Logging support #17
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
Conversation
| // }; | ||
| // } | ||
| /// Extension type for the `logging` capability. | ||
| extension type Logging.fromMap(Map<String, Object?> _value) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wdyt of using part files to separate out code in this file by its functionality? logging, prompts, tools, etc. Might be a nice way to group types / logic that go together.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure yeah that makes sense - ok if I do that in a follow-up?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep follow up refactor sgtm
See https://spec.modelcontextprotocol.io/specification/2025-03-26/server/utilities/logging/
I also fixed a bug in the resource support - I realized that subscribe/unsubscribe are supposed to return an empty response instead of no response.
Also updated a few of the extension types to take a
MetaWithProgressToken.