Skip to content
This repository was archived by the owner on Oct 28, 2025. It is now read-only.

feat: remove tools based on env vars - #162

Merged
brandonspark merged 1 commit into
mainfrom
brandon/remove-tools
Sep 2, 2025
Merged

feat: remove tools based on env vars#162
brandonspark merged 1 commit into
mainfrom
brandon/remove-tools

Conversation

@brandonspark

Copy link
Copy Markdown
Collaborator

Based on #161, this PR adds the ability to conditionally deregister certain tools, using env vars with the schema <tool_name>_DISABLED.

This PR just achieves it via using the low-level API, as opposed to conditionally declaring each function, which saves us some boilerplate and in my opinion produces better-looking code.

@liukatkat liukatkat left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried setting an env var to disable the tool but I can still see the tool in cursor

@liukatkat liukatkat left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There was some problem with the command I ran to test it. I ran it with the correct command and now it works!

@brandonspark
brandonspark merged commit 4fa83de into main Sep 2, 2025
11 checks passed
@brandonspark
brandonspark deleted the brandon/remove-tools branch September 2, 2025 18:00
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants