fastmcp 1.27.2 → 1.27.3
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/fastmcp.js +2 -2
- package/dist/bin/fastmcp.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +2 -1
- package/src/bin/fastmcp.ts +2 -2
package/dist/bin/fastmcp.js
CHANGED
|
@@ -20,7 +20,7 @@ await yargs(hideBin(process.argv)).scriptName("fastmcp").command(
|
|
|
20
20
|
stderr: "inherit",
|
|
21
21
|
stdin: "inherit",
|
|
22
22
|
stdout: "inherit"
|
|
23
|
-
})`npx
|
|
23
|
+
})`npx @wong2/mcp-cli npx tsx ${argv.file}`;
|
|
24
24
|
} catch (error) {
|
|
25
25
|
console.error(
|
|
26
26
|
"[FastMCP Error] Failed to start development server:",
|
|
@@ -44,7 +44,7 @@ await yargs(hideBin(process.argv)).scriptName("fastmcp").command(
|
|
|
44
44
|
await execa({
|
|
45
45
|
stderr: "inherit",
|
|
46
46
|
stdout: "inherit"
|
|
47
|
-
})`npx
|
|
47
|
+
})`npx @modelcontextprotocol/inspector npx tsx ${argv.file}`;
|
|
48
48
|
} catch (error) {
|
|
49
49
|
console.error(
|
|
50
50
|
"[FastMCP Error] Failed to inspect server:",
|
package/dist/bin/fastmcp.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/bin/fastmcp.ts"],"sourcesContent":["#!/usr/bin/env node\n\nimport { execa } from \"execa\";\nimport yargs from \"yargs\";\nimport { hideBin } from \"yargs/helpers\";\n\nawait yargs(hideBin(process.argv))\n .scriptName(\"fastmcp\")\n .command(\n \"dev <file>\",\n \"Start a development server\",\n (yargs) => {\n return yargs.positional(\"file\", {\n demandOption: true,\n describe: \"The path to the server file\",\n type: \"string\",\n });\n },\n async (argv) => {\n try {\n await execa({\n stderr: \"inherit\",\n stdin: \"inherit\",\n stdout: \"inherit\",\n })`npx
|
|
1
|
+
{"version":3,"sources":["../../src/bin/fastmcp.ts"],"sourcesContent":["#!/usr/bin/env node\n\nimport { execa } from \"execa\";\nimport yargs from \"yargs\";\nimport { hideBin } from \"yargs/helpers\";\n\nawait yargs(hideBin(process.argv))\n .scriptName(\"fastmcp\")\n .command(\n \"dev <file>\",\n \"Start a development server\",\n (yargs) => {\n return yargs.positional(\"file\", {\n demandOption: true,\n describe: \"The path to the server file\",\n type: \"string\",\n });\n },\n async (argv) => {\n try {\n await execa({\n stderr: \"inherit\",\n stdin: \"inherit\",\n stdout: \"inherit\",\n })`npx @wong2/mcp-cli npx tsx ${argv.file}`;\n } catch (error) {\n console.error(\n \"[FastMCP Error] Failed to start development server:\",\n error instanceof Error ? error.message : String(error),\n );\n process.exit(1);\n }\n },\n )\n .command(\n \"inspect <file>\",\n \"Inspect a server file\",\n (yargs) => {\n return yargs.positional(\"file\", {\n demandOption: true,\n describe: \"The path to the server file\",\n type: \"string\",\n });\n },\n async (argv) => {\n try {\n await execa({\n stderr: \"inherit\",\n stdout: \"inherit\",\n })`npx @modelcontextprotocol/inspector npx tsx ${argv.file}`;\n } catch (error) {\n console.error(\n \"[FastMCP Error] Failed to inspect server:\",\n error instanceof Error ? error.message : String(error),\n );\n process.exit(1);\n }\n },\n )\n .help()\n .parseAsync();\n"],"mappings":";;;AAEA,SAAS,aAAa;AACtB,OAAO,WAAW;AAClB,SAAS,eAAe;AAExB,MAAM,MAAM,QAAQ,QAAQ,IAAI,CAAC,EAC9B,WAAW,SAAS,EACpB;AAAA,EACC;AAAA,EACA;AAAA,EACA,CAACA,WAAU;AACT,WAAOA,OAAM,WAAW,QAAQ;AAAA,MAC9B,cAAc;AAAA,MACd,UAAU;AAAA,MACV,MAAM;AAAA,IACR,CAAC;AAAA,EACH;AAAA,EACA,OAAO,SAAS;AACd,QAAI;AACF,YAAM,MAAM;AAAA,QACV,QAAQ;AAAA,QACR,OAAO;AAAA,QACP,QAAQ;AAAA,MACV,CAAC,+BAA+B,KAAK,IAAI;AAAA,IAC3C,SAAS,OAAO;AACd,cAAQ;AAAA,QACN;AAAA,QACA,iBAAiB,QAAQ,MAAM,UAAU,OAAO,KAAK;AAAA,MACvD;AACA,cAAQ,KAAK,CAAC;AAAA,IAChB;AAAA,EACF;AACF,EACC;AAAA,EACC;AAAA,EACA;AAAA,EACA,CAACA,WAAU;AACT,WAAOA,OAAM,WAAW,QAAQ;AAAA,MAC9B,cAAc;AAAA,MACd,UAAU;AAAA,MACV,MAAM;AAAA,IACR,CAAC;AAAA,EACH;AAAA,EACA,OAAO,SAAS;AACd,QAAI;AACF,YAAM,MAAM;AAAA,QACV,QAAQ;AAAA,QACR,QAAQ;AAAA,MACV,CAAC,gDAAgD,KAAK,IAAI;AAAA,IAC5D,SAAS,OAAO;AACd,cAAQ;AAAA,QACN;AAAA,QACA,iBAAiB,QAAQ,MAAM,UAAU,OAAO,KAAK;AAAA,MACvD;AACA,cAAQ,KAAK,CAAC;AAAA,IAChB;AAAA,EACF;AACF,EACC,KAAK,EACL,WAAW;","names":["yargs"]}
|
package/jsr.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fastmcp",
|
|
3
|
-
"version": "1.27.
|
|
3
|
+
"version": "1.27.3",
|
|
4
4
|
"main": "dist/FastMCP.js",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "tsup",
|
|
@@ -54,6 +54,7 @@
|
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@eslint/js": "^9.25.1",
|
|
57
|
+
"@modelcontextprotocol/inspector": "^0.11.0",
|
|
57
58
|
"@sebbo2002/semantic-release-jsr": "^2.0.5",
|
|
58
59
|
"@tsconfig/node22": "^22.0.1",
|
|
59
60
|
"@types/node": "^22.14.1",
|
package/src/bin/fastmcp.ts
CHANGED
|
@@ -22,7 +22,7 @@ await yargs(hideBin(process.argv))
|
|
|
22
22
|
stderr: "inherit",
|
|
23
23
|
stdin: "inherit",
|
|
24
24
|
stdout: "inherit",
|
|
25
|
-
})`npx
|
|
25
|
+
})`npx @wong2/mcp-cli npx tsx ${argv.file}`;
|
|
26
26
|
} catch (error) {
|
|
27
27
|
console.error(
|
|
28
28
|
"[FastMCP Error] Failed to start development server:",
|
|
@@ -47,7 +47,7 @@ await yargs(hideBin(process.argv))
|
|
|
47
47
|
await execa({
|
|
48
48
|
stderr: "inherit",
|
|
49
49
|
stdout: "inherit",
|
|
50
|
-
})`npx
|
|
50
|
+
})`npx @modelcontextprotocol/inspector npx tsx ${argv.file}`;
|
|
51
51
|
} catch (error) {
|
|
52
52
|
console.error(
|
|
53
53
|
"[FastMCP Error] Failed to inspect server:",
|