@xiaozhiclaw/mcp-host-config 0.1.1 → 0.1.2

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.
Files changed (2) hide show
  1. package/dist/index.js +5 -2
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -149,7 +149,9 @@ function externalDefinition(format, definition, binding) {
149
149
  projected.type = "stdio";
150
150
  return projected;
151
151
  }
152
- const projected = { url: definition.url };
152
+ const projected = {
153
+ url: typeof definition.url === "string" ? definition.url : definitionValue(definition.url, binding),
154
+ };
153
155
  const headers = valueRecord(definition.headers, binding);
154
156
  if (headers)
155
157
  projected[format === "codex" ? "http_headers" : "headers"] = headers;
@@ -313,7 +315,8 @@ function renderCodexEntry(entry) {
313
315
  lines.push(`env = ${tomlInlineTable(environment)}`);
314
316
  }
315
317
  else {
316
- lines.push(`url = ${tomlString(definition.url)}`);
318
+ const url = typeof definition.url === "string" ? definition.url : definitionValue(definition.url, entry.binding);
319
+ lines.push(`url = ${tomlString(url)}`);
317
320
  const headers = valueRecord(definition.headers, entry.binding);
318
321
  if (headers)
319
322
  lines.push(`http_headers = ${tomlInlineTable(headers)}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xiaozhiclaw/mcp-host-config",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "Pure MCP configuration projections for Xiaozhi and external Hosts",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -22,7 +22,7 @@
22
22
  ],
23
23
  "dependencies": {
24
24
  "@iarna/toml": "2.2.5",
25
- "@xiaozhiclaw/mcp-contract": "0.1.1"
25
+ "@xiaozhiclaw/mcp-contract": "0.1.2"
26
26
  },
27
27
  "devDependencies": {
28
28
  "typescript": "^5.9.3",