Skip to content

Conversation

@jba
Copy link
Contributor

@jba jba commented Jul 2, 2025

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.

@jba
Copy link
Contributor Author

jba commented Jul 2, 2025

This PR has two commits which can be reviewed independently: one for tools, and one for everything else.

@jba jba requested review from findleyr and samthanawalla and removed request for findleyr July 2, 2025 18:50
Copy link
Contributor

@samthanawalla samthanawalla left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great!

@findleyr
Copy link
Contributor

findleyr commented Jul 2, 2025

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.

@jba
Copy link
Contributor Author

jba commented Jul 3, 2025

Design doc updated. And you were right, gemini CLI was impressive.

Copy link
Contributor

@findleyr findleyr left a 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.

@jba
Copy link
Contributor Author

jba commented Jul 3, 2025

@samthanawalla you have to approve for me to merge. I guess to assert that I addressed your changes to your satisfaction.

@jba jba requested review from findleyr and samthanawalla and removed request for samthanawalla July 7, 2025 18:47
@findleyr findleyr dismissed samthanawalla’s stale review July 7, 2025 18:52

Sam is out of office.

@jba jba merged commit aebd244 into modelcontextprotocol:main Jul 7, 2025
4 checks passed
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.

design: tool binding

3 participants