{"at":"2026-11-23T01:41:36.417Z","dir":"sent","era":"server_discover","message":{"id":1,"jsonrpc":"2.0","method":"server/discover","params":{"_meta":{"io.modelcontextprotocol/clientCapabilities":{},"io.modelcontextprotocol/clientInfo":{"name":"didrun-lab","version":"0.1.0"},"io.modelcontextprotocol/protocolVersion":"2026-07-28"}}}}
{"at":"2026-11-23T01:41:36.843Z","dir":"received","era":"server_discover","message":{"error":{"code":-32601,"message":"Method not found"},"id":1,"jsonrpc":"2.0"}}
{"at":"2026-11-23T01:41:36.944Z","dir":"sent","era":"initialize","message":{"id":1,"jsonrpc":"2.0","method":"initialize","params":{"capabilities":{},"clientInfo":{"name":"didrun-lab","version":"0.1.0"},"protocolVersion":"2025-11-25"}}}
{"at":"2026-11-23T01:41:37.361Z","dir":"received","era":"initialize","message":{"id":1,"jsonrpc":"2.0","result":{"capabilities":{"tools":{"listChanged":true}},"protocolVersion":"2025-11-25","serverInfo":{"name":"securecode","version":"0.15.2"}}}}
{"at":"2026-11-23T01:41:37.361Z","dir":"sent","era":"initialize","message":{"jsonrpc":"2.0","method":"notifications/initialized"}}
{"at":"2026-11-23T01:41:37.361Z","dir":"sent","era":"initialize","message":{"id":2,"jsonrpc":"2.0","method":"tools/list","params":{}}}
{"at":"2026-11-23T01:41:37.364Z","dir":"received","era":"initialize","message":{"id":2,"jsonrpc":"2.0","result":{"tools":[{"description":"Get a secret by name. By default, injects the value into a local file so it never appears in the AI conversation. Use reveal:true to see the raw value (audited as conscious action). Use cleanup:true to remove all injected secrets from disk.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"cleanup":{"description":"If true, removes all injected secret files from disk","type":"boolean"},"name":{"description":"The exact name of the secret (e.g. STRIPE_SECRET_KEY)","type":"string"},"reveal":{"description":"If true, returns the raw value in the conversation (audited as reveal). Default: false (inject mode — value written to local file, never shown)","type":"boolean"},"tags":{"additionalProperties":{"type":"string"},"description":"Filter tags to disambiguate same-name secrets, e.g. { \"env\": \"production\", \"project\": \"acme\" }","type":"object"}},"type":"object"},"name":"get-secret"},{"description":"List all available secrets with their tags and expiration status. Returns names and metadata, never values.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"tags":{"additionalProperties":{"type":"string"},"description":"Filter by tags, e.g. { \"env\": \"production\", \"project\": \"acme\" }","type":"object"}},"type":"object"},"name":"list-secrets"},{"description":"Create a new secret. Secrets with the same name can coexist if they have different env tags.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"description":{"description":"Human-readable description of what this secret is for","type":"string"},"domain":{"description":"Associated domain for browser extension, e.g. \"api.stripe.com\"","type":"string"},"name":{"description":"Name for the secret (e.g. STRIPE_SECRET_KEY)","type":"string"},"tags":{"additionalProperties":{"type":"string"},"description":"Tags as key:value pairs, e.g. { \"env\": \"production\", \"project\": \"acme\" }","type":"object"},"ttlHours":{"description":"Time-to-live in hours. Omit for permanent (no expiry)","exclusiveMinimum":0,"type":"number"},"value":{"description":"The secret value to encrypt and store","type":"string"}},"required":["name","value"],"type":"object"},"name":"create-secret"},{"description":"Renew an expired secret or change its TTL. Use this to reactivate expired secrets or extend expiration.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"name":{"description":"The name of the secret to renew","type":"string"},"tags":{"additionalProperties":{"type":"string"},"description":"Filter tags to disambiguate same-name secrets","type":"object"},"ttlHours":{"description":"New TTL in hours. Omit to make permanent (no expiry)","exclusiveMinimum":0,"type":"number"}},"required":["name"],"type":"object"},"name":"renew-secret"},{"description":"Delete a secret (soft delete, can be recovered)","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"name":{"description":"The name of the secret to delete","type":"string"},"tags":{"additionalProperties":{"type":"string"},"description":"Filter tags to disambiguate same-name secrets","type":"object"}},"required":["name"],"type":"object"},"name":"delete-secret"},{"description":"Update an existing secret's value, description, tags, or domain. Only provided fields are changed.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"description":{"description":"New description","type":"string"},"domain":{"description":"New domain","type":"string"},"filterTags":{"additionalProperties":{"type":"string"},"description":"Filter tags to disambiguate same-name secrets (different from the \"tags\" field which sets new tags)","type":"object"},"name":{"description":"The name of the secret to update","type":"string"},"tags":{"additionalProperties":{"type":"string"},"description":"New tags (replaces ALL existing tags)","type":"object"},"value":{"description":"New secret value (omit to keep current value)","type":"string"}},"required":["name"],"type":"object"},"name":"update-secret"},{"description":"Import secrets from .env files into SecureCode. For security, .env import must be done through the web interface — the AI agent never sees secret values during import. This tool provides the link to the import page.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{},"type":"object"},"name":"import-env"},{"description":"Export all secrets as .env or CSV format. Returns the full content with decrypted values.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"format":{"description":"Export format: \"env\" (default) or \"csv\"","enum":["env","csv"],"type":"string"},"tags":{"additionalProperties":{"type":"string"},"description":"Filter by tags, e.g. { \"env\": \"production\" }","type":"object"}},"type":"object"},"name":"export-env"},{"description":"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.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{},"type":"object"},"name":"get-status"},{"description":"Wake (unlock) the session to start accessing secrets. Optionally restrict access to specific tag scope and set auto-sleep timer.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"autoSleepMinutes":{"description":"Minutes of inactivity before auto-sleep. Default: 120 (2 hours).","maximum":1440,"minimum":1,"type":"integer"},"scope":{"description":"Tag filters to restrict which secrets are accessible. E.g. [{project:\"acme\"}]. Omit for all secrets.","items":{"additionalProperties":{"type":"string"},"type":"object"},"type":"array"}},"type":"object"},"name":"wake-session"},{"description":"Lock the session immediately. All secret access will be blocked until you wake it again. Use this when you finish working.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{},"type":"object"},"name":"sleep-session"},{"description":"Check the current session status: active or sleeping, scope restrictions, and time remaining before auto-sleep.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{},"type":"object"},"name":"session-status"},{"description":"End your work session. Locks the session, cleans up all injected secrets from disk, and says goodbye. Use this when you finish working for the day.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{},"type":"object"},"name":"byebye"},{"description":"List active MCP access rules. Read-only — rules can only be created or modified from the dashboard. Use this to understand why access to a secret was blocked.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{},"type":"object"},"name":"get-active-rules"},{"description":"Start or continue the SecureCode onboarding. Guides the user through signup, .env import, API key creation, MCP configuration, and optional SDK setup — all from Claude Code. Call this tool multiple times to progress through the steps.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"action":{"description":"Action to perform. \"start\" (default) progresses through signup/import steps. \"configure-auto\" lets the agent write the API key to the MCP config file automatically. \"configure-manual\" shows the API key so the user can configure it themselves. \"setup-sdk\" returns SDK installation instructions for the agent to execute. \"add-environment\" guides through adding secrets for a new environment (e.g., production) without repeating the full onboarding. \"select-secrets\" lists existing secrets in the vault by tags so the user can select which ones to use (recovery/skip import).","enum":["start","configure-auto","configure-manual","setup-sdk","add-environment","select-secrets"],"type":"string"},"configPath":{"description":"Path to the MCP config file (.mcp.json or claude.json). Only needed for configure-auto if auto-detection fails.","type":"string"},"selectedEnv":{"description":"Environment tag selected by user (from select-secrets action). Used to configure .securecoderc.","type":"string"},"selectedProject":{"description":"Project tag selected by user (from select-secrets action). Used to configure .securecoderc.","type":"string"}},"type":"object"},"name":"onboard"},{"description":"Analyze the project for security issues after SecureCode setup. Returns a list of actions the agent MUST execute to protect secrets. Call this after SDK installation.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{},"type":"object"},"name":"security-check"},{"description":"Get SecureCode documentation: available tools, usage patterns, SDK setup, and common workflows. Use this to understand how to help the user with SecureCode.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"topic":{"description":"Documentation topic. Default: \"all\"","enum":["all","tools","sdk","sessions","rules","import-export","troubleshooting"],"type":"string"}},"type":"object"},"name":"help"}]}}}
