@@ -91,18 +91,19 @@ def __init__(
9191 """
9292 Args:
9393 cache_tools_list: Whether to cache the tools list. If `True`, the tools list will be
94- cached and only fetched from the server once. If `False`, the tools list will be
95- fetched from the server on each call to `list_tools()`. The cache can be invalidated
96- by calling `invalidate_tools_cache()`. You should set this to `True` if you know the
97- server will not change its tools list, because it can drastically improve latency
98- (by avoiding a round-trip to the server every time).
99-
100- cache_prompts_list: Whether to cache the prompts list. If `True`, the prompts list will be
101- cached and only fetched from the server once. If `False`, the prompts list will be
102- fetched from the server on each call to `list_prompts()`. The cache can be invalidated
103- by calling `invalidate_prompts_cache()`. You should set this to `True` if you know the
104- server will not change its prompts list, because it can drastically improve latency
105- (by avoiding a round-trip to the server every time).
94+ cached and only fetched from the server once. If `False`, the tools list will be
95+ fetched from the server on each call to `list_tools()`. The cache can be invalidated
96+ by calling `invalidate_tools_cache()`. You should set this to `True` if you know the
97+ server will not change its tools list, because it can drastically improve latency
98+ (by avoiding a round-trip to the server every time).
99+
100+ cache_prompts_list: Whether to cache the prompts list. If `True`, the prompts list
101+ will be cached and only fetched from the server once. If `False`, the prompts
102+ list will be fetched from the server on each call to `list_prompts()`.
103+ The cache can be invalidated by calling `invalidate_prompts_cache()`.
104+ You should set this to `True` if you know the server will not change
105+ its prompts list, because it can drastically improve latency
106+ (by avoiding a round-trip to the server every time).
106107
107108 client_session_timeout_seconds: the read timeout passed to the MCP ClientSession.
108109 tool_filter: The tool filter to use for filtering tools.
@@ -387,11 +388,12 @@ def __init__(
387388 if you know the server will not change its tools list, because it can drastically
388389 improve latency (by avoiding a round-trip to the server every time).
389390
390- cache_prompts_list: Whether to cache the prompts list. If `True`, the prompts list will be
391- cached and only fetched from the server once. If `False`, the prompts list will be
392- fetched from the server on each call to `list_prompts()`. The cache can be invalidated
393- by calling `invalidate_prompts_cache()`. You should set this to `True` if you know the
394- server will not change its prompts list, because it can drastically improve latency
391+ cache_prompts_list: Whether to cache the prompts list. If `True`, the prompts list
392+ will be cached and only fetched from the server once. If `False`, the prompts
393+ list will be fetched from the server on each call to `list_prompts()`.
394+ The cache can be invalidated by calling `invalidate_prompts_cache()`.
395+ You should set this to `True` if you know the server will not change
396+ its prompts list, because it can drastically improve latency
395397 (by avoiding a round-trip to the server every time).
396398
397399 name: A readable name for the server. If not provided, we'll create one from the
@@ -480,11 +482,12 @@ def __init__(
480482 if you know the server will not change its tools list, because it can drastically
481483 improve latency (by avoiding a round-trip to the server every time).
482484
483- cache_prompts_list: Whether to cache the prompts list. If `True`, the prompts list will be
484- cached and only fetched from the server once. If `False`, the prompts list will be
485- fetched from the server on each call to `list_prompts()`. The cache can be invalidated
486- by calling `invalidate_prompts_cache()`. You should set this to `True` if you know the
487- server will not change its prompts list, because it can drastically improve latency
485+ cache_prompts_list: Whether to cache the prompts list. If `True`, the prompts list
486+ will be cached and only fetched from the server once. If `False`, the prompts
487+ list will be fetched from the server on each call to `list_prompts()`.
488+ The cache can be invalidated by calling `invalidate_prompts_cache()`.
489+ You should set this to `True` if you know the server will not change
490+ its prompts list, because it can drastically improve latency
488491 (by avoiding a round-trip to the server every time).
489492
490493 name: A readable name for the server. If not provided, we'll create one from the
@@ -575,11 +578,12 @@ def __init__(
575578 if you know the server will not change its tools list, because it can drastically
576579 improve latency (by avoiding a round-trip to the server every time).
577580
578- cache_prompts_list: Whether to cache the prompts list. If `True`, the prompts list will be
579- cached and only fetched from the server once. If `False`, the prompts list will be
580- fetched from the server on each call to `list_prompts()`. The cache can be invalidated
581- by calling `invalidate_prompts_cache()`. You should set this to `True` if you know the
582- server will not change its prompts list, because it can drastically improve latency
581+ cache_prompts_list: Whether to cache the prompts list. If `True`, the prompts list
582+ will be cached and only fetched from the server once. If `False`, the prompts
583+ list will be fetched from the server on each call to `list_prompts()`.
584+ The cache can be invalidated by calling `invalidate_prompts_cache()`.
585+ You should set this to `True` if you know the server will not change
586+ its prompts list, because it can drastically improve latency
583587 (by avoiding a round-trip to the server every time).
584588
585589 name: A readable name for the server. If not provided, we'll create one from the
0 commit comments