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
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:2150-2168 (handler)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);