@@ -51,7 +51,8 @@ def register_code_browsing_tools(mcp, services: dict):
5151
5252Examples:
5353 list_methods(codebase_hash="abc", name_pattern=".*auth.*")
54- list_methods(codebase_hash="abc", callee_pattern="memcpy")"""
54+ list_methods(codebase_hash="abc", callee_pattern="memcpy")""" ,
55+ timeout = 30 ,
5556 )
5657 def list_methods (
5758 codebase_hash : Annotated [str , Field (description = "The codebase hash from generate_cpg" )],
@@ -118,7 +119,8 @@ def list_methods(
118119Examples:
119120 list_files(codebase_hash="abc")
120121 list_files(codebase_hash="abc", local_path="src/lib")
121- list_files(codebase_hash="abc", page=2)"""
122+ list_files(codebase_hash="abc", page=2)""" ,
123+ timeout = 30 ,
122124 )
123125 def list_files (
124126 codebase_hash : Annotated [str , Field (description = "The codebase hash from generate_cpg" )],
@@ -183,7 +185,8 @@ def list_files(
183185
184186Examples:
185187 get_method_source(codebase_hash="abc", method_name="main")
186- get_method_source(codebase_hash="abc", method_name="init", filename="driver.c")"""
188+ get_method_source(codebase_hash="abc", method_name="init", filename="driver.c")""" ,
189+ timeout = 30 ,
187190 )
188191 def get_method_source (
189192 codebase_hash : Annotated [str , Field (description = "The codebase hash from generate_cpg" )],
@@ -351,7 +354,8 @@ def get_method_source(
351354
352355Examples:
353356 list_calls(codebase_hash="abc", callee_pattern="strcpy")
354- list_calls(codebase_hash="abc", caller_pattern="main")"""
357+ list_calls(codebase_hash="abc", caller_pattern="main")""" ,
358+ timeout = 30 ,
355359 )
356360 def list_calls (
357361 codebase_hash : Annotated [str , Field (description = "The codebase hash from generate_cpg" )],
@@ -423,7 +427,8 @@ def list_calls(
423427
424428Examples:
425429 get_call_graph(codebase_hash="abc", method_name="main", direction="outgoing")
426- get_call_graph(codebase_hash="abc", method_name="vuln_func", direction="incoming")"""
430+ get_call_graph(codebase_hash="abc", method_name="vuln_func", direction="incoming")""" ,
431+ timeout = 120 ,
427432 )
428433 def get_call_graph (
429434 codebase_hash : Annotated [str , Field (description = "The codebase hash from generate_cpg" )],
@@ -514,7 +519,8 @@ def get_call_graph(
514519 - Useful for understanding function signatures.
515520
516521Examples:
517- list_parameters(codebase_hash="abc", method_name="login")"""
522+ list_parameters(codebase_hash="abc", method_name="login")""" ,
523+ timeout = 30 ,
518524 )
519525 def list_parameters (
520526 codebase_hash : Annotated [str , Field (description = "The codebase hash from generate_cpg" )],
@@ -565,7 +571,8 @@ def list_parameters(
565571 - Useful as a first step when exploring a new codebase.
566572
567573Examples:
568- get_codebase_summary(codebase_hash="abc")"""
574+ get_codebase_summary(codebase_hash="abc")""" ,
575+ timeout = 30 ,
569576 )
570577 def get_codebase_summary (
571578 codebase_hash : Annotated [str , Field (description = "The codebase hash from generate_cpg" )]
@@ -727,7 +734,8 @@ def get_codebase_summary(
727734 - filename should be relative to the project root (e.g., 'src/main.c' not '/absolute/path/src/main.c').
728735
729736Examples:
730- get_code_snippet(codebase_hash="abc", filename="main.c", start_line=10, end_line=20)"""
737+ get_code_snippet(codebase_hash="abc", filename="main.c", start_line=10, end_line=20)""" ,
738+ timeout = 30 ,
731739 )
732740 def get_code_snippet (
733741 codebase_hash : Annotated [str , Field (description = "The codebase hash from generate_cpg" )],
@@ -850,7 +858,8 @@ def get_code_snippet(
850858 - Use get_cpgql_syntax_help for reference.
851859
852860Examples:
853- run_cpgql_query(codebase_hash="abc", query="cpg.method.name.l")"""
861+ run_cpgql_query(codebase_hash="abc", query="cpg.method.name.l")""" ,
862+ timeout = 120 ,
854863 )
855864 def run_cpgql_query (
856865 codebase_hash : Annotated [str , Field (description = "The codebase hash from generate_cpg" )],
@@ -956,7 +965,8 @@ def run_cpgql_query(
956965 - filename in buffer_access_location should be relative to the project root (e.g., 'src/parser.c:100').
957966
958967Examples:
959- find_bounds_checks(codebase_hash="abc", buffer_access_location="parser.c:3393")"""
968+ find_bounds_checks(codebase_hash="abc", buffer_access_location="parser.c:3393")""" ,
969+ timeout = 120 ,
960970 )
961971 def find_bounds_checks (
962972 codebase_hash : Annotated [str , Field (description = "The codebase hash from generate_cpg" )],
@@ -1035,7 +1045,8 @@ def find_bounds_checks(
10351045 - Use this to learn how to write queries for run_cpgql_query.
10361046
10371047Examples:
1038- get_cpgql_syntax_help()"""
1048+ get_cpgql_syntax_help()""" ,
1049+ timeout = 30 ,
10391050 )
10401051 def get_cpgql_syntax_help () -> Dict [str , Any ]:
10411052 """Get CPGQL syntax documentation and common query patterns."""
@@ -1158,7 +1169,8 @@ def get_cpgql_syntax_help() -> Dict[str, Any]:
11581169 - Returns plain text.
11591170
11601171Examples:
1161- get_cfg(codebase_hash="abc", method_name="main")"""
1172+ get_cfg(codebase_hash="abc", method_name="main")""" ,
1173+ timeout = 120 ,
11621174 )
11631175 def get_cfg (
11641176 codebase_hash : Annotated [str , Field (description = "The codebase hash from generate_cpg" )],
@@ -1237,7 +1249,8 @@ def get_cfg(
12371249 - Does not read header files; uses CPG type info.
12381250
12391251Examples:
1240- get_type_definition(codebase_hash="abc", type_name=".*request_t.*")"""
1252+ get_type_definition(codebase_hash="abc", type_name=".*request_t.*")""" ,
1253+ timeout = 30 ,
12411254 )
12421255 def get_type_definition (
12431256 codebase_hash : Annotated [str , Field (description = "The codebase hash from generate_cpg" )],
@@ -1331,7 +1344,8 @@ def get_type_definition(
13311344 - filename should be relative to the project root (e.g., 'src/main.c').
13321345
13331346Examples:
1334- get_macro_expansion(codebase_hash="abc", filename="main.c", line_number=42)"""
1347+ get_macro_expansion(codebase_hash="abc", filename="main.c", line_number=42)""" ,
1348+ timeout = 30 ,
13351349 )
13361350 def get_macro_expansion (
13371351 codebase_hash : Annotated [str , Field (description = "The codebase hash from generate_cpg" )],
@@ -1483,7 +1497,8 @@ def get_macro_expansion(
14831497
14841498Examples:
14851499 discover_fixed_vulnerabilities(codebase_hash="abc")
1486- discover_fixed_vulnerabilities(codebase_hash="abc", limit=100)"""
1500+ discover_fixed_vulnerabilities(codebase_hash="abc", limit=100)""" ,
1501+ timeout = 120 ,
14871502 )
14881503 def discover_fixed_vulnerabilities (
14891504 codebase_hash : Annotated [str , Field (description = "The codebase hash from generate_cpg" )],
0 commit comments