| 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 |
"""RFC 3339 datetime string indicating when the tunnel was archived. |
| 18 |
|
| 19 |
Null if it is not archived. |
| 20 |
""" |
| 21 |
|
| 22 |
created_at: datetime |
| 23 |
"""RFC 3339 datetime string indicating when the tunnel was created.""" |
| 24 |
|
| 25 |
display_name: Optional[str] = None |
| 26 |
"""Human-readable name for the tunnel (1-255 characters). Null if unset.""" |
| 27 |
|
| 28 |
domain: str |
| 29 |
"""Anthropic-assigned hostname for the tunnel. |
| 30 |
|
| 31 |
MCP server URLs whose host is a subdomain of this value are routed through the |
| 32 |
tunnel. Globally unique and never reused, even after the tunnel is archived. |
| 33 |
""" |
| 34 |
|
| 35 |
type: Literal["tunnel"] |