Skip to content

fix: ignore unexpanded MCP env templates for data directory#9

Open
tjsingleton wants to merge 1 commit into
obra:mainfrom
tjsingleton:main
Open

fix: ignore unexpanded MCP env templates for data directory#9
tjsingleton wants to merge 1 commit into
obra:mainfrom
tjsingleton:main

Conversation

@tjsingleton
Copy link
Copy Markdown

Fixes literal ${KG_DATA_DIR} folder creation in vault cwd when MCP env substitution fails.

Made with Cursor

When Claude Code leaves ${KG_DATA_DIR} unexpanded, resolveConfig now
falls back to XDG ~/.local/share/knowledge-graph instead of creating a
literal ${KG_DATA_DIR} folder in the vault cwd. Relative KG_DATA_DIR env
paths are ignored for the same reason.

Also use direct tsx binary in plugin MCP config and drop KG_DATA_DIR
from plugin env so the default applies when the host does not set it.

Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant