@gibme/webserver
    Preparing search index...

    Variable PromptConst

    Prompt: <PromptArgsType extends ZodRawShapeCompat = ZodRawShapeCompat>(
        prompt: McpPrompt<PromptArgsType>,
    ) => McpPrompt<PromptArgsType> = define_mcp_prompt

    Type Declaration

      • <PromptArgsType extends ZodRawShapeCompat = ZodRawShapeCompat>(
            prompt: McpPrompt<PromptArgsType>,
        ): McpPrompt<PromptArgsType>
      • Identity helper that locks in argsSchema inference for an inline prompt descriptor. Use when writing prompts as array elements of prompts: McpPrompt[], where the array element type otherwise falls back to the default ZodRawShapeCompat generic and widens the args parameter passed to callback. Wrapping with define_mcp_prompt({...}) causes TS to solve PromptArgsType from the literal argsSchema before checking the callback body, so args is typed precisely against the declared shape.

        Type Parameters

        • PromptArgsType extends ZodRawShapeCompat = ZodRawShapeCompat

        Parameters

        Returns McpPrompt<PromptArgsType>