@cubedot/cli 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/cli.js +3 -1
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -101,13 +101,15 @@ function writeMcpJson(cwd, mcpUrl, projectId, key) {
101
101
  } catch {
102
102
  }
103
103
  }
104
+ const mcpEndpoint = new URL(mcpUrl);
105
+ mcpEndpoint.searchParams.set("project", projectId);
104
106
  const config = {
105
107
  ...existing,
106
108
  mcpServers: {
107
109
  ...existing.mcpServers ?? {},
108
110
  cubedot: {
109
111
  type: "http",
110
- url: `${mcpUrl}?project=${encodeURIComponent(projectId)}`,
112
+ url: mcpEndpoint.toString(),
111
113
  headers: { Authorization: `ApiKey ${key}` }
112
114
  }
113
115
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cubedot/cli",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "Cubedot CLI — connect your repo to the Cubedot MCP and drive the build loop",
5
5
  "license": "UNLICENSED",
6
6
  "homepage": "https://cubedot.ai",