Skip to content

ServerOptions: Add WithInstructions #104

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

Closed
wants to merge 1 commit into from
Closed

Conversation

njern
Copy link

@njern njern commented Apr 20, 2025

Sweep Summary Sweep

Adds a new WithInstructions server option to allow users to set instructions describing how to use the server and its features.

  • Added WithInstructions function in server.go that creates a ServerOptions function to set the server's instructions.
  • The instructions will be available to clients through the initialize response, helping users understand how to use the server.

Ask Sweep AI questions about this PR

Simple change, let users set the instructions describing how to use the server and its features

@Copilot Copilot AI review requested due to automatic review settings April 20, 2025 18:14
Copy link

@Copilot Copilot AI left a 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 adds a new server option "WithInstructions" to allow users to set the server's usage instructions via a functional option.

  • Added WithInstructions function that accepts a string and sets it on the Server struct.
  • Returns a closure that assigns the instructions pointer to the Server instance.

@ecekyn
Copy link
Contributor

ecekyn commented May 7, 2025

duplicate of #102, which has just been merged.

@ecekyn ecekyn closed this May 7, 2025
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.

2 participants