mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-20 15:33:54 +00:00
chore(mcp): drop stale input_schema comment on add_tool call
Review nit from verification: the comment claimed newer FastMCP accepts a JSON schema kwarg — the installed SDK's add_tool has no such parameter; the synthesized __signature__ is what drives schema generation on both paths.
This commit is contained in:
parent
3ad5876feb
commit
f0a8e45cdc
1 changed files with 3 additions and 4 deletions
|
|
@ -227,12 +227,11 @@ def _build_server() -> Any:
|
|||
_make_handler(name, params_schema),
|
||||
name=name,
|
||||
description=description,
|
||||
# FastMCP accepts JSON schema directly via the
|
||||
# input_schema parameter on newer versions; older
|
||||
# versions use parameters_schema. Try both for compat.
|
||||
)
|
||||
except TypeError:
|
||||
# Older mcp SDK signature — fall back to decorator-style.
|
||||
# Older mcp SDK signature — fall back to decorator-style. The
|
||||
# synthesized __signature__ on the handler still drives schema
|
||||
# generation there.
|
||||
handler = _make_handler(name, params_schema)
|
||||
handler = mcp.tool(name=name, description=description)(handler)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue