工具与连接
在 Service 中挂载内置能力、接入远程 Model Context Protocol (MCP) 服务器、配置 OAuth 授权并启用动态工具发现。
Service 中的智能体通过内置工具集、平台工具以及连接(Connections)(远程 MCP 服务器与 Composio SaaS 连接器)与运行环境、互联网和业务系统交互。
内置工具集
通过 GET /api/v1/toolsets 查看部署支持的完整工具集目录,并在智能体版本上按需启用:
| 工具集 | 提供的能力 | 前提条件 |
|---|---|---|
files | 查看、搜索、读取与编辑工作区文件 | 挂载运行环境(默认开启) |
shell | 执行命令并管理进程 | 挂载运行环境(默认开启) |
computer | 桌面截图、鼠标键盘控制与无障碍树 | 支持桌面的沙箱模板 |
web | search、scrape、fetch 与 download | 为搜索/抓取绑定 Web 提供方 |
memory | 读写已挂载的记忆空间文档与记录 | 挂载记忆空间 |
assets | 将环境中的产物发布到工作区资产存储 | 在智能体版本上启用 |
browser | 自动化控制托管或外部接入的 Chromium 浏览器 | 线程浏览器绑定 |
平台工具
在智能体配置的 Advanced / Platform Features 中按组启用平台工具(agents、models、connections、skills、environment_templates、schedules、providers、execution),让智能体在调用方工作区权限内查询或管理平台资源(读取默认自动放行,修改操作默认请求审批)。
联网搜索与抓取
在 Providers → Add provider 创建搜索或抓取提供方(Tavily、Brave Search、Firecrawl、Exa 等),并在智能体 web 工具集中绑定其 ID:
{
"toolsets": {
"web": {
"enabled": true,
"tools": {
"search": {"enabled": true, "config": {"provider_id": "wprov_search_123", "max_results": 5}},
"fetch": {"enabled": true}
}
}
}
}连接
在 Connections → New connection 或通过 POST /api/v1/connections 注册共享的远程 Streamable HTTP MCP 服务器或 SaaS 连接器(创建需 write,使用需 run):
{
"type": "mcp",
"name": "Internal Knowledge Base",
"auth": "bearer",
"config": {
"url": "https://mcp.internal.corp/v1",
"tools": ["query_handbook", "search_docs"]
},
"credential": {"token": "secret_mcp_token_xyz"}
}- 认证方式: 支持
none、bearer、headers与oauth(authorization_code浏览器授权或client_credentials机器授权,自动刷新令牌)。可通过POST /api/v1/connections/{id}/test测试连通性,通过GET /api/v1/connections/{id}/tools查看已发现的工具 Schema。 - 服务器指令: 可通过 API 设置
config.authority,也可在 Console 的 新建连接 或 详情 中选择 服务器指令。operator(系统指令,默认)在直连时作为系统指令,user作为用户级上下文,none仅作为参考数据,不具备指令效力。通过 Tool Search 分组延迟发现时,operator的文本会随发现结果返回。更改此设置会保留凭据和工具权限。 - 绑定到智能体: 在
connection_tools中引用连接并配置默认permission("ask"、"allow"、"deny")及单工具permissions覆盖;非敏感上下文头可通过会话/线程的mcp_headers透传。禁用连接会立即阻断后续调用。 - 大规模工具发现: 在智能体上配置
tool_search({"mode": "native", "sources": {}}或按业务领域划分的groups),按需动态加载工具定义。交互式工具界面见嵌入 MCP Apps。
Composio 连接
在工作区设置中添加 composio 连接器提供方,随后在 Connections 中选择目标 SaaS 应用(Jira、Slack、GitHub、Google Drive 等),完成浏览器 OAuth 授权后加入 connection_tools。
MCP 服务器推荐
运维人员可在 service.toml 中预置推荐企业 MCP 服务器卡片:
[[providers.mcp_servers]]
key = "internal-handbook"
name = "Enterprise Handbook"
description = "Internal company wiki and documentation search"
url = "https://mcp.internal.corp/handbook"
auth = "oauth"