Context Block¶
Collect + render a context block from registered sources (git, tasks, projects, chrome, obsidian, obsidian_tasks, obsidian_wellness, calendar, day_planner, session_activity, chat, message, smart, datacore). Structured sources (git / tasks / projects / chrome) emit curated prompt text; the rest wrap legacy collectors. Supports per-source depth, target_date windows, max_chars budget, markdown or JSON output, and cache reuse via max_age_seconds.
MCP name: context_block
Category: context
Parameters¶
| Name | Type | Required | Description |
|---|---|---|---|
custom |
dict |
No | Per-source ad-hoc params forwarded to each source's collect(). |
depth |
str |
No | brief |
exclude |
list |
No | Source names to drop from the default set. |
format |
str |
No | markdown (default) or json. |
max_age_seconds |
int |
No | Use cached fetch if younger than this. None (default) = always fresh. 0 = use any cached. |
max_chars |
int |
No | Rendering budget. Truncates respecting section boundaries when possible. |
per_source_depth |
dict |
No | {source: depth} overrides for individual sources. |
sources |
list |
No | Source names to include. Default: all registered. |
target_date |
str |
No | YYYY-MM-DD. Default: today (no time window shift). |
window_days |
int |
No | Window size around target_date (default 1). |