Skip to content

Conversation

@jakemac53
Copy link
Contributor

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.

// };
// }
/// Extension type for the `logging` capability.
extension type Logging.fromMap(Map<String, Object?> _value) {
Copy link
Contributor

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.

Copy link
Contributor Author

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?

Copy link
Contributor

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

@jakemac53 jakemac53 merged commit 0ffaf50 into main Mar 28, 2025
6 checks passed
@jakemac53 jakemac53 deleted the logging branch March 28, 2025 22:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants