create-mcp-use-app 2.0.0-beta.10 → 2.0.0-beta.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/index.js +3 -2
- package/dist/templates/blank/mcp-env.d.ts +1 -1
- package/dist/templates/blank/tsconfig.json +1 -1
- package/dist/templates/mcp-apps/mcp-env.d.ts +1 -1
- package/dist/templates/mcp-apps/tsconfig.json +1 -1
- package/dist/templates/mcp-server/mcp-env.d.ts +1 -1
- package/dist/templates/mcp-server/tsconfig.json +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1532,13 +1532,14 @@ function renderLogo() {
|
|
|
1532
1532
|
var packageJson = JSON.parse(
|
|
1533
1533
|
readFileSync2(join3(__dirname, "../package.json"), "utf-8")
|
|
1534
1534
|
);
|
|
1535
|
+
var DEFAULT_MCP_USE_VERSION = "2.0.0-beta.36";
|
|
1535
1536
|
function getCurrentPackageVersions(isDevelopment = false, sdkVersion) {
|
|
1536
1537
|
if (isDevelopment) {
|
|
1537
1538
|
return {
|
|
1538
1539
|
"mcp-use": "workspace:*"
|
|
1539
1540
|
};
|
|
1540
1541
|
}
|
|
1541
|
-
const requestedSdk = sdkVersion ??
|
|
1542
|
+
const requestedSdk = sdkVersion ?? DEFAULT_MCP_USE_VERSION;
|
|
1542
1543
|
return {
|
|
1543
1544
|
"mcp-use": requestedSdk
|
|
1544
1545
|
};
|
|
@@ -1553,7 +1554,7 @@ function processTemplateFile(filePath, versions, isDevelopment = false) {
|
|
|
1553
1554
|
version
|
|
1554
1555
|
);
|
|
1555
1556
|
}
|
|
1556
|
-
const mcpUseVersion = isDevelopment ? "workspace:*" : versions["mcp-use"] ||
|
|
1557
|
+
const mcpUseVersion = isDevelopment ? "workspace:*" : versions["mcp-use"] || DEFAULT_MCP_USE_VERSION;
|
|
1557
1558
|
if (isDevelopment) {
|
|
1558
1559
|
processedContent = processedContent.replace(
|
|
1559
1560
|
/"mcp-use": "\^[^"]+"/,
|