适配 Bailian WebParser 兼容接入并完善 sidecar 文档。

新增 WebParser 兼容工具与 MCP health/tools-sync 兼容模式,让 WebParser/sse 可注册到 agent 并暴露明确 schema;同时修复 mcp argv 环境变量展开并补齐微信 sidecar 纯本地化安装与文档说明。

Made-with: Cursor
This commit is contained in:
oliver 2026-05-01 17:40:52 +08:00
parent 329fb2239a
commit df91434936
16 changed files with 640 additions and 56 deletions

View file

@ -212,9 +212,17 @@ def build_mcp_process_command(
path_policy_tenant_id: str | None = None,
path_policy_user_id: str | None = None,
) -> list[str]:
"""``[cmd] + args`` after filesystem argv augmentation."""
"""``[cmd] + args`` after env placeholder expansion + filesystem argv augmentation."""
base = [str(cmd)]
for x in args:
s = str(x).strip()
if not s:
continue
# Allow mcp entry args like: "Authorization: Bearer ${DASHSCOPE_API_KEY}".
# Unknown vars are kept unchanged by expandvars.
base.append(os.path.expandvars(s))
return augment_filesystem_mcp_argv(
[cmd] + [x for x in args if str(x).strip()],
base,
store=store,
policy_session_id=policy_session_id,
path_policy_tenant_id=path_policy_tenant_id,