docs: add guidance for handling large content in analyze_code

- Update tool description to recommend file paths for large content
- Add note in README about terminal output behavior
- Explain that MCP client shows full parameters in terminal
- Guide users to save large content to files first

This helps users avoid terminal clutter when analyzing large code snippets.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Fahad
2025-06-08 21:39:54 +04:00
parent b6f3354f21
commit 4134b38d62
2 changed files with 4 additions and 2 deletions

View File

@@ -237,7 +237,7 @@ async def handle_list_tools() -> List[Tool]:
),
Tool(
name="analyze_code",
description="Analyze code files or snippets with Gemini's 1M context window",
description="Analyze code files or snippets with Gemini's 1M context window. For large content, use file paths to avoid terminal clutter.",
inputSchema={
"type": "object",
"properties": {
@@ -248,7 +248,7 @@ async def handle_list_tools() -> List[Tool]:
},
"code": {
"type": "string",
"description": "Direct code content to analyze (alternative to files)",
"description": "Direct code content to analyze (use for small snippets only; prefer files for large content)",
},
"question": {
"type": "string",