Skip to content

feat(config): add disabled_tools config option#91

Merged
jonchun merged 7 commits intomainfrom
feat/disabled-tools-config
Mar 2, 2026
Merged

feat(config): add disabled_tools config option#91
jonchun merged 7 commits intomainfrom
feat/disabled-tools-config

Conversation

@jonchun
Copy link
Copy Markdown
Collaborator

@jonchun jonchun commented Feb 18, 2026

Summary

  • Add DisabledTools []string field to config.Config for disabling optional MCP tools
  • Supports YAML config (disabled_tools: [provision, download_file]) and env var (SHELLGUARD_DISABLED_TOOLS=provision,download_file)
  • Validation restricts to optional tools only: provision, download_file, sleep — core tools (connect, execute, disconnect) cannot be disabled
  • Empty env var clears file-based config (does not error)

Config layer only — server-side tool registration gating is in a separate PR.

jonchun and others added 5 commits February 18, 2026 08:43
docs: fix read-only framing, remove stale list_commands, document disabled_tools
feat(server): skip registration of disabled tools
Resolve conflict in config/config.go: keep both DisabledTools
field from this branch and AutoConnect field from main.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
@jonchun jonchun merged commit 8d9ca6d into main Mar 2, 2026
2 checks passed
@jonchun jonchun deleted the feat/disabled-tools-config branch March 2, 2026 00:45
@jonchun jonchun restored the feat/disabled-tools-config branch March 3, 2026 01:26
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