mcpBundle.js 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. "use strict";
  2. var __create = Object.create;
  3. var __defProp = Object.defineProperty;
  4. var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
  5. var __getOwnPropNames = Object.getOwnPropertyNames;
  6. var __getProtoOf = Object.getPrototypeOf;
  7. var __hasOwnProp = Object.prototype.hasOwnProperty;
  8. var __export = (target, all) => {
  9. for (var name in all)
  10. __defProp(target, name, { get: all[name], enumerable: true });
  11. };
  12. var __copyProps = (to, from, except, desc) => {
  13. if (from && typeof from === "object" || typeof from === "function") {
  14. for (let key of __getOwnPropNames(from))
  15. if (!__hasOwnProp.call(to, key) && key !== except)
  16. __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
  17. }
  18. return to;
  19. };
  20. var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
  21. // If the importer is in node compatibility mode or this is not an ESM
  22. // file that has been converted to a CommonJS file using a Babel-
  23. // compatible transform (i.e. "__esModule" has not been set), then set
  24. // "default" to the CommonJS "module.exports" for node compatibility.
  25. isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
  26. mod
  27. ));
  28. var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
  29. var mcpBundle_exports = {};
  30. __export(mcpBundle_exports, {
  31. CallToolRequestSchema: () => CallToolRequestSchema,
  32. Client: () => Client,
  33. ListRootsRequestSchema: () => ListRootsRequestSchema,
  34. ListToolsRequestSchema: () => ListToolsRequestSchema,
  35. Loop: () => Loop,
  36. PingRequestSchema: () => PingRequestSchema,
  37. ProgressNotificationSchema: () => ProgressNotificationSchema,
  38. SSEClientTransport: () => SSEClientTransport,
  39. SSEServerTransport: () => SSEServerTransport,
  40. Server: () => Server,
  41. StdioClientTransport: () => StdioClientTransport,
  42. StdioServerTransport: () => StdioServerTransport,
  43. StreamableHTTPClientTransport: () => StreamableHTTPClientTransport,
  44. StreamableHTTPServerTransport: () => StreamableHTTPServerTransport,
  45. z: () => z,
  46. zodToJsonSchema: () => zodToJsonSchema
  47. });
  48. module.exports = __toCommonJS(mcpBundle_exports);
  49. var bundle = __toESM(require("./mcpBundleImpl"));
  50. const zodToJsonSchema = bundle.zodToJsonSchema;
  51. const Client = bundle.Client;
  52. const Server = bundle.Server;
  53. const SSEClientTransport = bundle.SSEClientTransport;
  54. const SSEServerTransport = bundle.SSEServerTransport;
  55. const StdioClientTransport = bundle.StdioClientTransport;
  56. const StdioServerTransport = bundle.StdioServerTransport;
  57. const StreamableHTTPServerTransport = bundle.StreamableHTTPServerTransport;
  58. const StreamableHTTPClientTransport = bundle.StreamableHTTPClientTransport;
  59. const CallToolRequestSchema = bundle.CallToolRequestSchema;
  60. const ListRootsRequestSchema = bundle.ListRootsRequestSchema;
  61. const ProgressNotificationSchema = bundle.ProgressNotificationSchema;
  62. const ListToolsRequestSchema = bundle.ListToolsRequestSchema;
  63. const PingRequestSchema = bundle.PingRequestSchema;
  64. const Loop = bundle.Loop;
  65. const z = bundle.z;
  66. // Annotate the CommonJS export names for ESM import in node:
  67. 0 && (module.exports = {
  68. CallToolRequestSchema,
  69. Client,
  70. ListRootsRequestSchema,
  71. ListToolsRequestSchema,
  72. Loop,
  73. PingRequestSchema,
  74. ProgressNotificationSchema,
  75. SSEClientTransport,
  76. SSEServerTransport,
  77. Server,
  78. StdioClientTransport,
  79. StdioServerTransport,
  80. StreamableHTTPClientTransport,
  81. StreamableHTTPServerTransport,
  82. z,
  83. zodToJsonSchema
  84. });