generated from personal-projects/leo-claude-mktplace
[Sprint 02] feat: Implement tool filtering module #12
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?
Summary
Create
tool_filter.pymodule to implement allowlist/denylist logic for tools imported from the marketplace.Tasks
src/gitea_mcp_remote/tool_filter.pyToolFilterclassfilter_tools(tools: list[Tool]) -> list[Tool]functionALLOWED_TOOLSis set, only return tools in allowlistDENIED_TOOLSis set, exclude tools in denylistAcceptance Criteria
tool_filter.pyexists withToolFilterclassfilter_tools()correctly implements allowlist/denylist logicDependencies
Blocked by: #11 (needs config to read ALLOWED_TOOLS/DENIED_TOOLS)
Context
This allows the wrapper to expose only a subset of marketplace tools, useful for security or deployment-specific restrictions.
References:
Size: S (1-2 hours)
⚠️ Blocked By: #11