Skip to main content
Glama

keychain_get_totp

Retrieve TOTP codes or seeds from Bitwarden vaults using search terms to generate time-based one-time passwords for secure authentication.

Instructions

Get a TOTP code/seed by search term (bw get totp). Returning a TOTP requires reveal=true.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
termYes
revealNo

Implementation Reference

  • The tool `${deps.toolPrefix}.get_totp` is registered here, and its handler implementation directly follows. It interacts with the `sdk.getTotp` method. Note: The tool registration uses the prefix `deps.toolPrefix`, so the final name is `keychain_get_totp` assuming `toolPrefix` is `keychain`.
      `${deps.toolPrefix}.get_totp`,
      {
        title: 'Get TOTP',
        description:
          'Get a TOTP code/seed by search term (bw get totp). Returning a TOTP requires reveal=true.',
        annotations: { readOnlyHint: true },
        inputSchema: {
          term: z.string(),
          reveal: z.boolean().optional(),
        },
        _meta: toolMeta,
      },
      async (input, extra) => {
        const sdk = await deps.getSdk(extra.authInfo);
        const totp = await sdk.getTotp(
          { term: input.term },
          { reveal: effectiveReveal(input) },
        );
        return {
          structuredContent: toolResult('totp', totp.value, totp.revealed, {
            period: totp.period,
            timeLeft: totp.timeLeft,
          }),
          content: [{ type: 'text', text: 'OK' }],
        };
      },
    );

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/icoretech/warden-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server