mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-23 05:54:19 +02:00
Ensure result is only returned if a new key was found
This commit is contained in:
parent
729e8635ee
commit
fc917993fe
1 changed files with 1 additions and 1 deletions
|
|
@ -418,7 +418,7 @@ class FastMCP(Generic[LifespanResultT]):
|
|||
for server in self._mounted_servers.values():
|
||||
if server.match_prompt(name):
|
||||
new_key = server.strip_prompt_prefix(name)
|
||||
return await server.server._mcp_get_prompt(new_key, arguments)
|
||||
return await server.server._mcp_get_prompt(new_key, arguments)
|
||||
else:
|
||||
raise NotFoundError(f"Unknown prompt: {name}")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue