Skip to content

fix: resolve user config placeholders#252

Open
he-yufeng wants to merge 1 commit into
modelcontextprotocol:mainfrom
he-yufeng:fix/user-config-variable-defaults
Open

fix: resolve user config placeholders#252
he-yufeng wants to merge 1 commit into
modelcontextprotocol:mainfrom
he-yufeng:fix/user-config-variable-defaults

Conversation

@he-yufeng
Copy link
Copy Markdown

Summary

  • substitute system variables inside user_config default values before applying them to mcp_config
  • substitute missing optional user_config values as empty strings instead of leaving raw placeholders
  • add regression tests for ${HOME} defaults and unset optional config values

Fixes #250.
Fixes #251.

To verify

  • yarn test test/config.test.ts
  • yarn lint
  • yarn build

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.

Claude Desktop: substitute ${HOME} in user_config defaults Claude Desktop: substitute user_config options with no value

1 participant