Skip to main content
Glama
teamstove

OCD - Organized Context Datastore (MCP)

by teamstove

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
ocd_list_context_rootsA

[OCD] Context Root 一覧を取得(cwd から設定を探索)

重要: 返却される id を以下のツールで使用してください:

  • get_context_tree: rootIds に id を配列で指定 例: rootIds: ["tairikut-docs"]

  • get_contexts: patterns に "id/" 形式で指定 例: patterns: ["tairikut-docs/"]

  • mutate_context: path に "id/subpath" 形式で指定 例: path: "tairikut-docs/features/new"

⚠️ 注意: path フィールドは実際のファイルシステムパスです。 ツール引数には使用しないでください。id を使用してください。

ocd_get_contextsA

[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)'

ocd_get_context_treeA

[OCD] コンテキストツリー(目次)を取得

パラメータ

  • rootIds: Context Root の id 配列(list_context_roots で取得した id をそのまま使用)

  • patterns (optional): include glob(rootId 相対)。指定時は depth より優先

  • exclude (optional): exclude glob(rootId 相対)。tree から除外

重要: list_context_roots で返却された id を使用してください。 path フィールド(実際のファイルシステムパス)は使用しないでください。

例:

  • 単一: rootIds: ["tairikut-docs"]

  • 複数: rootIds: ["tairikut-docs", "CORE-docs-for-ai"]

フォーマット

  • tree-text (default): Token効率の良いテキストツリー形式

  • json: 従来のJSON配列形式

表示フォーマット (treeTextFormat)

デフォルト: "$path: $title $summary" 使用可能な変数: $path, $title, $summary

  • cwd: 作業ディレクトリ(設定探索の起点)

ocd_search_contextsA

[OCD] キーワードでコンテキストを検索(cwd から設定を探索)

ocd_mutate_contextA

[OCD] コンテキストを変更 (create/update/delete/move 一括実行)

全ての書き込み操作を単一のツールで実行可能。 複数の操作を配列で渡すことで一括処理できます。

  • cwd: 作業ディレクトリ(設定探索の起点)

重要: path は Context Root の id で始まる完全なパスを指定してください。 例: "knowledge-base/new-doc", "src/plugins/MyPlugin/README"

操作タイプ

type

必須フィールド

オプション

create

path, title, summary, content

attrs

update

path

title, summary, attrs, contentUpdates

delete

path

-

move

path, to

-

title + summary の書き方

「ひとつづきのサマリ」として連結して読める形式で記述する

  • title: 見出し部分(10-50文字)

  • summary: 詳細部分(50-300文字)

  • 両者の内容重複は禁止

  • path から想像できる以上の情報を含める

例:

title: "OAuth2.0認証フロー実装"
summary: "Google/GitHub連携対応。JWT発行、リフレッシュトークン管理、セッション有効期限7日。2FAはオプション対応"

contentUpdates の操作タイプ

whole_replace - コンテンツ全置換

{ type: 'whole_replace', content: '新しいコンテンツ全体' }

replace - 部分置換(search / replacement / isRegex / flags)

search: '$', replacement: '\n\n追記内容', isRegex: true, flags: 'm'

ocd_commitA

[OCD] 変更をコミット (git: 'manual' モード用)(cwd から設定を探索)

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A4.1/5.0

Scored across 6 tools

Disambiguation5/5

Each tool has a distinctly defined responsibility: listing roots, retrieving contexts via patterns/filters, searching by keyword, getting a tree view, mutating (create/update/delete/move), and committing. The overlapping retrieval tools (get_contexts vs search_contexts) are differentiated by mechanism and purpose, and all descriptions include clear usage guidance.

Naming Consistency5/5

All tool names follow a uniform pattern: 'ocd_' prefix + verb_noun in lowercase snake_case (list_context_roots, get_contexts, search_contexts, get_context_tree, mutate_context, commit). The only slight deviation is 'commit' without a noun, but it is still clear and consistent in style.

Tool Count5/5

Six tools is a well-scoped set for a context datastore server. Each tool covers a distinct aspect (roots, retrieval, search, tree, mutation, git commit) without redundancy or bloat, fitting the typical 3-15 range comfortably.

Completeness5/5

The surface covers the full lifecycle: list/get/search/tree for reading, mutate_context for create/update/delete/move, and commit for persistence in manual git mode. There are no obvious dead ends or missing operations for the stated purpose.

Maintenance

ActivityInactive
ResponsivenessNo issues