Chris Danis
bc98ea5f03
schema_sanitizer: strip pattern and format from tool schemas for llama.cpp compatibility
...
llama.cpp's json-schema-to-grammar converter doesn't support standard JSON Schema
pattern/escape syntax (e.g. "\d{4,4}"), causing HTTP 400 errors when MCP servers
expose tool definitions with date-time or other regex patterns.
These fields are purely descriptive hints for LLM prompting — the actual runtime
validation happens on the Python side via the MCP tool's type checking, so dropping
them is safe.
- Add pattern/format stripping to _sanitize_node() in schema_sanitizer.py
- Add 3 tests: string pattern stripped, format stripped, nested anyOf stripped
2026-05-04 21:08:13 -07:00
..
2026-04-16 12:36:49 -07:00
2026-05-04 15:31:47 -07:00
2026-03-31 08:48:54 +09:00
2026-03-23 07:43:12 -07:00
2026-05-03 08:49:13 -07:00
2026-04-08 02:24:32 -07:00
2026-04-01 04:18:50 -07:00
2026-04-28 23:17:39 -07:00
2026-04-28 06:46:45 -07:00
2026-04-23 22:23:37 -07:00
2026-04-30 20:33:33 -07:00
2026-05-04 05:27:23 -07:00
2026-04-08 02:24:32 -07:00
2026-04-26 19:05:52 -07:00
2026-04-07 13:36:38 -07:00
2026-04-30 03:31:16 -07:00
2026-04-28 23:17:39 -07:00
2026-05-04 12:31:01 -07:00
2026-04-07 10:25:31 -07:00
2026-05-04 05:22:35 -07:00
2026-04-30 20:37:12 -07:00
2026-04-28 23:17:39 -07:00
2026-04-17 19:04:11 -07:00
2026-04-17 19:04:11 -07:00
2026-05-04 12:37:47 -07:00
2026-04-21 16:41:26 -07:00
2026-05-04 04:56:28 -07:00
2026-04-21 02:03:46 -07:00
2026-04-13 04:45:07 -07:00
2026-04-23 03:01:18 -07:00
2026-04-17 20:39:25 -07:00
2026-05-04 05:04:01 -07:00
2026-04-02 12:40:03 +11:00
2026-04-26 05:43:54 -07:00
2026-05-04 04:42:18 -07:00
2026-05-03 15:23:33 -07:00
2026-04-28 04:58:22 -07:00
2026-04-23 15:14:11 -07:00
2026-03-18 02:55:30 -07:00
2026-04-05 12:46:07 -07:00
2026-04-21 02:03:46 -07:00
2026-04-11 13:59:52 -07:00
2026-05-04 15:35:34 -07:00
2026-04-28 18:20:17 -07:00
2026-04-07 10:25:31 -07:00
2026-05-04 21:08:13 -07:00
2026-05-04 02:48:20 -07:00
2026-05-04 05:07:40 -07:00
2026-05-04 02:42:16 -07:00
2026-05-04 02:42:16 -07:00
2026-05-04 02:19:28 -07:00
2026-04-23 06:20:47 -07:00
2026-05-04 01:28:12 -07:00
2026-04-28 04:58:22 -07:00
2026-04-30 05:07:34 -07:00
2026-04-29 21:56:47 -07:00
2026-04-30 20:38:09 -07:00
2026-04-23 03:08:53 -07:00
2026-04-11 16:22:50 -07:00
2026-04-26 19:02:55 -07:00
2026-04-23 21:51:19 -07:00
2026-04-11 14:26:11 -07:00
2026-04-29 23:18:55 -07:00
2026-05-04 12:36:09 -07:00
2026-04-26 18:27:13 -07:00
2026-05-03 15:28:04 -07:00
2026-04-17 21:16:33 -07:00
2026-04-28 18:20:17 -07:00
2026-04-07 10:25:31 -07:00
2026-04-16 02:24:08 -07:00
2026-04-28 06:46:45 -07:00