Skip to main content
Glama

sleep-session

Lock your SecureCode session to block all secret access. Use this tool when finishing work to protect API keys, tokens, and passwords until you wake the session again.

Instructions

Lock the session immediately. All secret access will be blocked until you wake it again. Use this when you finish working.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Implementation of the "sleep-session" tool, which locks the current session and cleans up local secret files.
          const allText = [sections.tools, sections.sdk, sections.sessions, sections.rules, sections['import-export'], sections.troubleshooting].join('\n\n---\n\n');
          return wrapResponse([{ type: 'text', text: `# SecureCode Help\n\n${allText}` }]);
        }
    
        const section = sections[t];
        if (!section) {
          return wrapResponse([{ type: 'text', text: `Unknown topic: ${t}. Available: tools, sdk, sessions, rules, import-export, troubleshooting` }], true);
        }
    
        return wrapResponse([{ type: 'text', text: section }]);
      },
    );
    
    async function main() {
      const transport = new StdioServerTransport();
      await server.connect(transport);
    }
    
    main().catch(console.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