Claude Platform Docs

MCP 隧道

列出隧道
Deprecated
GET/v1/organizations/tunnels

已弃用。此 Admin API 端点已被 Claude API 上的 /v1/tunnels 取代,并将在迁移窗口期后移除。新集成应使用 /v1/tunnels,并附带 anthropic-beta: mcp-tunnels-2026-06-22 标头和携带 workspace:manage_tunnels 范围的 WIF 令牌。在迁移窗口期内,现有集成可继续使用 mcp-tunnels-2026-05-19 标头和 org:manage_tunnels 范围。

获取隧道
Deprecated
GET/v1/organizations/tunnels/{tunnel_id}

已弃用。 此 Admin API 端点已被 Claude API 上的 /v1/tunnels 取代,并将在迁移窗口期后移除。新集成应使用 /v1/tunnels,并附带 anthropic-beta: mcp-tunnels-2026-06-22 标头和携带 workspace:manage_tunnels 范围的 WIF 令牌。在迁移窗口期内,现有集成可继续使用 mcp-tunnels-2026-05-19 标头和 org:manage_tunnels 范围。

归档隧道
Deprecated
POST/v1/organizations/tunnels/{tunnel_id}/archive

已弃用。 此 Admin API 端点已被 Claude API 上的 /v1/tunnels 取代,并将在迁移窗口期后移除。新集成应使用 /v1/tunnels,并附带 anthropic-beta: mcp-tunnels-2026-06-22 标头和携带 workspace:manage_tunnels 范围的 WIF 令牌。在迁移窗口期内,现有集成可继续使用 mcp-tunnels-2026-05-19 标头和 org:manage_tunnels 范围。

显示隧道令牌
Deprecated
POST/v1/organizations/tunnels/{tunnel_id}/reveal_token

已弃用。此 Admin API 端点已被 Claude API 上的 /v1/tunnels 取代,并将在迁移窗口期后移除。新集成应使用 /v1/tunnels,并附带 anthropic-beta: mcp-tunnels-2026-06-22 标头和携带 workspace:manage_tunnels 范围的 WIF 令牌。在迁移窗口期内,现有集成可继续使用 mcp-tunnels-2026-05-19 标头和 org:manage_tunnels 范围。

轮换隧道令牌
Deprecated
POST/v1/organizations/tunnels/{tunnel_id}/rotate_token

已弃用。此 Admin API 端点已被 Claude API 上的 /v1/tunnels 取代,并将在迁移窗口期后移除。新集成应使用 /v1/tunnels,并附带 anthropic-beta: mcp-tunnels-2026-06-22 标头和携带 workspace:manage_tunnels 范围的 WIF 令牌。在迁移窗口期内,现有集成可继续使用 mcp-tunnels-2026-05-19 标头和 org:manage_tunnels 范围。

Models
BetaOrganizationTunnel object{ type: "tunnel", id, archived_at, 4 more }
type: "tunnel"

Object type. Always tunnel for Tunnels.

defaulttunnel
id: string

ID of the Tunnel.

archived_at: string or null

RFC 3339 datetime string indicating when the Tunnel was archived, or null if it is not archived.

formatdate-time
created_at: string

RFC 3339 datetime string indicating when the Tunnel was created.

formatdate-time
display_name: string or null

Human-readable name for the Tunnel (1–255 characters), or 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.

workspace_id: string or null

ID of the Workspace this Tunnel belongs to. May be null for a Tunnel in the default Workspace. A Tunnel never moves to another Workspace.

BetaOrganizationTunnelToken object{ type: "tunnel_token", id, tunnel_token }
type: "tunnel_token"

Object type. Always tunnel_token for Tunnel Tokens.

defaulttunnel_token
id: string

Stable identifier for the current token value. Changes when the token is rotated.

tunnel_token: string

The tunnel's connection token.

MCP 隧道隧道证书

创建隧道证书
Deprecated
POST/v1/organizations/tunnels/{tunnel_id}/certificates

已弃用。 此 Admin API 端点已被 Claude API 上的 /v1/tunnels 取代,并将在迁移窗口期后移除。新集成应使用 /v1/tunnels,并附带 anthropic-beta: mcp-tunnels-2026-06-22 标头和携带 workspace:manage_tunnels 范围的 WIF 令牌。在迁移窗口期内,现有集成可继续使用 mcp-tunnels-2026-05-19 标头和 org:manage_tunnels 范围。

列出隧道证书
Deprecated
GET/v1/organizations/tunnels/{tunnel_id}/certificates

已弃用。此 Admin API 端点已被 Claude API 上的 /v1/tunnels 取代,并将在迁移窗口期后移除。新集成应使用 /v1/tunnels,并附带 anthropic-beta: mcp-tunnels-2026-06-22 标头和携带 workspace:manage_tunnels 范围的 WIF 令牌。在迁移窗口期内,现有集成可继续使用 mcp-tunnels-2026-05-19 标头和 org:manage_tunnels 范围。

获取隧道证书
Deprecated
GET/v1/organizations/tunnels/{tunnel_id}/certificates/{certificate_id}

已弃用。 此 Admin API 端点已被 Claude API 上的 /v1/tunnels 取代,并将在迁移窗口期后移除。新集成应使用 /v1/tunnels,并附带 anthropic-beta: mcp-tunnels-2026-06-22 标头和携带 workspace:manage_tunnels 范围的 WIF 令牌。在迁移窗口期内,现有集成可继续使用 mcp-tunnels-2026-05-19 标头和 org:manage_tunnels 范围。

归档隧道证书
Deprecated
POST/v1/organizations/tunnels/{tunnel_id}/certificates/{certificate_id}/archive

已弃用。 此 Admin API 端点已被 Claude API 上的 /v1/tunnels 取代,并将在迁移窗口期结束后移除。新的集成应使用 /v1/tunnels,并附带 anthropic-beta: mcp-tunnels-2026-06-22 请求头以及携带 workspace:manage_tunnels 作用域的 WIF 令牌。在迁移窗口期内,现有集成可继续使用 mcp-tunnels-2026-05-19 请求头和 org:manage_tunnels 作用域正常工作。