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
| Name | Required | Description | Default |
|---|---|---|---|
| scope | No | Tag filters to restrict which secrets are accessible. E.g. [{project:"acme"}]. Omit for all secrets. | |
| autoSleepMinutes | No | Minutes of inactivity before auto-sleep. Default: 120 (2 hours). |
Implementation Reference
- src/index.ts:1223-1248 (handler)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}`, '',