Complete sprints 163-165 strict MCP grammar pipeline and enforcement

This commit is contained in:
Bill
2026-02-25 17:25:36 -07:00
parent 45b8bb13b9
commit 07ed58ddc3
402 changed files with 43765 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
# ---------------------------------------------------------------------------
# JSON primitives
# ---------------------------------------------------------------------------
ws ::= [ \t\n\r]*
string ::= "\"" ([^"\\\x7F\x00-\x1F] | "\\" (["\\/bfnrt] | "u" [0-9a-fA-F] [0-9a-fA-F] [0-9a-fA-F] [0-9a-fA-F]))* "\""
number ::= "-"? ([0-9] | [1-9] [0-9]*) ("." [0-9]+)? ([eE] [-+]? [0-9]+)?
integer ::= "-"? ([0-9] | [1-9] [0-9]*)
boolean ::= "true" | "false"
null ::= "null"
any-value ::= string | number | boolean | null | any-object | any-array
any-object ::= "{" ws (string ws ":" ws any-value (ws "," ws string ws ":" ws any-value)*)? ws "}"
any-array ::= "[" ws (any-value (ws "," ws any-value)*)? ws "]"
# --- whetstone_marketplace_search ---
root ::= "{" ws "\"tool\"" ws ":" ws "\"whetstone_marketplace_search\"" ws "," ws "\"arguments\"" ws ":" ws whetstone-marketplace-search-args-obj-5 ws "}"
whetstone-marketplace-search-args-catalog_id-pair-2 ::= "\"catalog_id\"" ws ":" ws string
whetstone-marketplace-search-args-obj-5 ::= "{" ws whetstone-marketplace-search-args-catalog_id-pair-2 (ws "," ws whetstone-marketplace-search-args-opt-6)* ws "}"
whetstone-marketplace-search-args-opt-6 ::= whetstone-marketplace-search-args-tenant_id-pair-4
whetstone-marketplace-search-args-tenant_id-pair-4 ::= "\"tenant_id\"" ws ":" ws string