v0.2.0: Wildcard Tool Filtering
What's New in v0.2.0
🌟 Wildcard Tool Filtering
- Added support for wildcard patterns in tool filtering using
*character - Extend
--enabled-toolsand--disabled-toolsto support glob-like patterns - Full backward compatibility with exact tool name matching
Usage Examples
# Enable tools matching wildcard patterns
mcp-controller --enabled-tools "get_*,list_*" bun run server.ts
# Disable dangerous tools with wildcard
mcp-controller --disabled-tools "dangerous_*" bun run server.ts
# Mix exact and wildcard patterns
mcp-controller --enabled-tools "add,get_*" bun run server.ts
# List tools with wildcard filtering
mcp-controller list-tools --enabled-tools "*_log" bun run server.tsFeatures
- ✨ Wildcard pattern matching with
*character - 🔄 Backward compatible with exact tool names
- 📝 Enhanced help text with wildcard usage examples
- 🧪 Comprehensive test coverage for wildcard scenarios
- 🏗️ Improved test infrastructure with shared utilities
Technical Improvements
- Added
matchesToolPattern()utility function with proper regex escaping - Refactored test suite with reusable helper functions
- Enhanced MCP protocol compliance and validation
Full Changelog: v0.1.1...v0.2.0