ConstIdentity helper that locks in per-element inputSchema / outputSchema inference for a
whole tools array defined outside a create_mcp_server / McpRouter call. One wrapper
around the array replaces wrapping every element with define_mcp_tool. Do NOT annotate
the result (or the array) as McpTool[]; the annotation widens every element back to the
default generics and erases the inference this helper provides.
Fixed-arity overloads cover up to twelve tools with full input and output typing; larger
arrays fall back to per-element args inference only, with structuredContent left to the
SDK's runtime validation (see McpToolList).
Identity helper that locks in per-element inputSchema / outputSchema inference for a
whole tools array defined outside a create_mcp_server / McpRouter call. One wrapper
around the array replaces wrapping every element with define_mcp_tool. Do NOT annotate
the result (or the array) as McpTool[]; the annotation widens every element back to the
default generics and erases the inference this helper provides.
Fixed-arity overloads cover up to twelve tools with full input and output typing; larger
arrays fall back to per-element args inference only, with structuredContent left to the
SDK's runtime validation (see McpToolList).
Identity helper that locks in per-element inputSchema / outputSchema inference for a
whole tools array defined outside a create_mcp_server / McpRouter call. One wrapper
around the array replaces wrapping every element with define_mcp_tool. Do NOT annotate
the result (or the array) as McpTool[]; the annotation widens every element back to the
default generics and erases the inference this helper provides.
Fixed-arity overloads cover up to twelve tools with full input and output typing; larger
arrays fall back to per-element args inference only, with structuredContent left to the
SDK's runtime validation (see McpToolList).
Identity helper that locks in per-element inputSchema / outputSchema inference for a
whole tools array defined outside a create_mcp_server / McpRouter call. One wrapper
around the array replaces wrapping every element with define_mcp_tool. Do NOT annotate
the result (or the array) as McpTool[]; the annotation widens every element back to the
default generics and erases the inference this helper provides.
Fixed-arity overloads cover up to twelve tools with full input and output typing; larger
arrays fall back to per-element args inference only, with structuredContent left to the
SDK's runtime validation (see McpToolList).
Identity helper that locks in per-element inputSchema / outputSchema inference for a
whole tools array defined outside a create_mcp_server / McpRouter call. One wrapper
around the array replaces wrapping every element with define_mcp_tool. Do NOT annotate
the result (or the array) as McpTool[]; the annotation widens every element back to the
default generics and erases the inference this helper provides.
Fixed-arity overloads cover up to twelve tools with full input and output typing; larger
arrays fall back to per-element args inference only, with structuredContent left to the
SDK's runtime validation (see McpToolList).
Identity helper that locks in per-element inputSchema / outputSchema inference for a
whole tools array defined outside a create_mcp_server / McpRouter call. One wrapper
around the array replaces wrapping every element with define_mcp_tool. Do NOT annotate
the result (or the array) as McpTool[]; the annotation widens every element back to the
default generics and erases the inference this helper provides.
Fixed-arity overloads cover up to twelve tools with full input and output typing; larger
arrays fall back to per-element args inference only, with structuredContent left to the
SDK's runtime validation (see McpToolList).
Identity helper that locks in per-element inputSchema / outputSchema inference for a
whole tools array defined outside a create_mcp_server / McpRouter call. One wrapper
around the array replaces wrapping every element with define_mcp_tool. Do NOT annotate
the result (or the array) as McpTool[]; the annotation widens every element back to the
default generics and erases the inference this helper provides.
Fixed-arity overloads cover up to twelve tools with full input and output typing; larger
arrays fall back to per-element args inference only, with structuredContent left to the
SDK's runtime validation (see McpToolList).
Identity helper that locks in per-element inputSchema / outputSchema inference for a
whole tools array defined outside a create_mcp_server / McpRouter call. One wrapper
around the array replaces wrapping every element with define_mcp_tool. Do NOT annotate
the result (or the array) as McpTool[]; the annotation widens every element back to the
default generics and erases the inference this helper provides.
Fixed-arity overloads cover up to twelve tools with full input and output typing; larger
arrays fall back to per-element args inference only, with structuredContent left to the
SDK's runtime validation (see McpToolList).
Identity helper that locks in per-element inputSchema / outputSchema inference for a
whole tools array defined outside a create_mcp_server / McpRouter call. One wrapper
around the array replaces wrapping every element with define_mcp_tool. Do NOT annotate
the result (or the array) as McpTool[]; the annotation widens every element back to the
default generics and erases the inference this helper provides.
Fixed-arity overloads cover up to twelve tools with full input and output typing; larger
arrays fall back to per-element args inference only, with structuredContent left to the
SDK's runtime validation (see McpToolList).
Identity helper that locks in per-element inputSchema / outputSchema inference for a
whole tools array defined outside a create_mcp_server / McpRouter call. One wrapper
around the array replaces wrapping every element with define_mcp_tool. Do NOT annotate
the result (or the array) as McpTool[]; the annotation widens every element back to the
default generics and erases the inference this helper provides.
Fixed-arity overloads cover up to twelve tools with full input and output typing; larger
arrays fall back to per-element args inference only, with structuredContent left to the
SDK's runtime validation (see McpToolList).
Identity helper that locks in per-element inputSchema / outputSchema inference for a
whole tools array defined outside a create_mcp_server / McpRouter call. One wrapper
around the array replaces wrapping every element with define_mcp_tool. Do NOT annotate
the result (or the array) as McpTool[]; the annotation widens every element back to the
default generics and erases the inference this helper provides.
Fixed-arity overloads cover up to twelve tools with full input and output typing; larger
arrays fall back to per-element args inference only, with structuredContent left to the
SDK's runtime validation (see McpToolList).
Fallback signature for tools arrays beyond twelve entries; see McpToolList.
Identity helper that locks in per-element
inputSchema/outputSchemainference for a whole tools array defined outside acreate_mcp_server/McpRoutercall. One wrapper around the array replaces wrapping every element withdefine_mcp_tool. Do NOT annotate the result (or the array) asMcpTool[]; the annotation widens every element back to the default generics and erases the inference this helper provides.Fixed-arity overloads cover up to twelve tools with full input and output typing; larger arrays fall back to per-element
argsinference only, withstructuredContentleft to the SDK's runtime validation (seeMcpToolList).