Skip to main content
Glama

get-status

Check your SecureCodeHQ account status, including plan details, usage limits, secrets count, and MCP server version to monitor capacity and verify updates.

Instructions

Get your SecureCodeHQ account status: plan, usage limits, secrets count, and MCP server version. Useful to check remaining capacity and verify the server is up to date.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The get-status tool implementation, which fetches account usage information and server version, formatting it for response.
    // Tool: get-status
    server.tool(
      'get-status',
      'Get your SecureCodeHQ account status: plan, usage limits, secrets count, and MCP server version. Useful to check remaining capacity and verify the server is up to date.',
      {},
      async () => {
        try {
          const client = getClient();
          const usage = await client.getUsage();
          const secretsLimit = usage.maxSecrets === -1 ? 'unlimited' : `${usage.maxSecrets}`;
          const accessLimit = usage.maxAccessesPerMonth === -1 ? 'unlimited' : `${usage.maxAccessesPerMonth}`;
          const lines = [
            `MCP Server: v${MCP_VERSION}`,
            `Plan: ${usage.plan}`,
            `Secrets: ${usage.secretsCount} / ${secretsLimit}`,
            `Accesses this month: ${usage.accessesThisMonth} / ${accessLimit}`,
          ];
          if (usage.alerts && usage.alerts.length > 0) {
            lines.push('', 'Alerts:');
            for (const alert of usage.alerts) {
              lines.push(`  ⚠ ${alert.message}`);
            }
          }
          return wrapResponse([{ type: 'text', text: lines.join('\n') }]);
        } catch (error) {
          return errorResult(error);
        }
      }
    );

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/juanisidoro/securecode-mcp'

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