{"at":"2026-11-23T04:37:11.009Z","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-23T04:37:11.396Z","dir":"received","era":"server_discover","message":{"error":{"code":-32601,"message":"Method not found"},"id":1,"jsonrpc":"2.0"}}
{"at":"2026-11-23T04:37:11.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-23T04:37:11.873Z","dir":"received","era":"initialize","message":{"id":1,"jsonrpc":"2.0","result":{"capabilities":{"tools":{"listChanged":true}},"instructions":"This server is the project's long-term memory. Use it PROACTIVELY — don't wait to be asked:\n- Before debugging an error the user reports, call search_issues first to check for a prior fix.\n- After resolving a non-trivial bug, call log_issue (symptom, cause, fix).\n- After a non-obvious or architectural decision, call append_decision.\n- After discovering a durable gotcha/workaround, call append_learning.\n- After the user corrects how you work, or states a durable preference (code style, workflow habit, a \"from now on\" rule), call remember_preference — scope \"global\" for a cross-project habit, \"project\" for one project. Preferences ride the auto-loaded AGENTS.md, so they come back next session and turn a one-time correction into a remembered pattern.\nAlways tell the user in one short line what you recorded. When unsure whether something is worth storing, ASK rather than logging noise. Skip trivial/transient issues. Never store secrets or credentials.","protocolVersion":"2025-11-25","serverInfo":{"name":"project-memory","version":"1.6.0"}}}}
{"at":"2026-11-23T04:37:11.873Z","dir":"sent","era":"initialize","message":{"jsonrpc":"2.0","method":"notifications/initialized"}}
{"at":"2026-11-23T04:37:11.873Z","dir":"sent","era":"initialize","message":{"id":2,"jsonrpc":"2.0","method":"tools/list","params":{}}}
{"at":"2026-11-23T04:37:11.878Z","dir":"received","era":"initialize","message":{"id":2,"jsonrpc":"2.0","result":{"tools":[{"description":"List all projects under ~/code that have an AGENTS.md memory file.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{},"type":"object"},"name":"list_projects","title":"List projects"},{"description":"Return the full AGENTS.md memory for one project.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"project":{"description":"Project directory name, e.g. pulse_stripe","type":"string"}},"required":["project"],"type":"object"},"name":"get_project","title":"Get project memory"},{"description":"Case-insensitive search across every project's AGENTS.md. Returns matching lines with their project.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"query":{"type":"string"}},"required":["query"],"type":"object"},"name":"search_memory","title":"Search project memory"},{"description":"Append a dated bullet under '## Decisions' in a project's AGENTS.md (auto-loaded memory). Call this PROACTIVELY right after a non-obvious or architectural decision is made — don't wait to be asked — then tell the user in one line what you recorded. For concise, durable decisions and WHY; not bugs (use log_issue) and not trivia.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"project":{"type":"string"},"text":{"description":"One line: the decision and WHY, not just what.","type":"string"}},"required":["project","text"],"type":"object"},"name":"append_decision","title":"Append a decision"},{"description":"Append a dated bullet under '## Learnings' in a project's AGENTS.md (auto-loaded memory). Call this PROACTIVELY when you discover a durable gotcha/workaround future sessions should know — don't wait to be asked — then tell the user what you recorded. For a specific bug use log_issue instead.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"project":{"type":"string"},"text":{"type":"string"}},"required":["project","text"],"type":"object"},"name":"append_learning","title":"Append a learning"},{"description":"Append a dated bullet under '## Preferences' in an AGENTS.md (auto-loaded memory), turning a user correction or stated habit into a remembered pattern that comes back next session. Call this PROACTIVELY when the user corrects HOW you work or states a durable preference — code style, workflow habit, a 'from now on' rule (e.g. 'never add a co-author trailer', 'always run the typecheck before committing') — don't wait to be asked, then tell the user in one line what you saved. Use scope 'global' (root AGENTS.md, applies to EVERY project) for a cross-project habit; scope 'project' for a preference about one project. This is about agent behaviour/preferences; for a project DECISION use append_decision, for a bug use log_issue.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"project":{"description":"Required when scope is 'project'.","type":"string"},"scope":{"description":"'global' = root AGENTS.md (every project). 'project' = one project. Defaults to global, unless only a project is given.","enum":["global","project"],"type":"string"},"text":{"description":"The preference as a durable rule, ideally with a short WHY. Phrase it as guidance for next time, not a one-off.","type":"string"}},"required":["text"],"type":"object"},"name":"remember_preference","title":"Remember a preference"},{"description":"Append a structured bug/issue to <project>/issues.jsonl (high-volume memory, NOT auto-loaded). Call this PROACTIVELY whenever you resolve (or get blocked by) a non-trivial bug — don't wait to be asked — then tell the user in one line what you logged. Skip trivial/transient issues.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"cause":{"description":"Root cause, if known.","type":"string"},"files":{"items":{"type":"string"},"type":"array"},"fix":{"description":"How it was fixed, if resolved.","type":"string"},"project":{"type":"string"},"status":{"description":"Defaults to 'resolved' if a fix is given, else 'open'.","enum":["open","resolved"],"type":"string"},"symptom":{"description":"What went wrong / the observable failure.","type":"string"},"tags":{"items":{"type":"string"},"type":"array"}},"required":["project","symptom"],"type":"object"},"name":"log_issue","title":"Log a bug/issue"},{"description":"Search bug/issue history across all projects (or one) over the TEXT FIELDS only (symptom, cause, fix, id, tags) — not the raw JSON, so you won't get false hits on field names like 'fix' or 'status'. Optionally filter by tags (issue must carry all of them). Either query or tags may be given. Call this PROACTIVELY when the user reports an error or you hit a familiar-looking failure, BEFORE debugging from scratch, to check for a prior fix ('have we hit this before?').","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"project":{"type":"string"},"query":{"description":"Text to match against symptom/cause/fix/id/tags.","type":"string"},"tags":{"description":"Only return issues carrying ALL of these tags.","items":{"type":"string"},"type":"array"}},"type":"object"},"name":"search_issues","title":"Search issues"},{"description":"List unresolved issues across all projects (or one).","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"project":{"type":"string"}},"type":"object"},"name":"list_open_issues","title":"List open issues"},{"description":"Mark an issue resolved and record the fix.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"fix":{"type":"string"},"id":{"description":"Issue id, e.g. pulse_stripe-003","type":"string"}},"required":["id","fix"],"type":"object"},"name":"resolve_issue","title":"Resolve an issue"},{"description":"Reconcile the root AGENTS.md projects table with what's actually on disk: list projects that have an AGENTS.md but no table row (and add a stub row for each), flag rows whose directory no longer exists, and show live open-issue counts. Automates the 'new project → add a row' step so the cross-project index never silently drifts. Hand-curated columns (Stack, Status, descriptions) are preserved — stubs use the project's '## What this is' line and leave Stack/Status as '?'. Set apply=false to report drift without writing.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"apply":{"description":"Write stub rows for new projects (default true). false = report only.","type":"boolean"}},"type":"object"},"name":"sync_registry","title":"Sync project registry"},{"description":"Given a file path or filename fragment, return the issues (matched via their 'files' field) and the decisions/learnings (matched via AGENTS.md bullets that mention it) that touch that file — i.e. 'why is this code the way it is?' answered from memory. Searches all projects unless one is given. Useful when you land on confusing code and want the history behind it.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"file":{"description":"A path or filename fragment, e.g. 'index.js' or 'auth/login'.","type":"string"},"project":{"type":"string"}},"required":["file"],"type":"object"},"name":"find_by_file","title":"Find memory by file"}]}}}
