Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .changeset/export-content-dir-path.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
"@contentrain/mcp": minor
---

feat(mcp): export `contentDirPath` from `@contentrain/mcp/core/ops`

The helper already existed in `core/ops/paths.ts` (and backs `contentFilePath`
/ `documentFilePath`), but the subpath barrel only re-exported the file-level
helpers. Exposing the directory-level resolver lets consumers (e.g. Studio)
resolve a model's content directory through the same `content_path`-aware logic
instead of maintaining a local copy.
2 changes: 1 addition & 1 deletion packages/mcp/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ The package also exposes low-level modules for embedding and advanced use:
- `@contentrain/mcp/core/scan-config`
- `@contentrain/mcp/core/doctor`
- `@contentrain/mcp/core/contracts`
- `@contentrain/mcp/core/ops`
- `@contentrain/mcp/core/ops` — plan APIs plus content-root-relative path helpers: `contentDirPath`, `contentFilePath`, `documentFilePath`, `metaFilePath`
- `@contentrain/mcp/core/overlay-reader`
- `@contentrain/mcp/util/detect`
- `@contentrain/mcp/util/fs`
Expand Down
2 changes: 1 addition & 1 deletion packages/mcp/src/core/ops/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ export { planModelDelete } from './model-delete.js'
export type { ModelDeleteInput, ModelDeletePlan } from './model-delete.js'
export { planModelSave } from './model-save.js'
export type { ModelSaveInput, ModelSavePlan, ModelSaveResult } from './model-save.js'
export { contentFilePath, documentFilePath, metaFilePath } from './paths.js'
export { contentDirPath, contentFilePath, documentFilePath, metaFilePath } from './paths.js'
export type { ContentSaveEntryResult, ContentSavePlan, OpPlan } from './types.js'
Loading