- Notifications
You must be signed in to change notification settings - Fork897
Allow passing through server options#218
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
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.
Pull Request Overview
This PR expands the server initialization to allow passing through additional server options so that hook functions can be attached to the server.
- Adds a variadic parameter for extra server options.
- Appends default options (resource capabilities and logging) before creating the MCP server.
Uh oh!
There was an error while loading.Please reload this page.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
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.
LGTM!
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.
Nice
3c18a34
intomainUh oh!
There was an error while loading.Please reload this page.
Adds support the the underlying mcp-go
ServerOptions
so thathook functions can be attached to the server.