create-mcp-use-app 2.0.0-beta.6 → 2.0.0-beta.7
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/README.md
CHANGED
|
@@ -273,7 +273,7 @@ Open `index.ts` to see how to:
|
|
|
273
273
|
|
|
274
274
|
### 2. Try the Inspector
|
|
275
275
|
|
|
276
|
-
The inspector automatically opens at `http://localhost:3000/inspector` where you can:
|
|
276
|
+
The inspector automatically opens at `http://localhost:3000/mcp/inspector` where you can:
|
|
277
277
|
|
|
278
278
|
- Test your tools interactively
|
|
279
279
|
- View available resources
|
package/dist/index.js
CHANGED
|
@@ -1534,9 +1534,18 @@ var packageJson = JSON.parse(
|
|
|
1534
1534
|
);
|
|
1535
1535
|
function getCurrentPackageVersions(isDevelopment = false, sdkVersion) {
|
|
1536
1536
|
if (isDevelopment) {
|
|
1537
|
-
return {
|
|
1537
|
+
return {
|
|
1538
|
+
"mcp-use": "workspace:*",
|
|
1539
|
+
"@mcp-use/inspector": "workspace:*"
|
|
1540
|
+
};
|
|
1538
1541
|
}
|
|
1539
|
-
|
|
1542
|
+
const requestedSdk = sdkVersion ?? "latest";
|
|
1543
|
+
const requestedStableSdk = requestedSdk === "latest" || /^\d+\.\d+\.\d+$/.test(requestedSdk);
|
|
1544
|
+
const inspectorChannel = !requestedStableSdk || packageJson.version.includes("-") ? "beta" : "latest";
|
|
1545
|
+
return {
|
|
1546
|
+
"mcp-use": requestedSdk,
|
|
1547
|
+
"@mcp-use/inspector": inspectorChannel
|
|
1548
|
+
};
|
|
1540
1549
|
}
|
|
1541
1550
|
function processTemplateFile(filePath, versions, isDevelopment = false) {
|
|
1542
1551
|
const content = readFileSync2(filePath, "utf-8");
|
|
@@ -1564,6 +1573,11 @@ function processTemplateFile(filePath, versions, isDevelopment = false) {
|
|
|
1564
1573
|
`"mcp-use": "${mcpUseVersion}"`
|
|
1565
1574
|
);
|
|
1566
1575
|
}
|
|
1576
|
+
const inspectorVersion = versions["@mcp-use/inspector"] ?? (isDevelopment ? "workspace:*" : "beta");
|
|
1577
|
+
processedContent = processedContent.replace(
|
|
1578
|
+
/"@mcp-use\/inspector": "workspace:\*"/,
|
|
1579
|
+
`"@mcp-use/inspector": "${inspectorVersion}"`
|
|
1580
|
+
);
|
|
1567
1581
|
return processedContent;
|
|
1568
1582
|
}
|
|
1569
1583
|
function getAvailableTemplates() {
|