You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(mcp): a banned license is reported as invalid input #1823
When the MCP license check finds a dependency with a forbidden license, or one that is not in the allowed list, the failure payload says the input of the caller was invalid.
very_good packages check licenses exits with ExitCode.config (78) for a banned license. ToolFailureType.fromExitCode maps that code to validation, so the payload carries "failureType": "validation", "failureReason": "invalid_input" and the advice "Correct any invalid tool arguments before retrying."
Steps to reproduce
Start very_good mcp in a package that depends on an MIT-licensed package.
Call the license check tool with {"forbidden": ["MIT"]}.
The arguments were valid and the check did its job, so this is a business failure: a deterministic check reported a problem. An agent should be told to replace the dependency or ask the user about the license policy, not to fix its arguments. A dedicated failureReason (for example license_banned) with the banned packages listed in the payload would let an agent act without parsing the report.
Activity
unicoderbot commentedon Nov 27, 2026
I've opened a pull request: #1838
fix(mcp): report a banned license as a business failure