Skip to main content
Glama
sirrlock

Sirr MCP Server

by sirrlock

sirr_key_list

List all API keys for the current principal without exposing key values, enabling secure metadata-only secret management.

Instructions

List all API keys for the current principal. Key values are never returned.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler logic for 'sirr_key_list' which fetches API keys from '/me' and formats the output.
    case "sirr_key_list": {
      const me = await sirrRequest<{
        keys: Array<{
          id: string;
          name: string;
          valid_after: number;
          valid_before: number;
          created_at: number;
        }>;
      }>("GET", "/me");
    
      if (!me.keys || me.keys.length === 0) {
        return {
          content: [{ type: "text" as const, text: "No API keys." }],
        };
      }
    
      const lines = me.keys.map(
        (k) =>
          `• ${k.id} — ${k.name} (expires ${new Date(k.valid_before * 1000).toISOString()})`,
      );
    
      return {
        content: [
          {
            type: "text" as const,
            text: `${me.keys.length} API key(s):\n${lines.join("\n")}`,
          },
        ],
      };
  • Registration and schema definition for the 'sirr_key_list' tool.
    {
      name: "sirr_key_list",
      description: "List all API keys for the current principal. Key values are never returned.",
      inputSchema: {
        type: "object" as const,
        properties: {},
      },
    },

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/sirrlock/mcp'

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