Home / File/ beta_mcp_toolset_param.py — anthropic-sdk-python Source File

beta_mcp_toolset_param.py — anthropic-sdk-python Source File

Architecture documentation for beta_mcp_toolset_param.py, a python file in the anthropic-sdk-python codebase. 8 imports, 3 dependents.

File python AnthropicClient 8 imports 3 dependents 1 classes

Entity Profile

Dependency Diagram

graph LR
  8cfd8f6e_8b08_74f8_03c8_cc3afc0d6a51["beta_mcp_toolset_param.py"]
  102d70eb_b35c_3c93_cb79_de7ee431b270["beta_mcp_tool_config_param.py"]
  8cfd8f6e_8b08_74f8_03c8_cc3afc0d6a51 --> 102d70eb_b35c_3c93_cb79_de7ee431b270
  fe98b69a_2f35_954e_37dd_0a6f37318e66["BetaMCPToolConfigParam"]
  8cfd8f6e_8b08_74f8_03c8_cc3afc0d6a51 --> fe98b69a_2f35_954e_37dd_0a6f37318e66
  2bc64f58_a0bc_b0fb_ccb0_7002d8485a3a["beta_cache_control_ephemeral_param.py"]
  8cfd8f6e_8b08_74f8_03c8_cc3afc0d6a51 --> 2bc64f58_a0bc_b0fb_ccb0_7002d8485a3a
  f588de01_21b5_50f2_ffbb_cc9a67f33921["BetaCacheControlEphemeralParam"]
  8cfd8f6e_8b08_74f8_03c8_cc3afc0d6a51 --> f588de01_21b5_50f2_ffbb_cc9a67f33921
  921d989d_9c32_6c5f_e3db_46c63c7c813d["beta_mcp_tool_default_config_param.py"]
  8cfd8f6e_8b08_74f8_03c8_cc3afc0d6a51 --> 921d989d_9c32_6c5f_e3db_46c63c7c813d
  d56119ab_de1a_ae01_5270_4271825c6be8["BetaMCPToolDefaultConfigParam"]
  8cfd8f6e_8b08_74f8_03c8_cc3afc0d6a51 --> d56119ab_de1a_ae01_5270_4271825c6be8
  89ddcdd7_3ae1_4c7b_41bb_9f1e25f16875["typing"]
  8cfd8f6e_8b08_74f8_03c8_cc3afc0d6a51 --> 89ddcdd7_3ae1_4c7b_41bb_9f1e25f16875
  37c05070_ca59_d596_7250_de9d1939227f["typing_extensions"]
  8cfd8f6e_8b08_74f8_03c8_cc3afc0d6a51 --> 37c05070_ca59_d596_7250_de9d1939227f
  65f3d77c_c1b2_82e1_f9d7_1e7e05f3fdfd["__init__.py"]
  65f3d77c_c1b2_82e1_f9d7_1e7e05f3fdfd --> 8cfd8f6e_8b08_74f8_03c8_cc3afc0d6a51
  44d57bee_e2e9_09e6_e442_ea81d4e62e60["beta_tool_union_param.py"]
  44d57bee_e2e9_09e6_e442_ea81d4e62e60 --> 8cfd8f6e_8b08_74f8_03c8_cc3afc0d6a51
  579bd2f9_ae1a_5b30_88c4_93179ebb82b6["message_count_tokens_params.py"]
  579bd2f9_ae1a_5b30_88c4_93179ebb82b6 --> 8cfd8f6e_8b08_74f8_03c8_cc3afc0d6a51
  style 8cfd8f6e_8b08_74f8_03c8_cc3afc0d6a51 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from __future__ import annotations

from typing import Dict, Optional
from typing_extensions import Literal, Required, TypedDict

from .beta_mcp_tool_config_param import BetaMCPToolConfigParam
from .beta_cache_control_ephemeral_param import BetaCacheControlEphemeralParam
from .beta_mcp_tool_default_config_param import BetaMCPToolDefaultConfigParam

__all__ = ["BetaMCPToolsetParam"]


class BetaMCPToolsetParam(TypedDict, total=False):
    """Configuration for a group of tools from an MCP server.

    Allows configuring enabled status and defer_loading for all tools
    from an MCP server, with optional per-tool overrides.
    """

    mcp_server_name: Required[str]
    """Name of the MCP server to configure tools for"""

    type: Required[Literal["mcp_toolset"]]

    cache_control: Optional[BetaCacheControlEphemeralParam]
    """Create a cache control breakpoint at this content block."""

    configs: Optional[Dict[str, BetaMCPToolConfigParam]]
    """Configuration overrides for specific tools, keyed by tool name"""

    default_config: BetaMCPToolDefaultConfigParam
    """Default configuration applied to all tools from this server"""

Frequently Asked Questions

What does beta_mcp_toolset_param.py do?
beta_mcp_toolset_param.py is a source file in the anthropic-sdk-python codebase, written in python. It belongs to the AnthropicClient domain.
What does beta_mcp_toolset_param.py depend on?
beta_mcp_toolset_param.py imports 8 module(s): BetaCacheControlEphemeralParam, BetaMCPToolConfigParam, BetaMCPToolDefaultConfigParam, beta_cache_control_ephemeral_param.py, beta_mcp_tool_config_param.py, beta_mcp_tool_default_config_param.py, typing, typing_extensions.
What files import beta_mcp_toolset_param.py?
beta_mcp_toolset_param.py is imported by 3 file(s): __init__.py, beta_tool_union_param.py, message_count_tokens_params.py.
Where is beta_mcp_toolset_param.py in the architecture?
beta_mcp_toolset_param.py is located at src/anthropic/types/beta/beta_mcp_toolset_param.py (domain: AnthropicClient, directory: src/anthropic/types/beta).

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free