mcp-use 1.2.5-dev.2 → 1.2.5-dev.4

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.
@@ -935,10 +935,12 @@ var McpServer = class {
935
935
  let react;
936
936
  let tailwindcss;
937
937
  try {
938
- const viteModule = await import("vite");
938
+ const viteModule = await new Function('return import("vite")')();
939
939
  createServer = viteModule.createServer;
940
- react = (await import("@vitejs/plugin-react")).default;
941
- tailwindcss = (await import("@tailwindcss/vite")).default;
940
+ const reactModule = await new Function('return import("@vitejs/plugin-react")')();
941
+ react = reactModule.default;
942
+ const tailwindModule = await new Function('return import("@tailwindcss/vite")')();
943
+ tailwindcss = tailwindModule.default;
942
944
  } catch (error) {
943
945
  console.error("[WIDGETS] Dev dependencies not available. Install vite, @vitejs/plugin-react, and @tailwindcss/vite for widget development.");
944
946
  console.error("[WIDGETS] For production, use 'mcp-use build' to pre-build widgets.");
@@ -1652,14 +1654,16 @@ if (container && Component) {
1652
1654
  * Unlike `listen()`, this method does not start a server - it only prepares the
1653
1655
  * routes and returns the handler function that can be used with external servers.
1654
1656
  *
1657
+ * @param options - Optional configuration for the handler
1658
+ * @param options.provider - Platform provider (e.g., 'supabase') to handle platform-specific path rewriting
1655
1659
  * @returns Promise that resolves to the fetch handler function
1656
1660
  *
1657
1661
  * @example
1658
1662
  * ```typescript
1659
- * // For Supabase Edge Functions
1663
+ * // For Supabase Edge Functions (handles path rewriting automatically)
1660
1664
  * const server = createMCPServer('my-server');
1661
1665
  * server.tool({ ... });
1662
- * const handler = await server.getHandler();
1666
+ * const handler = await server.getHandler({ provider: 'supabase' });
1663
1667
  * Deno.serve(handler);
1664
1668
  * ```
1665
1669
  *
@@ -1672,7 +1676,7 @@ if (container && Component) {
1672
1676
  * export default { fetch: handler };
1673
1677
  * ```
1674
1678
  */
1675
- async getHandler() {
1679
+ async getHandler(options) {
1676
1680
  await this.mountWidgets({
1677
1681
  baseRoute: "/mcp-use/widgets",
1678
1682
  resourcesDir: "resources"
@@ -1680,6 +1684,31 @@ if (container && Component) {
1680
1684
  await this.mountMcp();
1681
1685
  await this.mountInspector();
1682
1686
  const fetchHandler = this.app.fetch.bind(this.app);
1687
+ if (options?.provider === "supabase") {
1688
+ return async (req) => {
1689
+ const url = new URL(req.url);
1690
+ const pathname = url.pathname;
1691
+ let newPathname = pathname;
1692
+ const functionsMatch = pathname.match(/^\/functions\/v1\/[^/]+(\/.*)?$/);
1693
+ if (functionsMatch) {
1694
+ newPathname = functionsMatch[1] || "/";
1695
+ } else {
1696
+ const functionNameMatch = pathname.match(/^\/([^/]+)(\/.*)?$/);
1697
+ if (functionNameMatch && functionNameMatch[2]) {
1698
+ newPathname = functionNameMatch[2] || "/";
1699
+ }
1700
+ }
1701
+ const newUrl = new URL(newPathname + url.search, url.origin);
1702
+ const newReq = new Request(newUrl, {
1703
+ method: req.method,
1704
+ headers: req.headers,
1705
+ body: req.body,
1706
+ redirect: req.redirect
1707
+ });
1708
+ const result = await fetchHandler(newReq);
1709
+ return result;
1710
+ };
1711
+ }
1683
1712
  return async (req) => {
1684
1713
  const result = await fetchHandler(req);
1685
1714
  return result;
@@ -900,10 +900,12 @@ var McpServer = class {
900
900
  let react;
901
901
  let tailwindcss;
902
902
  try {
903
- const viteModule = await import("vite");
903
+ const viteModule = await new Function('return import("vite")')();
904
904
  createServer = viteModule.createServer;
905
- react = (await import("@vitejs/plugin-react")).default;
906
- tailwindcss = (await import("@tailwindcss/vite")).default;
905
+ const reactModule = await new Function('return import("@vitejs/plugin-react")')();
906
+ react = reactModule.default;
907
+ const tailwindModule = await new Function('return import("@tailwindcss/vite")')();
908
+ tailwindcss = tailwindModule.default;
907
909
  } catch (error) {
908
910
  console.error("[WIDGETS] Dev dependencies not available. Install vite, @vitejs/plugin-react, and @tailwindcss/vite for widget development.");
909
911
  console.error("[WIDGETS] For production, use 'mcp-use build' to pre-build widgets.");
@@ -1617,14 +1619,16 @@ if (container && Component) {
1617
1619
  * Unlike `listen()`, this method does not start a server - it only prepares the
1618
1620
  * routes and returns the handler function that can be used with external servers.
1619
1621
  *
1622
+ * @param options - Optional configuration for the handler
1623
+ * @param options.provider - Platform provider (e.g., 'supabase') to handle platform-specific path rewriting
1620
1624
  * @returns Promise that resolves to the fetch handler function
1621
1625
  *
1622
1626
  * @example
1623
1627
  * ```typescript
1624
- * // For Supabase Edge Functions
1628
+ * // For Supabase Edge Functions (handles path rewriting automatically)
1625
1629
  * const server = createMCPServer('my-server');
1626
1630
  * server.tool({ ... });
1627
- * const handler = await server.getHandler();
1631
+ * const handler = await server.getHandler({ provider: 'supabase' });
1628
1632
  * Deno.serve(handler);
1629
1633
  * ```
1630
1634
  *
@@ -1637,7 +1641,7 @@ if (container && Component) {
1637
1641
  * export default { fetch: handler };
1638
1642
  * ```
1639
1643
  */
1640
- async getHandler() {
1644
+ async getHandler(options) {
1641
1645
  await this.mountWidgets({
1642
1646
  baseRoute: "/mcp-use/widgets",
1643
1647
  resourcesDir: "resources"
@@ -1645,6 +1649,31 @@ if (container && Component) {
1645
1649
  await this.mountMcp();
1646
1650
  await this.mountInspector();
1647
1651
  const fetchHandler = this.app.fetch.bind(this.app);
1652
+ if (options?.provider === "supabase") {
1653
+ return async (req) => {
1654
+ const url = new URL(req.url);
1655
+ const pathname = url.pathname;
1656
+ let newPathname = pathname;
1657
+ const functionsMatch = pathname.match(/^\/functions\/v1\/[^/]+(\/.*)?$/);
1658
+ if (functionsMatch) {
1659
+ newPathname = functionsMatch[1] || "/";
1660
+ } else {
1661
+ const functionNameMatch = pathname.match(/^\/([^/]+)(\/.*)?$/);
1662
+ if (functionNameMatch && functionNameMatch[2]) {
1663
+ newPathname = functionNameMatch[2] || "/";
1664
+ }
1665
+ }
1666
+ const newUrl = new URL(newPathname + url.search, url.origin);
1667
+ const newReq = new Request(newUrl, {
1668
+ method: req.method,
1669
+ headers: req.headers,
1670
+ body: req.body,
1671
+ redirect: req.redirect
1672
+ });
1673
+ const result = await fetchHandler(newReq);
1674
+ return result;
1675
+ };
1676
+ }
1648
1677
  return async (req) => {
1649
1678
  const result = await fetchHandler(req);
1650
1679
  return result;
@@ -393,14 +393,16 @@ export declare class McpServer {
393
393
  * Unlike `listen()`, this method does not start a server - it only prepares the
394
394
  * routes and returns the handler function that can be used with external servers.
395
395
  *
396
+ * @param options - Optional configuration for the handler
397
+ * @param options.provider - Platform provider (e.g., 'supabase') to handle platform-specific path rewriting
396
398
  * @returns Promise that resolves to the fetch handler function
397
399
  *
398
400
  * @example
399
401
  * ```typescript
400
- * // For Supabase Edge Functions
402
+ * // For Supabase Edge Functions (handles path rewriting automatically)
401
403
  * const server = createMCPServer('my-server');
402
404
  * server.tool({ ... });
403
- * const handler = await server.getHandler();
405
+ * const handler = await server.getHandler({ provider: 'supabase' });
404
406
  * Deno.serve(handler);
405
407
  * ```
406
408
  *
@@ -413,7 +415,9 @@ export declare class McpServer {
413
415
  * export default { fetch: handler };
414
416
  * ```
415
417
  */
416
- getHandler(): Promise<(req: Request) => Promise<Response>>;
418
+ getHandler(options?: {
419
+ provider?: 'supabase' | 'cloudflare' | 'deno-deploy';
420
+ }): Promise<(req: Request) => Promise<Response>>;
417
421
  /**
418
422
  * Mount MCP Inspector UI at /inspector
419
423
  *
@@ -551,7 +555,11 @@ export declare class McpServer {
551
555
  */
552
556
  private parseTemplateUri;
553
557
  }
554
- export type McpServerInstance = Omit<McpServer, keyof HonoType> & HonoType;
558
+ export type McpServerInstance = Omit<McpServer, keyof HonoType> & HonoType & {
559
+ getHandler: (options?: {
560
+ provider?: 'supabase' | 'cloudflare' | 'deno-deploy';
561
+ }) => Promise<(req: Request) => Promise<Response>>;
562
+ };
555
563
  /**
556
564
  * Create a new MCP server instance
557
565
  *
@@ -1 +1 @@
1
- {"version":3,"file":"mcp-server.d.ts","sourceRoot":"","sources":["../../../src/server/mcp-server.ts"],"names":[],"mappings":"AAKA,OAAO,EAAsB,KAAK,IAAI,IAAI,QAAQ,EAAa,MAAM,MAAM,CAAC;AA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AO,CAAC,qBAAqB;IAK7B;;;;;;;;;;;;;;;OAeG;IACH,OAAO,CAAC,gBAAgB;CA4BzB;AAED,MAAM,MAAM,iBAAiB,GAAG,IAAI,CAAC,SAAS,EAAE,MAAM,QAAQ,CAAC,GAAG,QAAQ,GAAG;IAC3E,UAAU,EAAE,CAAC,OAAO,CAAC,EAAE;QAAE,QAAQ,CAAC,EAAE,UAAU,GAAG,YAAY,GAAG,aAAa,CAAA;KAAE,KAAK,OAAO,CAAC,CAAC,GAAG,EAAE,OAAO,KAAK,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC;CAClI,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,wBAAgB,eAAe,CAC7B,IAAI,EAAE,MAAM,EACZ,MAAM,GAAE,OAAO,CAAC,YAAY,CAAM,GACjC,iBAAiB,CASnB"}
package/package.json CHANGED
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "name": "mcp-use",
3
3
  "type": "module",
4
- "version": "1.2.5-dev.2",
4
+ "version": "1.2.5-dev.4",
5
+ "packageManager": "pnpm@10.6.1",
5
6
  "description": "Opinionated MCP Framework for TypeScript (@modelcontextprotocol/sdk compatible) - Build MCP Agents and Clients + MCP Servers with support for MCP-UI.",
6
7
  "author": "mcp-use, Inc.",
7
8
  "license": "MIT",
@@ -62,6 +63,44 @@
62
63
  "registry": "https://registry.npmjs.org",
63
64
  "access": "public"
64
65
  },
66
+ "scripts": {
67
+ "build": "rm -rf dist && tsup && tsc --emitDeclarationOnly --declaration",
68
+ "test": "vitest",
69
+ "test:run": "vitest run",
70
+ "test:unit": "vitest run --exclude tests/integration/**",
71
+ "test:simple": "vitest run tests/stream_events_simple.test.ts",
72
+ "test:integration": "vitest run tests/integration",
73
+ "test:integration:agent": "vitest run tests/integration/agent",
74
+ "test:integration:run": "vitest run tests/integration/agent/test_agent_run.test.ts",
75
+ "test:integration:stream": "vitest run tests/integration/agent/test_agent_stream.test.ts",
76
+ "test:integration:structured": "vitest run tests/integration/agent/test_agent_structured_output.test.ts",
77
+ "test:integration:manager": "vitest run tests/integration/agent/test_server_manager.test.ts",
78
+ "test:integration:observability": "vitest run tests/integration/agent/test_agent_observability.test.ts",
79
+ "watch": "tsc --watch",
80
+ "start": "node dist/index.js",
81
+ "prepublishOnly": "npm run build",
82
+ "fmt": "eslint --fix",
83
+ "release": "npm version patch --tag-version-prefix=v && git push --follow-tags",
84
+ "release:minor": "npm version minor --tag-version-prefix=v && git push --follow-tags",
85
+ "release:major": "npm version major --tag-version-prefix=v && git push --follow-tags",
86
+ "prepare": "husky",
87
+ "example:airbnb": "tsx examples/client/airbnb_use.ts",
88
+ "example:browser": "tsx examples/client/browser_use.ts",
89
+ "example:chat": "tsx examples/client/chat_example.ts",
90
+ "example:stream": "tsx examples/client/stream_example.ts",
91
+ "example:stream_events": "tsx examples/client/stream_events_example.ts",
92
+ "example:ai_sdk": "tsx examples/client/ai_sdk_example.ts",
93
+ "example:filesystem": "tsx examples/client/filesystem_use.ts",
94
+ "example:http": "tsx examples/client/http_example.ts",
95
+ "example:everything": "tsx examples/client/mcp_everything.ts",
96
+ "example:multi": "tsx examples/client/multi_server_example.ts",
97
+ "example:sandbox": "tsx examples/client/sandbox_everything.ts",
98
+ "example:oauth": "tsx examples/client/simple_oauth_example.ts",
99
+ "example:blender": "tsx examples/client/blender_use.ts",
100
+ "example:add_server": "tsx examples/client/add_server_tool.ts",
101
+ "example:structured": "tsx examples/client/structured_output.ts",
102
+ "example:observability": "tsx examples/client/observability.ts"
103
+ },
65
104
  "peerDependencies": {
66
105
  "@langchain/anthropic": "^1.0.0",
67
106
  "@langchain/openai": "^1.0.0",
@@ -88,6 +127,8 @@
88
127
  "@hono/node-server": "^1.13.0",
89
128
  "@langchain/core": "^1.0.1",
90
129
  "@mcp-ui/server": "^5.12.0",
130
+ "@mcp-use/cli": "workspace:*",
131
+ "@mcp-use/inspector": "workspace:*",
91
132
  "@modelcontextprotocol/sdk": "1.20.0",
92
133
  "@scarf/scarf": "^1.4.0",
93
134
  "ai": "^4.3.19",
@@ -106,9 +147,7 @@
106
147
  "winston-transport-browserconsole": "^1.0.5",
107
148
  "ws": "^8.18.2",
108
149
  "zod": "^3.25.48",
109
- "zod-to-json-schema": "^3.24.6",
110
- "@mcp-use/cli": "2.1.25",
111
- "@mcp-use/inspector": "0.4.13"
150
+ "zod-to-json-schema": "^3.24.6"
112
151
  },
113
152
  "optionalDependencies": {
114
153
  "@tailwindcss/vite": "^4.1.15",
@@ -144,41 +183,5 @@
144
183
  "eslint --fix",
145
184
  "eslint"
146
185
  ]
147
- },
148
- "scripts": {
149
- "build": "rm -rf dist && tsup && tsc --emitDeclarationOnly --declaration",
150
- "test": "vitest",
151
- "test:run": "vitest run",
152
- "test:unit": "vitest run --exclude tests/integration/**",
153
- "test:simple": "vitest run tests/stream_events_simple.test.ts",
154
- "test:integration": "vitest run tests/integration",
155
- "test:integration:agent": "vitest run tests/integration/agent",
156
- "test:integration:run": "vitest run tests/integration/agent/test_agent_run.test.ts",
157
- "test:integration:stream": "vitest run tests/integration/agent/test_agent_stream.test.ts",
158
- "test:integration:structured": "vitest run tests/integration/agent/test_agent_structured_output.test.ts",
159
- "test:integration:manager": "vitest run tests/integration/agent/test_server_manager.test.ts",
160
- "test:integration:observability": "vitest run tests/integration/agent/test_agent_observability.test.ts",
161
- "watch": "tsc --watch",
162
- "start": "node dist/index.js",
163
- "fmt": "eslint --fix",
164
- "release": "npm version patch --tag-version-prefix=v && git push --follow-tags",
165
- "release:minor": "npm version minor --tag-version-prefix=v && git push --follow-tags",
166
- "release:major": "npm version major --tag-version-prefix=v && git push --follow-tags",
167
- "example:airbnb": "tsx examples/client/airbnb_use.ts",
168
- "example:browser": "tsx examples/client/browser_use.ts",
169
- "example:chat": "tsx examples/client/chat_example.ts",
170
- "example:stream": "tsx examples/client/stream_example.ts",
171
- "example:stream_events": "tsx examples/client/stream_events_example.ts",
172
- "example:ai_sdk": "tsx examples/client/ai_sdk_example.ts",
173
- "example:filesystem": "tsx examples/client/filesystem_use.ts",
174
- "example:http": "tsx examples/client/http_example.ts",
175
- "example:everything": "tsx examples/client/mcp_everything.ts",
176
- "example:multi": "tsx examples/client/multi_server_example.ts",
177
- "example:sandbox": "tsx examples/client/sandbox_everything.ts",
178
- "example:oauth": "tsx examples/client/simple_oauth_example.ts",
179
- "example:blender": "tsx examples/client/blender_use.ts",
180
- "example:add_server": "tsx examples/client/add_server_tool.ts",
181
- "example:structured": "tsx examples/client/structured_output.ts",
182
- "example:observability": "tsx examples/client/observability.ts"
183
186
  }
184
- }
187
+ }