{"at":"2026-11-23T01:54:53.602Z","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:54:54.193Z","dir":"received","era":"server_discover","message":{"error":{"code":-32601,"message":"Method not found"},"id":1,"jsonrpc":"2.0"}}
{"at":"2026-11-23T01:54:54.294Z","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:54:54.823Z","dir":"received","era":"initialize","message":{"id":1,"jsonrpc":"2.0","result":{"capabilities":{"prompts":{"listChanged":true},"resources":{"listChanged":true},"tools":{"listChanged":true}},"instructions":"Axiom — Advanced Math MCP Server\n\nTOOL SELECTION GUIDE:\n  Any math computation    → compute\n  Graph / visualization   → plot\n  Verify a result         → verify\n\nThe \"compute\" tool accepts a problem string using CAS-style function calls:\n  solve(x^2-4=0, x)         — solve equation\n  diff(x^3, x)              — differentiate\n  int(x^2, x, 0, 1)         — definite integral\n  limit(sin(x)/x, x, 0)     — limit\n  taylor(exp(x), x=0, 5)    — Taylor series\n  factor(x^2-4)              — factorize\n  simplify((x^2-1)/(x-1))   — simplify\n  expand((x+1)^3)            — expand\n  det([[1,2],[3,4]])          — matrix determinant\n  eigenvals([[2,1],[1,2]])    — eigenvalues\n  C(10,3)                     — combinations\n  ifactor(2310)               — prime factorization\n  2+3*sin(pi/4)              — arithmetic\n  Or any valid Giac/Xcas expression.\n\nOptional parameters:\n  domain: \"complex\" for complex solutions, \"numeric\" to force numerical methods\n  precision: significant digits for a numeric result (1-50)\n  format: \"text\" (default), \"latex\", or \"json\" (structured envelope)\n\nThe \"verify\" tool checks mathematical claims:\n  \"sin(x)^2 + cos(x)^2 = 1\"     — identity check\n  \"x=2 satisfies x^2-4=0\"        — solution check\n  Read \"evaluated\" before \"verified\": evaluated=false means the claim could not\n  be checked at all, so verified=false there is \"unknown\", not \"disproved\".\n\nThe \"plot\" tool renders function graphs as SVG images.","protocolVersion":"2025-11-25","serverInfo":{"name":"axiom-math","version":"1.1.0"}}}}
{"at":"2026-11-23T01:54:54.823Z","dir":"sent","era":"initialize","message":{"jsonrpc":"2.0","method":"notifications/initialized"}}
{"at":"2026-11-23T01:54:54.823Z","dir":"sent","era":"initialize","message":{"id":2,"jsonrpc":"2.0","method":"tools/list","params":{}}}
{"at":"2026-11-23T01:54:54.827Z","dir":"received","era":"initialize","message":{"id":2,"jsonrpc":"2.0","result":{"tools":[{"description":"Compute an exact answer to a mathematics problem: equation solving, calculus, linear algebra, combinatorics, probability and statistics, number theory, geometry, differential equations, transforms and series. Runs a real computer algebra system (Giac/Xcas) in this process — answers are computed rather than recalled, with no network call and no API key.\n\nPass one CAS-style problem string; the `problem` parameter lists the verbs. Anything it does not recognise is evaluated as a raw Giac/Xcas expression, so valid Giac syntax always works.\n\nResults are exact by default — fractions and radicals are kept rather than rounded. Ask for domain \"numeric\" or set `precision` when you want a decimal. Where it can, the tool re-checks its own answer and reports that check alongside the result.\n\nWhen you already have an answer and want it confirmed, use `verify` instead: recomputing here and comparing is not an independent check.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"domain":{"description":"Domain hint:\n  real (default) — real solutions\n  complex — complex solutions (csolve, cfactor)\n  numeric — force numerical methods\n  exact — exact symbolic form","enum":["real","complex","numeric","exact"],"type":"string"},"format":{"description":"Output format:\n  text (default) — human-readable result\n  latex — LaTeX-focused output\n  json — structured ComputeEnvelope","enum":["text","latex","json"],"type":"string"},"precision":{"description":"Significant digits for a numeric result. Omit for full precision. Values above ~17 have no effect: the result is a double.","maximum":50,"minimum":1,"type":"number"},"problem":{"description":"Mathematical problem to solve. Use CAS-style function calls for clarity:\n  solve(x^2-4=0, x)        — solve equation\n  diff(x^3, x)             — differentiate\n  int(x^2, x, 0, 1)       — definite integral\n  limit(sin(x)/x, x, 0)   — limit\n  limit(1/x, x, 0, +)     — one-sided limit (+ or 1 right, - or -1 left)\n  taylor(exp(x), x=0, 5)  — Taylor series\n  factor(x^2-4)            — factorize\n  simplify((x^2-1)/(x-1)) — simplify\n  expand((x+1)^3)          — expand\n  det([[1,2],[3,4]])        — matrix determinant\n  C(10,3)                   — combinations\n  ifactor(2310)             — prime factorization\n  2+3*sin(pi/4)            — arithmetic\nOr any valid Giac/Xcas expression as fallback.\nResults larger than 100,000 characters are refused rather than returned — ask for a smaller range or fewer elements.\nRefused rather than answered, because the answer would be meaningless:\n  - arithmetic evaluating to NaN (e.g. 0/0). An infinite result IS returned, with a warning, since a true infinity and an overflowed finite value are indistinguishable in the result.\n  - a t-test whose sample has no variation (paired_t compares the differences, so it is those that must vary; Welch two_sample_t needs only one sample to vary)\n  - a contingency table with a negative count, an all-zero row or column, rows of differing length, or only one row or column\n  - a one-way ANOVA with no within-group variation, or with no more observations than groups\n  - any of these whose values are large enough that the statistic overflows to infinity (the t-statistic, chi-square or F), since the overflowed value is no longer the statistic\n  - a numerical method whose expression does not depend on the variable it is solved or integrated over, or which the CAS answers symbolically rather than with a number\n  - a result nested more deeply than the evaluator can certify as free of undefined values\n  - a system of differential equations that this rewrite cannot express as a constant matrix. Linear constant-coefficient systems ARE solved: desolve([y'=z, z'=-y], x) returns every function, and the envelope's `components` field says which is which. Refused: not linear in the unknowns; coefficients depending on the independent variable; a derivative of order above one (rewrite y''=z as y'=w, w'=z); more than 9 equations; initial conditions for only some of the functions, or at different points.\nThe infinite-result rule above is about arithmetic evaluation; a symbolic +/-infinity from the CAS routes (a limit, a divergent integral) is a normal answer and is not flagged.","maxLength":8192,"minLength":1,"type":"string"}},"required":["problem"],"type":"object"},"name":"compute"},{"description":"Independently check whether a mathematical claim is true. Use it to confirm an answer — yours or one from `compute` — instead of recomputing and hoping the second attempt agrees.\n\nHandles identities (\"sin(x)^2+cos(x)^2 = 1\"), solution claims (\"x=2 satisfies x^2-4=0\") and computation assertions (\"diff(x^3, x) = 3*x^2\"), checked symbolically, numerically, or both.\n\nThe verdict has three outcomes, not two. Read `evaluated` before `verified`: when `evaluated` is false nothing could be checked — the claim did not parse, or the CAS could not evaluate it — so `verified: false` there means \"unknown\", not \"disproved\". Treating the two as the same turns a syntax error into a refutation.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"claim":{"description":"Mathematical claim to verify. Examples:\n  \"sin(x)^2 + cos(x)^2 = 1\"     — identity check\n  \"x=2 satisfies x^2-4=0\"        — solution check\n  \"diff(x^3, x) = 3*x^2\"         — computation check","maxLength":8192,"minLength":1,"type":"string"},"format":{"description":"Output format:\n  text (default) — human-readable verdict\n  json — structured VerifyResult","enum":["text","json"],"type":"string"},"method":{"description":"Verification method (default: \"both\")","enum":["numeric","symbolic","both"],"type":"string"}},"required":["claim"],"type":"object"},"name":"verify"},{"_meta":{"ui":{"resourceUri":"ui://axiom-math/plot.html"},"ui/resourceUri":"ui://axiom-math/plot.html"},"description":"Plot a single-variable function as a graph. Returns a base64-encoded SVG image with axes, grid, labels and asymptote detection, plus a text caption.\n\nExamples:\n- plot sin(x) from -2*pi to 2*pi\n- plot x^2 - 3*x + 1 from -5 to 5\n- plot exp(-x^2) (Gaussian curve)\n- plot 1/x (poles are split into separate segments rather than joined)\n\nSamples the function numerically, so it draws the shape of an expression — it does not solve or simplify it. Use `compute` for the mathematics and `plot` to show it. Points where the function is undefined are dropped rather than interpolated.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"expression":{"description":"Mathematical expression to plot (e.g., \"sin(x)\", \"x^2 - 3*x + 1\")","maxLength":8192,"type":"string"},"height":{"description":"Image height in pixels (default: 400)","type":"number"},"title":{"description":"Chart title (optional)","type":"string"},"variable":{"description":"Variable name (default: \"x\")","type":"string"},"width":{"description":"Image width in pixels (default: 600)","type":"number"},"x_max":{"description":"Maximum x value (default: 10)","type":"number"},"x_min":{"description":"Minimum x value (default: -10)","type":"number"},"y_max":{"description":"Maximum y value (auto-detected if omitted)","type":"number"},"y_min":{"description":"Minimum y value (auto-detected if omitted)","type":"number"}},"required":["expression"],"type":"object"},"name":"plot"}]}}}
