Skip to content

feat(server): skip registration of disabled tools#92

Merged
jonchun merged 3 commits intofeat/disabled-tools-configfrom
feat/disabled-tools-server
Feb 28, 2026
Merged

feat(server): skip registration of disabled tools#92
jonchun merged 3 commits intofeat/disabled-tools-configfrom
feat/disabled-tools-server

Conversation

@jonchun
Copy link
Copy Markdown
Collaborator

@jonchun jonchun commented Feb 18, 2026

Summary

  • Add WithDisabledTools functional option on Core and DisabledTools map[string]bool field
  • Conditionally skip mcp.AddTool for sleep, provision, and download_file when disabled
  • Wire config.DisabledTools through shellguard.New() to server layer
  • Add TestNewMCPServer_DisabledTools verifying disabled tools are excluded from registration

Depends on #91 (config layer).

docs: fix read-only framing, remove stale list_commands, document disabled_tools
@jonchun jonchun merged commit 7dce2f0 into feat/disabled-tools-config Feb 28, 2026
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.

1 participant