Skip to main content
Glama

Smart Tree - ST

by 8b-is
MIT License
0
138
  • Apple
  • Linux
test_search.rs1.47 kB
// Quick test for the new search with line content feature use serde_json::json; fn main() { // Create a test search request let request = json!({ "jsonrpc": "2.0", "method": "tools/call", "params": { "name": "search_in_files", "arguments": { "path": "src", "keyword": "TODO", "include_content": true, "max_matches_per_file": 5 } } }); println!("Test request for search_in_files with line content:"); println!("{}", serde_json::to_string_pretty(&request).unwrap()); println!("\nExpected result format:"); println!("{}", serde_json::to_string_pretty(&json!({ "keyword": "TODO", "files_with_matches": 2, "include_content": true, "max_matches_per_file": 5, "results": [ { "path": "/src/main.rs", "matches": 3, "truncated": false, "lines": [ { "line_number": 42, "content": "// TODO: Add better error handling", "column": 3 }, { "line_number": 156, "content": "fn process_todo_items() {", "column": 14 } ] } ] })).unwrap()); }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/8b-is/smart-tree'

If you have feedback or need assistance with the MCP directory API, please join our Discord server