Interface TunnelServiceAsync
-
- All Implemented Interfaces:
public interface TunnelServiceAsync
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceTunnelServiceAsync.WithRawResponseA view of TunnelServiceAsync that provides access to raw HTTP responses for each method.
-
Method Summary
-
-
Method Detail
-
withRawResponse
abstract TunnelServiceAsync.WithRawResponse withRawResponse()
Returns a view of this service that provides access to raw HTTP responses for each method.
-
withOptions
abstract TunnelServiceAsync withOptions(Consumer<ClientOptions.Builder> modifier)
Returns a view of this service with the given option modifications applied.
The original service is not modified.
-
certificates
abstract CertificateServiceAsync certificates()
-
create
CompletableFuture<BetaTunnel> create()
The Tunnels API is in research preview. It requires the
anthropic-beta: mcp-tunnels-2026-06-22header and may change without a deprecation period. It supersedes the Admin API endpoints at/v1/organizations/tunnels, which remain available during a migration window.Creates a tunnel. Creation allocates a fresh hostname and provisions the tunnel; it is not idempotent. The new tunnel rejects MCP traffic until at least one CA certificate is added.
-
create
abstract CompletableFuture<BetaTunnel> create(TunnelCreateParams params, RequestOptions requestOptions)
-
create
CompletableFuture<BetaTunnel> create(TunnelCreateParams params)
-
create
CompletableFuture<BetaTunnel> create(RequestOptions requestOptions)
-
retrieve
CompletableFuture<BetaTunnel> retrieve(String tunnelId)
The Tunnels API is in research preview. It requires the
anthropic-beta: mcp-tunnels-2026-06-22header and may change without a deprecation period. It supersedes the Admin API endpoints at/v1/organizations/tunnels, which remain available during a migration window.Fetches a tunnel by ID.
-
retrieve
CompletableFuture<BetaTunnel> retrieve(String tunnelId, TunnelRetrieveParams params, RequestOptions requestOptions)
-
retrieve
CompletableFuture<BetaTunnel> retrieve(String tunnelId, TunnelRetrieveParams params)
-
retrieve
abstract CompletableFuture<BetaTunnel> retrieve(TunnelRetrieveParams params, RequestOptions requestOptions)
-
retrieve
CompletableFuture<BetaTunnel> retrieve(TunnelRetrieveParams params)
-
retrieve
CompletableFuture<BetaTunnel> retrieve(String tunnelId, RequestOptions requestOptions)
-
list
CompletableFuture<TunnelListPageAsync> list()
The Tunnels API is in research preview. It requires the
anthropic-beta: mcp-tunnels-2026-06-22header and may change without a deprecation period. It supersedes the Admin API endpoints at/v1/organizations/tunnels, which remain available during a migration window.Lists tunnels. Results are ordered by creation time, newest first; archived tunnels are excluded unless include_archived is set.
-
list
abstract CompletableFuture<TunnelListPageAsync> list(TunnelListParams params, RequestOptions requestOptions)
-
list
CompletableFuture<TunnelListPageAsync> list(TunnelListParams params)
-
list
CompletableFuture<TunnelListPageAsync> list(RequestOptions requestOptions)
-
archive
CompletableFuture<BetaTunnel> archive(String tunnelId)
The Tunnels API is in research preview. It requires the
anthropic-beta: mcp-tunnels-2026-06-22header and may change without a deprecation period. It supersedes the Admin API endpoints at/v1/organizations/tunnels, which remain available during a migration window.Archives a tunnel. Archival is irreversible: every non-archived certificate on the tunnel is archived in the same operation, the hostname is retired and never re-allocated, and the tunnel token is invalidated. Retrying against an already-archived tunnel returns the existing record unchanged.
-
archive
CompletableFuture<BetaTunnel> archive(String tunnelId, TunnelArchiveParams params, RequestOptions requestOptions)
-
archive
CompletableFuture<BetaTunnel> archive(String tunnelId, TunnelArchiveParams params)
-
archive
abstract CompletableFuture<BetaTunnel> archive(TunnelArchiveParams params, RequestOptions requestOptions)
-
archive
CompletableFuture<BetaTunnel> archive(TunnelArchiveParams params)
-
archive
CompletableFuture<BetaTunnel> archive(String tunnelId, RequestOptions requestOptions)
-
revealToken
CompletableFuture<BetaTunnelToken> revealToken(String tunnelId)
The Tunnels API is in research preview. It requires the
anthropic-beta: mcp-tunnels-2026-06-22header and may change without a deprecation period. It supersedes the Admin API endpoints at/v1/organizations/tunnels, which remain available during a migration window.Reveals a tunnel's connector token. The value is fetched live on each call; Anthropic does not store it. Repeated calls return the same value until the token is rotated. Exposed as POST so the token does not appear in intermediary access logs.
-
revealToken
CompletableFuture<BetaTunnelToken> revealToken(String tunnelId, TunnelRevealTokenParams params, RequestOptions requestOptions)
-
revealToken
CompletableFuture<BetaTunnelToken> revealToken(String tunnelId, TunnelRevealTokenParams params)
-
revealToken
abstract CompletableFuture<BetaTunnelToken> revealToken(TunnelRevealTokenParams params, RequestOptions requestOptions)
-
revealToken
CompletableFuture<BetaTunnelToken> revealToken(TunnelRevealTokenParams params)
-
revealToken
CompletableFuture<BetaTunnelToken> revealToken(String tunnelId, RequestOptions requestOptions)
-
rotateToken
CompletableFuture<BetaTunnelToken> rotateToken(String tunnelId)
The Tunnels API is in research preview. It requires the
anthropic-beta: mcp-tunnels-2026-06-22header and may change without a deprecation period. It supersedes the Admin API endpoints at/v1/organizations/tunnels, which remain available during a migration window.Rotates a tunnel's connector token. Rotation invalidates the current token for new connections and returns a fresh value; established connections are not severed. A connector restarted after rotation must use the new value.
-
rotateToken
CompletableFuture<BetaTunnelToken> rotateToken(String tunnelId, TunnelRotateTokenParams params, RequestOptions requestOptions)
-
rotateToken
CompletableFuture<BetaTunnelToken> rotateToken(String tunnelId, TunnelRotateTokenParams params)
-
rotateToken
abstract CompletableFuture<BetaTunnelToken> rotateToken(TunnelRotateTokenParams params, RequestOptions requestOptions)
-
rotateToken
CompletableFuture<BetaTunnelToken> rotateToken(TunnelRotateTokenParams params)
-
rotateToken
CompletableFuture<BetaTunnelToken> rotateToken(String tunnelId, RequestOptions requestOptions)
-
-
-
-