AnthropicClaude 托管智能体
创建隧道
创建一条隧道,把智能体接入你自有网络中的 MCP 服务。
POST
/anthropic/v1/tunnels○ 未支持请求体
display_namestring可选Optional human-readable name for the tunnel (1-255 characters).
返回
501 平台还没有实现这个端点;调用会得到下面这个响应:
平台还没有提供把智能体接入你自有网络的隧道。调用会返回 501(not_implemented_error),不产生副作用,官方 SDK 不会重试。
错误按 Claude Managed Agents 格式返回,参见 错误码
响应
HTTP 200
Successful response
application/json
| 名称 | 类型 | 说明 |
|---|---|---|
| id | string | Unique identifier for the tunnel, prefixed with `tnl_`. |
| archived_at | null | string | A timestamp in RFC 3339 format |
| created_at | string | A timestamp in RFC 3339 format |
| display_name | null | string | Human-readable name for the tunnel (1-255 characters). Null if unset. |
| domain | string | Anthropic-assigned hostname for the tunnel. MCP server URLs whose host is a subdomain of this value are routed through the tunnel. Globally unique and never reused, even after the tunnel is archived. |
| type | string |