API Context

Canonical reference for the unified `Context` object passed to every tool and resource handler in `@cyanheads/mcp-ts-core`. Covers the full interface, its `RequestContext` base, all sub-APIs (`ctx.log`, `ctx.state`, `ctx.requestInput`, `ctx.inputs`, `ctx.enrich`, `ctx.content`), and when to use each.

cyanheads Updated

File contents

cyanheads/mcp-ts-core/tree/main/framework-skills/api-context commit c231eeca68

Frequently asked questions

npx skillmds@latest add cyanheads/api-context-3