mcp-use 1.2.4 → 1.2.5-canary.1

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.
@@ -1,4 +1,4 @@
1
- import type { Request, Response, NextFunction } from "express";
1
+ import type { Context, Next } from "hono";
2
2
  /**
3
3
  * Request logging middleware with timestamp, colored status codes, and MCP method info
4
4
  *
@@ -8,9 +8,8 @@ import type { Request, Response, NextFunction } from "express";
8
8
  * - MCP method name in brackets for POST requests to /mcp
9
9
  * - Color-coded status codes (green 2xx, yellow 3xx, red 4xx, magenta 5xx)
10
10
  *
11
- * @param req - Express request object
12
- * @param res - Express response object
13
- * @param next - Express next function
11
+ * @param c - Hono context object
12
+ * @param next - Hono next function
14
13
  */
15
- export declare function requestLogger(req: Request, res: Response, next: NextFunction): void;
14
+ export declare function requestLogger(c: Context, next: Next): Promise<void>;
16
15
  //# sourceMappingURL=logging.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"logging.d.ts","sourceRoot":"","sources":["../../../src/server/logging.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAE/D;;;;;;;;;;;;GAYG;AACH,wBAAgB,aAAa,CAC3B,GAAG,EAAE,OAAO,EACZ,GAAG,EAAE,QAAQ,EACb,IAAI,EAAE,YAAY,GACjB,IAAI,CAkCN"}
