@prefecthq/fastmcp-ts 0.0.4 → 0.0.6
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/cli/index.cjs +9265 -3576
- package/dist/cli/index.cjs.map +1 -1
- package/dist/server.js +8 -8
- package/dist/server.js.map +1 -1
- package/dist/{zod-JRPBLP6C.js → zod-P5QUYVPB.js} +423 -1171
- package/dist/zod-P5QUYVPB.js.map +1 -0
- package/package.json +5 -8
- package/dist/zod-JRPBLP6C.js.map +0 -1
package/dist/server.js
CHANGED
|
@@ -478,7 +478,7 @@ async function toJsonSchema(schema, context) {
|
|
|
478
478
|
}
|
|
479
479
|
}
|
|
480
480
|
try {
|
|
481
|
-
const { z } = await import("./zod-
|
|
481
|
+
const { z } = await import("./zod-P5QUYVPB.js");
|
|
482
482
|
return z.toJSONSchema(
|
|
483
483
|
schema
|
|
484
484
|
);
|
|
@@ -1602,7 +1602,7 @@ var FastMCP = class {
|
|
|
1602
1602
|
const host = options?.host ?? process.env.MCP_HOST ?? "0.0.0.0";
|
|
1603
1603
|
const path = options?.path ?? process.env.MCP_PATH ?? "/mcp";
|
|
1604
1604
|
if (transport === "stdio") {
|
|
1605
|
-
const { StdioServerTransport } = await import("@modelcontextprotocol/sdk/server/stdio");
|
|
1605
|
+
const { StdioServerTransport } = await import("@modelcontextprotocol/sdk/server/stdio.js");
|
|
1606
1606
|
await this.connect(new StdioServerTransport(options?.stdin, options?.stdout));
|
|
1607
1607
|
} else if (this._oauth) {
|
|
1608
1608
|
await this._runHttpOAuth(port, host, path);
|
|
@@ -1611,10 +1611,10 @@ var FastMCP = class {
|
|
|
1611
1611
|
}
|
|
1612
1612
|
}
|
|
1613
1613
|
async _runHttpOAuth(port, host, path) {
|
|
1614
|
-
const { StreamableHTTPServerTransport } = await import("@modelcontextprotocol/sdk/server/streamableHttp");
|
|
1614
|
+
const { StreamableHTTPServerTransport } = await import("@modelcontextprotocol/sdk/server/streamableHttp.js");
|
|
1615
1615
|
const express = (await import("express")).default;
|
|
1616
|
-
const { mcpAuthRouter } = await import("@modelcontextprotocol/sdk/server/auth/router");
|
|
1617
|
-
const { requireBearerAuth } = await import("@modelcontextprotocol/sdk/server/auth/middleware/bearerAuth");
|
|
1616
|
+
const { mcpAuthRouter } = await import("@modelcontextprotocol/sdk/server/auth/router.js");
|
|
1617
|
+
const { requireBearerAuth } = await import("@modelcontextprotocol/sdk/server/auth/middleware/bearerAuth.js");
|
|
1618
1618
|
const oauth = this._oauth;
|
|
1619
1619
|
const app = express();
|
|
1620
1620
|
const httpServer = await new Promise((resolve, reject) => {
|
|
@@ -1669,7 +1669,7 @@ var FastMCP = class {
|
|
|
1669
1669
|
this._address = { host: bound.address, port: bound.port, path };
|
|
1670
1670
|
}
|
|
1671
1671
|
async _runHttpSimple(port, host, path) {
|
|
1672
|
-
const { StreamableHTTPServerTransport } = await import("@modelcontextprotocol/sdk/server/streamableHttp");
|
|
1672
|
+
const { StreamableHTTPServerTransport } = await import("@modelcontextprotocol/sdk/server/streamableHttp.js");
|
|
1673
1673
|
const { createServer } = await import("http");
|
|
1674
1674
|
const auth = this._auth;
|
|
1675
1675
|
const corsHeaders = {
|
|
@@ -2294,7 +2294,7 @@ async function buildProxyFromClient(client, options) {
|
|
|
2294
2294
|
async function createProxy(config, name) {
|
|
2295
2295
|
let transport;
|
|
2296
2296
|
if (config.type === "stdio") {
|
|
2297
|
-
const { StdioClientTransport } = await import("@modelcontextprotocol/sdk/client/stdio");
|
|
2297
|
+
const { StdioClientTransport } = await import("@modelcontextprotocol/sdk/client/stdio.js");
|
|
2298
2298
|
transport = new StdioClientTransport({
|
|
2299
2299
|
command: config.command,
|
|
2300
2300
|
args: config.args,
|
|
@@ -2302,7 +2302,7 @@ async function createProxy(config, name) {
|
|
|
2302
2302
|
cwd: config.cwd
|
|
2303
2303
|
});
|
|
2304
2304
|
} else {
|
|
2305
|
-
const { StreamableHTTPClientTransport } = await import("@modelcontextprotocol/sdk/client/streamableHttp");
|
|
2305
|
+
const { StreamableHTTPClientTransport } = await import("@modelcontextprotocol/sdk/client/streamableHttp.js");
|
|
2306
2306
|
transport = new StreamableHTTPClientTransport(new URL(config.url), {
|
|
2307
2307
|
requestInit: config.requestInit
|
|
2308
2308
|
});
|