mirror of
https://github.com/open-webui/mcpo.git
synced 2026-07-01 21:04:00 -04:00
[PR #275] Fix: the disabled_tools feature is always rising an exception on execution #222
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/open-webui/mcpo/pull/275
Author: @druellan
Created: 12/18/2025
Status: 🔄 Open
Base:
dev← Head:disabledTools📝 Commits (1)
38e7c7cFix: disabled_tools was always rising an exception even when the parameters were valid📊 Changes
1 file changed (+3 additions, -6 deletions)
View changed files
📝
src/mcpo/main.py(+3 -6)📄 Description
…meters were valid
Chore: consistency in the name of the feature: disabled_tools and not disabledTools
Pull Request Checklist
Before submitting, make sure you've checked the following:
devbranch.Changelog Entry
Description
disabled_tools feature was not working. Looking at the original code:
The
riseat the end of the if block is always rising an exception if the validation is true, halting the code execution if the disabled_tools parameter is present and valid.The fix: remove:
Fixed
The disabled_tools feature is always rising an exception on execution
Chore
Replacing disabledTools for disabled_tools in comments and console messages for consistency
Screenshots or Videos
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.