Skip to content

Commit ed95f06

Browse files
committed
changes
1 parent c8b5d91 commit ed95f06

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

MCP-Security/MCPMethodNotFound.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ api_selection_filters:
3939
- request_payload:
4040
for_one:
4141
key:
42-
regex: '"method"\s*:\s*"(tools|resources|prompts)/[^"]+"'
42+
eq: method
4343
extract: changed_method
4444
- request_payload:
4545
contains_all:
@@ -71,5 +71,5 @@ execute:
7171
validate:
7272
response_payload:
7373
or:
74-
- contains_either: "${methodNotFoundCode}"
75-
- contains_either: "$magic Check if the response includes a valid MCP error indicating the requested method was not found. The error should include code -32601 or an equivalent explanation, and should not include stack traces or internal debug info."
74+
- not_contains_either: "${methodNotFoundCode}"
75+
- not_contains_either: "$magic Check if the response includes a valid MCP error indicating the requested method was not found. The error should include code -32601 or an equivalent explanation, and should not include stack traces or internal debug info."

0 commit comments

Comments
 (0)