Skip to main content
Glama

wake-session

Unlock a SecureCode secrets vault session to access encrypted API keys and passwords. Configure tag-based access restrictions and set auto-sleep timers for security.

Instructions

Wake (unlock) the session to start accessing secrets. Optionally restrict access to specific tag scope and set auto-sleep timer.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
scopeNoTag filters to restrict which secrets are accessible. E.g. [{project:"acme"}]. Omit for all secrets.
autoSleepMinutesNoMinutes of inactivity before auto-sleep. Default: 120 (2 hours).

Implementation Reference

  • The "wake-session" tool is defined in src/index.ts, and it uses the `client.wakeSession` method to unlock the session.
    if (!detected) {
      // No config file found — return key for manual setup
      onboardingToken = null; clearOnboardingTokenFromRc();
      return wrapResponse([{
        type: 'text',
        text: [
          `✓ API key "${keyName}" created.`,
          '',
          'Could not find an MCP config file (.mcp.json or ~/.claude.json).',
          `The API key is: ${newKey}`,
          '',
          'Create a .mcp.json file in your project root or ~/.claude.json with:',
          '```json',
          '{',
          '  "mcpServers": {',
          '    "securecode": {',
          '      "command": "npx",',
          '      "args": ["-y", "@securecode/mcp-server"]',
          '    }',
          '  }',
          '}',
          '```',
          '',
          `Then create a .securecoderc file in your project root with:`,
          `SECURECODE_API_KEY=${newKey}`,
          '',

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