Claude Platform Docs

トンネル

トンネルを作成
BetaTunnel beta().tunnels().create(params = TunnelCreateParams.none(), requestOptions = RequestOptions.none())
POST/v1/tunnels

Tunnels API はリサーチプレビュー段階です。anthropic-beta: mcp-tunnels-2026-06-22 ヘッダーが必要であり、非推奨期間を設けずに変更される可能性があります。この API は /v1/organizations/tunnels の Admin API エンドポイントに代わるものですが、移行期間中は従来のエンドポイントも引き続き利用できます。

トンネルを取得
BetaTunnel beta().tunnels().retrieve(params = TunnelRetrieveParams.none(), requestOptions = RequestOptions.none())
GET/v1/tunnels/{tunnel_id}

Tunnels API はリサーチプレビュー段階です。anthropic-beta: mcp-tunnels-2026-06-22 ヘッダーが必要であり、非推奨期間を設けずに変更される可能性があります。この API は /v1/organizations/tunnels の Admin API エンドポイントに代わるものですが、移行期間中は従来のエンドポイントも引き続き利用できます。

トンネルの一覧を取得
TunnelListPage beta().tunnels().list(params = TunnelListParams.none(), requestOptions = RequestOptions.none())
GET/v1/tunnels

Tunnels API はリサーチプレビュー段階です。anthropic-beta: mcp-tunnels-2026-06-22 ヘッダーが必要であり、非推奨期間を設けずに変更される可能性があります。この API は /v1/organizations/tunnels の Admin API エンドポイントに代わるものですが、移行期間中は従来のエンドポイントも引き続き利用できます。

トンネルをアーカイブ
BetaTunnel beta().tunnels().archive(params = TunnelArchiveParams.none(), requestOptions = RequestOptions.none())
POST/v1/tunnels/{tunnel_id}/archive

Tunnels API はリサーチプレビュー段階です。anthropic-beta: mcp-tunnels-2026-06-22 ヘッダーが必要であり、非推奨期間を設けずに変更される可能性があります。この API は /v1/organizations/tunnels の Admin API エンドポイントに代わるものですが、移行期間中は従来のエンドポイントも引き続き利用できます。

トンネルトークンを表示
BetaTunnelToken beta().tunnels().revealToken(params = TunnelRevealTokenParams.none(), requestOptions = RequestOptions.none())
POST/v1/tunnels/{tunnel_id}/reveal_token

Tunnels API はリサーチプレビュー段階です。anthropic-beta: mcp-tunnels-2026-06-22 ヘッダーが必要であり、非推奨期間を設けずに変更される可能性があります。この API は /v1/organizations/tunnels の Admin API エンドポイントに代わるものですが、移行期間中は従来のエンドポイントも引き続き利用できます。

トンネルトークンをローテーション
BetaTunnelToken beta().tunnels().rotateToken(params = TunnelRotateTokenParams.none(), requestOptions = RequestOptions.none())
POST/v1/tunnels/{tunnel_id}/rotate_token

Tunnels API はリサーチプレビュー段階です。anthropic-beta: mcp-tunnels-2026-06-22 ヘッダーが必要であり、非推奨期間を設けずに変更される可能性があります。この API は /v1/organizations/tunnels の Admin API エンドポイントに代わるものですが、移行期間中は従来のエンドポイントも引き続き利用できます。

Models
class BetaTunnel { type = "tunnel"; id; archivedAt; /* 3 more */ }

An MCP tunnel.

JsonValue type = "tunnel"
String id

Unique identifier for the tunnel, prefixed with tnl_.

Optional<LocalDateTime> archivedAt

RFC 3339 datetime string indicating when the tunnel was archived. Null if it is not archived.

formatdate-time
LocalDateTime createdAt

RFC 3339 datetime string indicating when the tunnel was created.

formatdate-time
Optional<String> displayName

Human-readable name for the tunnel (1-255 characters). Null if unset.

String domain

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.

class BetaTunnelToken { type = "tunnel_token"; id; tunnelToken; }

A tunnel's connector token.

JsonValue type = "tunnel_token"
String id

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

String tunnelToken

The connector token used to run the tunnel. Treat as a credential.

トンネル証明書

トンネル証明書を作成
BetaTunnelCertificate beta().tunnels().certificates().create(params, requestOptions = RequestOptions.none())
POST/v1/tunnels/{tunnel_id}/certificates

Tunnels API はリサーチプレビュー段階です。anthropic-beta: mcp-tunnels-2026-06-22 ヘッダーが必要であり、非推奨期間を設けずに変更される可能性があります。この API は /v1/organizations/tunnels の Admin API エンドポイントに代わるものですが、移行期間中は従来のエンドポイントも引き続き利用できます。

トンネル証明書を取得
BetaTunnelCertificate beta().tunnels().certificates().retrieve(params, requestOptions = RequestOptions.none())
GET/v1/tunnels/{tunnel_id}/certificates/{certificate_id}

Tunnels API はリサーチプレビュー段階です。anthropic-beta: mcp-tunnels-2026-06-22 ヘッダーが必要であり、非推奨期間を設けずに変更される可能性があります。この API は /v1/organizations/tunnels の Admin API エンドポイントに代わるものですが、移行期間中は従来のエンドポイントも引き続き利用できます。

トンネル証明書の一覧を取得
CertificateListPage beta().tunnels().certificates().list(params = CertificateListParams.none(), requestOptions = RequestOptions.none())
GET/v1/tunnels/{tunnel_id}/certificates

Tunnels API はリサーチプレビュー段階です。anthropic-beta: mcp-tunnels-2026-06-22 ヘッダーが必要であり、非推奨期間を設けずに変更される可能性があります。この API は /v1/organizations/tunnels の Admin API エンドポイントに代わるものですが、移行期間中は従来のエンドポイントも引き続き利用できます。

トンネル証明書をアーカイブ
BetaTunnelCertificate beta().tunnels().certificates().archive(params, requestOptions = RequestOptions.none())
POST/v1/tunnels/{tunnel_id}/certificates/{certificate_id}/archive

Tunnels API はリサーチプレビュー段階です。anthropic-beta: mcp-tunnels-2026-06-22 ヘッダーが必要であり、非推奨期間を設けずに変更される可能性があります。この API は /v1/organizations/tunnels の Admin API エンドポイントに代わるものですが、移行期間中は従来のエンドポイントも引き続き利用できます。