ocd_get_contexts
Retrieve hierarchical context nodes from a shared Markdown datastore using glob patterns and jq filters. Access project knowledge with optional content inclusion based on working directory.
Instructions
[OCD] Organized Context Datastore - 階層構造を持つコンテキストを LLM と人間が共同で読み書きする MCP サーバー。
パターンとフィルタでコンテキストを取得します。
パラメータ
patterns: glob パターン配列 (例: ['project/**', 'docs/*'])
filter: jq フィルタ式 (例: '.attrs.status == "draft"')
includeContent: コンテンツを含めるか (default: true)
cwd: 作業ディレクトリ(設定探索の起点)
jq フィルタ例
attrs でフィルタ: '.attrs.status == "draft"'
未完了TODOがあるもの: '.todos | any(.completed == false)'
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | Yes | 作業ディレクトリ(設定探索の起点) | |
| filter | No | jq フィルタ式 (例: '.categories | any(. == "feature-spec")') | |
| patterns | Yes | Context Root の rootPath で始まる glob パターン配列 (例: ["knowledge-base/**", "src/plugins/*"]) | |
| includeContent | No | コンテンツを含めるか (default: true) |