Skip to main content
generateHelpers already types useCallTool and useToolInfo for you. These utilities go one level lower: they pull a tool’s input, output, or name types straight from your server type, so you can type your own components and helpers from the same source of truth.

Example

Type a component’s props from a tool’s output, with no shape to redeclare:

Utilities

Each takes your server type (AppType, that is typeof server), and the tool-specific ones also take a tool name. All import from skybridge/server.

generateHelpers

Typed hooks, the common path

useToolInfo

Read the tool result in the view

McpServer

The server you infer from