Spaces:
Running
Running
Jeremiah Lowin commited on
Commit ·
d3e7c9f
1
Parent(s): cdb0274
Update server.py
Browse files
src/fastmcp/server/server.py
CHANGED
|
@@ -988,6 +988,7 @@ class FastMCP(Generic[LifespanResultT]):
|
|
| 988 |
from fastmcp.server.proxy import FastMCPProxy
|
| 989 |
|
| 990 |
if tool_separator is not None:
|
|
|
|
| 991 |
warnings.warn(
|
| 992 |
"The tool_separator parameter is deprecated and will be removed in a future version. "
|
| 993 |
"Tools are now prefixed using 'prefix_toolname' format.",
|
|
@@ -996,6 +997,7 @@ class FastMCP(Generic[LifespanResultT]):
|
|
| 996 |
)
|
| 997 |
|
| 998 |
if resource_separator is not None:
|
|
|
|
| 999 |
warnings.warn(
|
| 1000 |
"The resource_separator parameter is deprecated and ignored. "
|
| 1001 |
"Resource prefixes are now added using the protocol://prefix/path format.",
|
|
@@ -1004,6 +1006,7 @@ class FastMCP(Generic[LifespanResultT]):
|
|
| 1004 |
)
|
| 1005 |
|
| 1006 |
if prompt_separator is not None:
|
|
|
|
| 1007 |
warnings.warn(
|
| 1008 |
"The prompt_separator parameter is deprecated and will be removed in a future version. "
|
| 1009 |
"Prompts are now prefixed using 'prefix_promptname' format.",
|
|
@@ -1070,6 +1073,7 @@ class FastMCP(Generic[LifespanResultT]):
|
|
| 1070 |
prompt_separator: Deprecated. Separator for prompt names.
|
| 1071 |
"""
|
| 1072 |
if tool_separator is not None:
|
|
|
|
| 1073 |
warnings.warn(
|
| 1074 |
"The tool_separator parameter is deprecated and will be removed in a future version. "
|
| 1075 |
"Tools are now prefixed using 'prefix_toolname' format.",
|
|
@@ -1078,6 +1082,7 @@ class FastMCP(Generic[LifespanResultT]):
|
|
| 1078 |
)
|
| 1079 |
|
| 1080 |
if resource_separator is not None:
|
|
|
|
| 1081 |
warnings.warn(
|
| 1082 |
"The resource_separator parameter is deprecated and ignored. "
|
| 1083 |
"Resource prefixes are now added using the protocol://prefix/path format.",
|
|
@@ -1086,6 +1091,7 @@ class FastMCP(Generic[LifespanResultT]):
|
|
| 1086 |
)
|
| 1087 |
|
| 1088 |
if prompt_separator is not None:
|
|
|
|
| 1089 |
warnings.warn(
|
| 1090 |
"The prompt_separator parameter is deprecated and will be removed in a future version. "
|
| 1091 |
"Prompts are now prefixed using 'prefix_promptname' format.",
|
|
|
|
| 988 |
from fastmcp.server.proxy import FastMCPProxy
|
| 989 |
|
| 990 |
if tool_separator is not None:
|
| 991 |
+
# Deprecated since 2.3.6
|
| 992 |
warnings.warn(
|
| 993 |
"The tool_separator parameter is deprecated and will be removed in a future version. "
|
| 994 |
"Tools are now prefixed using 'prefix_toolname' format.",
|
|
|
|
| 997 |
)
|
| 998 |
|
| 999 |
if resource_separator is not None:
|
| 1000 |
+
# Deprecated since 2.3.6
|
| 1001 |
warnings.warn(
|
| 1002 |
"The resource_separator parameter is deprecated and ignored. "
|
| 1003 |
"Resource prefixes are now added using the protocol://prefix/path format.",
|
|
|
|
| 1006 |
)
|
| 1007 |
|
| 1008 |
if prompt_separator is not None:
|
| 1009 |
+
# Deprecated since 2.3.6
|
| 1010 |
warnings.warn(
|
| 1011 |
"The prompt_separator parameter is deprecated and will be removed in a future version. "
|
| 1012 |
"Prompts are now prefixed using 'prefix_promptname' format.",
|
|
|
|
| 1073 |
prompt_separator: Deprecated. Separator for prompt names.
|
| 1074 |
"""
|
| 1075 |
if tool_separator is not None:
|
| 1076 |
+
# Deprecated since 2.3.6
|
| 1077 |
warnings.warn(
|
| 1078 |
"The tool_separator parameter is deprecated and will be removed in a future version. "
|
| 1079 |
"Tools are now prefixed using 'prefix_toolname' format.",
|
|
|
|
| 1082 |
)
|
| 1083 |
|
| 1084 |
if resource_separator is not None:
|
| 1085 |
+
# Deprecated since 2.3.6
|
| 1086 |
warnings.warn(
|
| 1087 |
"The resource_separator parameter is deprecated and ignored. "
|
| 1088 |
"Resource prefixes are now added using the protocol://prefix/path format.",
|
|
|
|
| 1091 |
)
|
| 1092 |
|
| 1093 |
if prompt_separator is not None:
|
| 1094 |
+
# Deprecated since 2.3.6
|
| 1095 |
warnings.warn(
|
| 1096 |
"The prompt_separator parameter is deprecated and will be removed in a future version. "
|
| 1097 |
"Prompts are now prefixed using 'prefix_promptname' format.",
|