-
Notifications
You must be signed in to change notification settings - Fork 24
chore: add hints and update mcp #249
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
blva
commented
May 14, 2025
•
edited
Loading
edited
- adds hints based on https://modelcontextprotocol.io/docs/concepts/tools#tool-annotations
- fly-by set agent in missing places
@@ -34,7 +34,9 @@ export class ApiClient { | |||
|
|||
private getAccessToken = async () => { | |||
if (this.oauth2Client && (!this.accessToken || this.accessToken.expired())) { | |||
this.accessToken = await this.oauth2Client.getToken({}); | |||
this.accessToken = await this.oauth2Client.getToken({ | |||
agent: this.options.userAgent, |
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.
flyby - user agents
tests/integration/helpers.ts
Outdated
@@ -206,6 +206,9 @@ export function validateToolMetadata( | |||
expectDefined(tool); | |||
expect(tool.description).toBe(description); | |||
|
|||
expectDefined(tool.annotations); | |||
expect(tool.annotations.title).toBe(name); |
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.
can we add a small test for the readOnlyHint and stuff too?
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! added
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.
Sweet!