Skip to content

Conversation

@thedadams
Copy link
Contributor

No description provided.

Signed-off-by: Donnie Adams <donnie@acorn.io>
@thedadams thedadams force-pushed the expose-mcp-capabilities branch from 2280fbe to 8c03261 Compare May 27, 2025 21:23
c.Client.OnNotification(handler)
}

func (c *client) Capabilities() mcp.ServerCapabilities {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is really the thing we need. The rest is just pass-through so we implement the right interface.

Copy link

@tybalex tybalex May 28, 2025

Choose a reason for hiding this comment

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

just curious why isn't the next line something like

return c.Client.Capabilities()

like all the other functions

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The Client doesn't have this method. That's the reason we are adding this. We need all the methods the Client has, plus the Capabilities method.

@thedadams thedadams requested a review from drpebcak May 27, 2025 23:14
@thedadams thedadams merged commit ce6afe2 into gptscript-ai:main May 28, 2025
10 checks passed
@thedadams thedadams deleted the expose-mcp-capabilities branch May 28, 2025 12:52
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.

3 participants