@xmemo/client 0.4.165 → 0.4.166

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xmemo/client",
3
- "version": "0.4.165",
3
+ "version": "0.4.166",
4
4
  "description": "Privacy-first CLI and MCP setup helper for XMemo.",
5
5
  "mcpName": "io.github.yonro/xmemo",
6
6
  "type": "module",
@@ -31,7 +31,7 @@ export const JSON_MCP_CLIENT_DEFINITIONS = Object.freeze([
31
31
  commandClientDefinition('claude-desktop', 'Claude Desktop', 'defaultClaudeConfigPath'),
32
32
  httpClientDefinition('openclaw', 'OpenClaw', 'defaultOpenclawConfigPath', { urlKey: 'url', authentication: 'env-bearer' }),
33
33
  commandClientDefinition('kiro', 'Kiro', 'defaultKiroConfigPath'),
34
- httpClientDefinition('kimi-code', 'Kimi Code', 'defaultKimiCodeConfigPath', { urlKey: 'url', authentication: 'env-bearer' }),
34
+ httpClientDefinition('kimi-code', 'Kimi Code', 'defaultKimiCodeConfigPath', { urlKey: 'url', authentication: 'bearer-token-env-var', bearerTokenEnvVar: 'XMEMO_KEY' }),
35
35
  commandClientDefinition('zed', 'Zed', 'defaultZedConfigPath', { section: 'context_servers' }),
36
36
  nestedTransportClientDefinition('jetbrains', 'JetBrains', 'defaultJetbrainsConfigPath'),
37
37
  remoteClientDefinition('opencode', 'OpenCode', 'defaultOpencodeConfigPath'),
@@ -168,6 +168,15 @@ function serverConfigFromDefinition(definition, mcpUrl, identity) {
168
168
  };
169
169
  }
170
170
 
171
+ if (definition.authentication === 'bearer-token-env-var') {
172
+ return {
173
+ ...(definition.extra ?? {}),
174
+ [definition.urlKey]: mcpUrl,
175
+ bearerTokenEnvVar: definition.bearerTokenEnvVar,
176
+ headers: headersForDefinition(definition, identity)
177
+ };
178
+ }
179
+
171
180
  return {
172
181
  ...(definition.extra ?? {}),
173
182
  [definition.urlKey]: mcpUrl,