Skip to content

Add context toolset and adjust readme #499

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

Merged
merged 5 commits into from
Jun 10, 2025
Merged

Conversation

SamMorrowDrums
Copy link
Collaborator

@SamMorrowDrums SamMorrowDrums commented Jun 10, 2025

Adds the missing toolsets to docs, and also makes the context tools a toolset in their own right - as the behaviour is a little strange that it sits outside the toolsets user controls.

As the namespaces concept appears to have more traction that toolsets, we will expand the concept to encompass resources for now, so that you can run multiple servers with different toolsets without a break in functionality.

This change partially aligns us with the namespaces spec proposal.

Closes: #482

@Copilot Copilot AI review requested due to automatic review settings June 10, 2025 12:33
@SamMorrowDrums SamMorrowDrums requested a review from a team as a code owner June 10, 2025 12:33
Copy link
Contributor

@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 integrates the “context” toolset directly into the default group, removes the standalone initializer, updates server registration, and adjusts documentation to include new and reordered toolsets.

  • Move context toolset creation into DefaultToolsetGroup and drop InitContextToolset
  • Remove explicit context registration in the server and rely on group registration
  • Update README with new toolsets (context, code_security, notifications, secret_protection) and reorder entries

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
pkg/github/tools.go Inlined context toolset into DefaultToolsetGroup and removed old init
pkg/github/search.go Added a blank line after getClient call
internal/ghmcp/server.go Removed InitContextToolset usage now handled by the toolset group
README.md Added and reordered toolset entries in documentation table
Comments suppressed due to low confidence (1)

README.md:150

  • Reorder the table entries to match the initialization sequence in DefaultToolsetGroup so users see the toolsets in the same order they’re registered.
| `context`               | **Strongly recommended**: Tools that provide context about the current user and GitHub context you are operating in |

@SamMorrowDrums SamMorrowDrums merged commit fe31428 into main Jun 10, 2025
16 checks passed
@SamMorrowDrums SamMorrowDrums deleted the clean-up-toolsets branch June 10, 2025 13:44
@jaril jaril mentioned this pull request Jun 11, 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.

Notifications and Secret Protection missing from toolsets docs
1 participant