Skip to main content
Glama

keychain_set_login_uris

Configure or modify URIs and match types for a login item in your vault, using replace or merge modes to manage access rules.

Instructions

Set or update the URIs (and per-URI match types) for a login item. mode=replace overwrites; mode=merge updates/adds by uri.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYes
modeNo
urisYes
revealNo

Implementation Reference

  • Tool registration and handler implementation for 'keychain_set_login_uris' in src/tools/registerTools.ts.
      `${deps.toolPrefix}.set_login_uris`,
      {
        title: 'Set Login URIs',
        description:
          'Set or update the URIs (and per-URI match types) for a login item. mode=replace overwrites; mode=merge updates/adds by uri.',
        inputSchema: {
          id: z.string(),
          mode: z.enum(['replace', 'merge']).optional(),
          uris: z.array(
            z.object({
              uri: z.string(),
              match: uriMatchInputSchema.optional(),
            }),
          ),
          reveal: z.boolean().optional(),
        },
        _meta: toolMeta,
      },
      async (input, extra) => {
        if (isReadOnly) return readonlyBlocked();
        const sdk = await deps.getSdk(extra.authInfo);
        const updated = await sdk.setLoginUris({
          id: input.id,
          mode: input.mode,
          uris: normalizeUrisInput(input.uris) ?? [],
          reveal: effectiveReveal(input),
        });
        return {
          structuredContent: { item: updated },
          content: [{ type: 'text', text: 'Updated.' }],
        };
      },
    );

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