880c19455b
CodeQL / Analyze (go) (push) Has been cancelled
CodeQL / Analyze (actions) (push) Has been cancelled
Build and Test Go Project / build (macos-latest) (push) Has been cancelled
Build and Test Go Project / build (ubuntu-latest) (push) Has been cancelled
Build and Test Go Project / build (windows-latest) (push) Has been cancelled
License Check / license-check (push) Has been cancelled
Instead of maintaining a separate compiledConditions slice indexed by tool position, embed the *CompiledCondition directly in each ServerTool. This eliminates the index alignment issue where filtering to a single tool (ForMCPRequest with ToolsCall) would break the mapping between tools and their compiled conditions. Benefits: - Compiled condition travels with the tool during any filtering - No index bookkeeping needed - Simpler code in filters.go (no toolIndex parameter) - ForMCPRequest works correctly for single-tool lookups - Same O(1) bitmask evaluation performance