Remove FastMCP server tags

This commit is contained in:
Jeremiah Lowin 2025-06-10 21:01:12 -04:00
commit b88c7c5a0c
2 changed files with 0 additions and 5 deletions

View file

@ -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)
)

View file

@ -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."""