api-context

Community

Authoritative MCP Context reference for tooling.

Authorcyanheads
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Canonical reference for the unified Context object passed to every tool and resource handler in MCP. Covers the full interface, all sub-APIs (ctx.log, ctx.state, ctx.elicit, ctx.sample, ctx.progress), and when to use each.

Core Features & Use Cases

  • Centralizes identity, logging, storage, optional capabilities, cancellation, and progress for tool/resource handlers.
  • Documents how to interact with Context across MCP toolchains, enabling consistent patterns for authorization, tracing, and lifecycle management.
  • Use case: developers implement handlers that rely on a uniform Context to access per-request data, structured logging, and tenant-scoped state.

Quick Start

Inspect the Context API and implement your tool/resource handlers using the Context object as described.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: api-context
Download link: https://github.com/cyanheads/mcp-ts-core/archive/main.zip#api-context

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.