mirror of
https://github.com/hansjone/oclaw.git
synced 2026-10-17 15:53:31 +08:00
适配 Bailian WebParser 兼容接入并完善 sidecar 文档。
新增 WebParser 兼容工具与 MCP health/tools-sync 兼容模式,让 WebParser/sse 可注册到 agent 并暴露明确 schema;同时修复 mcp argv 环境变量展开并补齐微信 sidecar 纯本地化安装与文档说明。 Made-with: Cursor
This commit is contained in:
parent
329fb2239a
commit
df91434936
16 changed files with 640 additions and 56 deletions
|
|
@ -38,6 +38,18 @@ class McpFilesystemArgvTests(unittest.TestCase):
|
|||
out = build_mcp_process_command("echo", ["a"], store=None)
|
||||
self.assertEqual(out, ["echo", "a"])
|
||||
|
||||
def test_build_mcp_process_command_expands_env_placeholders(self) -> None:
|
||||
with mock.patch.dict(os.environ, {"DASHSCOPE_API_KEY": "sk-test-123"}, clear=False):
|
||||
out = build_mcp_process_command(
|
||||
"npx",
|
||||
["-y", "mcp-remote", "https://example.com/sse", "--header", "Authorization: Bearer ${DASHSCOPE_API_KEY}"],
|
||||
store=None,
|
||||
)
|
||||
self.assertEqual(
|
||||
out,
|
||||
["npx", "-y", "mcp-remote", "https://example.com/sse", "--header", "Authorization: Bearer sk-test-123"],
|
||||
)
|
||||
|
||||
def test_policy_session_only_that_users_db_roots(self) -> None:
|
||||
with tempfile.TemporaryDirectory(ignore_cleanup_errors=True) as td:
|
||||
dbf = Path(td) / "ops.sqlite"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue