Skip to content

Commit 82a059d

Browse files
committed
Update include_content default in semantic search to False and clarify parameter docstring
1 parent 21f09a6 commit 82a059d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/codealive_mcp_server.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,7 @@ async def search_code(
459459
query: str,
460460
data_source_ids: List[str] = None,
461461
mode: str = "auto",
462-
include_content: bool = True
462+
include_content: bool = False
463463
) -> str:
464464
"""
465465
SEMANTIC search across your codebases.
@@ -493,8 +493,8 @@ async def search_code(
493493
- "deep": Exhaustive semantic exploration; use sparingly for hard,
494494
cross-cutting questions.
495495
496-
include_content: Whether to include full file content in results (default: true).
497-
Set to false for faster, more concise results when only locations are needed.
496+
include_content: Whether to include full file content in results (default: false).
497+
It's **not recommended** to include full file content, cause files content may be outdated.
498498
499499
Returns:
500500
Formatted search results including:

0 commit comments

Comments
 (0)