@backblaze-labs/b2-mcp
    Preparing search index...

    Interface PromptRegistrar

    Minimal registration interface implemented by PromptRegistrationAdapter.

    Prompt modules depend on this interface so the server can filter reusable workflow prompts against the same credential-derived surface as tools.

    interface PromptRegistrar {
        hasPrompt(name: string): boolean;
        registerPrompt<TArgs = any>(
            name: string,
            config: PromptRegistrationConfig,
            cb: PromptCallback<TArgs>,
        ): void;
    }

    Implemented by

    Index
    • Return whether a prompt has already been registered with this registrar.

      Parameters

      • name: string

        MCP prompt name to check.

      Returns boolean

      true when a matching prompt record exists.

    • Register a prompt with metadata and a callback.

      Type Parameters

      • TArgs = any

      Parameters

      Returns void

      Error when registration happens after commit or duplicates a name.