{"at":"2026-11-23T05:12:11.133Z","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:12:11.477Z","dir":"received","era":"server_discover","message":{"error":{"code":-32601,"message":"method not found: server/discover"},"id":1,"jsonrpc":"2.0"}}
{"at":"2026-11-23T05:12:11.527Z","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:12:11.859Z","dir":"received","era":"initialize","message":{"id":1,"jsonrpc":"2.0","result":{"capabilities":{"prompts":{"listChanged":false},"resources":{"listChanged":false,"subscribe":false},"tools":{}},"protocolVersion":"2025-06-18","serverInfo":{"name":"brevio-core","version":"0.10.0"}}}}
{"at":"2026-11-23T05:12:11.859Z","dir":"sent","era":"initialize","message":{"jsonrpc":"2.0","method":"notifications/initialized"}}
{"at":"2026-11-23T05:12:11.859Z","dir":"sent","era":"initialize","message":{"id":2,"jsonrpc":"2.0","method":"tools/list","params":{}}}
{"at":"2026-11-23T05:12:11.859Z","dir":"received","era":"initialize","message":{"id":2,"jsonrpc":"2.0","result":{"tools":[{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true,"title":"Scan Code Against Rules"},"description":"Scan files, folders or the lines a change adds against the code rules. Returns one line per finding: path:line [rule] message -> a fix hint, grouped by rule, at most 20. With no arguments it scans the uncommitted changes (the whole folder when there is no commit). An ignore comment does not count here.","inputSchema":{"additionalProperties":false,"properties":{"diff_base":{"description":"Scan only the lines added against this git revision (an empty string means origin/main).","type":"string"},"paths":{"description":"Files or folders inside the project.","items":{"type":"string"},"type":"array"}},"type":"object"},"name":"scan"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true,"title":"Explain Code Rule"},"description":"Return the page of one rule: what it catches, why, a bad and a good example.","inputSchema":{"additionalProperties":false,"properties":{"rule":{"description":"A rule id such as R2.1.","type":"string"}},"required":["rule"],"type":"object"},"name":"explain"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true,"title":"List Code Rules"},"description":"List the rule ids with a one-line summary each, optionally only those matching a word.","inputSchema":{"additionalProperties":false,"properties":{"query":{"description":"Optional word or rule id prefix to filter the rule list.","type":"string"}},"type":"object"},"name":"list_rules"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":false,"title":"Apply Deterministic Rule Fixes"},"description":"Fix what a rule has one correct rewrite for (for example `@ts-ignore` to `@ts-expect-error`). Returns the unified diff; writes the files only when write is true. Secrets and other findings are never fixed, only counted as remaining.","inputSchema":{"additionalProperties":false,"properties":{"diff_base":{"description":"Fix only the lines added against this git revision (an empty string means origin/main).","type":"string"},"paths":{"description":"Files or folders inside the project.","items":{"type":"string"},"type":"array"},"write":{"description":"Rewrite the files in place (default false: diff only).","type":"boolean"}},"type":"object"},"name":"fix"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":false,"title":"Compile Fixed Defect Into Local Guard"},"description":"Compile a fixed defect (a git diff) into a local guard and an agent rule. Writes .brevio/guards.json and .agents/rules/ in the project, only when the guard hits the lines the fix removed and not the fixed file. A new guard is on trial: scan reports its hits and they do not fail a run. This tool cannot switch a guard off.","inputSchema":{"additionalProperties":false,"properties":{"diff_base":{"description":"The commit or range holding the fix (default HEAD~1).","type":"string"},"name":{"description":"Optional short title for the compiled guard.","type":"string"}},"type":"object"},"name":"learn"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true,"title":"Brief Rules And Trap Memory For Files"},"description":"Return the surface-scoped engineering rules, recalled trap-to-fix episodes and 1-hop file neighbors for the files you are about to edit.","inputSchema":{"additionalProperties":false,"properties":{"files":{"description":"Files inside the project about to be edited.","items":{"type":"string"},"type":"array"}},"type":"object"},"name":"brief"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true,"title":"Run Pre-PR Flight Check"},"description":"Run the pre-PR flight check (surface rules, test custody, imports, migrations, complexity, and conflict markers).","inputSchema":{"additionalProperties":false,"properties":{"base":{"description":"Git revision to diff against (default HEAD).","type":"string"},"paths":{"description":"Files or folders inside the project to check.","items":{"type":"string"},"type":"array"}},"type":"object"},"name":"check"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true,"title":"Count Findings By Rule"},"description":"Preview: count the findings of a scan by rule and say what to do next.","inputSchema":{"additionalProperties":false,"properties":{"diff_base":{"description":"Score only lines added against this git revision.","type":"string"},"paths":{"description":"Files or folders to score.","items":{"type":"string"},"type":"array"}},"type":"object"},"name":"score"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true,"title":"Evaluate Local AEO Rubric"},"description":"Score local HTML pages against the Answer Engine Optimization (AEO) rubric.","inputSchema":{"additionalProperties":false,"properties":{"paths":{"description":"Folder or HTML file to evaluate.","items":{"type":"string"},"type":"array"}},"type":"object"},"name":"aeo"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true,"title":"Build Repository Symbol Map"},"description":"Build repository symbol hierarchy and PageRank context map.","inputSchema":{"additionalProperties":false,"properties":{"root":{"description":"Project root directory (default .).","type":"string"},"seed_files":{"description":"Seed files for focused PageRank map.","items":{"type":"string"},"type":"array"},"token_budget":{"description":"Token budget for the repository map (default 4000).","type":"integer"}},"type":"object"},"name":"map"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":false,"title":"Run Autonomous Heal Loop"},"description":"Autonomous repair loop that surfaces violations and emits an atomic remediation heal packet.","inputSchema":{"additionalProperties":false,"properties":{"apply_fixes":{"description":"Apply deterministic AST fixes before generating packet (default false).","type":"boolean"},"root":{"description":"Project root directory (default .).","type":"string"}},"type":"object"},"name":"heal"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true,"title":"Verify Proposed Edit Against Rules"},"description":"Check an edit you propose before you write it: SEARCH/REPLACE blocks (<<<<<<< SEARCH, =======, >>>>>>> REPLACE, the path on the line above) or a unified diff. It is applied in memory and scanned with ignore comments not honoured; it is refused when it adds a suppression, touches a protected file (the config, the baseline, the guards, agent rules and hooks, workflows) or deletes a test or its assertions. Writes nothing.","inputSchema":{"additionalProperties":false,"properties":{"patch":{"description":"The edit: SEARCH/REPLACE blocks or a unified diff.","type":"string"},"path":{"description":"The file a SEARCH/REPLACE block applies to when it names none.","type":"string"}},"required":["patch"],"type":"object"},"name":"verify_edit"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true,"title":"Get Finding Packet"},"description":"Return what you need to explain or fix one finding: the rule's text, the flagged line, some lines around it and the file extension. It reads the project folder and nothing else.","inputSchema":{"additionalProperties":false,"properties":{"context":{"description":"Lines to show before and after it (0 to 50, default 0).","type":"integer"},"finding":{"description":"One finding as scan prints it, for example src/a.ts:3 [R9.2] message.","type":"string"}},"required":["finding"],"type":"object"},"name":"finding_packet"}]}}}
