{"at":"2026-11-23T00:34:39.875Z","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-23T00:34:40.556Z","dir":"received","era":"server_discover","message":{"id":1,"jsonrpc":"2.0","result":{"_meta":{"io.modelcontextprotocol/serverInfo":{"name":"evergreen","version":"0.7.3"}},"cacheScope":"private","capabilities":{"completions":{},"prompts":{"listChanged":true},"resources":{"listChanged":true},"tools":{"listChanged":true}},"instructions":"Evergreen performs deterministic deprecation analysis inside the local process. Repository contents are never sent over the network. Scan before editing, create migration context, then verify the previously observed finding.","resultType":"complete","supportedVersions":["2026-07-28"],"ttlMs":0}}}
{"at":"2026-11-23T00:34:40.556Z","dir":"sent","era":"server_discover","message":{"id":2,"jsonrpc":"2.0","method":"tools/list","params":{"_meta":{"io.modelcontextprotocol/clientCapabilities":{},"io.modelcontextprotocol/protocolVersion":"2026-07-28"}}}}
{"at":"2026-11-23T00:34:40.560Z","dir":"received","era":"server_discover","message":{"id":2,"jsonrpc":"2.0","result":{"_meta":{"io.modelcontextprotocol/serverInfo":{"name":"evergreen","version":"0.7.3"}},"cacheScope":"private","resultType":"complete","tools":[{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Run all built-in Evergreen detectors against a local repository and return the complete versioned scan result.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"baseline":{"description":"Optional path, relative to the repository, of an Evergreen baseline file. Suppressed findings are left out and the result's suppressions field says how many, and which suppressions are expiring or expired.","minLength":1,"type":"string"},"repository_path":{"default":".","description":"Local path to the repository. Defaults to the server working directory.","minLength":1,"type":"string"}},"type":"object"},"name":"scan_repository","outputSchema":{"$id":"https://github.com/arminazimi/evergreen/schemas/scan.v1.schema.json","$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"asOf":{"description":"The day the scan was projected onto with --as-of. Present only when one was given.","pattern":"^\\d{4}-\\d{2}-\\d{2}$","type":"string"},"coverage":{"additionalProperties":false,"description":"What the scan checked, so a zero-finding report can say what was covered and what was not. Path arrays are complete here; the text report may show only the first ten of each.","properties":{"ecosystems":{"description":"Detector ids that matched at least one input file in the repository, sorted.","items":{"minLength":1,"type":"string"},"type":"array"},"filesRead":{"description":"Repository-relative paths matched by detector inputs, sorted. Complete list; the text report may truncate display.","items":{"minLength":1,"type":"string"},"type":"array"},"truncated":{"description":"True when the coverage walk stopped early at its entry limit, so ecosystems may be incomplete.","type":"boolean"},"unsupportedFiles":{"description":"Paths of unclassified pins or other unsupported declarations, sorted. Complete list; the text report may truncate display.","items":{"minLength":1,"type":"string"},"type":"array"}},"required":["ecosystems","filesRead","unsupportedFiles"],"type":"object"},"data":{"additionalProperties":false,"description":"Which lifecycle data this result was produced with, and how fresh its evidence is.","properties":{"ageDays":{"minimum":0,"type":"integer"},"createdAt":{"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$","type":["string","null"]},"reviewedThrough":{"pattern":"^\\d{4}-\\d{2}-\\d{2}$","type":"string"},"source":{"enum":["bundled","cache","pinned"]},"stale":{"description":"True when the data is older than 30 days.","type":"boolean"},"version":{"minLength":1,"type":"string"}},"required":["source","version","createdAt","reviewedThrough","ageDays","stale"],"type":"object"},"diagnostics":{"items":{"type":"string"},"type":"array"},"findings":{"items":{"additionalProperties":false,"properties":{"advisoryIds":{"description":"OSV advisory identifiers with no fixed version for this finding's package, from the bundled OSV cross-reference.","items":{"minLength":1,"type":"string"},"minItems":1,"type":"array","uniqueItems":true},"confidence":{"enum":["exact","range","inferred-from-lock"]},"deadline":{"format":"date","type":"string"},"dependencyPath":{"items":{"type":"string"},"minItems":2,"type":"array"},"detector":{"type":"string"},"id":{"type":"string"},"impact":{"additionalProperties":false,"properties":{"affectedFiles":{"minimum":0,"type":"integer"},"level":{"enum":["none","low","medium","high"]},"usageCount":{"minimum":0,"type":"integer"}},"required":["usageCount","affectedFiles","level"],"type":"object"},"location":{"additionalProperties":false,"properties":{"column":{"minimum":1,"type":"integer"},"line":{"minimum":1,"type":"integer"},"path":{"type":"string"}},"required":["path"],"type":"object"},"migration":{"additionalProperties":false,"properties":{"constraints":{"items":{"minLength":1,"type":"string"},"minItems":1,"type":"array"},"steps":{"items":{"additionalProperties":false,"properties":{"id":{"minLength":1,"type":"string"},"instructions":{"minLength":1,"type":"string"},"targets":{"enum":["declaration","usages","all"]},"title":{"minLength":1,"type":"string"}},"required":["id","title","instructions","targets"],"type":"object"},"minItems":1,"type":"array"},"verification":{"items":{"additionalProperties":false,"properties":{"command":{"minLength":1,"type":"string"},"purpose":{"minLength":1,"type":"string"}},"required":["command","purpose"],"type":"object"},"minItems":1,"type":"array"}},"required":["constraints","steps","verification"],"type":"object"},"replacement":{"type":"string"},"ruleId":{"type":"string"},"severity":{"enum":["info","low","medium","high","critical"]},"sources":{"items":{"additionalProperties":false,"properties":{"accessedAt":{"format":"date","type":"string"},"title":{"type":"string"},"url":{"format":"uri","type":"string"}},"required":["title","url"],"type":"object"},"minItems":1,"type":"array"},"summary":{"type":"string"},"title":{"type":"string"},"usages":{"items":{"additionalProperties":false,"properties":{"excerpt":{"type":"string"},"kind":{"enum":["import","call","config-key","symbol"]},"language":{"enum":["javascript","typescript","python","ruby","json","yaml","toml","ini","php","swift","dart"]},"location":{"additionalProperties":false,"properties":{"column":{"minimum":1,"type":"integer"},"line":{"minimum":1,"type":"integer"},"path":{"type":"string"}},"required":["path"],"type":"object"},"symbol":{"type":"string"}},"required":["kind","language","symbol","location","excerpt"],"type":"object"},"type":"array"}},"required":["id","ruleId","detector","title","summary","severity","location","sources"],"type":"object"},"type":"array"},"root":{"type":"string"},"scannedAt":{"format":"date-time","type":"string"},"schemaVersion":{"const":"evergreen.scan.v1"},"selection":{"additionalProperties":false,"description":"The --only/--exclude selectors applied to the scan. Present only when one was given.","properties":{"exclude":{"description":"Ecosystem ids or rule-id prefixes the scan dropped.","items":{"minLength":1,"type":"string"},"minItems":1,"type":"array"},"only":{"description":"Ecosystem ids or rule-id prefixes the scan kept.","items":{"minLength":1,"type":"string"},"minItems":1,"type":"array"}},"type":"object"},"suppressions":{"additionalProperties":false,"description":"What a baseline did to this scan. Present only when a baseline was applied.","properties":{"expired":{"description":"Suppressions that have ended and no longer hide their finding, longest ago first.","items":{"additionalProperties":false,"properties":{"daysAgo":{"minimum":0,"type":"integer"},"daysLeft":{"minimum":0,"type":"integer"},"expires":{"pattern":"^\\d{4}-\\d{2}-\\d{2}$","type":"string"},"owner":{"type":"string"},"path":{"type":"string"},"reason":{"type":"string"},"ruleId":{"type":"string"}},"required":["ruleId","path","expires"],"type":"object"},"type":"array"},"expiring":{"description":"Suppressions in force that end within the warning window, soonest first.","items":{"additionalProperties":false,"properties":{"daysAgo":{"minimum":0,"type":"integer"},"daysLeft":{"minimum":0,"type":"integer"},"expires":{"pattern":"^\\d{4}-\\d{2}-\\d{2}$","type":"string"},"owner":{"type":"string"},"path":{"type":"string"},"reason":{"type":"string"},"ruleId":{"type":"string"}},"required":["ruleId","path","expires"],"type":"object"},"type":"array"},"suppressed":{"description":"Findings the baseline hid.","minimum":0,"type":"integer"},"today":{"description":"The day suppression dates were compared with, when one was given.","pattern":"^\\d{4}-\\d{2}-\\d{2}$","type":"string"},"warnWithinDays":{"minimum":0,"type":"integer"}},"required":["suppressed","expiring","expired"],"type":"object"},"unclassified":{"additionalProperties":false,"properties":{"count":{"minimum":0,"type":"integer"},"references":{"items":{"additionalProperties":false,"properties":{"component":{"minLength":1,"type":"string"},"detector":{"minLength":1,"type":"string"},"location":{"additionalProperties":false,"properties":{"column":{"minimum":1,"type":"integer"},"line":{"minimum":1,"type":"integer"},"path":{"type":"string"}},"required":["path"],"type":"object"},"reason":{"minLength":1,"type":"string"},"reference":{"minLength":1,"type":"string"}},"required":["detector","component","reference","reason","location"],"type":"object"},"type":"array"}},"required":["count","references"],"type":"object"}},"required":["schemaVersion","root","scannedAt","findings","diagnostics"],"title":"Evergreen scan result v1","type":"object"},"title":"Scan repository"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Run a fresh local scan and return a compact, versioned list of lifecycle findings.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"repository_path":{"default":".","description":"Local path to the repository. Defaults to the server working directory.","minLength":1,"type":"string"}},"type":"object"},"name":"list_deprecations","outputSchema":{"$id":"https://github.com/arminazimi/evergreen/schemas/deprecations.v1.schema.json","$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"count":{"minimum":0,"type":"integer"},"data":{"additionalProperties":false,"description":"Which lifecycle data this result was produced with, and how fresh its evidence is.","properties":{"ageDays":{"minimum":0,"type":"integer"},"createdAt":{"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$","type":["string","null"]},"reviewedThrough":{"pattern":"^\\d{4}-\\d{2}-\\d{2}$","type":"string"},"source":{"enum":["bundled","cache","pinned"]},"stale":{"description":"True when the data is older than 30 days.","type":"boolean"},"version":{"minLength":1,"type":"string"}},"required":["source","version","createdAt","reviewedThrough","ageDays","stale"],"type":"object"},"deprecations":{"items":{"additionalProperties":false,"properties":{"affectedFiles":{"minimum":0,"type":"integer"},"id":{"minLength":1,"type":"string"},"location":{"additionalProperties":false,"properties":{"column":{"minimum":1,"type":"integer"},"line":{"minimum":1,"type":"integer"},"path":{"type":"string"}},"required":["path"],"type":"object"},"ruleId":{"minLength":1,"type":"string"},"severity":{"enum":["info","low","medium","high","critical"]},"title":{"minLength":1,"type":"string"},"usageCount":{"minimum":0,"type":"integer"}},"required":["id","ruleId","title","severity","location","usageCount","affectedFiles"],"type":"object"},"type":"array"},"repositoryRoot":{"type":"string"},"scannedAt":{"format":"date-time","type":"string"},"schemaVersion":{"const":"evergreen.deprecations.v1"}},"required":["schemaVersion","repositoryRoot","scannedAt","count","deprecations"],"title":"Evergreen deprecation list v1","type":"object"},"title":"List deprecations"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Run a fresh local scan and return one complete evidence-backed finding by ID.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"finding_id":{"description":"Exact finding ID returned by Evergreen.","minLength":1,"type":"string"},"repository_path":{"default":".","description":"Local path to the repository. Defaults to the server working directory.","minLength":1,"type":"string"}},"required":["finding_id"],"type":"object"},"name":"explain_deprecation","outputSchema":{"$id":"https://github.com/arminazimi/evergreen/schemas/finding.v1.schema.json","$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"description":"One evidence-backed lifecycle finding, as returned by explain_deprecation and exposed as an evergreen://findings resource. It is the item schema of the findings array in scan.v1.","properties":{"advisoryIds":{"description":"OSV advisory identifiers with no fixed version for this finding's package, from the bundled OSV cross-reference.","items":{"minLength":1,"type":"string"},"minItems":1,"type":"array","uniqueItems":true},"confidence":{"enum":["exact","range","inferred-from-lock"]},"deadline":{"format":"date","type":"string"},"dependencyPath":{"items":{"type":"string"},"minItems":2,"type":"array"},"detector":{"type":"string"},"id":{"type":"string"},"impact":{"additionalProperties":false,"properties":{"affectedFiles":{"minimum":0,"type":"integer"},"level":{"enum":["none","low","medium","high"]},"usageCount":{"minimum":0,"type":"integer"}},"required":["usageCount","affectedFiles","level"],"type":"object"},"location":{"additionalProperties":false,"properties":{"column":{"minimum":1,"type":"integer"},"line":{"minimum":1,"type":"integer"},"path":{"type":"string"}},"required":["path"],"type":"object"},"migration":{"additionalProperties":false,"properties":{"constraints":{"items":{"minLength":1,"type":"string"},"minItems":1,"type":"array"},"steps":{"items":{"additionalProperties":false,"properties":{"id":{"minLength":1,"type":"string"},"instructions":{"minLength":1,"type":"string"},"targets":{"enum":["declaration","usages","all"]},"title":{"minLength":1,"type":"string"}},"required":["id","title","instructions","targets"],"type":"object"},"minItems":1,"type":"array"},"verification":{"items":{"additionalProperties":false,"properties":{"command":{"minLength":1,"type":"string"},"purpose":{"minLength":1,"type":"string"}},"required":["command","purpose"],"type":"object"},"minItems":1,"type":"array"}},"required":["constraints","steps","verification"],"type":"object"},"replacement":{"type":"string"},"ruleId":{"type":"string"},"severity":{"enum":["info","low","medium","high","critical"]},"sources":{"items":{"additionalProperties":false,"properties":{"accessedAt":{"format":"date","type":"string"},"title":{"type":"string"},"url":{"format":"uri","type":"string"}},"required":["title","url"],"type":"object"},"minItems":1,"type":"array"},"summary":{"type":"string"},"title":{"type":"string"},"usages":{"items":{"additionalProperties":false,"properties":{"excerpt":{"type":"string"},"kind":{"enum":["import","call","config-key","symbol"]},"language":{"enum":["javascript","typescript","python","ruby","json","yaml","toml","ini","php","swift","dart"]},"location":{"additionalProperties":false,"properties":{"column":{"minimum":1,"type":"integer"},"line":{"minimum":1,"type":"integer"},"path":{"type":"string"}},"required":["path"],"type":"object"},"symbol":{"type":"string"}},"required":["kind","language","symbol","location","excerpt"],"type":"object"},"type":"array"}},"required":["id","ruleId","detector","title","summary","severity","location","sources"],"title":"Evergreen finding v1","type":"object"},"title":"Explain deprecation"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Create a validated, rule-specific migration packet for one finding from a fresh local scan.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"finding_id":{"description":"Exact finding ID returned by Evergreen.","minLength":1,"type":"string"},"repository_path":{"default":".","description":"Local path to the repository. Defaults to the server working directory.","minLength":1,"type":"string"}},"required":["finding_id"],"type":"object"},"name":"create_migration_context","outputSchema":{"$defs":{"upgradeLine":{"additionalProperties":false,"properties":{"endsOn":{"type":"string"},"ruleId":{"type":"string"},"status":{"enum":["ended","ending-soon"]},"title":{"type":"string"},"versions":{"type":"string"}},"required":["ruleId","versions","title","status"],"type":"object"}},"$id":"https://github.com/arminazimi/evergreen/schemas/context.v1.schema.json","$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"affectedFiles":{"items":{"type":"string"},"minItems":1,"type":"array","uniqueItems":true},"constraints":{"items":{"type":"string"},"minItems":1,"type":"array"},"finding":{"additionalProperties":false,"properties":{"advisoryIds":{"description":"OSV advisory identifiers with no fixed version for this finding's package, from the bundled OSV cross-reference.","items":{"minLength":1,"type":"string"},"minItems":1,"type":"array","uniqueItems":true},"confidence":{"enum":["exact","range","inferred-from-lock"]},"deadline":{"format":"date","type":"string"},"dependencyPath":{"items":{"type":"string"},"minItems":2,"type":"array"},"detector":{"type":"string"},"id":{"type":"string"},"impact":{"additionalProperties":false,"properties":{"affectedFiles":{"minimum":0,"type":"integer"},"level":{"enum":["none","low","medium","high"]},"usageCount":{"minimum":0,"type":"integer"}},"required":["usageCount","affectedFiles","level"],"type":"object"},"location":{"additionalProperties":false,"properties":{"column":{"minimum":1,"type":"integer"},"line":{"minimum":1,"type":"integer"},"path":{"type":"string"}},"required":["path"],"type":"object"},"migration":{"additionalProperties":false,"properties":{"constraints":{"items":{"minLength":1,"type":"string"},"minItems":1,"type":"array"},"steps":{"items":{"additionalProperties":false,"properties":{"id":{"minLength":1,"type":"string"},"instructions":{"minLength":1,"type":"string"},"targets":{"enum":["declaration","usages","all"]},"title":{"minLength":1,"type":"string"}},"required":["id","title","instructions","targets"],"type":"object"},"minItems":1,"type":"array"},"verification":{"items":{"additionalProperties":false,"properties":{"command":{"minLength":1,"type":"string"},"purpose":{"minLength":1,"type":"string"}},"required":["command","purpose"],"type":"object"},"minItems":1,"type":"array"}},"required":["constraints","steps","verification"],"type":"object"},"replacement":{"type":"string"},"ruleId":{"type":"string"},"severity":{"enum":["info","low","medium","high","critical"]},"sources":{"items":{"additionalProperties":false,"properties":{"accessedAt":{"format":"date","type":"string"},"title":{"type":"string"},"url":{"format":"uri","type":"string"}},"required":["title","url"],"type":"object"},"minItems":1,"type":"array"},"summary":{"type":"string"},"title":{"type":"string"},"usages":{"items":{"additionalProperties":false,"properties":{"excerpt":{"type":"string"},"kind":{"enum":["import","call","config-key","symbol"]},"language":{"enum":["javascript","typescript","python","ruby","json","yaml","toml","ini","php","swift","dart"]},"location":{"additionalProperties":false,"properties":{"column":{"minimum":1,"type":"integer"},"line":{"minimum":1,"type":"integer"},"path":{"type":"string"}},"required":["path"],"type":"object"},"symbol":{"type":"string"}},"required":["kind","language","symbol","location","excerpt"],"type":"object"},"type":"array"}},"required":["id","ruleId","detector","title","summary","severity","location","sources"],"type":"object"},"generatedAt":{"format":"date-time","type":"string"},"repositoryRoot":{"type":"string"},"schemaVersion":{"const":"evergreen.context.v1"},"sources":{"items":{"additionalProperties":false,"properties":{"accessedAt":{"format":"date","type":"string"},"title":{"type":"string"},"url":{"format":"uri","type":"string"}},"required":["title","url"],"type":"object"},"minItems":1,"type":"array"},"steps":{"items":{"additionalProperties":false,"properties":{"id":{"type":"string"},"instructions":{"type":"string"},"paths":{"items":{"type":"string"},"type":"array"},"targets":{"enum":["declaration","usages","all"]},"title":{"type":"string"}},"required":["id","title","instructions","targets","paths"],"type":"object"},"minItems":1,"type":"array"},"upgradePath":{"additionalProperties":false,"properties":{"from":{"$ref":"#/$defs/upgradeLine"},"skipped":{"items":{"$ref":"#/$defs/upgradeLine"},"type":"array"},"target":{"additionalProperties":false,"properties":{"endsOn":{"type":"string"},"replacement":{"type":"string"},"title":{"type":"string"},"versions":{"type":"string"}},"type":"object"}},"required":["from","skipped","target"],"type":"object"},"usages":{"items":{"additionalProperties":false,"properties":{"excerpt":{"type":"string"},"kind":{"enum":["import","call","config-key","symbol"]},"language":{"enum":["javascript","typescript","python","ruby","json","yaml","toml","ini","php","swift","dart"]},"location":{"additionalProperties":false,"properties":{"column":{"minimum":1,"type":"integer"},"line":{"minimum":1,"type":"integer"},"path":{"type":"string"}},"required":["path"],"type":"object"},"symbol":{"type":"string"}},"required":["kind","language","symbol","location","excerpt"],"type":"object"},"type":"array"},"verification":{"items":{"additionalProperties":false,"properties":{"command":{"type":"string"},"purpose":{"type":"string"}},"required":["command","purpose"],"type":"object"},"minItems":1,"type":"array"}},"required":["schemaVersion","generatedAt","repositoryRoot","finding","affectedFiles","usages","constraints","steps","sources","verification"],"title":"Evergreen migration context v1","type":"object"},"title":"Create migration context"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Re-scan locally and check whether a finding observed earlier in this MCP session is gone. Suggested project commands are returned but never executed. When the repository was scanned earlier in the session, the result also carries a receipt and receipt_markdown for the pull request body.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"finding_id":{"description":"Exact finding ID returned by Evergreen.","minLength":1,"type":"string"},"repository_path":{"default":".","description":"Local path to the repository. Defaults to the server working directory.","minLength":1,"type":"string"}},"required":["finding_id"],"type":"object"},"name":"verify_migration","outputSchema":{"$id":"https://github.com/arminazimi/evergreen/schemas/verification.v1.schema.json","$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"commandsExecuted":{"const":false},"findingId":{"minLength":1,"type":"string"},"receipt":{"$defs":{"finding":{"additionalProperties":false,"properties":{"id":{"description":"The scan's finding id, so the entry joins the finding in `scan --json`.","minLength":1,"type":"string"},"line":{"minimum":1,"type":"integer"},"path":{"description":"Repository-relative path.","minLength":1,"type":"string"},"rule":{"minLength":1,"type":"string"},"severity":{"enum":["info","low","medium","high","critical"]},"title":{"minLength":1,"type":"string"}},"required":["id","rule","title","severity","path"],"type":"object"}},"$id":"https://github.com/arminazimi/evergreen/schemas/receipt.v1.schema.json","$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"description":"What the change since the session's last scan did to the repository's findings. Present when a scan was observed before verification.","properties":{"commands":{"description":"Verification commands the touched rules suggest, ordered by command. They are printed and never run.","items":{"additionalProperties":false,"properties":{"command":{"minLength":1,"type":"string"},"purpose":{"minLength":1,"type":"string"}},"required":["command","purpose"],"type":"object"},"type":"array"},"counts":{"additionalProperties":false,"description":"One count per list, so a reader can show a summary without walking the findings.","properties":{"introduced":{"minimum":0,"type":"integer"},"remaining":{"minimum":0,"type":"integer"},"resolved":{"minimum":0,"type":"integer"}},"required":["resolved","remaining","introduced"],"type":"object"},"data":{"additionalProperties":false,"description":"The lifecycle data each side of the comparison used; null when a scan did not record it.","properties":{"after":{"oneOf":[{"additionalProperties":false,"description":"Which lifecycle data this result was produced with, and how fresh its evidence is.","properties":{"ageDays":{"minimum":0,"type":"integer"},"createdAt":{"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$","type":["string","null"]},"reviewedThrough":{"pattern":"^\\d{4}-\\d{2}-\\d{2}$","type":"string"},"source":{"enum":["bundled","cache","pinned"]},"stale":{"description":"True when the data is older than 30 days.","type":"boolean"},"version":{"minLength":1,"type":"string"}},"required":["source","version","createdAt","reviewedThrough","ageDays","stale"],"type":"object"},{"type":"null"}]},"before":{"oneOf":[{"additionalProperties":false,"description":"Which lifecycle data this result was produced with, and how fresh its evidence is.","properties":{"ageDays":{"minimum":0,"type":"integer"},"createdAt":{"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$","type":["string","null"]},"reviewedThrough":{"pattern":"^\\d{4}-\\d{2}-\\d{2}$","type":"string"},"source":{"enum":["bundled","cache","pinned"]},"stale":{"description":"True when the data is older than 30 days.","type":"boolean"},"version":{"minLength":1,"type":"string"}},"required":["source","version","createdAt","reviewedThrough","ageDays","stale"],"type":"object"},{"type":"null"}]}},"required":["before","after"],"type":"object"},"introduced":{"description":"Findings only the after scan reports, ordered by finding id.","items":{"$ref":"#/$defs/finding"},"type":"array"},"remaining":{"description":"Findings both scans report, ordered by finding id.","items":{"$ref":"#/$defs/finding"},"type":"array"},"resolved":{"description":"Findings the before scan reported and the after scan does not, ordered by finding id.","items":{"$ref":"#/$defs/finding"},"type":"array"},"schema":{"const":"evergreen.receipt.v1"}},"required":["schema","counts","resolved","remaining","introduced","commands","data"],"title":"Evergreen verification receipt v1","type":"object"},"receipt_markdown":{"description":"The receipt rendered for a pull request body, with the evergreen-receipt marker.","minLength":1,"type":"string"},"remainingFindings":{"items":{"additionalProperties":false,"properties":{"advisoryIds":{"description":"OSV advisory identifiers with no fixed version for this finding's package, from the bundled OSV cross-reference.","items":{"minLength":1,"type":"string"},"minItems":1,"type":"array","uniqueItems":true},"confidence":{"enum":["exact","range","inferred-from-lock"]},"deadline":{"format":"date","type":"string"},"dependencyPath":{"items":{"type":"string"},"minItems":2,"type":"array"},"detector":{"type":"string"},"id":{"type":"string"},"impact":{"additionalProperties":false,"properties":{"affectedFiles":{"minimum":0,"type":"integer"},"level":{"enum":["none","low","medium","high"]},"usageCount":{"minimum":0,"type":"integer"}},"required":["usageCount","affectedFiles","level"],"type":"object"},"location":{"additionalProperties":false,"properties":{"column":{"minimum":1,"type":"integer"},"line":{"minimum":1,"type":"integer"},"path":{"type":"string"}},"required":["path"],"type":"object"},"migration":{"additionalProperties":false,"properties":{"constraints":{"items":{"minLength":1,"type":"string"},"minItems":1,"type":"array"},"steps":{"items":{"additionalProperties":false,"properties":{"id":{"minLength":1,"type":"string"},"instructions":{"minLength":1,"type":"string"},"targets":{"enum":["declaration","usages","all"]},"title":{"minLength":1,"type":"string"}},"required":["id","title","instructions","targets"],"type":"object"},"minItems":1,"type":"array"},"verification":{"items":{"additionalProperties":false,"properties":{"command":{"minLength":1,"type":"string"},"purpose":{"minLength":1,"type":"string"}},"required":["command","purpose"],"type":"object"},"minItems":1,"type":"array"}},"required":["constraints","steps","verification"],"type":"object"},"replacement":{"type":"string"},"ruleId":{"type":"string"},"severity":{"enum":["info","low","medium","high","critical"]},"sources":{"items":{"additionalProperties":false,"properties":{"accessedAt":{"format":"date","type":"string"},"title":{"type":"string"},"url":{"format":"uri","type":"string"}},"required":["title","url"],"type":"object"},"minItems":1,"type":"array"},"summary":{"type":"string"},"title":{"type":"string"},"usages":{"items":{"additionalProperties":false,"properties":{"excerpt":{"type":"string"},"kind":{"enum":["import","call","config-key","symbol"]},"language":{"enum":["javascript","typescript","python","ruby","json","yaml","toml","ini","php","swift","dart"]},"location":{"additionalProperties":false,"properties":{"column":{"minimum":1,"type":"integer"},"line":{"minimum":1,"type":"integer"},"path":{"type":"string"}},"required":["path"],"type":"object"},"symbol":{"type":"string"}},"required":["kind","language","symbol","location","excerpt"],"type":"object"},"type":"array"}},"required":["id","ruleId","detector","title","summary","severity","location","sources"],"type":"object"},"type":"array"},"repositoryRoot":{"type":"string"},"schemaVersion":{"const":"evergreen.verification.v1"},"suggestedCommands":{"items":{"additionalProperties":false,"properties":{"command":{"minLength":1,"type":"string"},"purpose":{"minLength":1,"type":"string"}},"required":["command","purpose"],"type":"object"},"minItems":1,"type":"array"},"summary":{"minLength":1,"type":"string"},"verified":{"type":"boolean"},"verifiedAt":{"format":"date-time","type":"string"}},"required":["schemaVersion","repositoryRoot","findingId","verifiedAt","verified","commandsExecuted","summary","remainingFindings","suggestedCommands"],"title":"Evergreen migration verification v1","type":"object"},"title":"Verify migration"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Check one package, and optionally one version, against Evergreen's lifecycle rules before adding it to a project. Pass a Package URL such as pkg:npm/request@2.88.2 or pkg:github/actions/checkout@v4. Returns evergreen.check.v1: a status (affected, not-affected, version-dependent, or no-data), the evidence-backed findings, and a replacement when one is known. no-data means Evergreen has no rule for the package, not that it is safe. No repository is read.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"purl":{"description":"Package URL of the dependency, with the version when it is known, for example pkg:npm/request@2.88.2.","minLength":1,"type":"string"},"version":{"description":"Exact version to check; overrides a version written in the PURL.","minLength":1,"type":"string"}},"required":["purl"],"type":"object"},"name":"check_dependency","outputSchema":{"$id":"https://github.com/arminazimi/evergreen/schemas/check.v1.schema.json","$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"description":"The result of checking one package, and optionally one version, against Evergreen's lifecycle rules.","properties":{"data":{"additionalProperties":false,"description":"Which lifecycle data this result was produced with, and how fresh its evidence is.","properties":{"ageDays":{"minimum":0,"type":"integer"},"createdAt":{"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$","type":["string","null"]},"reviewedThrough":{"pattern":"^\\d{4}-\\d{2}-\\d{2}$","type":"string"},"source":{"enum":["bundled","cache","pinned"]},"stale":{"description":"True when the data is older than 30 days.","type":"boolean"},"version":{"minLength":1,"type":"string"}},"required":["source","version","createdAt","reviewedThrough","ageDays","stale"],"type":"object"},"findings":{"items":{"additionalProperties":false,"properties":{"affectedVersions":{"pattern":"^vers:","type":"string"},"deadline":{"pattern":"^\\d{4}-\\d{2}-\\d{2}$","type":"string"},"ecosystem":{"minLength":1,"type":"string"},"event":{"enum":["deprecated","end-of-support","end-of-life","removed","scheduled-end-of-life"]},"migration":{"additionalProperties":false,"properties":{"constraints":{"items":{"minLength":1,"type":"string"},"minItems":1,"type":"array"},"steps":{"items":{"additionalProperties":false,"properties":{"id":{"minLength":1,"type":"string"},"instructions":{"minLength":1,"type":"string"},"targets":{"enum":["declaration","usages","all"]},"title":{"minLength":1,"type":"string"}},"required":["id","title","instructions","targets"],"type":"object"},"minItems":1,"type":"array"},"verification":{"items":{"additionalProperties":false,"properties":{"command":{"minLength":1,"type":"string"},"purpose":{"minLength":1,"type":"string"}},"required":["command","purpose"],"type":"object"},"minItems":1,"type":"array"}},"required":["constraints","steps","verification"],"type":"object"},"replacement":{"type":"string"},"ruleId":{"minLength":1,"type":"string"},"severity":{"enum":["info","low","medium","high","critical"]},"sources":{"items":{"additionalProperties":false,"properties":{"accessedAt":{"type":"string"},"title":{"type":"string"},"url":{"pattern":"^https://","type":"string"}},"required":["title","url"],"type":"object"},"minItems":1,"type":"array"},"summary":{"minLength":1,"type":"string"},"title":{"minLength":1,"type":"string"}},"required":["ruleId","ecosystem","event","severity","title","summary","affectedVersions","sources"],"type":"object"},"type":"array"},"message":{"minLength":1,"type":"string"},"purl":{"description":"Version-less canonical Package URL.","pattern":"^pkg:","type":"string"},"schemaVersion":{"const":"evergreen.check.v1"},"severity":{"description":"Highest severity among the findings.","enum":["info","low","medium","high","critical"]},"status":{"description":"no-data means Evergreen has no rule for the package; it does not mean the package is safe.","enum":["affected","version-dependent","not-affected","no-data"]},"version":{"minLength":1,"type":"string"}},"required":["schemaVersion","purl","status","findings","message"],"title":"Evergreen dependency check v1","type":"object"},"title":"Check dependency"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Answer from files already in the repository whether a project can move to a target runtime, without running anything or using the network. Pass target as runtime@version, for example php@8.4. Returns evergreen.upgrade.v1: the verdict, the analyzers that applied, and every blocker, warning, and unknown with its path, line, and the exact constraint it read. An unknown verdict means Evergreen found no evidence for this runtime in this repository; it is not a statement that the upgrade is safe.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"path":{"default":".","description":"Local path to the repository. Defaults to the server working directory.","minLength":1,"type":"string"},"target":{"description":"Runtime and release to move to, as runtime@version, for example php@8.4 or nodejs@22.","minLength":1,"type":"string"}},"required":["target"],"type":"object"},"name":"check_upgrade","outputSchema":{"$id":"https://github.com/arminazimi/evergreen/schemas/upgrade.v1.schema.json","$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"description":"Whether a repository can move to a target runtime, answered from files already in the repository.","properties":{"analyzers":{"description":"Ids of the analyzers that applied to this repository and target, sorted.","items":{"minLength":1,"type":"string"},"type":"array"},"issues":{"items":{"additionalProperties":false,"properties":{"analyzer":{"minLength":1,"type":"string"},"evidence":{"additionalProperties":false,"properties":{"kind":{"enum":["lockfile","manifest","rule"]},"value":{"description":"The exact value as written in the file, or a lifecycle rule id.","minLength":1,"type":"string"}},"required":["kind","value"],"type":"object"},"level":{"description":"blocker: will not install or run on the target. warning: works but is deprecated there. unknown: the evidence needed is missing.","enum":["blocker","warning","unknown"]},"line":{"minimum":1,"type":"integer"},"path":{"minLength":1,"type":"string"},"reason":{"minLength":1,"type":"string"},"subject":{"minLength":1,"type":"string"}},"required":["analyzer","level","subject","path","reason","evidence"],"type":"object"},"type":"array"},"schemaVersion":{"const":"evergreen.upgrade.v1"},"target":{"additionalProperties":false,"properties":{"runtime":{"minLength":1,"type":"string"},"version":{"minLength":1,"type":"string"}},"required":["runtime","version"],"type":"object"},"verdict":{"description":"blocked when any blocker; unknown when no analyzer applied; ready otherwise. unknown is not a statement that the upgrade is safe.","enum":["ready","blocked","unknown"]}},"required":["schemaVersion","target","verdict","analyzers","issues"],"title":"Evergreen upgrade report v1","type":"object"},"title":"Check upgrade"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Check one file snippet before writing it: pass the intended repository-relative path and the exact content, and Evergreen runs all built-in detectors against that one file in an isolated temporary directory. Call this before writing or editing package manifests, Dockerfiles, CI workflows, and Kubernetes manifests. Returns the same findings as scan_repository, with paths and lines relative to the snippet. The real repository is never read or written.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"content":{"description":"The exact content the agent intends to write.","minLength":1,"type":"string"},"path":{"description":"The intended repository-relative path, for example Dockerfile, .github/workflows/ci.yml, or package.json. It decides which detector reads the snippet.","minLength":1,"type":"string"}},"required":["path","content"],"type":"object"},"name":"check_snippet","outputSchema":{"$id":"https://github.com/arminazimi/evergreen/schemas/check-snippet.v1.schema.json","$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"description":"What Evergreen flags in one file snippet, checked in isolation before it is written to a repository. The findings have the same shape as a scan result's, with paths and lines relative to the snippet.","properties":{"findings":{"items":{"additionalProperties":false,"properties":{"advisoryIds":{"description":"OSV advisory identifiers with no fixed version for this finding's package, from the bundled OSV cross-reference.","items":{"minLength":1,"type":"string"},"minItems":1,"type":"array","uniqueItems":true},"confidence":{"enum":["exact","range","inferred-from-lock"]},"deadline":{"format":"date","type":"string"},"dependencyPath":{"items":{"type":"string"},"minItems":2,"type":"array"},"detector":{"type":"string"},"id":{"type":"string"},"impact":{"additionalProperties":false,"properties":{"affectedFiles":{"minimum":0,"type":"integer"},"level":{"enum":["none","low","medium","high"]},"usageCount":{"minimum":0,"type":"integer"}},"required":["usageCount","affectedFiles","level"],"type":"object"},"location":{"additionalProperties":false,"properties":{"column":{"minimum":1,"type":"integer"},"line":{"minimum":1,"type":"integer"},"path":{"type":"string"}},"required":["path"],"type":"object"},"migration":{"additionalProperties":false,"properties":{"constraints":{"items":{"minLength":1,"type":"string"},"minItems":1,"type":"array"},"steps":{"items":{"additionalProperties":false,"properties":{"id":{"minLength":1,"type":"string"},"instructions":{"minLength":1,"type":"string"},"targets":{"enum":["declaration","usages","all"]},"title":{"minLength":1,"type":"string"}},"required":["id","title","instructions","targets"],"type":"object"},"minItems":1,"type":"array"},"verification":{"items":{"additionalProperties":false,"properties":{"command":{"minLength":1,"type":"string"},"purpose":{"minLength":1,"type":"string"}},"required":["command","purpose"],"type":"object"},"minItems":1,"type":"array"}},"required":["constraints","steps","verification"],"type":"object"},"replacement":{"type":"string"},"ruleId":{"type":"string"},"severity":{"enum":["info","low","medium","high","critical"]},"sources":{"items":{"additionalProperties":false,"properties":{"accessedAt":{"format":"date","type":"string"},"title":{"type":"string"},"url":{"format":"uri","type":"string"}},"required":["title","url"],"type":"object"},"minItems":1,"type":"array"},"summary":{"type":"string"},"title":{"type":"string"},"usages":{"items":{"additionalProperties":false,"properties":{"excerpt":{"type":"string"},"kind":{"enum":["import","call","config-key","symbol"]},"language":{"enum":["javascript","typescript","python","ruby","json","yaml","toml","ini","php","swift","dart"]},"location":{"additionalProperties":false,"properties":{"column":{"minimum":1,"type":"integer"},"line":{"minimum":1,"type":"integer"},"path":{"type":"string"}},"required":["path"],"type":"object"},"symbol":{"type":"string"}},"required":["kind","language","symbol","location","excerpt"],"type":"object"},"type":"array"}},"required":["id","ruleId","detector","title","summary","severity","location","sources"],"type":"object"},"type":"array"},"message":{"description":"One sentence a person or an agent can show as is.","minLength":1,"type":"string"},"path":{"description":"The repository-relative path the snippet was checked as, for example Dockerfile.","minLength":1,"type":"string"},"schemaVersion":{"const":"evergreen.check-snippet.v1"}},"required":["schemaVersion","path","findings","message"],"title":"Evergreen snippet check v1","type":"object"},"title":"Check snippet"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Run a fresh local scan and list what reaches a dated end of life in the next months, grouped by month, with the findings in this repository that each event will affect. Only events that carry an authoritative date are listed; nothing is estimated.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"as_of":{"description":"The day to start the window from, as YYYY-MM-DD. Defaults to today in UTC.","pattern":"^\\d{4}-\\d{2}-\\d{2}$","type":"string"},"months":{"default":12,"description":"How many months ahead to look, from 1 to 36. Defaults to 12.","maximum":36,"minimum":1,"type":"integer"},"repository_path":{"default":".","description":"Local path to the repository. Defaults to the server working directory.","minLength":1,"type":"string"}},"type":"object"},"name":"forecast_repository","outputSchema":{"$defs":{"event":{"additionalProperties":false,"properties":{"date":{"format":"date","type":"string"},"ecosystem":{"minLength":1,"type":"string"},"findings":{"items":{"additionalProperties":false,"properties":{"id":{"minLength":1,"type":"string"},"line":{"minimum":1,"type":"integer"},"path":{"type":"string"}},"required":["id","path"],"type":"object"},"type":"array"},"ruleId":{"minLength":1,"type":"string"},"severity":{"enum":["info","low","medium","high","critical"]},"source":{"type":"string"},"title":{"minLength":1,"type":"string"}},"required":["date","ruleId","ecosystem","title","severity","source","findings"],"type":"object"}},"$id":"https://github.com/arminazimi/evergreen/schemas/forecast.v1.schema.json","$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"affecting":{"minimum":0,"type":"integer"},"groups":{"items":{"additionalProperties":false,"properties":{"events":{"items":{"$ref":"#/$defs/event"},"type":"array"},"month":{"pattern":"^\\d{4}-\\d{2}$","type":"string"}},"required":["month","events"],"type":"object"},"type":"array"},"months":{"maximum":36,"minimum":1,"type":"integer"},"root":{"type":"string"},"schemaVersion":{"const":"evergreen.forecast.v1"},"today":{"pattern":"^\\d{4}-\\d{2}-\\d{2}$","type":"string"},"total":{"minimum":0,"type":"integer"},"until":{"pattern":"^\\d{4}-\\d{2}-\\d{2}$","type":"string"}},"required":["schemaVersion","root","today","until","months","groups","affecting","total"],"title":"Evergreen forecast v1","type":"object"},"title":"Forecast repository"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Run a fresh local scan and return a migration plan: waves of independent tasks a coordinating agent can hand to other agents. Each item names the finding, the paths it touches, and a suggested branch.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"repository_path":{"default":".","description":"Local path to the repository. Defaults to the server working directory.","minLength":1,"type":"string"}},"type":"object"},"name":"plan_migrations","outputSchema":{"$comment":"Every item id belongs to exactly one wave. JSON Schema cannot compare members across arrays, so tests/plan-schema.test.ts rejects duplicates together with this schema.","$defs":{"id":{"minLength":1,"type":"string"},"item":{"additionalProperties":false,"properties":{"branch":{"minLength":1,"type":"string"},"findingId":{"$ref":"#/$defs/id"},"id":{"$ref":"#/$defs/id"},"severity":{"enum":["info","low","medium","high","critical"]},"title":{"minLength":1,"type":"string"},"touches":{"items":{"$ref":"#/$defs/repoPath"},"minItems":1,"type":"array","uniqueItems":true},"wave":{"minimum":0,"type":"integer"}},"required":["id","findingId","title","severity","touches","branch","wave"],"type":"object"},"repoPath":{"pattern":"^(?!\\.$)(?!/)(?!\\./)(?!^[A-Za-z]:)(?!.*(?:^|/)\\.\\.(?:/|$))(?!.*\\\\)(?!.*//)(?!.*/$).+$","type":"string"},"summary":{"additionalProperties":false,"properties":{"bySeverity":{"additionalProperties":false,"properties":{"critical":{"minimum":0,"type":"integer"},"high":{"minimum":0,"type":"integer"},"info":{"minimum":0,"type":"integer"},"low":{"minimum":0,"type":"integer"},"medium":{"minimum":0,"type":"integer"}},"required":["info","low","medium","high","critical"],"type":"object"},"items":{"minimum":0,"type":"integer"},"waves":{"minimum":0,"type":"integer"}},"required":["items","waves","bySeverity"],"type":"object"},"wave":{"additionalProperties":false,"properties":{"index":{"minimum":0,"type":"integer"},"itemIds":{"items":{"$ref":"#/$defs/id"},"minItems":1,"type":"array","uniqueItems":true}},"required":["index","itemIds"],"type":"object"}},"$id":"https://github.com/arminazimi/evergreen/schemas/plan.v1.schema.json","$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"items":{"items":{"$ref":"#/$defs/item"},"type":"array"},"schema":{"const":"evergreen.plan.v1"},"summary":{"$ref":"#/$defs/summary"},"waves":{"items":{"$ref":"#/$defs/wave"},"type":"array"}},"required":["schema","waves","items","summary"],"title":"Evergreen migration plan v1","type":"object"},"title":"Plan migrations"}],"ttlMs":0}}}
{"at":"2026-11-23T00:34:40.712Z","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-23T00:34:41.438Z","dir":"received","era":"initialize","message":{"id":1,"jsonrpc":"2.0","result":{"capabilities":{"completions":{},"prompts":{"listChanged":true},"resources":{"listChanged":true},"tools":{"listChanged":true}},"instructions":"Evergreen performs deterministic deprecation analysis inside the local process. Repository contents are never sent over the network. Scan before editing, create migration context, then verify the previously observed finding.","protocolVersion":"2025-11-25","serverInfo":{"name":"evergreen","version":"0.7.3"}}}}
{"at":"2026-11-23T00:34:41.439Z","dir":"sent","era":"initialize","message":{"jsonrpc":"2.0","method":"notifications/initialized"}}
{"at":"2026-11-23T00:34:41.439Z","dir":"sent","era":"initialize","message":{"id":2,"jsonrpc":"2.0","method":"tools/list","params":{}}}
{"at":"2026-11-23T00:34:41.513Z","dir":"received","era":"initialize","message":{"id":2,"jsonrpc":"2.0","result":{"tools":[{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Run all built-in Evergreen detectors against a local repository and return the complete versioned scan result.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"baseline":{"description":"Optional path, relative to the repository, of an Evergreen baseline file. Suppressed findings are left out and the result's suppressions field says how many, and which suppressions are expiring or expired.","minLength":1,"type":"string"},"repository_path":{"default":".","description":"Local path to the repository. Defaults to the server working directory.","minLength":1,"type":"string"}},"type":"object"},"name":"scan_repository","outputSchema":{"$id":"https://github.com/arminazimi/evergreen/schemas/scan.v1.schema.json","$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"asOf":{"description":"The day the scan was projected onto with --as-of. Present only when one was given.","pattern":"^\\d{4}-\\d{2}-\\d{2}$","type":"string"},"coverage":{"additionalProperties":false,"description":"What the scan checked, so a zero-finding report can say what was covered and what was not. Path arrays are complete here; the text report may show only the first ten of each.","properties":{"ecosystems":{"description":"Detector ids that matched at least one input file in the repository, sorted.","items":{"minLength":1,"type":"string"},"type":"array"},"filesRead":{"description":"Repository-relative paths matched by detector inputs, sorted. Complete list; the text report may truncate display.","items":{"minLength":1,"type":"string"},"type":"array"},"truncated":{"description":"True when the coverage walk stopped early at its entry limit, so ecosystems may be incomplete.","type":"boolean"},"unsupportedFiles":{"description":"Paths of unclassified pins or other unsupported declarations, sorted. Complete list; the text report may truncate display.","items":{"minLength":1,"type":"string"},"type":"array"}},"required":["ecosystems","filesRead","unsupportedFiles"],"type":"object"},"data":{"additionalProperties":false,"description":"Which lifecycle data this result was produced with, and how fresh its evidence is.","properties":{"ageDays":{"minimum":0,"type":"integer"},"createdAt":{"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$","type":["string","null"]},"reviewedThrough":{"pattern":"^\\d{4}-\\d{2}-\\d{2}$","type":"string"},"source":{"enum":["bundled","cache","pinned"]},"stale":{"description":"True when the data is older than 30 days.","type":"boolean"},"version":{"minLength":1,"type":"string"}},"required":["source","version","createdAt","reviewedThrough","ageDays","stale"],"type":"object"},"diagnostics":{"items":{"type":"string"},"type":"array"},"findings":{"items":{"additionalProperties":false,"properties":{"advisoryIds":{"description":"OSV advisory identifiers with no fixed version for this finding's package, from the bundled OSV cross-reference.","items":{"minLength":1,"type":"string"},"minItems":1,"type":"array","uniqueItems":true},"confidence":{"enum":["exact","range","inferred-from-lock"]},"deadline":{"format":"date","type":"string"},"dependencyPath":{"items":{"type":"string"},"minItems":2,"type":"array"},"detector":{"type":"string"},"id":{"type":"string"},"impact":{"additionalProperties":false,"properties":{"affectedFiles":{"minimum":0,"type":"integer"},"level":{"enum":["none","low","medium","high"]},"usageCount":{"minimum":0,"type":"integer"}},"required":["usageCount","affectedFiles","level"],"type":"object"},"location":{"additionalProperties":false,"properties":{"column":{"minimum":1,"type":"integer"},"line":{"minimum":1,"type":"integer"},"path":{"type":"string"}},"required":["path"],"type":"object"},"migration":{"additionalProperties":false,"properties":{"constraints":{"items":{"minLength":1,"type":"string"},"minItems":1,"type":"array"},"steps":{"items":{"additionalProperties":false,"properties":{"id":{"minLength":1,"type":"string"},"instructions":{"minLength":1,"type":"string"},"targets":{"enum":["declaration","usages","all"]},"title":{"minLength":1,"type":"string"}},"required":["id","title","instructions","targets"],"type":"object"},"minItems":1,"type":"array"},"verification":{"items":{"additionalProperties":false,"properties":{"command":{"minLength":1,"type":"string"},"purpose":{"minLength":1,"type":"string"}},"required":["command","purpose"],"type":"object"},"minItems":1,"type":"array"}},"required":["constraints","steps","verification"],"type":"object"},"replacement":{"type":"string"},"ruleId":{"type":"string"},"severity":{"enum":["info","low","medium","high","critical"]},"sources":{"items":{"additionalProperties":false,"properties":{"accessedAt":{"format":"date","type":"string"},"title":{"type":"string"},"url":{"format":"uri","type":"string"}},"required":["title","url"],"type":"object"},"minItems":1,"type":"array"},"summary":{"type":"string"},"title":{"type":"string"},"usages":{"items":{"additionalProperties":false,"properties":{"excerpt":{"type":"string"},"kind":{"enum":["import","call","config-key","symbol"]},"language":{"enum":["javascript","typescript","python","ruby","json","yaml","toml","ini","php","swift","dart"]},"location":{"additionalProperties":false,"properties":{"column":{"minimum":1,"type":"integer"},"line":{"minimum":1,"type":"integer"},"path":{"type":"string"}},"required":["path"],"type":"object"},"symbol":{"type":"string"}},"required":["kind","language","symbol","location","excerpt"],"type":"object"},"type":"array"}},"required":["id","ruleId","detector","title","summary","severity","location","sources"],"type":"object"},"type":"array"},"root":{"type":"string"},"scannedAt":{"format":"date-time","type":"string"},"schemaVersion":{"const":"evergreen.scan.v1"},"selection":{"additionalProperties":false,"description":"The --only/--exclude selectors applied to the scan. Present only when one was given.","properties":{"exclude":{"description":"Ecosystem ids or rule-id prefixes the scan dropped.","items":{"minLength":1,"type":"string"},"minItems":1,"type":"array"},"only":{"description":"Ecosystem ids or rule-id prefixes the scan kept.","items":{"minLength":1,"type":"string"},"minItems":1,"type":"array"}},"type":"object"},"suppressions":{"additionalProperties":false,"description":"What a baseline did to this scan. Present only when a baseline was applied.","properties":{"expired":{"description":"Suppressions that have ended and no longer hide their finding, longest ago first.","items":{"additionalProperties":false,"properties":{"daysAgo":{"minimum":0,"type":"integer"},"daysLeft":{"minimum":0,"type":"integer"},"expires":{"pattern":"^\\d{4}-\\d{2}-\\d{2}$","type":"string"},"owner":{"type":"string"},"path":{"type":"string"},"reason":{"type":"string"},"ruleId":{"type":"string"}},"required":["ruleId","path","expires"],"type":"object"},"type":"array"},"expiring":{"description":"Suppressions in force that end within the warning window, soonest first.","items":{"additionalProperties":false,"properties":{"daysAgo":{"minimum":0,"type":"integer"},"daysLeft":{"minimum":0,"type":"integer"},"expires":{"pattern":"^\\d{4}-\\d{2}-\\d{2}$","type":"string"},"owner":{"type":"string"},"path":{"type":"string"},"reason":{"type":"string"},"ruleId":{"type":"string"}},"required":["ruleId","path","expires"],"type":"object"},"type":"array"},"suppressed":{"description":"Findings the baseline hid.","minimum":0,"type":"integer"},"today":{"description":"The day suppression dates were compared with, when one was given.","pattern":"^\\d{4}-\\d{2}-\\d{2}$","type":"string"},"warnWithinDays":{"minimum":0,"type":"integer"}},"required":["suppressed","expiring","expired"],"type":"object"},"unclassified":{"additionalProperties":false,"properties":{"count":{"minimum":0,"type":"integer"},"references":{"items":{"additionalProperties":false,"properties":{"component":{"minLength":1,"type":"string"},"detector":{"minLength":1,"type":"string"},"location":{"additionalProperties":false,"properties":{"column":{"minimum":1,"type":"integer"},"line":{"minimum":1,"type":"integer"},"path":{"type":"string"}},"required":["path"],"type":"object"},"reason":{"minLength":1,"type":"string"},"reference":{"minLength":1,"type":"string"}},"required":["detector","component","reference","reason","location"],"type":"object"},"type":"array"}},"required":["count","references"],"type":"object"}},"required":["schemaVersion","root","scannedAt","findings","diagnostics"],"title":"Evergreen scan result v1","type":"object"},"title":"Scan repository"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Run a fresh local scan and return a compact, versioned list of lifecycle findings.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"repository_path":{"default":".","description":"Local path to the repository. Defaults to the server working directory.","minLength":1,"type":"string"}},"type":"object"},"name":"list_deprecations","outputSchema":{"$id":"https://github.com/arminazimi/evergreen/schemas/deprecations.v1.schema.json","$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"count":{"minimum":0,"type":"integer"},"data":{"additionalProperties":false,"description":"Which lifecycle data this result was produced with, and how fresh its evidence is.","properties":{"ageDays":{"minimum":0,"type":"integer"},"createdAt":{"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$","type":["string","null"]},"reviewedThrough":{"pattern":"^\\d{4}-\\d{2}-\\d{2}$","type":"string"},"source":{"enum":["bundled","cache","pinned"]},"stale":{"description":"True when the data is older than 30 days.","type":"boolean"},"version":{"minLength":1,"type":"string"}},"required":["source","version","createdAt","reviewedThrough","ageDays","stale"],"type":"object"},"deprecations":{"items":{"additionalProperties":false,"properties":{"affectedFiles":{"minimum":0,"type":"integer"},"id":{"minLength":1,"type":"string"},"location":{"additionalProperties":false,"properties":{"column":{"minimum":1,"type":"integer"},"line":{"minimum":1,"type":"integer"},"path":{"type":"string"}},"required":["path"],"type":"object"},"ruleId":{"minLength":1,"type":"string"},"severity":{"enum":["info","low","medium","high","critical"]},"title":{"minLength":1,"type":"string"},"usageCount":{"minimum":0,"type":"integer"}},"required":["id","ruleId","title","severity","location","usageCount","affectedFiles"],"type":"object"},"type":"array"},"repositoryRoot":{"type":"string"},"scannedAt":{"format":"date-time","type":"string"},"schemaVersion":{"const":"evergreen.deprecations.v1"}},"required":["schemaVersion","repositoryRoot","scannedAt","count","deprecations"],"title":"Evergreen deprecation list v1","type":"object"},"title":"List deprecations"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Run a fresh local scan and return one complete evidence-backed finding by ID.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"finding_id":{"description":"Exact finding ID returned by Evergreen.","minLength":1,"type":"string"},"repository_path":{"default":".","description":"Local path to the repository. Defaults to the server working directory.","minLength":1,"type":"string"}},"required":["finding_id"],"type":"object"},"name":"explain_deprecation","outputSchema":{"$id":"https://github.com/arminazimi/evergreen/schemas/finding.v1.schema.json","$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"description":"One evidence-backed lifecycle finding, as returned by explain_deprecation and exposed as an evergreen://findings resource. It is the item schema of the findings array in scan.v1.","properties":{"advisoryIds":{"description":"OSV advisory identifiers with no fixed version for this finding's package, from the bundled OSV cross-reference.","items":{"minLength":1,"type":"string"},"minItems":1,"type":"array","uniqueItems":true},"confidence":{"enum":["exact","range","inferred-from-lock"]},"deadline":{"format":"date","type":"string"},"dependencyPath":{"items":{"type":"string"},"minItems":2,"type":"array"},"detector":{"type":"string"},"id":{"type":"string"},"impact":{"additionalProperties":false,"properties":{"affectedFiles":{"minimum":0,"type":"integer"},"level":{"enum":["none","low","medium","high"]},"usageCount":{"minimum":0,"type":"integer"}},"required":["usageCount","affectedFiles","level"],"type":"object"},"location":{"additionalProperties":false,"properties":{"column":{"minimum":1,"type":"integer"},"line":{"minimum":1,"type":"integer"},"path":{"type":"string"}},"required":["path"],"type":"object"},"migration":{"additionalProperties":false,"properties":{"constraints":{"items":{"minLength":1,"type":"string"},"minItems":1,"type":"array"},"steps":{"items":{"additionalProperties":false,"properties":{"id":{"minLength":1,"type":"string"},"instructions":{"minLength":1,"type":"string"},"targets":{"enum":["declaration","usages","all"]},"title":{"minLength":1,"type":"string"}},"required":["id","title","instructions","targets"],"type":"object"},"minItems":1,"type":"array"},"verification":{"items":{"additionalProperties":false,"properties":{"command":{"minLength":1,"type":"string"},"purpose":{"minLength":1,"type":"string"}},"required":["command","purpose"],"type":"object"},"minItems":1,"type":"array"}},"required":["constraints","steps","verification"],"type":"object"},"replacement":{"type":"string"},"ruleId":{"type":"string"},"severity":{"enum":["info","low","medium","high","critical"]},"sources":{"items":{"additionalProperties":false,"properties":{"accessedAt":{"format":"date","type":"string"},"title":{"type":"string"},"url":{"format":"uri","type":"string"}},"required":["title","url"],"type":"object"},"minItems":1,"type":"array"},"summary":{"type":"string"},"title":{"type":"string"},"usages":{"items":{"additionalProperties":false,"properties":{"excerpt":{"type":"string"},"kind":{"enum":["import","call","config-key","symbol"]},"language":{"enum":["javascript","typescript","python","ruby","json","yaml","toml","ini","php","swift","dart"]},"location":{"additionalProperties":false,"properties":{"column":{"minimum":1,"type":"integer"},"line":{"minimum":1,"type":"integer"},"path":{"type":"string"}},"required":["path"],"type":"object"},"symbol":{"type":"string"}},"required":["kind","language","symbol","location","excerpt"],"type":"object"},"type":"array"}},"required":["id","ruleId","detector","title","summary","severity","location","sources"],"title":"Evergreen finding v1","type":"object"},"title":"Explain deprecation"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Create a validated, rule-specific migration packet for one finding from a fresh local scan.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"finding_id":{"description":"Exact finding ID returned by Evergreen.","minLength":1,"type":"string"},"repository_path":{"default":".","description":"Local path to the repository. Defaults to the server working directory.","minLength":1,"type":"string"}},"required":["finding_id"],"type":"object"},"name":"create_migration_context","outputSchema":{"$defs":{"upgradeLine":{"additionalProperties":false,"properties":{"endsOn":{"type":"string"},"ruleId":{"type":"string"},"status":{"enum":["ended","ending-soon"]},"title":{"type":"string"},"versions":{"type":"string"}},"required":["ruleId","versions","title","status"],"type":"object"}},"$id":"https://github.com/arminazimi/evergreen/schemas/context.v1.schema.json","$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"affectedFiles":{"items":{"type":"string"},"minItems":1,"type":"array","uniqueItems":true},"constraints":{"items":{"type":"string"},"minItems":1,"type":"array"},"finding":{"additionalProperties":false,"properties":{"advisoryIds":{"description":"OSV advisory identifiers with no fixed version for this finding's package, from the bundled OSV cross-reference.","items":{"minLength":1,"type":"string"},"minItems":1,"type":"array","uniqueItems":true},"confidence":{"enum":["exact","range","inferred-from-lock"]},"deadline":{"format":"date","type":"string"},"dependencyPath":{"items":{"type":"string"},"minItems":2,"type":"array"},"detector":{"type":"string"},"id":{"type":"string"},"impact":{"additionalProperties":false,"properties":{"affectedFiles":{"minimum":0,"type":"integer"},"level":{"enum":["none","low","medium","high"]},"usageCount":{"minimum":0,"type":"integer"}},"required":["usageCount","affectedFiles","level"],"type":"object"},"location":{"additionalProperties":false,"properties":{"column":{"minimum":1,"type":"integer"},"line":{"minimum":1,"type":"integer"},"path":{"type":"string"}},"required":["path"],"type":"object"},"migration":{"additionalProperties":false,"properties":{"constraints":{"items":{"minLength":1,"type":"string"},"minItems":1,"type":"array"},"steps":{"items":{"additionalProperties":false,"properties":{"id":{"minLength":1,"type":"string"},"instructions":{"minLength":1,"type":"string"},"targets":{"enum":["declaration","usages","all"]},"title":{"minLength":1,"type":"string"}},"required":["id","title","instructions","targets"],"type":"object"},"minItems":1,"type":"array"},"verification":{"items":{"additionalProperties":false,"properties":{"command":{"minLength":1,"type":"string"},"purpose":{"minLength":1,"type":"string"}},"required":["command","purpose"],"type":"object"},"minItems":1,"type":"array"}},"required":["constraints","steps","verification"],"type":"object"},"replacement":{"type":"string"},"ruleId":{"type":"string"},"severity":{"enum":["info","low","medium","high","critical"]},"sources":{"items":{"additionalProperties":false,"properties":{"accessedAt":{"format":"date","type":"string"},"title":{"type":"string"},"url":{"format":"uri","type":"string"}},"required":["title","url"],"type":"object"},"minItems":1,"type":"array"},"summary":{"type":"string"},"title":{"type":"string"},"usages":{"items":{"additionalProperties":false,"properties":{"excerpt":{"type":"string"},"kind":{"enum":["import","call","config-key","symbol"]},"language":{"enum":["javascript","typescript","python","ruby","json","yaml","toml","ini","php","swift","dart"]},"location":{"additionalProperties":false,"properties":{"column":{"minimum":1,"type":"integer"},"line":{"minimum":1,"type":"integer"},"path":{"type":"string"}},"required":["path"],"type":"object"},"symbol":{"type":"string"}},"required":["kind","language","symbol","location","excerpt"],"type":"object"},"type":"array"}},"required":["id","ruleId","detector","title","summary","severity","location","sources"],"type":"object"},"generatedAt":{"format":"date-time","type":"string"},"repositoryRoot":{"type":"string"},"schemaVersion":{"const":"evergreen.context.v1"},"sources":{"items":{"additionalProperties":false,"properties":{"accessedAt":{"format":"date","type":"string"},"title":{"type":"string"},"url":{"format":"uri","type":"string"}},"required":["title","url"],"type":"object"},"minItems":1,"type":"array"},"steps":{"items":{"additionalProperties":false,"properties":{"id":{"type":"string"},"instructions":{"type":"string"},"paths":{"items":{"type":"string"},"type":"array"},"targets":{"enum":["declaration","usages","all"]},"title":{"type":"string"}},"required":["id","title","instructions","targets","paths"],"type":"object"},"minItems":1,"type":"array"},"upgradePath":{"additionalProperties":false,"properties":{"from":{"$ref":"#/$defs/upgradeLine"},"skipped":{"items":{"$ref":"#/$defs/upgradeLine"},"type":"array"},"target":{"additionalProperties":false,"properties":{"endsOn":{"type":"string"},"replacement":{"type":"string"},"title":{"type":"string"},"versions":{"type":"string"}},"type":"object"}},"required":["from","skipped","target"],"type":"object"},"usages":{"items":{"additionalProperties":false,"properties":{"excerpt":{"type":"string"},"kind":{"enum":["import","call","config-key","symbol"]},"language":{"enum":["javascript","typescript","python","ruby","json","yaml","toml","ini","php","swift","dart"]},"location":{"additionalProperties":false,"properties":{"column":{"minimum":1,"type":"integer"},"line":{"minimum":1,"type":"integer"},"path":{"type":"string"}},"required":["path"],"type":"object"},"symbol":{"type":"string"}},"required":["kind","language","symbol","location","excerpt"],"type":"object"},"type":"array"},"verification":{"items":{"additionalProperties":false,"properties":{"command":{"type":"string"},"purpose":{"type":"string"}},"required":["command","purpose"],"type":"object"},"minItems":1,"type":"array"}},"required":["schemaVersion","generatedAt","repositoryRoot","finding","affectedFiles","usages","constraints","steps","sources","verification"],"title":"Evergreen migration context v1","type":"object"},"title":"Create migration context"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Re-scan locally and check whether a finding observed earlier in this MCP session is gone. Suggested project commands are returned but never executed. When the repository was scanned earlier in the session, the result also carries a receipt and receipt_markdown for the pull request body.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"finding_id":{"description":"Exact finding ID returned by Evergreen.","minLength":1,"type":"string"},"repository_path":{"default":".","description":"Local path to the repository. Defaults to the server working directory.","minLength":1,"type":"string"}},"required":["finding_id"],"type":"object"},"name":"verify_migration","outputSchema":{"$id":"https://github.com/arminazimi/evergreen/schemas/verification.v1.schema.json","$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"commandsExecuted":{"const":false},"findingId":{"minLength":1,"type":"string"},"receipt":{"$defs":{"finding":{"additionalProperties":false,"properties":{"id":{"description":"The scan's finding id, so the entry joins the finding in `scan --json`.","minLength":1,"type":"string"},"line":{"minimum":1,"type":"integer"},"path":{"description":"Repository-relative path.","minLength":1,"type":"string"},"rule":{"minLength":1,"type":"string"},"severity":{"enum":["info","low","medium","high","critical"]},"title":{"minLength":1,"type":"string"}},"required":["id","rule","title","severity","path"],"type":"object"}},"$id":"https://github.com/arminazimi/evergreen/schemas/receipt.v1.schema.json","$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"description":"What the change since the session's last scan did to the repository's findings. Present when a scan was observed before verification.","properties":{"commands":{"description":"Verification commands the touched rules suggest, ordered by command. They are printed and never run.","items":{"additionalProperties":false,"properties":{"command":{"minLength":1,"type":"string"},"purpose":{"minLength":1,"type":"string"}},"required":["command","purpose"],"type":"object"},"type":"array"},"counts":{"additionalProperties":false,"description":"One count per list, so a reader can show a summary without walking the findings.","properties":{"introduced":{"minimum":0,"type":"integer"},"remaining":{"minimum":0,"type":"integer"},"resolved":{"minimum":0,"type":"integer"}},"required":["resolved","remaining","introduced"],"type":"object"},"data":{"additionalProperties":false,"description":"The lifecycle data each side of the comparison used; null when a scan did not record it.","properties":{"after":{"oneOf":[{"additionalProperties":false,"description":"Which lifecycle data this result was produced with, and how fresh its evidence is.","properties":{"ageDays":{"minimum":0,"type":"integer"},"createdAt":{"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$","type":["string","null"]},"reviewedThrough":{"pattern":"^\\d{4}-\\d{2}-\\d{2}$","type":"string"},"source":{"enum":["bundled","cache","pinned"]},"stale":{"description":"True when the data is older than 30 days.","type":"boolean"},"version":{"minLength":1,"type":"string"}},"required":["source","version","createdAt","reviewedThrough","ageDays","stale"],"type":"object"},{"type":"null"}]},"before":{"oneOf":[{"additionalProperties":false,"description":"Which lifecycle data this result was produced with, and how fresh its evidence is.","properties":{"ageDays":{"minimum":0,"type":"integer"},"createdAt":{"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$","type":["string","null"]},"reviewedThrough":{"pattern":"^\\d{4}-\\d{2}-\\d{2}$","type":"string"},"source":{"enum":["bundled","cache","pinned"]},"stale":{"description":"True when the data is older than 30 days.","type":"boolean"},"version":{"minLength":1,"type":"string"}},"required":["source","version","createdAt","reviewedThrough","ageDays","stale"],"type":"object"},{"type":"null"}]}},"required":["before","after"],"type":"object"},"introduced":{"description":"Findings only the after scan reports, ordered by finding id.","items":{"$ref":"#/$defs/finding"},"type":"array"},"remaining":{"description":"Findings both scans report, ordered by finding id.","items":{"$ref":"#/$defs/finding"},"type":"array"},"resolved":{"description":"Findings the before scan reported and the after scan does not, ordered by finding id.","items":{"$ref":"#/$defs/finding"},"type":"array"},"schema":{"const":"evergreen.receipt.v1"}},"required":["schema","counts","resolved","remaining","introduced","commands","data"],"title":"Evergreen verification receipt v1","type":"object"},"receipt_markdown":{"description":"The receipt rendered for a pull request body, with the evergreen-receipt marker.","minLength":1,"type":"string"},"remainingFindings":{"items":{"additionalProperties":false,"properties":{"advisoryIds":{"description":"OSV advisory identifiers with no fixed version for this finding's package, from the bundled OSV cross-reference.","items":{"minLength":1,"type":"string"},"minItems":1,"type":"array","uniqueItems":true},"confidence":{"enum":["exact","range","inferred-from-lock"]},"deadline":{"format":"date","type":"string"},"dependencyPath":{"items":{"type":"string"},"minItems":2,"type":"array"},"detector":{"type":"string"},"id":{"type":"string"},"impact":{"additionalProperties":false,"properties":{"affectedFiles":{"minimum":0,"type":"integer"},"level":{"enum":["none","low","medium","high"]},"usageCount":{"minimum":0,"type":"integer"}},"required":["usageCount","affectedFiles","level"],"type":"object"},"location":{"additionalProperties":false,"properties":{"column":{"minimum":1,"type":"integer"},"line":{"minimum":1,"type":"integer"},"path":{"type":"string"}},"required":["path"],"type":"object"},"migration":{"additionalProperties":false,"properties":{"constraints":{"items":{"minLength":1,"type":"string"},"minItems":1,"type":"array"},"steps":{"items":{"additionalProperties":false,"properties":{"id":{"minLength":1,"type":"string"},"instructions":{"minLength":1,"type":"string"},"targets":{"enum":["declaration","usages","all"]},"title":{"minLength":1,"type":"string"}},"required":["id","title","instructions","targets"],"type":"object"},"minItems":1,"type":"array"},"verification":{"items":{"additionalProperties":false,"properties":{"command":{"minLength":1,"type":"string"},"purpose":{"minLength":1,"type":"string"}},"required":["command","purpose"],"type":"object"},"minItems":1,"type":"array"}},"required":["constraints","steps","verification"],"type":"object"},"replacement":{"type":"string"},"ruleId":{"type":"string"},"severity":{"enum":["info","low","medium","high","critical"]},"sources":{"items":{"additionalProperties":false,"properties":{"accessedAt":{"format":"date","type":"string"},"title":{"type":"string"},"url":{"format":"uri","type":"string"}},"required":["title","url"],"type":"object"},"minItems":1,"type":"array"},"summary":{"type":"string"},"title":{"type":"string"},"usages":{"items":{"additionalProperties":false,"properties":{"excerpt":{"type":"string"},"kind":{"enum":["import","call","config-key","symbol"]},"language":{"enum":["javascript","typescript","python","ruby","json","yaml","toml","ini","php","swift","dart"]},"location":{"additionalProperties":false,"properties":{"column":{"minimum":1,"type":"integer"},"line":{"minimum":1,"type":"integer"},"path":{"type":"string"}},"required":["path"],"type":"object"},"symbol":{"type":"string"}},"required":["kind","language","symbol","location","excerpt"],"type":"object"},"type":"array"}},"required":["id","ruleId","detector","title","summary","severity","location","sources"],"type":"object"},"type":"array"},"repositoryRoot":{"type":"string"},"schemaVersion":{"const":"evergreen.verification.v1"},"suggestedCommands":{"items":{"additionalProperties":false,"properties":{"command":{"minLength":1,"type":"string"},"purpose":{"minLength":1,"type":"string"}},"required":["command","purpose"],"type":"object"},"minItems":1,"type":"array"},"summary":{"minLength":1,"type":"string"},"verified":{"type":"boolean"},"verifiedAt":{"format":"date-time","type":"string"}},"required":["schemaVersion","repositoryRoot","findingId","verifiedAt","verified","commandsExecuted","summary","remainingFindings","suggestedCommands"],"title":"Evergreen migration verification v1","type":"object"},"title":"Verify migration"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Check one package, and optionally one version, against Evergreen's lifecycle rules before adding it to a project. Pass a Package URL such as pkg:npm/request@2.88.2 or pkg:github/actions/checkout@v4. Returns evergreen.check.v1: a status (affected, not-affected, version-dependent, or no-data), the evidence-backed findings, and a replacement when one is known. no-data means Evergreen has no rule for the package, not that it is safe. No repository is read.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"purl":{"description":"Package URL of the dependency, with the version when it is known, for example pkg:npm/request@2.88.2.","minLength":1,"type":"string"},"version":{"description":"Exact version to check; overrides a version written in the PURL.","minLength":1,"type":"string"}},"required":["purl"],"type":"object"},"name":"check_dependency","outputSchema":{"$id":"https://github.com/arminazimi/evergreen/schemas/check.v1.schema.json","$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"description":"The result of checking one package, and optionally one version, against Evergreen's lifecycle rules.","properties":{"data":{"additionalProperties":false,"description":"Which lifecycle data this result was produced with, and how fresh its evidence is.","properties":{"ageDays":{"minimum":0,"type":"integer"},"createdAt":{"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$","type":["string","null"]},"reviewedThrough":{"pattern":"^\\d{4}-\\d{2}-\\d{2}$","type":"string"},"source":{"enum":["bundled","cache","pinned"]},"stale":{"description":"True when the data is older than 30 days.","type":"boolean"},"version":{"minLength":1,"type":"string"}},"required":["source","version","createdAt","reviewedThrough","ageDays","stale"],"type":"object"},"findings":{"items":{"additionalProperties":false,"properties":{"affectedVersions":{"pattern":"^vers:","type":"string"},"deadline":{"pattern":"^\\d{4}-\\d{2}-\\d{2}$","type":"string"},"ecosystem":{"minLength":1,"type":"string"},"event":{"enum":["deprecated","end-of-support","end-of-life","removed","scheduled-end-of-life"]},"migration":{"additionalProperties":false,"properties":{"constraints":{"items":{"minLength":1,"type":"string"},"minItems":1,"type":"array"},"steps":{"items":{"additionalProperties":false,"properties":{"id":{"minLength":1,"type":"string"},"instructions":{"minLength":1,"type":"string"},"targets":{"enum":["declaration","usages","all"]},"title":{"minLength":1,"type":"string"}},"required":["id","title","instructions","targets"],"type":"object"},"minItems":1,"type":"array"},"verification":{"items":{"additionalProperties":false,"properties":{"command":{"minLength":1,"type":"string"},"purpose":{"minLength":1,"type":"string"}},"required":["command","purpose"],"type":"object"},"minItems":1,"type":"array"}},"required":["constraints","steps","verification"],"type":"object"},"replacement":{"type":"string"},"ruleId":{"minLength":1,"type":"string"},"severity":{"enum":["info","low","medium","high","critical"]},"sources":{"items":{"additionalProperties":false,"properties":{"accessedAt":{"type":"string"},"title":{"type":"string"},"url":{"pattern":"^https://","type":"string"}},"required":["title","url"],"type":"object"},"minItems":1,"type":"array"},"summary":{"minLength":1,"type":"string"},"title":{"minLength":1,"type":"string"}},"required":["ruleId","ecosystem","event","severity","title","summary","affectedVersions","sources"],"type":"object"},"type":"array"},"message":{"minLength":1,"type":"string"},"purl":{"description":"Version-less canonical Package URL.","pattern":"^pkg:","type":"string"},"schemaVersion":{"const":"evergreen.check.v1"},"severity":{"description":"Highest severity among the findings.","enum":["info","low","medium","high","critical"]},"status":{"description":"no-data means Evergreen has no rule for the package; it does not mean the package is safe.","enum":["affected","version-dependent","not-affected","no-data"]},"version":{"minLength":1,"type":"string"}},"required":["schemaVersion","purl","status","findings","message"],"title":"Evergreen dependency check v1","type":"object"},"title":"Check dependency"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Answer from files already in the repository whether a project can move to a target runtime, without running anything or using the network. Pass target as runtime@version, for example php@8.4. Returns evergreen.upgrade.v1: the verdict, the analyzers that applied, and every blocker, warning, and unknown with its path, line, and the exact constraint it read. An unknown verdict means Evergreen found no evidence for this runtime in this repository; it is not a statement that the upgrade is safe.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"path":{"default":".","description":"Local path to the repository. Defaults to the server working directory.","minLength":1,"type":"string"},"target":{"description":"Runtime and release to move to, as runtime@version, for example php@8.4 or nodejs@22.","minLength":1,"type":"string"}},"required":["target"],"type":"object"},"name":"check_upgrade","outputSchema":{"$id":"https://github.com/arminazimi/evergreen/schemas/upgrade.v1.schema.json","$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"description":"Whether a repository can move to a target runtime, answered from files already in the repository.","properties":{"analyzers":{"description":"Ids of the analyzers that applied to this repository and target, sorted.","items":{"minLength":1,"type":"string"},"type":"array"},"issues":{"items":{"additionalProperties":false,"properties":{"analyzer":{"minLength":1,"type":"string"},"evidence":{"additionalProperties":false,"properties":{"kind":{"enum":["lockfile","manifest","rule"]},"value":{"description":"The exact value as written in the file, or a lifecycle rule id.","minLength":1,"type":"string"}},"required":["kind","value"],"type":"object"},"level":{"description":"blocker: will not install or run on the target. warning: works but is deprecated there. unknown: the evidence needed is missing.","enum":["blocker","warning","unknown"]},"line":{"minimum":1,"type":"integer"},"path":{"minLength":1,"type":"string"},"reason":{"minLength":1,"type":"string"},"subject":{"minLength":1,"type":"string"}},"required":["analyzer","level","subject","path","reason","evidence"],"type":"object"},"type":"array"},"schemaVersion":{"const":"evergreen.upgrade.v1"},"target":{"additionalProperties":false,"properties":{"runtime":{"minLength":1,"type":"string"},"version":{"minLength":1,"type":"string"}},"required":["runtime","version"],"type":"object"},"verdict":{"description":"blocked when any blocker; unknown when no analyzer applied; ready otherwise. unknown is not a statement that the upgrade is safe.","enum":["ready","blocked","unknown"]}},"required":["schemaVersion","target","verdict","analyzers","issues"],"title":"Evergreen upgrade report v1","type":"object"},"title":"Check upgrade"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Check one file snippet before writing it: pass the intended repository-relative path and the exact content, and Evergreen runs all built-in detectors against that one file in an isolated temporary directory. Call this before writing or editing package manifests, Dockerfiles, CI workflows, and Kubernetes manifests. Returns the same findings as scan_repository, with paths and lines relative to the snippet. The real repository is never read or written.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"content":{"description":"The exact content the agent intends to write.","minLength":1,"type":"string"},"path":{"description":"The intended repository-relative path, for example Dockerfile, .github/workflows/ci.yml, or package.json. It decides which detector reads the snippet.","minLength":1,"type":"string"}},"required":["path","content"],"type":"object"},"name":"check_snippet","outputSchema":{"$id":"https://github.com/arminazimi/evergreen/schemas/check-snippet.v1.schema.json","$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"description":"What Evergreen flags in one file snippet, checked in isolation before it is written to a repository. The findings have the same shape as a scan result's, with paths and lines relative to the snippet.","properties":{"findings":{"items":{"additionalProperties":false,"properties":{"advisoryIds":{"description":"OSV advisory identifiers with no fixed version for this finding's package, from the bundled OSV cross-reference.","items":{"minLength":1,"type":"string"},"minItems":1,"type":"array","uniqueItems":true},"confidence":{"enum":["exact","range","inferred-from-lock"]},"deadline":{"format":"date","type":"string"},"dependencyPath":{"items":{"type":"string"},"minItems":2,"type":"array"},"detector":{"type":"string"},"id":{"type":"string"},"impact":{"additionalProperties":false,"properties":{"affectedFiles":{"minimum":0,"type":"integer"},"level":{"enum":["none","low","medium","high"]},"usageCount":{"minimum":0,"type":"integer"}},"required":["usageCount","affectedFiles","level"],"type":"object"},"location":{"additionalProperties":false,"properties":{"column":{"minimum":1,"type":"integer"},"line":{"minimum":1,"type":"integer"},"path":{"type":"string"}},"required":["path"],"type":"object"},"migration":{"additionalProperties":false,"properties":{"constraints":{"items":{"minLength":1,"type":"string"},"minItems":1,"type":"array"},"steps":{"items":{"additionalProperties":false,"properties":{"id":{"minLength":1,"type":"string"},"instructions":{"minLength":1,"type":"string"},"targets":{"enum":["declaration","usages","all"]},"title":{"minLength":1,"type":"string"}},"required":["id","title","instructions","targets"],"type":"object"},"minItems":1,"type":"array"},"verification":{"items":{"additionalProperties":false,"properties":{"command":{"minLength":1,"type":"string"},"purpose":{"minLength":1,"type":"string"}},"required":["command","purpose"],"type":"object"},"minItems":1,"type":"array"}},"required":["constraints","steps","verification"],"type":"object"},"replacement":{"type":"string"},"ruleId":{"type":"string"},"severity":{"enum":["info","low","medium","high","critical"]},"sources":{"items":{"additionalProperties":false,"properties":{"accessedAt":{"format":"date","type":"string"},"title":{"type":"string"},"url":{"format":"uri","type":"string"}},"required":["title","url"],"type":"object"},"minItems":1,"type":"array"},"summary":{"type":"string"},"title":{"type":"string"},"usages":{"items":{"additionalProperties":false,"properties":{"excerpt":{"type":"string"},"kind":{"enum":["import","call","config-key","symbol"]},"language":{"enum":["javascript","typescript","python","ruby","json","yaml","toml","ini","php","swift","dart"]},"location":{"additionalProperties":false,"properties":{"column":{"minimum":1,"type":"integer"},"line":{"minimum":1,"type":"integer"},"path":{"type":"string"}},"required":["path"],"type":"object"},"symbol":{"type":"string"}},"required":["kind","language","symbol","location","excerpt"],"type":"object"},"type":"array"}},"required":["id","ruleId","detector","title","summary","severity","location","sources"],"type":"object"},"type":"array"},"message":{"description":"One sentence a person or an agent can show as is.","minLength":1,"type":"string"},"path":{"description":"The repository-relative path the snippet was checked as, for example Dockerfile.","minLength":1,"type":"string"},"schemaVersion":{"const":"evergreen.check-snippet.v1"}},"required":["schemaVersion","path","findings","message"],"title":"Evergreen snippet check v1","type":"object"},"title":"Check snippet"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Run a fresh local scan and list what reaches a dated end of life in the next months, grouped by month, with the findings in this repository that each event will affect. Only events that carry an authoritative date are listed; nothing is estimated.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"as_of":{"description":"The day to start the window from, as YYYY-MM-DD. Defaults to today in UTC.","pattern":"^\\d{4}-\\d{2}-\\d{2}$","type":"string"},"months":{"default":12,"description":"How many months ahead to look, from 1 to 36. Defaults to 12.","maximum":36,"minimum":1,"type":"integer"},"repository_path":{"default":".","description":"Local path to the repository. Defaults to the server working directory.","minLength":1,"type":"string"}},"type":"object"},"name":"forecast_repository","outputSchema":{"$defs":{"event":{"additionalProperties":false,"properties":{"date":{"format":"date","type":"string"},"ecosystem":{"minLength":1,"type":"string"},"findings":{"items":{"additionalProperties":false,"properties":{"id":{"minLength":1,"type":"string"},"line":{"minimum":1,"type":"integer"},"path":{"type":"string"}},"required":["id","path"],"type":"object"},"type":"array"},"ruleId":{"minLength":1,"type":"string"},"severity":{"enum":["info","low","medium","high","critical"]},"source":{"type":"string"},"title":{"minLength":1,"type":"string"}},"required":["date","ruleId","ecosystem","title","severity","source","findings"],"type":"object"}},"$id":"https://github.com/arminazimi/evergreen/schemas/forecast.v1.schema.json","$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"affecting":{"minimum":0,"type":"integer"},"groups":{"items":{"additionalProperties":false,"properties":{"events":{"items":{"$ref":"#/$defs/event"},"type":"array"},"month":{"pattern":"^\\d{4}-\\d{2}$","type":"string"}},"required":["month","events"],"type":"object"},"type":"array"},"months":{"maximum":36,"minimum":1,"type":"integer"},"root":{"type":"string"},"schemaVersion":{"const":"evergreen.forecast.v1"},"today":{"pattern":"^\\d{4}-\\d{2}-\\d{2}$","type":"string"},"total":{"minimum":0,"type":"integer"},"until":{"pattern":"^\\d{4}-\\d{2}-\\d{2}$","type":"string"}},"required":["schemaVersion","root","today","until","months","groups","affecting","total"],"title":"Evergreen forecast v1","type":"object"},"title":"Forecast repository"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Run a fresh local scan and return a migration plan: waves of independent tasks a coordinating agent can hand to other agents. Each item names the finding, the paths it touches, and a suggested branch.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"repository_path":{"default":".","description":"Local path to the repository. Defaults to the server working directory.","minLength":1,"type":"string"}},"type":"object"},"name":"plan_migrations","outputSchema":{"$comment":"Every item id belongs to exactly one wave. JSON Schema cannot compare members across arrays, so tests/plan-schema.test.ts rejects duplicates together with this schema.","$defs":{"id":{"minLength":1,"type":"string"},"item":{"additionalProperties":false,"properties":{"branch":{"minLength":1,"type":"string"},"findingId":{"$ref":"#/$defs/id"},"id":{"$ref":"#/$defs/id"},"severity":{"enum":["info","low","medium","high","critical"]},"title":{"minLength":1,"type":"string"},"touches":{"items":{"$ref":"#/$defs/repoPath"},"minItems":1,"type":"array","uniqueItems":true},"wave":{"minimum":0,"type":"integer"}},"required":["id","findingId","title","severity","touches","branch","wave"],"type":"object"},"repoPath":{"pattern":"^(?!\\.$)(?!/)(?!\\./)(?!^[A-Za-z]:)(?!.*(?:^|/)\\.\\.(?:/|$))(?!.*\\\\)(?!.*//)(?!.*/$).+$","type":"string"},"summary":{"additionalProperties":false,"properties":{"bySeverity":{"additionalProperties":false,"properties":{"critical":{"minimum":0,"type":"integer"},"high":{"minimum":0,"type":"integer"},"info":{"minimum":0,"type":"integer"},"low":{"minimum":0,"type":"integer"},"medium":{"minimum":0,"type":"integer"}},"required":["info","low","medium","high","critical"],"type":"object"},"items":{"minimum":0,"type":"integer"},"waves":{"minimum":0,"type":"integer"}},"required":["items","waves","bySeverity"],"type":"object"},"wave":{"additionalProperties":false,"properties":{"index":{"minimum":0,"type":"integer"},"itemIds":{"items":{"$ref":"#/$defs/id"},"minItems":1,"type":"array","uniqueItems":true}},"required":["index","itemIds"],"type":"object"}},"$id":"https://github.com/arminazimi/evergreen/schemas/plan.v1.schema.json","$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"items":{"items":{"$ref":"#/$defs/item"},"type":"array"},"schema":{"const":"evergreen.plan.v1"},"summary":{"$ref":"#/$defs/summary"},"waves":{"items":{"$ref":"#/$defs/wave"},"type":"array"}},"required":["schema","waves","items","summary"],"title":"Evergreen migration plan v1","type":"object"},"title":"Plan migrations"}]}}}
