mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-09 07:09:11 +02:00
Fix ruff format
🤖 Generated with Claude Code
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
872ea73628
commit
e1b2c36e51
2 changed files with 3 additions and 8 deletions
|
|
@ -621,9 +621,7 @@ class FastMCP(
|
|||
)
|
||||
|
||||
# Core logic: list tools
|
||||
with server_span(
|
||||
"tools/list", "tools/list", self.name, "tool", ""
|
||||
):
|
||||
with server_span("tools/list", "tools/list", self.name, "tool", ""):
|
||||
# Get all tools, apply session transforms, then filter enabled
|
||||
# and model-visible (app-only tools are hidden from the model).
|
||||
tools = list(await super().list_tools())
|
||||
|
|
@ -1028,9 +1026,7 @@ class FastMCP(
|
|||
)
|
||||
|
||||
# Core logic: list prompts
|
||||
with server_span(
|
||||
"prompts/list", "prompts/list", self.name, "prompt", ""
|
||||
):
|
||||
with server_span("prompts/list", "prompts/list", self.name, "prompt", ""):
|
||||
# Get all prompts, apply session transforms, then filter enabled
|
||||
prompts = list(await super().list_prompts())
|
||||
prompts = await apply_session_transforms(prompts)
|
||||
|
|
|
|||
|
|
@ -70,8 +70,7 @@ class TestClientListToolsTracing:
|
|||
(
|
||||
s
|
||||
for s in tools_list_spans
|
||||
if s.attributes is not None
|
||||
and "fastmcp.server.name" in s.attributes
|
||||
if s.attributes is not None and "fastmcp.server.name" in s.attributes
|
||||
),
|
||||
None,
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue