mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-27 07:50:43 +02:00
Remove FastMCP server tags
This commit is contained in:
parent
1504e8aae2
commit
b88c7c5a0c
2 changed files with 0 additions and 5 deletions
|
|
@ -121,7 +121,6 @@ class FastMCP(Generic[LifespanResultT]):
|
|||
]
|
||||
| None
|
||||
) = None,
|
||||
tags: set[str] | None = None,
|
||||
tool_serializer: Callable[[Any], str] | None = None,
|
||||
cache_expiration_seconds: float | None = None,
|
||||
on_duplicate_tools: DuplicateBehavior | None = None,
|
||||
|
|
@ -152,8 +151,6 @@ class FastMCP(Generic[LifespanResultT]):
|
|||
resource_prefix_format or fastmcp.settings.resource_prefix_format
|
||||
)
|
||||
|
||||
self.tags: set[str] = tags or set()
|
||||
|
||||
self._cache = TimedCache(
|
||||
expiration=datetime.timedelta(seconds=cache_expiration_seconds or 0)
|
||||
)
|
||||
|
|
|
|||
|
|
@ -175,7 +175,6 @@ class TestDeprecatedServerInitKwargs:
|
|||
server = FastMCP(
|
||||
name="TestServer",
|
||||
instructions="Test instructions",
|
||||
tags={"test", "server"},
|
||||
cache_expiration_seconds=60.0,
|
||||
on_duplicate_tools="warn",
|
||||
on_duplicate_resources="error",
|
||||
|
|
@ -193,7 +192,6 @@ class TestDeprecatedServerInitKwargs:
|
|||
# Verify server was created successfully
|
||||
assert server.name == "TestServer"
|
||||
assert server.instructions == "Test instructions"
|
||||
assert server.tags == {"test", "server"}
|
||||
|
||||
def test_none_values_no_warnings(self):
|
||||
"""Test that None values for deprecated kwargs don't raise warnings."""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue