Debian Codegraph @

src/anthropic/types/beta/beta_tunnel.py

raw
1 from typing import Optional
2 from datetime import datetime
3 from typing_extensions import Literal
4
5 from ..._models import BaseModel
6
7 __all__ = ["BetaTunnel"]
8
9
10 class BetaTunnel(BaseModel):
11 """An MCP tunnel."""
12
13 id: str
14 """Unique identifier for the tunnel, prefixed with `tnl_`."""
15
16 archived_at: Optional[datetime] = None
17 """A timestamp in RFC 3339 format"""
18
19 created_at: datetime
20 """A timestamp in RFC 3339 format"""
21
22 display_name: Optional[str] = None
23 """Human-readable name for the tunnel (1-255 characters). Null if unset."""
24
25 domain: str
26 """Anthropic-assigned hostname for the tunnel.
27
28 MCP server URLs whose host is a subdomain of this value are routed through the
29 tunnel. Globally unique and never reused, even after the tunnel is archived.
30 """
31
32 type: Literal["tunnel"]