{"at":"2026-11-23T05:52:27.195Z","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-23T05:52:28.066Z","dir":"received","era":"server_discover","message":{"id":1,"jsonrpc":"2.0","result":{"_meta":{"io.modelcontextprotocol/serverInfo":{"name":"diskclean-mcp","version":"0.1.0"}},"cacheScope":"private","capabilities":{"prompts":{"listChanged":true},"resources":{"listChanged":true,"subscribe":true},"tools":{"listChanged":true}},"instructions":"開発キャッシュ・大容量動画・古いログを検出し、OSのゴミ箱へ退避するサーバー。完全削除は行わない。必ず次の手順に従うこと:\n1. 対象パスが未指定なら get_os_env_paths で標準のキャッシュ・ログの場所を確認する。\n2. analyze_disk_usage で容量の内訳を把握する。\n3. scan_cleanup_targets で削除候補を作る（Dry-Run。削除はされない）。\n4. 結果を表（パス・種別・サイズ・最終更新）でユーザーに提示し、どれを移動するか明示的な同意を得る。\n5. 同意された項目だけを scan_id と共に move_to_trash に渡す。\n6. moved / skipped / failed を報告し、ゴミ箱から復元できることを伝える。\n同意なしに move_to_trash を呼ばないこと。保護パスのエラーは迂回しないこと。","resultType":"complete","supportedVersions":["2026-07-28"],"ttlMs":0}}}
{"at":"2026-11-23T05:52:28.066Z","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-23T05:52:28.068Z","dir":"received","era":"server_discover","message":{"id":2,"jsonrpc":"2.0","result":{"_meta":{"io.modelcontextprotocol/serverInfo":{"name":"diskclean-mcp","version":"0.1.0"}},"cacheScope":"private","resultType":"complete","tools":[{"annotations":{"openWorldHint":false,"readOnlyHint":true},"description":"OSに応じた代表的なキャッシュ・ログディレクトリのうち、実在するものを返す。\n掃除対象の場所をユーザーが指定していないときの候補探しに使う。","inputSchema":{"properties":{},"title":"get_os_env_pathsArguments","type":"object"},"name":"get_os_env_paths","outputSchema":{"properties":{"cache_paths":{"additionalProperties":{"type":"string"},"title":"Cache Paths","type":"object"},"home":{"title":"Home","type":"string"},"os":{"title":"Os","type":"string"}},"required":["os","home","cache_paths"],"title":"EnvPaths","type":"object"}},{"annotations":{"openWorldHint":false,"readOnlyHint":true},"description":"指定ディレクトリ配下の容量内訳を返す（読み取りのみ）。\nカテゴリ別合計（dev_cache/video/log/other）と、深さ max_depth までのエントリのうち\n大きい順の上位を含む。各エントリのサイズは配下の合計なので、親子のサイズは重複する。\nどこが大きいか分かったら、そのパスを指定して再度呼ぶと効率よく掘り下げられる。","inputSchema":{"properties":{"max_depth":{"default":1,"description":"内訳を出す階層の深さ（1=直下の子のみ）","maximum":3,"minimum":1,"title":"Max Depth","type":"integer"},"target_path":{"description":"調査するディレクトリの絶対パス（~ 可）","title":"Target Path","type":"string"}},"required":["target_path"],"title":"analyze_disk_usageArguments","type":"object"},"name":"analyze_disk_usage","outputSchema":{"$defs":{"UsageEntry":{"properties":{"depth":{"title":"Depth","type":"integer"},"path":{"title":"Path","type":"string"},"size_mb":{"title":"Size Mb","type":"number"}},"required":["path","depth","size_mb"],"title":"UsageEntry","type":"object"}},"properties":{"by_category_mb":{"additionalProperties":{"type":"number"},"title":"By Category Mb","type":"object"},"entry_count":{"title":"Entry Count","type":"integer"},"largest_children":{"items":{"$ref":"#/$defs/UsageEntry"},"title":"Largest Children","type":"array"},"skipped_errors":{"title":"Skipped Errors","type":"integer"},"target_path":{"title":"Target Path","type":"string"},"timed_out":{"title":"Timed Out","type":"boolean"},"total_mb":{"title":"Total Mb","type":"number"}},"required":["target_path","total_mb","by_category_mb","largest_children","entry_count","skipped_errors","timed_out"],"title":"UsageSummary","type":"object"}},{"annotations":{"openWorldHint":false,"readOnlyHint":true},"description":"条件に一致する削除候補をサイズの大きい順に列挙する（Dry-Run。何も削除しない）。\n返された scan_id は move_to_trash に必要。結果はユーザーに提示して同意を得ること。","inputSchema":{"properties":{"max_results":{"default":200,"description":"返す候補の最大件数","maximum":1000,"minimum":1,"title":"Max Results","type":"integer"},"min_size_mb":{"default":100,"description":"動画の最小サイズ(MB)","minimum":0,"title":"Min Size Mb","type":"number"},"older_than_days":{"default":30,"description":"ログの未更新日数の閾値","minimum":0,"title":"Older Than Days","type":"number"},"target_path":{"description":"スキャンを開始するディレクトリの絶対パス","title":"Target Path","type":"string"},"target_type":{"description":"dev_cache=node_modules等の開発キャッシュ, large_videos=大容量で未使用の動画, old_logs=更新のない古いログ, all=すべて","enum":["dev_cache","large_videos","old_logs","all"],"title":"Target Type","type":"string"},"unused_days":{"default":90,"description":"動画の未アクセス・未更新日数の閾値","minimum":0,"title":"Unused Days","type":"number"}},"required":["target_path","target_type"],"title":"scan_cleanup_targetsArguments","type":"object"},"name":"scan_cleanup_targets","outputSchema":{"$defs":{"CleanupItem":{"properties":{"kind":{"enum":["dev_cache","large_video","old_log"],"title":"Kind","type":"string"},"last_accessed":{"title":"Last Accessed","type":"string"},"last_modified":{"title":"Last Modified","type":"string"},"path":{"title":"Path","type":"string"},"size_mb":{"title":"Size Mb","type":"number"}},"required":["path","kind","size_mb","last_modified","last_accessed"],"title":"CleanupItem","type":"object"}},"properties":{"found_count":{"title":"Found Count","type":"integer"},"items":{"items":{"$ref":"#/$defs/CleanupItem"},"title":"Items","type":"array"},"returned_count":{"title":"Returned Count","type":"integer"},"scan_id":{"title":"Scan Id","type":"string"},"skipped_errors":{"title":"Skipped Errors","type":"integer"},"target_path":{"title":"Target Path","type":"string"},"target_type":{"enum":["dev_cache","large_videos","old_logs","all"],"title":"Target Type","type":"string"},"timed_out":{"title":"Timed Out","type":"boolean"},"total_reclaimable_mb":{"title":"Total Reclaimable Mb","type":"number"},"truncated":{"title":"Truncated","type":"boolean"}},"required":["scan_id","target_path","target_type","found_count","total_reclaimable_mb","returned_count","truncated","timed_out","skipped_errors","items"],"title":"ScanResult","type":"object"}},{"annotations":{"destructiveHint":true,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":false},"description":"指定パスをOSのゴミ箱（Trash/Recycle Bin）へ移動する。完全削除はしない。\n必ずユーザーの明示的な同意を得てから実行すること。\nスキャン結果にないパスや保護パスは skip される。","inputSchema":{"properties":{"paths":{"description":"ゴミ箱へ移動するパス。そのスキャン結果に含まれるもののみ","items":{"type":"string"},"title":"Paths","type":"array"},"scan_id":{"description":"scan_cleanup_targets が返した scan_id","title":"Scan Id","type":"string"}},"required":["scan_id","paths"],"title":"move_to_trashArguments","type":"object"},"name":"move_to_trash","outputSchema":{"$defs":{"PathIssue":{"properties":{"path":{"title":"Path","type":"string"},"reason":{"title":"Reason","type":"string"}},"required":["path","reason"],"title":"PathIssue","type":"object"}},"properties":{"failed":{"items":{"$ref":"#/$defs/PathIssue"},"title":"Failed","type":"array"},"moved":{"items":{"type":"string"},"title":"Moved","type":"array"},"moved_mb":{"title":"Moved Mb","type":"number"},"skipped":{"items":{"$ref":"#/$defs/PathIssue"},"title":"Skipped","type":"array"}},"required":["moved","moved_mb","skipped","failed"],"title":"TrashResult","type":"object"}}],"ttlMs":0}}}
{"at":"2026-11-23T05:52:28.219Z","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-23T05:52:29.058Z","dir":"received","era":"initialize","message":{"id":1,"jsonrpc":"2.0","result":{"capabilities":{"prompts":{"listChanged":false},"resources":{"listChanged":false,"subscribe":false},"tools":{"listChanged":false}},"instructions":"開発キャッシュ・大容量動画・古いログを検出し、OSのゴミ箱へ退避するサーバー。完全削除は行わない。必ず次の手順に従うこと:\n1. 対象パスが未指定なら get_os_env_paths で標準のキャッシュ・ログの場所を確認する。\n2. analyze_disk_usage で容量の内訳を把握する。\n3. scan_cleanup_targets で削除候補を作る（Dry-Run。削除はされない）。\n4. 結果を表（パス・種別・サイズ・最終更新）でユーザーに提示し、どれを移動するか明示的な同意を得る。\n5. 同意された項目だけを scan_id と共に move_to_trash に渡す。\n6. moved / skipped / failed を報告し、ゴミ箱から復元できることを伝える。\n同意なしに move_to_trash を呼ばないこと。保護パスのエラーは迂回しないこと。","protocolVersion":"2025-11-25","serverInfo":{"name":"diskclean-mcp","version":"0.1.0"}}}}
{"at":"2026-11-23T05:52:29.058Z","dir":"sent","era":"initialize","message":{"jsonrpc":"2.0","method":"notifications/initialized"}}
{"at":"2026-11-23T05:52:29.058Z","dir":"sent","era":"initialize","message":{"id":2,"jsonrpc":"2.0","method":"tools/list","params":{}}}
{"at":"2026-11-23T05:52:29.060Z","dir":"received","era":"initialize","message":{"id":2,"jsonrpc":"2.0","result":{"tools":[{"annotations":{"openWorldHint":false,"readOnlyHint":true},"description":"OSに応じた代表的なキャッシュ・ログディレクトリのうち、実在するものを返す。\n掃除対象の場所をユーザーが指定していないときの候補探しに使う。","inputSchema":{"properties":{},"title":"get_os_env_pathsArguments","type":"object"},"name":"get_os_env_paths","outputSchema":{"properties":{"cache_paths":{"additionalProperties":{"type":"string"},"title":"Cache Paths","type":"object"},"home":{"title":"Home","type":"string"},"os":{"title":"Os","type":"string"}},"required":["os","home","cache_paths"],"title":"EnvPaths","type":"object"}},{"annotations":{"openWorldHint":false,"readOnlyHint":true},"description":"指定ディレクトリ配下の容量内訳を返す（読み取りのみ）。\nカテゴリ別合計（dev_cache/video/log/other）と、深さ max_depth までのエントリのうち\n大きい順の上位を含む。各エントリのサイズは配下の合計なので、親子のサイズは重複する。\nどこが大きいか分かったら、そのパスを指定して再度呼ぶと効率よく掘り下げられる。","inputSchema":{"properties":{"max_depth":{"default":1,"description":"内訳を出す階層の深さ（1=直下の子のみ）","maximum":3,"minimum":1,"title":"Max Depth","type":"integer"},"target_path":{"description":"調査するディレクトリの絶対パス（~ 可）","title":"Target Path","type":"string"}},"required":["target_path"],"title":"analyze_disk_usageArguments","type":"object"},"name":"analyze_disk_usage","outputSchema":{"$defs":{"UsageEntry":{"properties":{"depth":{"title":"Depth","type":"integer"},"path":{"title":"Path","type":"string"},"size_mb":{"title":"Size Mb","type":"number"}},"required":["path","depth","size_mb"],"title":"UsageEntry","type":"object"}},"properties":{"by_category_mb":{"additionalProperties":{"type":"number"},"title":"By Category Mb","type":"object"},"entry_count":{"title":"Entry Count","type":"integer"},"largest_children":{"items":{"$ref":"#/$defs/UsageEntry"},"title":"Largest Children","type":"array"},"skipped_errors":{"title":"Skipped Errors","type":"integer"},"target_path":{"title":"Target Path","type":"string"},"timed_out":{"title":"Timed Out","type":"boolean"},"total_mb":{"title":"Total Mb","type":"number"}},"required":["target_path","total_mb","by_category_mb","largest_children","entry_count","skipped_errors","timed_out"],"title":"UsageSummary","type":"object"}},{"annotations":{"openWorldHint":false,"readOnlyHint":true},"description":"条件に一致する削除候補をサイズの大きい順に列挙する（Dry-Run。何も削除しない）。\n返された scan_id は move_to_trash に必要。結果はユーザーに提示して同意を得ること。","inputSchema":{"properties":{"max_results":{"default":200,"description":"返す候補の最大件数","maximum":1000,"minimum":1,"title":"Max Results","type":"integer"},"min_size_mb":{"default":100,"description":"動画の最小サイズ(MB)","minimum":0,"title":"Min Size Mb","type":"number"},"older_than_days":{"default":30,"description":"ログの未更新日数の閾値","minimum":0,"title":"Older Than Days","type":"number"},"target_path":{"description":"スキャンを開始するディレクトリの絶対パス","title":"Target Path","type":"string"},"target_type":{"description":"dev_cache=node_modules等の開発キャッシュ, large_videos=大容量で未使用の動画, old_logs=更新のない古いログ, all=すべて","enum":["dev_cache","large_videos","old_logs","all"],"title":"Target Type","type":"string"},"unused_days":{"default":90,"description":"動画の未アクセス・未更新日数の閾値","minimum":0,"title":"Unused Days","type":"number"}},"required":["target_path","target_type"],"title":"scan_cleanup_targetsArguments","type":"object"},"name":"scan_cleanup_targets","outputSchema":{"$defs":{"CleanupItem":{"properties":{"kind":{"enum":["dev_cache","large_video","old_log"],"title":"Kind","type":"string"},"last_accessed":{"title":"Last Accessed","type":"string"},"last_modified":{"title":"Last Modified","type":"string"},"path":{"title":"Path","type":"string"},"size_mb":{"title":"Size Mb","type":"number"}},"required":["path","kind","size_mb","last_modified","last_accessed"],"title":"CleanupItem","type":"object"}},"properties":{"found_count":{"title":"Found Count","type":"integer"},"items":{"items":{"$ref":"#/$defs/CleanupItem"},"title":"Items","type":"array"},"returned_count":{"title":"Returned Count","type":"integer"},"scan_id":{"title":"Scan Id","type":"string"},"skipped_errors":{"title":"Skipped Errors","type":"integer"},"target_path":{"title":"Target Path","type":"string"},"target_type":{"enum":["dev_cache","large_videos","old_logs","all"],"title":"Target Type","type":"string"},"timed_out":{"title":"Timed Out","type":"boolean"},"total_reclaimable_mb":{"title":"Total Reclaimable Mb","type":"number"},"truncated":{"title":"Truncated","type":"boolean"}},"required":["scan_id","target_path","target_type","found_count","total_reclaimable_mb","returned_count","truncated","timed_out","skipped_errors","items"],"title":"ScanResult","type":"object"}},{"annotations":{"destructiveHint":true,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":false},"description":"指定パスをOSのゴミ箱（Trash/Recycle Bin）へ移動する。完全削除はしない。\n必ずユーザーの明示的な同意を得てから実行すること。\nスキャン結果にないパスや保護パスは skip される。","inputSchema":{"properties":{"paths":{"description":"ゴミ箱へ移動するパス。そのスキャン結果に含まれるもののみ","items":{"type":"string"},"title":"Paths","type":"array"},"scan_id":{"description":"scan_cleanup_targets が返した scan_id","title":"Scan Id","type":"string"}},"required":["scan_id","paths"],"title":"move_to_trashArguments","type":"object"},"name":"move_to_trash","outputSchema":{"$defs":{"PathIssue":{"properties":{"path":{"title":"Path","type":"string"},"reason":{"title":"Reason","type":"string"}},"required":["path","reason"],"title":"PathIssue","type":"object"}},"properties":{"failed":{"items":{"$ref":"#/$defs/PathIssue"},"title":"Failed","type":"array"},"moved":{"items":{"type":"string"},"title":"Moved","type":"array"},"moved_mb":{"title":"Moved Mb","type":"number"},"skipped":{"items":{"$ref":"#/$defs/PathIssue"},"title":"Skipped","type":"array"}},"required":["moved","moved_mb","skipped","failed"],"title":"TrashResult","type":"object"}}]}}}
