(
_name: string,
_description: string,
_inputSchema: Schema,
_handler: (
args: InferShape<Schema>,
extra: unknown,
) => Promise<CallToolResult>,
_extras?: {
annotations?: ToolAnnotations
searchHint?: string
alwaysLoad?: boolean
},
)
| 71 | } |
| 72 | |
| 73 | export function tool<Schema extends AnyZodRawShape>( |
| 74 | _name: string, |
| 75 | _description: string, |
| 76 | _inputSchema: Schema, |
| 77 | _handler: ( |
| 78 | args: InferShape<Schema>, |
| 79 | extra: unknown, |
| 80 | ) => Promise<CallToolResult>, |
| 81 | _extras?: { |
| 82 | annotations?: ToolAnnotations |
| 83 | searchHint?: string |
| 84 | alwaysLoad?: boolean |
| 85 | }, |
| 86 | ): SdkMcpToolDefinition<Schema> { |
| 87 | throw new Error('not implemented') |
| 88 | } |
| 89 | |
| 90 | type CreateSdkMcpServerOptions = { |
| 91 | name: string |
nothing calls this directly
no outgoing calls
no test coverage detected