TEST-EXAMPLES.json•1.53 kB
{
"test_cases": [
{
"name": "Search for TODO",
"tool": "search_keyword",
"input": {
"filePath": "/absolute/path/to/mcp-ressl/test-file.txt",
"keyword": "TODO",
"caseSensitive": false
},
"expected": "Should find 3 matches on lines 4, 5, and 7"
},
{
"name": "Search for keyword (case-insensitive)",
"tool": "search_keyword",
"input": {
"filePath": "/absolute/path/to/mcp-ressl/test-file.txt",
"keyword": "keyword",
"caseSensitive": false
},
"expected": "Should find 6 matches across 4 lines (line 9 has 3 matches)"
},
{
"name": "Case-sensitive search for KEYWORD",
"tool": "search_keyword",
"input": {
"filePath": "/absolute/path/to/mcp-ressl/test-file.txt",
"keyword": "KEYWORD",
"caseSensitive": true
},
"expected": "Should find only 1 match on line 9"
},
{
"name": "No matches",
"tool": "search_keyword",
"input": {
"filePath": "/absolute/path/to/mcp-ressl/test-file.txt",
"keyword": "xyz123notfound",
"caseSensitive": false
},
"expected": "Should return 'No matches found.'"
},
{
"name": "Search in TypeScript file",
"tool": "search_keyword",
"input": {
"filePath": "/absolute/path/to/mcp-ressl/src/index.ts",
"keyword": "const",
"caseSensitive": true
},
"expected": "Should find multiple const declarations"
}
]
}