@upturtle/wizard 0.2.0 → 0.2.1
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 +1 -1
- package/src/writers.mjs +10 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@upturtle/wizard",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "Connects your coding agent to UpTurtle's MCP server. Detects the agent, mints a scoped PAT via browser handshake, and writes the right MCP config.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
package/src/writers.mjs
CHANGED
|
@@ -144,10 +144,17 @@ function writeClaudeDesktop({ host, secret, scope }) {
|
|
|
144
144
|
const path = claudeDesktopConfigPath();
|
|
145
145
|
return mergeJson(path, (cfg) => {
|
|
146
146
|
cfg.mcpServers ??= {};
|
|
147
|
+
// Claude Desktop's config only honors stdio MCP servers (command + args).
|
|
148
|
+
// Bridge the remote HTTP server through `mcp-remote`, same as the Zed entry.
|
|
147
149
|
cfg.mcpServers[SERVER_KEY] = {
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
150
|
+
command: "npx",
|
|
151
|
+
args: [
|
|
152
|
+
"-y",
|
|
153
|
+
"mcp-remote",
|
|
154
|
+
host + "/mcp",
|
|
155
|
+
"--header",
|
|
156
|
+
`Authorization: Bearer ${secret}`,
|
|
157
|
+
],
|
|
151
158
|
};
|
|
152
159
|
return cfg;
|
|
153
160
|
});
|