Skip to content

v0.2.0: Wildcard Tool Filtering

Choose a tag to compare

@eli0shin eli0shin released this 19 Aug 19:46
· 8 commits to main since this release

What's New in v0.2.0

🌟 Wildcard Tool Filtering

  • Added support for wildcard patterns in tool filtering using * character
  • Extend --enabled-tools and --disabled-tools to 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.ts

Features

  • ✨ 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