-
Notifications
You must be signed in to change notification settings - Fork 274
mcp: new API for features #88
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
|
This PR has two commits which can be reviewed independently: one for tools, and one for everything else. |
samthanawalla
left a comment
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.
Looks great!
|
This looks great! However, could you update the design doc? (gemini CLI can do a pretty good job of this for you) I think it's confusing if the APIs do not match the design, especially at such an early phase when things are subject to change. |
|
Design doc updated. And you were right, gemini CLI was impressive. |
findleyr
left a comment
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.
Looks great. Thanks again.
|
@samthanawalla you have to approve for me to merge. I guess to assert that I addressed your changes to your satisfaction. |
BREAKING CHANGE
Change the API for adding tools, prompts, resources and resource templates to a server.
The ServerXXX types are gone along with the plural Add methods (AddTools, AddPrompts etc.)
Instead there are single Add methods (AddTool, AddPrompt).
In addition, instead of NewServerTool, there is AddTool[In, Out].
Fixes #73.