fix: leann mcp search cwd & interactive issues (#72)

This commit is contained in:
Andy Lee
2025-08-19 02:27:06 -07:00
committed by GitHub
parent 738f1dbab8
commit 03af82d695
2 changed files with 101 additions and 7 deletions

View File

@@ -94,7 +94,7 @@ def handle_request(request):
},
}
# Build simplified command
# Build simplified command with non-interactive flag for MCP compatibility
cmd = [
"leann",
"search",
@@ -102,6 +102,7 @@ def handle_request(request):
args["query"],
f"--top-k={args.get('top_k', 5)}",
f"--complexity={args.get('complexity', 32)}",
"--non-interactive",
]
result = subprocess.run(cmd, capture_output=True, text=True)