1
+ {"version":3,"file":"logging.d.ts","sourceRoot":"","sources":["../../../src/server/logging.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAE1C;;;;;;;;;;;GAWG;AACH,wBAAsB,aAAa,CAAC,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CA2CzE"}
@@ -1,5 +1,5 @@
1
+ import { type Hono as HonoType } from "hono";
1
2
  import type { PromptDefinition, ResourceDefinition, ResourceTemplateDefinition, ServerConfig, ToolDefinition, UIResourceDefinition } from "./types/index.js";
2
- import { type Express } from "express";
3
3
  export declare class McpServer {
4
4
  private server;
5
5
  private config;
@@ -10,14 +10,14 @@ export declare class McpServer {
10
10
  private serverHost;
11
11
  private serverBaseUrl?;
12
12
  /**
13
- * Creates a new MCP server instance with Express integration
13
+ * Creates a new MCP server instance with Hono integration
14
14
  *
15
15
  * Initializes the server with the provided configuration, sets up CORS headers,
16
16
  * configures widget serving routes, and creates a proxy that allows direct
17
- * access to Express methods while preserving MCP server functionality.
17
+ * access to Hono methods while preserving MCP server functionality.
18
18
  *
19
19
  * @param config - Server configuration including name, version, and description
20
- * @returns A proxied McpServer instance that supports both MCP and Express methods
20
+ * @returns A proxied McpServer instance that supports both MCP and Hono methods
21
21
  */
22
22
  constructor(config: ServerConfig);
23
23
  /**
@@ -361,10 +361,10 @@ export declare class McpServer {
361
361
  */
362
362
  private mountMcp;
363
363
  /**
364
- * Start the Express server with MCP endpoints
364
+ * Start the Hono server with MCP endpoints
365
365
  *
366
366
  * Initiates the server startup process by mounting MCP endpoints, configuring
367
- * the inspector UI (if available), and starting the Express server to listen
367
+ * the inspector UI (if available), and starting the server to listen
368
368
  * for incoming connections. This is the main entry point for running the server.
369
369
  *
370
370
  * The server will be accessible at the specified port with MCP endpoints at /mcp
@@ -382,6 +382,42 @@ export declare class McpServer {
382
382
  * ```
383
383
  */
384
384
  listen(port?: number): Promise<void>;
385
+ /**
386
+ * Get the fetch handler for the server after mounting all endpoints
387
+ *
388
+ * This method prepares the server by mounting MCP endpoints, widgets, and inspector
389
+ * (if available), then returns the fetch handler. This is useful for integrating
390
+ * with external server frameworks like Supabase Edge Functions, Cloudflare Workers,
391
+ * or other platforms that handle the server lifecycle themselves.
392
+ *
393
+ * Unlike `listen()`, this method does not start a server - it only prepares the
394
+ * routes and returns the handler function that can be used with external servers.
395
+ *
396
+ * @param options - Optional configuration for the handler
397
+ * @param options.provider - Platform provider (e.g., 'supabase') to handle platform-specific path rewriting
398
+ * @returns Promise that resolves to the fetch handler function
399
+ *
400
+ * @example
401
+ * ```typescript
402
+ * // For Supabase Edge Functions (handles path rewriting automatically)
403
+ * const server = createMCPServer('my-server');
404
+ * server.tool({ ... });
405
+ * const handler = await server.getHandler({ provider: 'supabase' });
406
+ * Deno.serve(handler);
407
+ * ```
408
+ *
409
+ * @example
410
+ * ```typescript
411
+ * // For Cloudflare Workers
412
+ * const server = createMCPServer('my-server');
413
+ * server.tool({ ... });
414
+ * const handler = await server.getHandler();
415
+ * export default { fetch: handler };
416
+ * ```
417
+ */
418
+ getHandler(options?: {
419
+ provider?: "supabase" | "cloudflare" | "deno-deploy";
420
+ }): Promise<(req: Request) => Promise<Response>>;
385
421
  /**
386
422
  * Mount MCP Inspector UI at /inspector
387
423
  *
@@ -408,7 +444,7 @@ export declare class McpServer {
408
444
  /**
409
445
  * Setup default widget serving routes
410
446
  *
411
- * Configures Express routes to serve MCP UI widgets and their static assets.
447
+ * Configures Hono routes to serve MCP UI widgets and their static assets.
412
448
  * Widgets are served from the dist/resources/widgets directory and can
413
449
  * be accessed via HTTP endpoints for embedding in web applications.
414
450
  *
@@ -519,7 +555,11 @@ export declare class McpServer {
519
555
  */
520
556
  private parseTemplateUri;
521
557
  }
522
- export type McpServerInstance = Omit<McpServer, keyof Express> & Express;
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
+ };
523
563
  /**
524
564
  * Create a new MCP server instance
525
565
  *
@@ -529,7 +569,7 @@ export type McpServerInstance = Omit<McpServer, keyof Express> & Express;
529
569
  * @param config.description - Server description
530
570
  * @param config.host - Hostname for widget URLs and server endpoints (defaults to 'localhost')
531
571
  * @param config.baseUrl - Full base URL (e.g., 'https://myserver.com') - overrides host:port for widget URLs
532
- * @returns McpServerInstance with both MCP and Express methods
572
+ * @returns McpServerInstance with both MCP and Hono methods
533
573
  *
534
574
  * @example
535
575
  * ```typescript
@@ -1 +1 @@
1
- {"version":3,"file":"mcp-server.d.ts","sourceRoot":"","sources":["../../../src/server/mcp-server.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,gBAAgB,EAChB,kBAAkB,EAClB,0BAA0B,EAC1B,YAAY,EACZ,cAAc,EACd,oBAAoB,EAIrB,MAAM,kBAAkB,CAAC;AAM1B,OAAgB,EAAE,KAAK,OAAO,EAAE,MAAM,SAAS,CAAC;AAgBhD,qBAAa,SAAS;IACpB,OAAO,CAAC,MAAM,CAAoB;IAClC,OAAO,CAAC,MAAM,CAAe;IAC7B,OAAO,CAAC,GAAG,CAAU;IACrB,OAAO,CAAC,UAAU,CAAS;IAC3B,OAAO,CAAC,gBAAgB,CAAS;IACjC,OAAO,CAAC,UAAU,CAAC,CAAS;IAC5B,OAAO,CAAC,UAAU,CAAS;IAC3B,OAAO,CAAC,aAAa,CAAC,CAAS;IAE/B;;;;;;;;;OASG;gBACS,MAAM,EAAE,YAAY;IA6ChC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAsCG;IACH,QAAQ,CAAC,kBAAkB,EAAE,kBAAkB,GAAG,IAAI;IAmBtD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA+BG;IACH,gBAAgB,CACd,0BAA0B,EAAE,0BAA0B,GACrD,IAAI;IAiDP;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAqCG;IACH,IAAI,CAAC,cAAc,EAAE,cAAc,GAAG,IAAI;IAmB1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAiCG;IACH,MAAM,CAAC,gBAAgB,EAAE,gBAAgB,GAAG,IAAI;IAgBhD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAkEG;IACH,UAAU,CAAC,UAAU,EAAE,oBAAoB,GAAG,IAAI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;;;;;;;;;;;;;;OAkBG;IACH,OAAO,CAAC,sBAAsB;IAqC9B;;;;;;;;;;;;;;;OAeG;IACH,OAAO,CAAC,qBAAqB;IAK7B;;;;;;;;;;;;;;;OAeG;IACH,OAAO,CAAC,gBAAgB;CA4BzB;AAED,MAAM,MAAM,iBAAiB,GAAG,IAAI,CAAC,SAAS,EAAE,MAAM,QAAQ,CAAC,GAC7D,QAAQ,GAAG;IACT,UAAU,EAAE,CAAC,OAAO,CAAC,EAAE;QACrB,QAAQ,CAAC,EAAE,UAAU,GAAG,YAAY,GAAG,aAAa,CAAC;KACtD,KAAK,OAAO,CAAC,CAAC,GAAG,EAAE,OAAO,KAAK,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC;CACpD,CAAC;AAEJ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,wBAAgB,eAAe,CAC7B,IAAI,EAAE,MAAM,EACZ,MAAM,GAAE,OAAO,CAAC,YAAY,CAAM,GACjC,iBAAiB,CASnB"}
@@ -1 +1 @@
1
- {"version":3,"file":"tsup.config.d.ts","sourceRoot":"","sources":["../tsup.config.ts"],"names":[],"mappings":";AAEA,wBA0BG"}
1
+ {"version":3,"file":"tsup.config.d.ts","sourceRoot":"","sources":["../tsup.config.ts"],"names":[],"mappings":";AAEA,wBAkCG"}
package/package.json CHANGED
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "name": "mcp-use",
3
3
  "type": "module",
4
- "version": "1.2.4",
4
+ "version": "1.2.5-canary.1",
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,11 +63,47 @@
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",
68
- "cors": "^2.8.5",
69
- "express": "^4.18.2",
70
107
  "langfuse": "^3.38.6",
71
108
  "langfuse-langchain": "^3.38.6",
72
109
  "react": "^18.0.0 || ^19.0.0"
@@ -78,12 +115,6 @@
78
115
  "@langchain/openai": {
79
116
  "optional": true
80
117
  },
81
- "cors": {
82
- "optional": true
83
- },
84
- "express": {
85
- "optional": true
86
- },
87
118
  "langfuse": {
88
119
  "optional": true
89
120
  },
@@ -93,16 +124,18 @@
93
124
  },
94
125
  "dependencies": {
95
126
  "@dmitryrechkin/json-schema-to-zod": "^1.0.1",
127
+ "@hono/node-server": "^1.13.0",
96
128
  "@langchain/core": "^1.0.1",
97
129
  "@mcp-ui/server": "^5.12.0",
130
+ "@mcp-use/cli": "workspace:*",
131
+ "@mcp-use/inspector": "workspace:*",
98
132
  "@modelcontextprotocol/sdk": "1.20.0",
99
133
  "@scarf/scarf": "^1.4.0",
100
- "@tailwindcss/vite": "^4.1.15",
101
- "@vitejs/plugin-react": "^5.0.4",
102
134
  "ai": "^4.3.19",
103
135
  "commander": "^14.0.1",
104
136
  "dotenv": "^16.5.0",
105
137
  "esbuild": ">=0.25.0",
138
+ "hono": "^4.6.0",
106
139
  "langchain": "^1.0.1",
107
140
  "lodash-es": "^4.17.21",
108
141
  "posthog-node": "^5.1.1",
@@ -110,14 +143,18 @@
110
143
  "ts-node": "^10.9.2",
111
144
  "tsx": "^4.20.6",
112
145
  "uuid": "^11.1.0",
113
- "vite": ">=5.4.21",
114
146
  "winston": "^3.17.0",
115
147
  "winston-transport-browserconsole": "^1.0.5",
116
148
  "ws": "^8.18.2",
117
149
  "zod": "^3.25.48",
118
- "zod-to-json-schema": "^3.24.6",
119
- "@mcp-use/cli": "2.1.25",
120
- "@mcp-use/inspector": "0.4.13"
150
+ "zod-to-json-schema": "^3.24.6"
151
+ },
152
+ "optionalDependencies": {
153
+ "@tailwindcss/vite": "^4.1.15",
154
+ "@vitejs/plugin-react": "^5.0.4",
155
+ "vite": ">=5.4.21",
156
+ "connect": "^3.7.0",
157
+ "node-mocks-http": "^1.16.2"
121
158
  },
122
159
  "devDependencies": {
123
160
  "@antfu/eslint-config": "^4.13.2",
@@ -148,41 +185,5 @@
148
185
  "eslint --fix",
149
186
  "eslint"
150
187
  ]
151
- },
152
- "scripts": {
153
- "build": "rm -rf dist && tsup && tsc --emitDeclarationOnly --declaration",
154
- "test": "vitest",
155
- "test:run": "vitest run",
156
- "test:unit": "vitest run --exclude tests/integration/**",
157
- "test:simple": "vitest run tests/stream_events_simple.test.ts",
158
- "test:integration": "vitest run tests/integration",
159
- "test:integration:agent": "vitest run tests/integration/agent",
160
- "test:integration:run": "vitest run tests/integration/agent/test_agent_run.test.ts",
161
- "test:integration:stream": "vitest run tests/integration/agent/test_agent_stream.test.ts",
162
- "test:integration:structured": "vitest run tests/integration/agent/test_agent_structured_output.test.ts",
163
- "test:integration:manager": "vitest run tests/integration/agent/test_server_manager.test.ts",
164
- "test:integration:observability": "vitest run tests/integration/agent/test_agent_observability.test.ts",
165
- "watch": "tsc --watch",
166
- "start": "node dist/index.js",
167
- "fmt": "eslint --fix",
168
- "release": "npm version patch --tag-version-prefix=v && git push --follow-tags",
169
- "release:minor": "npm version minor --tag-version-prefix=v && git push --follow-tags",
170
- "release:major": "npm version major --tag-version-prefix=v && git push --follow-tags",
171
- "example:airbnb": "tsx examples/client/airbnb_use.ts",
172
- "example:browser": "tsx examples/client/browser_use.ts",
173
- "example:chat": "tsx examples/client/chat_example.ts",
174
- "example:stream": "tsx examples/client/stream_example.ts",
175
- "example:stream_events": "tsx examples/client/stream_events_example.ts",
176
- "example:ai_sdk": "tsx examples/client/ai_sdk_example.ts",
177
- "example:filesystem": "tsx examples/client/filesystem_use.ts",
178
- "example:http": "tsx examples/client/http_example.ts",
179
- "example:everything": "tsx examples/client/mcp_everything.ts",
180
- "example:multi": "tsx examples/client/multi_server_example.ts",
181
- "example:sandbox": "tsx examples/client/sandbox_everything.ts",
182
- "example:oauth": "tsx examples/client/simple_oauth_example.ts",
183
- "example:blender": "tsx examples/client/blender_use.ts",
184
- "example:add_server": "tsx examples/client/add_server_tool.ts",
185
- "example:structured": "tsx examples/client/structured_output.ts",
186
- "example:observability": "tsx examples/client/observability.ts"
187
188
  }
188
- }
189
+ }