@mcp-use/cli 2.12.6 → 2.13.0
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/commands/auth.d.ts.map +1 -1
- package/dist/commands/deploy.d.ts.map +1 -1
- package/dist/index.cjs +40 -36
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +40 -36
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../src/commands/auth.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../src/commands/auth.ts"],"names":[],"mappings":"AA+SA;;GAEG;AACH,wBAAsB,YAAY,CAAC,OAAO,CAAC,EAAE;IAC3C,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB,GAAG,OAAO,CAAC,IAAI,CAAC,CAqHhB;AAED;;GAEG;AACH,wBAAsB,aAAa,IAAI,OAAO,CAAC,IAAI,CAAC,CA8BnD;AAED;;GAEG;AACH,wBAAsB,aAAa,IAAI,OAAO,CAAC,IAAI,CAAC,CAkCnD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deploy.d.ts","sourceRoot":"","sources":["../../src/commands/deploy.ts"],"names":[],"mappings":"AA6KA,UAAU,aAAa;IACrB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAC;IAC5B,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,GAAG,CAAC,EAAE,MAAM,EAAE,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAqlBD;;GAEG;AACH,wBAAsB,aAAa,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"deploy.d.ts","sourceRoot":"","sources":["../../src/commands/deploy.ts"],"names":[],"mappings":"AA6KA,UAAU,aAAa;IACrB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAC;IAC5B,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,GAAG,CAAC,EAAE,MAAM,EAAE,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAqlBD;;GAEG;AACH,wBAAsB,aAAa,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,IAAI,CAAC,CAibzE"}
|
package/dist/index.cjs
CHANGED
|
@@ -1141,12 +1141,12 @@ var import_node_http = require("http");
|
|
|
1141
1141
|
|
|
1142
1142
|
// src/utils/config.ts
|
|
1143
1143
|
var import_node_fs4 = require("fs");
|
|
1144
|
-
var import_node_path2 = __toESM(require("path"), 1);
|
|
1145
1144
|
var import_node_os3 = __toESM(require("os"), 1);
|
|
1145
|
+
var import_node_path2 = __toESM(require("path"), 1);
|
|
1146
1146
|
var CONFIG_DIR = import_node_path2.default.join(import_node_os3.default.homedir(), ".mcp-use");
|
|
1147
1147
|
var CONFIG_FILE = import_node_path2.default.join(CONFIG_DIR, "config.json");
|
|
1148
1148
|
var DEFAULT_API_URL = process.env.MCP_API_URL ? process.env.MCP_API_URL.replace(/\/api\/v1$/, "") + "/api/v1" : "https://cloud.mcp-use.com/api/v1";
|
|
1149
|
-
var DEFAULT_WEB_URL = process.env.MCP_WEB_URL ? process.env.MCP_WEB_URL : "https://
|
|
1149
|
+
var DEFAULT_WEB_URL = process.env.MCP_WEB_URL ? process.env.MCP_WEB_URL : "https://manufact.com";
|
|
1150
1150
|
async function ensureConfigDir() {
|
|
1151
1151
|
try {
|
|
1152
1152
|
await import_node_fs4.promises.mkdir(CONFIG_DIR, { recursive: true });
|
|
@@ -1523,14 +1523,19 @@ async function startCallbackServer(port, expectedState) {
|
|
|
1523
1523
|
const tokenPromise = new Promise((res) => {
|
|
1524
1524
|
tokenResolver = res;
|
|
1525
1525
|
});
|
|
1526
|
-
const server = (0, import_node_http.createServer)(
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1526
|
+
const server = (0, import_node_http.createServer)(
|
|
1527
|
+
{
|
|
1528
|
+
maxHeaderSize: 65536
|
|
1529
|
+
// 64KB - handle very long JWT tokens in URL (increased from default 8192)
|
|
1530
|
+
},
|
|
1531
|
+
(req, res) => {
|
|
1532
|
+
if (req.url?.startsWith("/callback")) {
|
|
1533
|
+
const url = new URL(req.url, `http://localhost:${port}`);
|
|
1534
|
+
const token = url.searchParams.get("token");
|
|
1535
|
+
const state = url.searchParams.get("state");
|
|
1536
|
+
if (state !== expectedState) {
|
|
1537
|
+
res.writeHead(400, { "Content-Type": "text/html" });
|
|
1538
|
+
res.end(`
|
|
1534
1539
|
<!DOCTYPE html>
|
|
1535
1540
|
<html>
|
|
1536
1541
|
<head>
|
|
@@ -1568,11 +1573,11 @@ async function startCallbackServer(port, expectedState) {
|
|
|
1568
1573
|
</body>
|
|
1569
1574
|
</html>
|
|
1570
1575
|
`);
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
+
return;
|
|
1577
|
+
}
|
|
1578
|
+
if (token && tokenResolver) {
|
|
1579
|
+
res.writeHead(200, { "Content-Type": "text/html" });
|
|
1580
|
+
res.end(`
|
|
1576
1581
|
<!DOCTYPE html>
|
|
1577
1582
|
<html>
|
|
1578
1583
|
<head>
|
|
@@ -1671,10 +1676,10 @@ async function startCallbackServer(port, expectedState) {
|
|
|
1671
1676
|
</body>
|
|
1672
1677
|
</html>
|
|
1673
1678
|
`);
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1679
|
+
tokenResolver(token);
|
|
1680
|
+
} else {
|
|
1681
|
+
res.writeHead(400, { "Content-Type": "text/html" });
|
|
1682
|
+
res.end(`
|
|
1678
1683
|
<!DOCTYPE html>
|
|
1679
1684
|
<html>
|
|
1680
1685
|
<head>
|
|
@@ -1750,9 +1755,10 @@ async function startCallbackServer(port, expectedState) {
|
|
|
1750
1755
|
</body>
|
|
1751
1756
|
</html>
|
|
1752
1757
|
`);
|
|
1758
|
+
}
|
|
1753
1759
|
}
|
|
1754
1760
|
}
|
|
1755
|
-
|
|
1761
|
+
);
|
|
1756
1762
|
server.listen(port, () => {
|
|
1757
1763
|
resolve({ server, token: tokenPromise });
|
|
1758
1764
|
});
|
|
@@ -1771,7 +1777,7 @@ async function loginCommand(options) {
|
|
|
1771
1777
|
}
|
|
1772
1778
|
return;
|
|
1773
1779
|
}
|
|
1774
|
-
console.log(source_default.cyan.bold("\u{1F510} Logging in to
|
|
1780
|
+
console.log(source_default.cyan.bold("\u{1F510} Logging in to Manufact cloud...\n"));
|
|
1775
1781
|
const state = import_node_crypto.default.randomBytes(32).toString("hex");
|
|
1776
1782
|
const port = await findAvailablePort();
|
|
1777
1783
|
const redirectUri = `http://localhost:${port}/callback`;
|
|
@@ -1896,8 +1902,8 @@ async function whoamiCommand() {
|
|
|
1896
1902
|
|
|
1897
1903
|
// src/commands/client.ts
|
|
1898
1904
|
var import_commander = require("commander");
|
|
1899
|
-
var import_server = require("mcp-use/server");
|
|
1900
1905
|
var import_client = require("mcp-use/client");
|
|
1906
|
+
var import_server = require("mcp-use/server");
|
|
1901
1907
|
var import_node_readline = require("readline");
|
|
1902
1908
|
|
|
1903
1909
|
// src/utils/format.ts
|
|
@@ -2278,10 +2284,10 @@ function getCliClientInfo() {
|
|
|
2278
2284
|
description: "mcp-use CLI - Command-line interface for MCP servers",
|
|
2279
2285
|
icons: [
|
|
2280
2286
|
{
|
|
2281
|
-
src: "https://
|
|
2287
|
+
src: "https://manufact.com/logo.png"
|
|
2282
2288
|
}
|
|
2283
2289
|
],
|
|
2284
|
-
websiteUrl: "https://
|
|
2290
|
+
websiteUrl: "https://manufact.com"
|
|
2285
2291
|
};
|
|
2286
2292
|
}
|
|
2287
2293
|
async function connectCommand(urlOrCommand, options) {
|
|
@@ -3361,11 +3367,11 @@ async function displayDeploymentProgress(api, deployment) {
|
|
|
3361
3367
|
const mcpServerUrl = getMcpServerUrl(finalDeployment);
|
|
3362
3368
|
let dashboardUrl = null;
|
|
3363
3369
|
if (finalDeployment.serverSlug) {
|
|
3364
|
-
dashboardUrl = `https://
|
|
3370
|
+
dashboardUrl = `https://manufact.com/cloud/servers/${finalDeployment.serverSlug}`;
|
|
3365
3371
|
} else if (finalDeployment.serverId) {
|
|
3366
|
-
dashboardUrl = `https://
|
|
3372
|
+
dashboardUrl = `https://manufact.com/cloud/servers/${finalDeployment.serverId}`;
|
|
3367
3373
|
}
|
|
3368
|
-
const inspectorUrl = `https://inspector.
|
|
3374
|
+
const inspectorUrl = `https://inspector.manufact.com/inspector?autoConnect=${encodeURIComponent(
|
|
3369
3375
|
mcpServerUrl
|
|
3370
3376
|
)}`;
|
|
3371
3377
|
console.log(source_default.green.bold("\u2713 Deployment successful!\n"));
|
|
@@ -3581,7 +3587,7 @@ Opening browser to ${reason === "not_connected" ? "install" : "configure"} GitHu
|
|
|
3581
3587
|
source_default.yellow("\n\u26A0\uFE0F Unable to open GitHub installation automatically")
|
|
3582
3588
|
);
|
|
3583
3589
|
console.log(
|
|
3584
|
-
source_default.white("Please visit: ") + source_default.cyan("https://
|
|
3590
|
+
source_default.white("Please visit: ") + source_default.cyan("https://manufact.com/cloud/settings")
|
|
3585
3591
|
);
|
|
3586
3592
|
console.log(
|
|
3587
3593
|
source_default.gray("Then connect your GitHub account and try again.\n")
|
|
@@ -3625,7 +3631,7 @@ async function deployCommand(options) {
|
|
|
3625
3631
|
process.exit(0);
|
|
3626
3632
|
}
|
|
3627
3633
|
}
|
|
3628
|
-
console.log(source_default.cyan.bold("\u{1F680} Deploying to
|
|
3634
|
+
console.log(source_default.cyan.bold("\u{1F680} Deploying to Manufact cloud...\n"));
|
|
3629
3635
|
const isMcp = await isMcpProject(cwd);
|
|
3630
3636
|
if (!isMcp) {
|
|
3631
3637
|
console.log(
|
|
@@ -3769,9 +3775,7 @@ async function deployCommand(options) {
|
|
|
3769
3775
|
console.log(
|
|
3770
3776
|
source_default.gray("Please try connecting GitHub from the web UI:")
|
|
3771
3777
|
);
|
|
3772
|
-
console.log(
|
|
3773
|
-
source_default.cyan(" https://cloud.mcp-use.com/cloud/settings\n")
|
|
3774
|
-
);
|
|
3778
|
+
console.log(source_default.cyan(" https://manufact.com/cloud/settings\n"));
|
|
3775
3779
|
process.exit(1);
|
|
3776
3780
|
}
|
|
3777
3781
|
githubVerified = true;
|
|
@@ -3836,7 +3840,7 @@ async function deployCommand(options) {
|
|
|
3836
3840
|
console.log(source_default.gray("\nPlease ensure:"));
|
|
3837
3841
|
console.log(
|
|
3838
3842
|
source_default.cyan(
|
|
3839
|
-
" 1. You have connected GitHub at https://
|
|
3843
|
+
" 1. You have connected GitHub at https://manufact.com/cloud/settings"
|
|
3840
3844
|
)
|
|
3841
3845
|
);
|
|
3842
3846
|
console.log(
|
|
@@ -5659,7 +5663,7 @@ program.command("start").description("Start production server").option("-p, --pa
|
|
|
5659
5663
|
process.exit(1);
|
|
5660
5664
|
}
|
|
5661
5665
|
});
|
|
5662
|
-
program.command("login").description("Login to
|
|
5666
|
+
program.command("login").description("Login to Manufact cloud").action(async () => {
|
|
5663
5667
|
try {
|
|
5664
5668
|
await loginCommand();
|
|
5665
5669
|
process.exit(0);
|
|
@@ -5671,13 +5675,13 @@ program.command("login").description("Login to mcp-use cloud").action(async () =
|
|
|
5671
5675
|
process.exit(1);
|
|
5672
5676
|
}
|
|
5673
5677
|
});
|
|
5674
|
-
program.command("logout").description("Logout from
|
|
5678
|
+
program.command("logout").description("Logout from Manufact cloud").action(async () => {
|
|
5675
5679
|
await logoutCommand();
|
|
5676
5680
|
});
|
|
5677
5681
|
program.command("whoami").description("Show current user information").action(async () => {
|
|
5678
5682
|
await whoamiCommand();
|
|
5679
5683
|
});
|
|
5680
|
-
program.command("deploy").description("Deploy MCP server from GitHub to
|
|
5684
|
+
program.command("deploy").description("Deploy MCP server from GitHub to Manufact cloud").option("--open", "Open deployment in browser after successful deploy").option("--name <name>", "Custom deployment name").option("--port <port>", "Server port", "3000").option("--runtime <runtime>", "Runtime (node or python)").option(
|
|
5681
5685
|
"--new",
|
|
5682
5686
|
"Force creation of new deployment instead of reusing linked deployment"
|
|
5683
5687
|
).option(
|