{"at":"2026-11-23T06:29:52.616Z","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-23T06:29:52.915Z","dir":"received","era":"server_discover","message":{"error":{"code":-32601,"message":"Method not found: server/discover"},"id":1,"jsonrpc":"2.0"}}
{"at":"2026-11-23T06:29:53.016Z","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-23T06:29:53.348Z","dir":"received","era":"initialize","message":{"id":1,"jsonrpc":"2.0","result":{"capabilities":{"resources":{"listChanged":false,"subscribe":false},"tools":{"listChanged":false}},"instructions":"Deterministic computation tools. Prefer these over doing exact counting, diffing, hashing, calendar arithmetic or CSV parsing by hand: the results are exact and reproducible. No network, no credentials, read-only.","protocolVersion":"2025-11-25","serverInfo":{"name":"agent-core-mcp","version":"0.1.1"}}}}
{"at":"2026-11-23T06:29:53.349Z","dir":"sent","era":"initialize","message":{"jsonrpc":"2.0","method":"notifications/initialized"}}
{"at":"2026-11-23T06:29:53.349Z","dir":"sent","era":"initialize","message":{"id":2,"jsonrpc":"2.0","method":"tools/list","params":{}}}
{"at":"2026-11-23T06:29:53.349Z","dir":"received","era":"initialize","message":{"id":2,"jsonrpc":"2.0","result":{"tools":[{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Compute an exact line-by-line diff between two texts using a longest-common-subsequence algorithm. Returns per-line operations (equal/del/ins) with line numbers plus added/removed/unchanged counts. Exact and reproducible; refuses oversized input rather than hanging.","inputSchema":{"additionalProperties":false,"properties":{"a":{"description":"The original text","minLength":1,"type":"string"},"b":{"description":"The revised text","minLength":1,"type":"string"},"maxLines":{"description":"Cap on returned diff lines (default 2000)","maximum":20000,"minimum":1,"type":"integer"}},"required":["a","b"],"type":"object"},"name":"diff_text"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Compute a cryptographic hash of a UTF-8 string. Returns hex and base64 digests plus the UTF-8 byte length. Supports sha256 (default), sha512, sha1, md5, and HMAC variants via hmacKey. Use for content fingerprints, deduplication and integrity checks.","inputSchema":{"additionalProperties":false,"properties":{"algo":{"description":"Hash algorithm (default sha256)","enum":["sha256","sha512","sha1","md5"],"type":"string"},"hmacKey":{"description":"If set, compute HMAC with this key","type":"string"},"text":{"description":"Text to hash","type":"string"}},"required":["text"],"type":"object"},"name":"hash"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Check whether a string is valid JSON. On failure returns the parser message plus the computed line and column of the error. On success returns the top-level shape. Distinguishes valid-but-empty-object from invalid.","inputSchema":{"additionalProperties":false,"properties":{"describeTopLevel":{"description":"Include top-level keys or array length (default true)","type":"boolean"},"text":{"description":"The JSON text to validate","minLength":1,"type":"string"}},"required":["text"],"type":"object"},"name":"json_validate"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Extract a value from a JSON document by path, e.g. \"a.b[0].c\" or \"$.items[3].name\". Reports `resolved` (did the path reach a location) separately from `found` (is the value non-null), so absent is distinguishable from present-but-null. Failure types are specific: missing-key, out-of-range, not-an-array, not-an-object.","inputSchema":{"additionalProperties":false,"properties":{"json":{"description":"The JSON document as text","minLength":1,"type":"string"},"path":{"description":"Path, e.g. \"a.b[0].c\"","minLength":1,"type":"string"}},"required":["json","path"],"type":"object"},"name":"json_query"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Resolve several paths against one JSON document in a single call. Cheaper than issuing many json_query calls when you need multiple fields.","inputSchema":{"additionalProperties":false,"properties":{"json":{"description":"The JSON document as text","minLength":1,"type":"string"},"paths":{"description":"Paths to resolve","items":{"minLength":1,"type":"string"},"maxItems":200,"minItems":1,"type":"array"}},"required":["json","paths"],"type":"object"},"name":"json_pick"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Exact text statistics: Unicode code points, UTF-8 bytes, lines, non-empty lines, words, sentences, paragraphs, unique words, average word length and most frequent words. Word segmentation is Unicode-aware so non-Latin scripts are counted correctly. Use whenever a count must be exact.","inputSchema":{"additionalProperties":false,"properties":{"text":{"description":"Text to measure","minLength":1,"type":"string"},"topN":{"description":"How many top words to return (default 10)","maximum":100,"minimum":0,"type":"integer"}},"required":["text"],"type":"object"},"name":"text_stats"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Interval between two ISO-8601 dates in days, weeks, months, years, hours, minutes, seconds or businessDays (Mon-Fri). Months and years use true calendar arithmetic, not 30/365-day approximations. All math is UTC.","inputSchema":{"additionalProperties":false,"properties":{"from":{"description":"Start date, e.g. 2026-01-15 or 2026-01-15T08:30:00Z","minLength":1,"type":"string"},"to":{"description":"End date, same formats","minLength":1,"type":"string"},"unit":{"description":"Unit for the result (default days)","enum":["days","weeks","months","years","hours","minutes","seconds","businessDays"],"type":"string"}},"required":["from","to"],"type":"object"},"name":"date_calc"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Offset an ISO-8601 date by days, weeks, months, years, hours, minutes or seconds. Negative amounts subtract. Calendar-correct across month ends and leap years.","inputSchema":{"additionalProperties":false,"properties":{"amount":{"description":"Amount to add; negative to subtract","type":"number"},"date":{"description":"Base date, e.g. 2026-01-31","minLength":1,"type":"string"},"unit":{"description":"Unit (default days)","enum":["days","weeks","months","years","hours","minutes","seconds"],"type":"string"}},"required":["date","amount"],"type":"object"},"name":"date_add"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Apply a regular expression and return every match with its index, numbered capture groups and named groups. Iteration and match counts are hard-capped so a pathological pattern cannot hang the host. The response includes a ReDoS risk assessment of the pattern.","inputSchema":{"additionalProperties":false,"properties":{"budgetMs":{"description":"Execution deadline in milliseconds (default 1000, max 10000). Execution runs in a worker thread that is terminated on expiry.","maximum":10000,"minimum":1,"type":"integer"},"flags":{"description":"Flags from g i m s u y (g is always applied)","type":"string"},"maxMatches":{"description":"Cap on returned matches (default 500)","maximum":5000,"minimum":1,"type":"integer"},"pattern":{"description":"Regular expression source, without slashes","minLength":1,"type":"string"},"text":{"description":"Text to search","minLength":1,"type":"string"}},"required":["text","pattern"],"type":"object"},"name":"regex_extract"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Statically analyse a regular expression for catastrophic backtracking (ReDoS): nested quantifiers, overlapping alternation inside repeated groups, backreferences under quantifiers, excessive wildcards. Returns a risk level and the specific reasons. The pattern is not executed.","inputSchema":{"additionalProperties":false,"properties":{"pattern":{"description":"Regular expression source to analyse","minLength":1,"type":"string"}},"required":["pattern"],"type":"object"},"name":"regex_analyze"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Score every candidate string against a query using the Sorensen-Dice coefficient over character bigrams and return the best matches in descending order. Deterministic. Useful for deduplication, record linkage, typo-tolerant lookup and confirming which of several candidates was meant.","inputSchema":{"additionalProperties":false,"properties":{"haystack":{"description":"Candidate strings","items":{"type":"string"},"maxItems":100000,"minItems":1,"type":"array"},"needle":{"description":"The string to match against the list","minLength":1,"type":"string"},"threshold":{"description":"Minimum score to include (default 0)","maximum":1,"minimum":0,"type":"number"},"topN":{"description":"How many results (default 5)","maximum":500,"minimum":1,"type":"integer"}},"required":["needle","haystack"],"type":"object"},"name":"fuzzy_match"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Sorensen-Dice similarity of two strings, from 0 (no shared character bigrams) to 1 (identical). One deterministic comparison.","inputSchema":{"additionalProperties":false,"properties":{"a":{"type":"string"},"b":{"type":"string"}},"required":["a","b"],"type":"object"},"name":"similarity"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Parse delimited text into a header plus rows, handling quoted fields, escaped quotes, embedded delimiters and embedded newlines (RFC 4180 style). If no delimiter is given, the most frequent candidate on the first line is chosen and reported back. Use instead of splitting on commas, which breaks on any real CSV.","inputSchema":{"additionalProperties":false,"properties":{"delimiter":{"description":"Single-character delimiter; auto-detected if omitted","type":"string"},"hasHeader":{"description":"Treat the first row as a header (default true)","type":"boolean"},"maxRows":{"description":"Row cap (default 5000)","maximum":200000,"minimum":1,"type":"integer"},"text":{"description":"Delimited text","minLength":1,"type":"string"}},"required":["text"],"type":"object"},"name":"parse_table"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Convert a value between units of length, mass, time or data size. Cross-family conversions are rejected rather than silently producing nonsense. Data sizes: kb/mb/gb are decimal (1000), kib/mib/gib are binary (1024). Supported units: m, km, cm, mm, mi, yd, ft, in, nmi, kg, g, mg, t, lb, oz, s, min, h, d, b, kb, mb, gb, kib, mib, gib.","inputSchema":{"additionalProperties":false,"properties":{"from":{"description":"Source unit","minLength":1,"type":"string"},"to":{"description":"Target unit","minLength":1,"type":"string"},"value":{"description":"Numeric value to convert","type":"number"}},"required":["value","from","to"],"type":"object"},"name":"convert"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Convert an integer string between bases 2 and 36 with arbitrary precision. Uses big-integer parsing, so values beyond IEEE-754 double precision (2^53) stay exact, which is exactly where naive conversion goes wrong. A leading 0b/0x/0o prefix is ignored.","inputSchema":{"additionalProperties":false,"properties":{"fromBase":{"description":"Source base","maximum":36,"minimum":2,"type":"integer"},"toBase":{"description":"Target base","maximum":36,"minimum":2,"type":"integer"},"value":{"description":"Integer as text, e.g. \"ff\" or \"255\"","minLength":1,"type":"string"}},"required":["value","fromBase","toBase"],"type":"object"},"name":"base_convert"}]}}}
