Skip to content

feat(mcp): export contentDirPath from core/ops#88

Merged
ABB65 merged 1 commit into
mainfrom
feat/mcp-export-content-dir-path
Jul 17, 2026
Merged

feat(mcp): export contentDirPath from core/ops#88
ABB65 merged 1 commit into
mainfrom
feat/mcp-export-content-dir-path

Conversation

@ABB65

@ABB65 ABB65 commented Jul 17, 2026

Copy link
Copy Markdown
Member

contentDirPath already existed in core/ops/paths.ts — it backs contentFilePath and documentFilePath — but the @contentrain/mcp/core/ops barrel only re-exported the file-level helpers. This re-exports the directory-level resolver so consumers resolve a model's content directory through the same content_path-aware logic instead of keeping a local copy. Concretely: Studio can drop its last local content-dir helper.

Changes

  • core/ops/index.ts: add contentDirPath to the paths.js re-export (one line, no behavior change)
  • README.md: the core/ops subpath bullet now names the four path helpers
  • Changeset: minor — new public API on an existing subpath

Quality gates

oxlint 0/0, tsc --noEmit clean. No test changes — nothing imports the barrel in tests and runtime behavior is untouched; the function itself is covered via the plan-API paths that already use it.

🤖 Generated with Claude Code

The helper already existed in core/ops/paths.ts and backs contentFilePath /
documentFilePath, but the subpath barrel only re-exported the file-level
helpers. Re-exporting the directory-level resolver lets consumers (Studio)
resolve a model's content directory through the same content_path-aware
logic instead of keeping a local copy.

No behavior change; oxlint and tsc clean. README subpath list now names the
four path helpers, changeset is minor (new public API).
@netlify

netlify Bot commented Jul 17, 2026

Copy link
Copy Markdown

Deploy Preview for contentrain-ai ready!

Name Link
🔨 Latest commit dbc99fe
🔍 Latest deploy log https://app.netlify.com/projects/contentrain-ai/deploys/6a5a1c496703400008a85534
😎 Deploy Preview https://deploy-preview-88--contentrain-ai.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@ABB65
ABB65 merged commit 1bbee2f into main Jul 17, 2026
5 of 6 checks passed
@ABB65
ABB65 deleted the feat/mcp-export-content-dir-path branch July 17, 2026 12:13
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 17, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant