Complete sprints 163-165 strict MCP grammar pipeline and enforcement
This commit is contained in:
19
tools/mcp/grammars/whetstone_replay_repro_packet.gbnf
Normal file
19
tools/mcp/grammars/whetstone_replay_repro_packet.gbnf
Normal file
@@ -0,0 +1,19 @@
|
||||
# ---------------------------------------------------------------------------
|
||||
# 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_replay_repro_packet ---
|
||||
root ::= "{" ws "\"tool\"" ws ":" ws "\"whetstone_replay_repro_packet\"" ws "," ws "\"arguments\"" ws ":" ws whetstone-replay-repro-packet-args-obj-5 ws "}"
|
||||
|
||||
whetstone-replay-repro-packet-args-current_packet-pair-2 ::= "\"current_packet\"" ws ":" ws any-object
|
||||
whetstone-replay-repro-packet-args-obj-5 ::= "{" ws whetstone-replay-repro-packet-args-current_packet-pair-2 ws "," ws whetstone-replay-repro-packet-args-path-pair-4 ws "}"
|
||||
whetstone-replay-repro-packet-args-path-pair-4 ::= "\"path\"" ws ":" ws string
|
||||
Reference in New Issue
Block a user