{"at":"2026-11-23T01:03:49.992Z","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:03:50.396Z","dir":"received","era":"server_discover","message":{"error":{"code":-32601,"message":"Method not found"},"id":1,"jsonrpc":"2.0"}}
{"at":"2026-11-23T01:03:50.497Z","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:03:50.951Z","dir":"received","era":"initialize","message":{"id":1,"jsonrpc":"2.0","result":{"capabilities":{"resources":{},"tools":{}},"protocolVersion":"2025-11-25","serverInfo":{"name":"gitwand","version":"3.13.1"}}}}
{"at":"2026-11-23T01:03:50.951Z","dir":"sent","era":"initialize","message":{"jsonrpc":"2.0","method":"notifications/initialized"}}
{"at":"2026-11-23T01:03:50.951Z","dir":"sent","era":"initialize","message":{"id":2,"jsonrpc":"2.0","method":"tools/list","params":{}}}
{"at":"2026-11-23T01:03:50.954Z","dir":"received","era":"initialize","message":{"id":2,"jsonrpc":"2.0","result":{"tools":[{"description":"List conflicted files in the current Git repo with their complexity and auto-resolvability. Returns a structured JSON report with conflict counts, types, and confidence scores.","inputSchema":{"properties":{"cwd":{"description":"Working directory (repo root). Defaults to server cwd.","type":"string"},"min_confidence_score":{"description":"Apply only resolutions whose confidence scores >= this (0-100). Combined with the policy's own label threshold, never instead of it: raising it can only ever apply LESS, never more, so it can never let through a hunk the engine already refused. Omit to use the repo's .gitwandrc minConfidenceScore, or no bar at all.","maximum":100,"minimum":0,"type":"number"},"regenerate":{"description":"If true, report GitWand's regenerate-tier plan (lockfile ecosystem + whether it's currently runnable) for any declined generated file (e.g. package-lock.json), reusing the same file states this call already computed. REPORTING ONLY — this never executes anything (no process spawned, no worktree created, no file written beyond what this tool already writes without the flag). To actually apply a plan, run `gitwand resolve --regenerate` (the CLI). Default: false.","type":"boolean"}},"type":"object"},"name":"gitwand_status"},{"description":"Auto-resolve trivial Git merge conflicts using GitWand's pattern-based engine. Returns resolved files, DecisionTrace for each hunk, and pendingHunks for conflicts that need human/LLM review. Writes resolved files to disk unless dry_run is true.","inputSchema":{"properties":{"cwd":{"description":"Working directory (repo root). Defaults to server cwd.","type":"string"},"dry_run":{"description":"If true, analyze without writing files. Default: false.","type":"boolean"},"files":{"description":"Specific files to resolve. If omitted, discovers all conflicted files from git.","items":{"type":"string"},"type":"array"},"min_confidence_score":{"description":"Apply only resolutions whose confidence scores >= this (0-100). Combined with the policy's own label threshold, never instead of it: raising it can only ever apply LESS, never more, so it can never let through a hunk the engine already refused. Omit to use the repo's .gitwandrc minConfidenceScore, or no bar at all.","maximum":100,"minimum":0,"type":"number"},"policy":{"description":"Merge policy to use. Default: prefer-theirs.","enum":["prefer-ours","prefer-theirs","prefer-merge","prefer-safety","strict"],"type":"string"},"regenerate":{"description":"If true, report GitWand's regenerate-tier plan (lockfile ecosystem + whether it's currently runnable) for any declined generated file (e.g. package-lock.json), reusing the same file states this call already computed. REPORTING ONLY — this never executes anything (no process spawned, no worktree created, no file written beyond what this tool already writes without the flag). To actually apply a plan, run `gitwand resolve --regenerate` (the CLI). Default: false.","type":"boolean"}},"type":"object"},"name":"gitwand_resolve_conflicts"},{"description":"Side-effect-free Conflict Predictor. Simulates a merge, rebase, or cherry-pick and reports how many conflicts GitWand can auto-resolve vs. how many need manual/LLM attention, plus an overall risk level (low/medium/high). Does NOT modify the working tree, index, or HEAD.\n\n- operation 'merge' (default): analyzes conflicts already materialized in the working tree (files with conflict markers).\n- operation 'rebase': simulates rebasing HEAD onto `onto` (3-way against merge-base(HEAD, onto); HEAD's work is replayed on top of `onto`).\n- operation 'cherry-pick': simulates cherry-picking `commit` onto HEAD (3-way with `commit^` as ancestor, HEAD as ours, `commit` as theirs).","inputSchema":{"properties":{"commit":{"description":"Required when operation is 'cherry-pick': the commit to simulate cherry-picking onto HEAD.","type":"string"},"cwd":{"description":"Working directory (repo root). Defaults to server cwd.","type":"string"},"min_confidence_score":{"description":"Apply only resolutions whose confidence scores >= this (0-100). Combined with the policy's own label threshold, never instead of it: raising it can only ever apply LESS, never more, so it can never let through a hunk the engine already refused. Omit to use the repo's .gitwandrc minConfidenceScore, or no bar at all.","maximum":100,"minimum":0,"type":"number"},"onto":{"description":"Required when operation is 'rebase': the branch/ref to rebase HEAD onto.","type":"string"},"operation":{"description":"Operation to simulate. Default: 'merge'.","enum":["merge","rebase","cherry-pick"],"type":"string"},"regenerate":{"description":"Only applies when operation is 'merge' (the default). If true, report GitWand's regenerate-tier plan (lockfile ecosystem + whether it's currently runnable) for any declined generated file (e.g. package-lock.json), reusing the same file states this call already computed. REPORTING ONLY — this never executes anything (no process spawned, no worktree created, no file written beyond what this tool already writes without the flag). To actually apply a plan, run `gitwand resolve --regenerate` (the CLI). Default: false.","type":"boolean"}},"type":"object"},"name":"gitwand_preview_merge"},{"description":"Explain why a specific conflict hunk was classified as its type. Returns the DecisionTrace with each evaluation step and the ours/theirs/base content for context.","inputSchema":{"properties":{"cwd":{"description":"Working directory (repo root). Defaults to server cwd.","type":"string"},"file":{"description":"Path to the conflicted file (relative to cwd).","type":"string"},"line":{"description":"Start line of the hunk to explain.","type":"number"}},"required":["file","line"],"type":"object"},"name":"gitwand_explain_hunk"},{"description":"Apply a custom resolution (provided by the LLM or user) to a specific conflict hunk. Replaces the conflict markers at the given line range with the provided content. Writes WITHOUT validating the result (no marker or syntax check): for an agent's own resolution prefer gitwand_resolve_hunk_llm, which validates before writing.","inputSchema":{"properties":{"content":{"description":"The resolved content to replace the conflict block with. An empty string removes the block entirely.","type":"string"},"cwd":{"description":"Working directory (repo root). Defaults to server cwd.","type":"string"},"file":{"description":"Path to the conflicted file (relative to cwd).","type":"string"},"line":{"description":"Start line of the conflict hunk (the <<<<<<< line).","type":"number"}},"required":["file","line","content"],"type":"object"},"name":"gitwand_apply_resolution"},{"description":"Ask the connected AI agent (the caller of this MCP server) to propose a resolution for a single Git merge conflict hunk. Returns a fully-formed prompt with the base/ours/theirs versions and asks the agent to reply with a JSON object { \"resolution\": \"<merged code>\", \"reasoning\": \"<short explanation>\" }. This tool does NOT call any external LLM — the agent that called the tool IS the LLM. Use it when GitWand (desktop/cli) wants to delegate the resolution of a `complex` hunk to the agent driving the session, instead of calling Anthropic/OpenAI directly. Pair the agent's answer with `gitwand_apply_resolution` to write it to disk.","inputSchema":{"properties":{"base":{"description":"Content of the hunk in the merge base (common ancestor). May be empty for hunks with no shared ancestor.","type":"string"},"context":{"description":"Optional surrounding code (a few lines above and below the hunk) so the agent can reason about intent.","type":"string"},"filePath":{"description":"Path of the file containing the hunk (used by the agent to infer language and apply format-aware reasoning).","type":"string"},"language":{"description":"Optional language hint (e.g. \"typescript\", \"python\", \"rust\"). If omitted, the agent infers it from `filePath`.","type":"string"},"ours":{"description":"Content of the hunk from the current branch (HEAD / ours side).","type":"string"},"theirs":{"description":"Content of the hunk from the incoming branch (theirs side).","type":"string"}},"required":["base","ours","theirs","filePath"],"type":"object"},"name":"gitwand_resolve_hunk"},{"description":"Validate and apply an LLM-proposed resolution for a specific conflict hunk. Reads the hunk at the given file+line, replaces it with the proposed resolution, validates the result (no residual markers; for JSON, YAML and TOML, a whole-file parse once no other hunk remains), and writes the file if the validation score meets the threshold. Returns the full audit trail (validation score, accepted/rejected, reason). Workflow: (1) call gitwand_status or gitwand_explain_hunk to see pending complex hunks, (2) propose a resolution, (3) call this tool to validate + apply it.","inputSchema":{"properties":{"cwd":{"description":"Working directory (repo root). Defaults to server cwd.","type":"string"},"dry_run":{"description":"If true, validate but do NOT write the file. Default: false.","type":"boolean"},"file":{"description":"Path to the conflicted file (relative to cwd).","type":"string"},"line":{"description":"Start line of the conflict hunk (the <<<<<<< line, 1-indexed).","type":"number"},"min_score":{"description":"Minimum validation score (0–100) to accept and write the resolution. Default: 80.","type":"number"},"resolution":{"description":"LLM-proposed resolution content — the lines that replace the conflict block. An empty string removes the block entirely.","type":"string"}},"required":["file","line","resolution"],"type":"object"},"name":"gitwand_resolve_hunk_llm"}]}}}
