@recursiv/cli 0.1.11 → 0.1.12
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/dist/bin/recursiv.js +13 -2
- package/dist/bin/recursiv.js.map +1 -1
- package/package.json +1 -1
package/dist/bin/recursiv.js
CHANGED
|
@@ -572,7 +572,9 @@ async function installCodex(apiKey) {
|
|
|
572
572
|
'args = ["-y", "@recursiv/mcp"]',
|
|
573
573
|
"",
|
|
574
574
|
"[mcp_servers.recursiv.env]",
|
|
575
|
-
`RECURSIV_API_KEY = "${apiKey}"
|
|
575
|
+
`RECURSIV_API_KEY = "${apiKey}"`,
|
|
576
|
+
// Opt into the full tool surface — see mcpServerEntry() for context.
|
|
577
|
+
`RECURSIV_API_KEY_SCOPES = "*"`
|
|
576
578
|
].join("\n");
|
|
577
579
|
const final = existing.trimEnd() + "\n" + tomlBlock + "\n";
|
|
578
580
|
await writeFile6(configPath2, final, "utf-8");
|
|
@@ -593,7 +595,9 @@ async function installOpenCode(apiKey, global) {
|
|
|
593
595
|
type: "local",
|
|
594
596
|
command: ["npx", "-y", "@recursiv/mcp"],
|
|
595
597
|
enabled: true,
|
|
598
|
+
// Opt into the full tool surface — see mcpServerEntry() for context.
|
|
596
599
|
environment: {
|
|
600
|
+
RECURSIV_API_KEY_SCOPES: "*",
|
|
597
601
|
RECURSIV_API_KEY: apiKey
|
|
598
602
|
}
|
|
599
603
|
};
|
|
@@ -676,7 +680,14 @@ function mcpServerEntry(apiKey) {
|
|
|
676
680
|
command: "npx",
|
|
677
681
|
args: ["-y", "@recursiv/mcp"],
|
|
678
682
|
env: {
|
|
679
|
-
RECURSIV_API_KEY: apiKey
|
|
683
|
+
RECURSIV_API_KEY: apiKey,
|
|
684
|
+
// The MCP server defaults to read-only tool registration when
|
|
685
|
+
// RECURSIV_API_KEY_SCOPES is absent (a safety default for ambient
|
|
686
|
+
// keys with unknown scope). The CLI mints a key with the full
|
|
687
|
+
// scope set on purpose — explicitly opt in so the user gets the
|
|
688
|
+
// tools they expect (create_project, provision_app, deploy_project,
|
|
689
|
+
// etc.). The wildcard says "all scopes the key actually has."
|
|
690
|
+
RECURSIV_API_KEY_SCOPES: "*"
|
|
680
691
|
}
|
|
681
692
|
};
|
|
682
693
|
}
|