{"at":"2026-11-23T01:02:08.229Z","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:02:09.139Z","dir":"received","era":"server_discover","message":{"id":1,"jsonrpc":"2.0","result":{"_meta":{"io.modelcontextprotocol/serverInfo":{"name":"pyobfus","version":"0.3.17"}},"cacheScope":"private","capabilities":{"prompts":{"listChanged":true},"resources":{"listChanged":true,"subscribe":true},"tools":{"listChanged":true}},"resultType":"complete","supportedVersions":["2026-07-28"],"ttlMs":0}}}
{"at":"2026-11-23T01:02:09.139Z","dir":"sent","era":"server_discover","message":{"id":2,"jsonrpc":"2.0","method":"tools/list","params":{"_meta":{"io.modelcontextprotocol/clientCapabilities":{},"io.modelcontextprotocol/protocolVersion":"2026-07-28"}}}}
{"at":"2026-11-23T01:02:09.141Z","dir":"received","era":"server_discover","message":{"id":2,"jsonrpc":"2.0","result":{"_meta":{"io.modelcontextprotocol/serverInfo":{"name":"pyobfus","version":"0.3.17"}},"cacheScope":"private","resultType":"complete","tools":[{"_meta":{"tier":"community","version":"1"},"description":"One call to protect a Python project end-to-end AND verify it still works: scans risks, picks a framework-aware preset, obfuscates, then byte-compiles + import-smoke-tests the output in isolated subprocesses and returns verified:true/false. Writes a private de-obfuscation mapping alongside (not inside) the output. Use this when the user wants to 'protect/obfuscate before shipping' and expects a green check, not just a transform.","inputSchema":{"properties":{"output_dir":{"default":"dist","title":"Output Dir","type":"string"},"path":{"title":"Path","type":"string"},"preset":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Preset"},"save_mapping":{"default":true,"title":"Save Mapping","type":"boolean"},"timeout":{"default":120,"title":"Timeout","type":"integer"},"trace_marker":{"default":true,"title":"Trace Marker","type":"boolean"},"verify":{"default":true,"title":"Verify","type":"boolean"},"verify_cmd":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Verify Cmd"}},"required":["path"],"title":"_protect_projectArguments","type":"object"},"name":"protect_project","outputSchema":{"properties":{"result":{"additionalProperties":true,"title":"Result","type":"object"}},"required":["result"],"title":"_protect_projectOutput","type":"object"}},{"_meta":{"tier":"community","version":"1"},"description":"Scan a Python project for patterns that may break obfuscation (eval/exec, dynamic attribute access, framework reflection, unsafe model loading). Returns severity counts, detected frameworks (FastAPI/Django/Flask/Pydantic/Click/SQLAlchemy/ML), and a suggested preset. Also locates requirements*.txt / pyproject.toml and, only if verify_dependencies_online=true, checks each declared dependency against public PyPI to flag AI-hallucinated ('slopsquatting') package names -- off by default, this tool makes no outbound network calls unless you opt in. By default the scan honors the project's pyobfus config; set use_project_config=false for the legacy config-free scan.","inputSchema":{"properties":{"path":{"title":"Path","type":"string"},"use_project_config":{"default":true,"title":"Use Project Config","type":"boolean"},"verify_dependencies_online":{"default":false,"title":"Verify Dependencies Online","type":"boolean"}},"required":["path"],"title":"_checkArguments","type":"object"},"name":"check_obfuscation_risks","outputSchema":{"properties":{"result":{"additionalProperties":true,"title":"Result","type":"object"}},"required":["result"],"title":"_checkOutput","type":"object"}},{"_meta":{"tier":"community","version":"1"},"description":"Generate a pyobfus.yaml for a Python project. Auto-detects frameworks and applies the matching preset. By default returns the YAML text without writing to disk; set write=true to persist.","inputSchema":{"properties":{"path":{"title":"Path","type":"string"},"preset_override":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Preset Override"},"write":{"default":false,"title":"Write","type":"boolean"}},"required":["path"],"title":"_initArguments","type":"object"},"name":"generate_pyobfus_config","outputSchema":{"properties":{"result":{"additionalProperties":true,"title":"Result","type":"object"}},"required":["result"],"title":"_initOutput","type":"object"}},{"_meta":{"tier":"community","version":"1"},"description":"Reverse obfuscated identifiers in a stack trace using a pyobfus mapping.json. Accepts the trace as plain text and the path to a mapping file produced by --save-mapping.","inputSchema":{"properties":{"mapping_path":{"title":"Mapping Path","type":"string"},"trace":{"title":"Trace","type":"string"}},"required":["trace","mapping_path"],"title":"_unmapArguments","type":"object"},"name":"unmap_stack_trace","outputSchema":{"properties":{"result":{"additionalProperties":true,"title":"Result","type":"object"}},"required":["result"],"title":"_unmapOutput","type":"object"}},{"_meta":{"tier":"community","version":"1"},"description":"Check an output directory or .whl right before shipping: fails on a pyobfus mapping file, a private key or an original source file inside it, and warns about Python files the build did not produce or Pro options the build skipped. Pass the build's --build-report and --provenance-manifest JSON for the full check. Read-only: files are hashed, never imported or executed, and contents are not returned.","inputSchema":{"properties":{"build_report":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Build Report"},"path":{"title":"Path","type":"string"},"provenance_manifest":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Provenance Manifest"}},"required":["path"],"title":"_check_deliveryArguments","type":"object"},"name":"check_delivery","outputSchema":{"properties":{"result":{"additionalProperties":true,"title":"Result","type":"object"}},"required":["result"],"title":"_check_deliveryOutput","type":"object"}},{"_meta":{"tier":"community","version":"1"},"description":"List every pyobfus preset available, grouped by tier (community / framework-aware / Pro).","inputSchema":{"properties":{},"title":"_listArguments","type":"object"},"name":"list_presets","outputSchema":{"properties":{"result":{"additionalProperties":true,"title":"Result","type":"object"}},"required":["result"],"title":"_listOutput","type":"object"}},{"_meta":{"tier":"community","version":"1"},"description":"Describe what a named preset changes: exclude names count, exclude patterns, preserve_param_names, docstring handling. For Pro presets, returns full pro_unlock metadata (trial command, checkout URL, price, money-back guarantee).","inputSchema":{"properties":{"name":{"title":"Name","type":"string"}},"required":["name"],"title":"_explainArguments","type":"object"},"name":"explain_preset","outputSchema":{"properties":{"result":{"additionalProperties":true,"title":"Result","type":"object"}},"required":["result"],"title":"_explainOutput","type":"object"}},{"_meta":{"tier":"pro_funnel","version":"1"},"description":"Analyze a Python project and recommend pyobfus tier (community vs Pro) with reasons. Combines a preflight scan with a sensitive-string-literal heuristic. Returns free_action and pro_action with concrete next-step commands.","inputSchema":{"properties":{"path":{"title":"Path","type":"string"}},"required":["path"],"title":"_recommend_tierArguments","type":"object"},"name":"recommend_tier","outputSchema":{"properties":{"result":{"additionalProperties":true,"title":"Result","type":"object"}},"required":["result"],"title":"_recommend_tierOutput","type":"object"}},{"_meta":{"tier":"pro_funnel","version":"1"},"description":"Return structured guidance for starting the 5-day pyobfus Pro trial. Does NOT invoke the side effect — the user runs `pyobfus-trial start` in their shell. Detects whether a trial is already active and surfaces the appropriate next step plus post-trial purchase URL.","inputSchema":{"properties":{},"title":"_start_pro_trialArguments","type":"object"},"name":"start_pro_trial","outputSchema":{"properties":{"result":{"additionalProperties":true,"title":"Result","type":"object"}},"required":["result"],"title":"_start_pro_trialOutput","type":"object"}}],"ttlMs":0}}}
{"at":"2026-11-23T01:02:09.342Z","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:02:10.251Z","dir":"received","era":"initialize","message":{"id":1,"jsonrpc":"2.0","result":{"capabilities":{"prompts":{"listChanged":false},"resources":{"listChanged":false,"subscribe":false},"tools":{"listChanged":false}},"protocolVersion":"2025-11-25","serverInfo":{"name":"pyobfus","version":"0.3.17"}}}}
{"at":"2026-11-23T01:02:10.251Z","dir":"sent","era":"initialize","message":{"jsonrpc":"2.0","method":"notifications/initialized"}}
{"at":"2026-11-23T01:02:10.251Z","dir":"sent","era":"initialize","message":{"id":2,"jsonrpc":"2.0","method":"tools/list","params":{}}}
{"at":"2026-11-23T01:02:10.252Z","dir":"received","era":"initialize","message":{"id":2,"jsonrpc":"2.0","result":{"tools":[{"_meta":{"tier":"community","version":"1"},"description":"One call to protect a Python project end-to-end AND verify it still works: scans risks, picks a framework-aware preset, obfuscates, then byte-compiles + import-smoke-tests the output in isolated subprocesses and returns verified:true/false. Writes a private de-obfuscation mapping alongside (not inside) the output. Use this when the user wants to 'protect/obfuscate before shipping' and expects a green check, not just a transform.","inputSchema":{"properties":{"output_dir":{"default":"dist","title":"Output Dir","type":"string"},"path":{"title":"Path","type":"string"},"preset":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Preset"},"save_mapping":{"default":true,"title":"Save Mapping","type":"boolean"},"timeout":{"default":120,"title":"Timeout","type":"integer"},"trace_marker":{"default":true,"title":"Trace Marker","type":"boolean"},"verify":{"default":true,"title":"Verify","type":"boolean"},"verify_cmd":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Verify Cmd"}},"required":["path"],"title":"_protect_projectArguments","type":"object"},"name":"protect_project","outputSchema":{"properties":{"result":{"additionalProperties":true,"title":"Result","type":"object"}},"required":["result"],"title":"_protect_projectOutput","type":"object"}},{"_meta":{"tier":"community","version":"1"},"description":"Scan a Python project for patterns that may break obfuscation (eval/exec, dynamic attribute access, framework reflection, unsafe model loading). Returns severity counts, detected frameworks (FastAPI/Django/Flask/Pydantic/Click/SQLAlchemy/ML), and a suggested preset. Also locates requirements*.txt / pyproject.toml and, only if verify_dependencies_online=true, checks each declared dependency against public PyPI to flag AI-hallucinated ('slopsquatting') package names -- off by default, this tool makes no outbound network calls unless you opt in. By default the scan honors the project's pyobfus config; set use_project_config=false for the legacy config-free scan.","inputSchema":{"properties":{"path":{"title":"Path","type":"string"},"use_project_config":{"default":true,"title":"Use Project Config","type":"boolean"},"verify_dependencies_online":{"default":false,"title":"Verify Dependencies Online","type":"boolean"}},"required":["path"],"title":"_checkArguments","type":"object"},"name":"check_obfuscation_risks","outputSchema":{"properties":{"result":{"additionalProperties":true,"title":"Result","type":"object"}},"required":["result"],"title":"_checkOutput","type":"object"}},{"_meta":{"tier":"community","version":"1"},"description":"Generate a pyobfus.yaml for a Python project. Auto-detects frameworks and applies the matching preset. By default returns the YAML text without writing to disk; set write=true to persist.","inputSchema":{"properties":{"path":{"title":"Path","type":"string"},"preset_override":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Preset Override"},"write":{"default":false,"title":"Write","type":"boolean"}},"required":["path"],"title":"_initArguments","type":"object"},"name":"generate_pyobfus_config","outputSchema":{"properties":{"result":{"additionalProperties":true,"title":"Result","type":"object"}},"required":["result"],"title":"_initOutput","type":"object"}},{"_meta":{"tier":"community","version":"1"},"description":"Reverse obfuscated identifiers in a stack trace using a pyobfus mapping.json. Accepts the trace as plain text and the path to a mapping file produced by --save-mapping.","inputSchema":{"properties":{"mapping_path":{"title":"Mapping Path","type":"string"},"trace":{"title":"Trace","type":"string"}},"required":["trace","mapping_path"],"title":"_unmapArguments","type":"object"},"name":"unmap_stack_trace","outputSchema":{"properties":{"result":{"additionalProperties":true,"title":"Result","type":"object"}},"required":["result"],"title":"_unmapOutput","type":"object"}},{"_meta":{"tier":"community","version":"1"},"description":"Check an output directory or .whl right before shipping: fails on a pyobfus mapping file, a private key or an original source file inside it, and warns about Python files the build did not produce or Pro options the build skipped. Pass the build's --build-report and --provenance-manifest JSON for the full check. Read-only: files are hashed, never imported or executed, and contents are not returned.","inputSchema":{"properties":{"build_report":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Build Report"},"path":{"title":"Path","type":"string"},"provenance_manifest":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Provenance Manifest"}},"required":["path"],"title":"_check_deliveryArguments","type":"object"},"name":"check_delivery","outputSchema":{"properties":{"result":{"additionalProperties":true,"title":"Result","type":"object"}},"required":["result"],"title":"_check_deliveryOutput","type":"object"}},{"_meta":{"tier":"community","version":"1"},"description":"List every pyobfus preset available, grouped by tier (community / framework-aware / Pro).","inputSchema":{"properties":{},"title":"_listArguments","type":"object"},"name":"list_presets","outputSchema":{"properties":{"result":{"additionalProperties":true,"title":"Result","type":"object"}},"required":["result"],"title":"_listOutput","type":"object"}},{"_meta":{"tier":"community","version":"1"},"description":"Describe what a named preset changes: exclude names count, exclude patterns, preserve_param_names, docstring handling. For Pro presets, returns full pro_unlock metadata (trial command, checkout URL, price, money-back guarantee).","inputSchema":{"properties":{"name":{"title":"Name","type":"string"}},"required":["name"],"title":"_explainArguments","type":"object"},"name":"explain_preset","outputSchema":{"properties":{"result":{"additionalProperties":true,"title":"Result","type":"object"}},"required":["result"],"title":"_explainOutput","type":"object"}},{"_meta":{"tier":"pro_funnel","version":"1"},"description":"Analyze a Python project and recommend pyobfus tier (community vs Pro) with reasons. Combines a preflight scan with a sensitive-string-literal heuristic. Returns free_action and pro_action with concrete next-step commands.","inputSchema":{"properties":{"path":{"title":"Path","type":"string"}},"required":["path"],"title":"_recommend_tierArguments","type":"object"},"name":"recommend_tier","outputSchema":{"properties":{"result":{"additionalProperties":true,"title":"Result","type":"object"}},"required":["result"],"title":"_recommend_tierOutput","type":"object"}},{"_meta":{"tier":"pro_funnel","version":"1"},"description":"Return structured guidance for starting the 5-day pyobfus Pro trial. Does NOT invoke the side effect — the user runs `pyobfus-trial start` in their shell. Detects whether a trial is already active and surfaces the appropriate next step plus post-trial purchase URL.","inputSchema":{"properties":{},"title":"_start_pro_trialArguments","type":"object"},"name":"start_pro_trial","outputSchema":{"properties":{"result":{"additionalProperties":true,"title":"Result","type":"object"}},"required":["result"],"title":"_start_pro_trialOutput","type":"object"}}]}}}
