feat(mcp): add project issue context and knowledge search
CI / test (pull_request) Canceled after 0s

This commit is contained in:
thanhnv
2026-09-05 09:23:45 +09:00
parent 86c27e2e79
commit 3bd58b4ecb
13 changed files with 2846 additions and 25 deletions
+3 -2
View File
@@ -13,8 +13,8 @@ from pathlib import Path
from typing import Any, Callable, Dict, List, Optional
from ..providers.base import Provider
from . import agent_roles
from . import agent_security
from . import agent_roles, agent_security
from .mcp_client import UNTRUSTED_MCP_CONTENT_RULE
from .ms365_tools import MS365_WRITE_TOOLS
from .permissions import PermissionGate
from .plan import UPDATE_PLAN_SPEC, normalize_plan_steps
@@ -76,6 +76,7 @@ def code_system_prompt(workdir: Path, has_memory: bool = False, plan: bool = Fal
"'.scratch/' folder. Only the final requested file(s) should remain — never leave "
"generator scripts or intermediate files behind.\n"
"Every path must stay inside the working folder.\n"
+ UNTRUSTED_MCP_CONTENT_RULE + "\n"
"If a command or tool fails, do NOT stop and hand the error back to the user — read the "
"error, fix the cause (edit the code, install a missing package, correct the command) and "
"retry. Keep iterating until the task actually works, then run it once more so you can "