@prefecthq/fastmcp-ts 0.0.2-alpha.0 → 0.0.2

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.
@@ -1172,7 +1172,7 @@ var init_version = __esm({
1172
1172
  async run({ args }) {
1173
1173
  if (args.json) setJsonMode(true);
1174
1174
  const data = {
1175
- fastmcp: "0.0.2-alpha.0",
1175
+ fastmcp: "0.0.2",
1176
1176
  "mcp-sdk": "^1.29.0",
1177
1177
  node: process.version,
1178
1178
  platform: `${process.platform} ${process.arch}`
@@ -26409,38 +26409,6 @@ var init_handlers = __esm({
26409
26409
  }
26410
26410
  });
26411
26411
 
26412
- // node_modules/@modelcontextprotocol/sdk/dist/esm/shared/transport.js
26413
- function normalizeHeaders(headers) {
26414
- if (!headers)
26415
- return {};
26416
- if (headers instanceof Headers) {
26417
- return Object.fromEntries(headers.entries());
26418
- }
26419
- if (Array.isArray(headers)) {
26420
- return Object.fromEntries(headers);
26421
- }
26422
- return { ...headers };
26423
- }
26424
- function createFetchWithInit(baseFetch = fetch, baseInit) {
26425
- if (!baseInit) {
26426
- return baseFetch;
26427
- }
26428
- return async (url2, init) => {
26429
- const mergedInit = {
26430
- ...baseInit,
26431
- ...init,
26432
- // Headers need special handling - merge instead of replace
26433
- headers: init?.headers ? { ...normalizeHeaders(baseInit.headers), ...normalizeHeaders(init.headers) } : baseInit.headers
26434
- };
26435
- return baseFetch(url2, mergedInit);
26436
- };
26437
- }
26438
- var init_transport = __esm({
26439
- "node_modules/@modelcontextprotocol/sdk/dist/esm/shared/transport.js"() {
26440
- "use strict";
26441
- }
26442
- });
26443
-
26444
26412
  // node_modules/@modelcontextprotocol/sdk/dist/esm/inMemory.js
26445
26413
  var InMemoryTransport;
26446
26414
  var init_inMemory = __esm({
@@ -26490,6 +26458,38 @@ var init_inMemory = __esm({
26490
26458
  }
26491
26459
  });
26492
26460
 
26461
+ // node_modules/@modelcontextprotocol/sdk/dist/esm/shared/transport.js
26462
+ function normalizeHeaders(headers) {
26463
+ if (!headers)
26464
+ return {};
26465
+ if (headers instanceof Headers) {
26466
+ return Object.fromEntries(headers.entries());
26467
+ }
26468
+ if (Array.isArray(headers)) {
26469
+ return Object.fromEntries(headers);
26470
+ }
26471
+ return { ...headers };
26472
+ }
26473
+ function createFetchWithInit(baseFetch = fetch, baseInit) {
26474
+ if (!baseInit) {
26475
+ return baseFetch;
26476
+ }
26477
+ return async (url2, init) => {
26478
+ const mergedInit = {
26479
+ ...baseInit,
26480
+ ...init,
26481
+ // Headers need special handling - merge instead of replace
26482
+ headers: init?.headers ? { ...normalizeHeaders(baseInit.headers), ...normalizeHeaders(init.headers) } : baseInit.headers
26483
+ };
26484
+ return baseFetch(url2, mergedInit);
26485
+ };
26486
+ }
26487
+ var init_transport = __esm({
26488
+ "node_modules/@modelcontextprotocol/sdk/dist/esm/shared/transport.js"() {
26489
+ "use strict";
26490
+ }
26491
+ });
26492
+
26493
26493
  // node_modules/eventsource-parser/dist/index.js
26494
26494
  function noop(_arg) {
26495
26495
  }
@@ -28135,8 +28135,8 @@ var import_cross_spawn, import_node_process2, import_node_stream2, DEFAULT_INHER
28135
28135
  var init_stdio2 = __esm({
28136
28136
  "node_modules/@modelcontextprotocol/sdk/dist/esm/client/stdio.js"() {
28137
28137
  "use strict";
28138
- import_cross_spawn = __toESM(require_cross_spawn());
28139
- import_node_process2 = __toESM(require("process"));
28138
+ import_cross_spawn = __toESM(require_cross_spawn(), 1);
28139
+ import_node_process2 = __toESM(require("process"), 1);
28140
28140
  import_node_stream2 = require("stream");
28141
28141
  init_stdio();
28142
28142
  DEFAULT_INHERITED_ENV_VARS = import_node_process2.default.platform === "win32" ? [
@@ -28298,6 +28298,12 @@ function isMcpServerLike(value) {
28298
28298
  function isMcpConfig(value) {
28299
28299
  return typeof value === "object" && value !== null && "mcpServers" in value && typeof value.mcpServers === "object" && value.mcpServers !== null;
28300
28300
  }
28301
+ function normalizeHeaders2(headers) {
28302
+ if (!headers) return {};
28303
+ if (headers instanceof Headers) return Object.fromEntries(headers.entries());
28304
+ if (Array.isArray(headers)) return Object.fromEntries(headers);
28305
+ return { ...headers };
28306
+ }
28301
28307
  function isAsyncAuth(auth2) {
28302
28308
  return "kind" in auth2;
28303
28309
  }
@@ -28317,7 +28323,7 @@ function buildHttpOptions(auth2, extraHeaders = {}) {
28317
28323
  headers: {
28318
28324
  ...authHeaders,
28319
28325
  ...extraHeaders,
28320
- ...normalizeHeaders(init?.headers)
28326
+ ...normalizeHeaders2(init?.headers)
28321
28327
  }
28322
28328
  });
28323
28329
  };
@@ -28419,7 +28425,6 @@ var StdioTransport;
28419
28425
  var init_transports = __esm({
28420
28426
  "src/client/transports.ts"() {
28421
28427
  "use strict";
28422
- init_transport();
28423
28428
  init_inMemory();
28424
28429
  init_streamableHttp();
28425
28430
  init_sse();
@@ -45491,7 +45496,7 @@ init_format();
45491
45496
  var main = defineCommand({
45492
45497
  meta: {
45493
45498
  name: "fastmcp",
45494
- version: "0.0.2-alpha.0",
45499
+ version: "0.0.2",
45495
45500
  description: "FastMCP CLI \u2014 build, run, and manage MCP servers"
45496
45501
  },
45497
45502
  args: {