@mcp-use/inspector 0.4.1-beta.0 → 0.4.1-canary.0
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/README.md +15 -15
- package/dist/client/index.html +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
|
|
38
38
|
| Feature | Description |
|
|
39
39
|
| -------------------------- | --------------------------------------------------------------- |
|
|
40
|
-
| **🚀 Auto-Mount** | Automatically available at `/inspector` for all
|
|
40
|
+
| **🚀 Auto-Mount** | Automatically available at `/inspector` for all mcp-use servers |
|
|
41
41
|
| **🔌 Multi-Connection** | Connect to and manage multiple MCP servers simultaneously |
|
|
42
42
|
| **🎯 Interactive Testing** | Test tools with live execution and real-time results |
|
|
43
43
|
| **📊 Real-time Status** | Monitor connection states, errors, and server health |
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
|
|
54
54
|
## 🚀 Quick Start
|
|
55
55
|
|
|
56
|
-
### Method 1: Automatic with
|
|
56
|
+
### Method 1: Automatic with mcp-use Server (Recommended)
|
|
57
57
|
|
|
58
58
|
When you create an MCP server with `mcp-use`, the inspector is automatically available:
|
|
59
59
|
|
|
@@ -61,7 +61,7 @@ When you create an MCP server with `mcp-use`, the inspector is automatically ava
|
|
|
61
61
|
import { createMCPServer } from 'mcp-use/server'
|
|
62
62
|
|
|
63
63
|
const server = createMCPServer('my-server', {
|
|
64
|
-
version: '1.0.0'
|
|
64
|
+
version: '1.0.0',
|
|
65
65
|
})
|
|
66
66
|
|
|
67
67
|
// Add your tools, resources, prompts...
|
|
@@ -296,18 +296,18 @@ import { createMCPServer } from 'mcp-use/server'
|
|
|
296
296
|
|
|
297
297
|
const server = createMCPServer('dev-server', {
|
|
298
298
|
version: '1.0.0',
|
|
299
|
-
description: 'Development MCP Server'
|
|
299
|
+
description: 'Development MCP Server',
|
|
300
300
|
})
|
|
301
301
|
|
|
302
302
|
server.tool('debug_tool', {
|
|
303
303
|
description: 'Debug tool for testing',
|
|
304
304
|
parameters: z.object({
|
|
305
|
-
message: z.string()
|
|
305
|
+
message: z.string(),
|
|
306
306
|
}),
|
|
307
307
|
execute: async ({ message }) => {
|
|
308
308
|
console.log('Debug:', message)
|
|
309
309
|
return { received: message, timestamp: Date.now() }
|
|
310
|
-
}
|
|
310
|
+
},
|
|
311
311
|
})
|
|
312
312
|
|
|
313
313
|
server.listen(3000)
|
|
@@ -323,8 +323,8 @@ const server = createMCPServer('production-server', {
|
|
|
323
323
|
clientId: process.env.OAUTH_CLIENT_ID,
|
|
324
324
|
clientSecret: process.env.OAUTH_CLIENT_SECRET,
|
|
325
325
|
authorizationUrl: 'https://api.example.com/oauth/authorize',
|
|
326
|
-
tokenUrl: 'https://api.example.com/oauth/token'
|
|
327
|
-
}
|
|
326
|
+
tokenUrl: 'https://api.example.com/oauth/token',
|
|
327
|
+
},
|
|
328
328
|
})
|
|
329
329
|
|
|
330
330
|
// Inspector handles OAuth flow automatically
|
|
@@ -441,7 +441,7 @@ curl http://localhost:3000/inspector
|
|
|
441
441
|
// Use pagination for many tools
|
|
442
442
|
server.configurePagination({
|
|
443
443
|
toolsPerPage: 50,
|
|
444
|
-
enableSearch: true
|
|
444
|
+
enableSearch: true,
|
|
445
445
|
})
|
|
446
446
|
```
|
|
447
447
|
|
|
@@ -452,7 +452,7 @@ server.configurePagination({
|
|
|
452
452
|
const inspector = {
|
|
453
453
|
maxConnections: 5,
|
|
454
454
|
connectionTimeout: 30000,
|
|
455
|
-
keepAlive: true
|
|
455
|
+
keepAlive: true,
|
|
456
456
|
}
|
|
457
457
|
```
|
|
458
458
|
|
|
@@ -462,7 +462,7 @@ const inspector = {
|
|
|
462
462
|
// Cache tool results
|
|
463
463
|
server.enableCache({
|
|
464
464
|
ttl: 300, // 5 minutes
|
|
465
|
-
maxSize: 100 // MB
|
|
465
|
+
maxSize: 100, // MB
|
|
466
466
|
})
|
|
467
467
|
```
|
|
468
468
|
|
|
@@ -476,7 +476,7 @@ server.enableCache({
|
|
|
476
476
|
// Configure CORS for inspector access
|
|
477
477
|
server.configureCORS({
|
|
478
478
|
origin: ['http://localhost:3000'],
|
|
479
|
-
credentials: true
|
|
479
|
+
credentials: true,
|
|
480
480
|
})
|
|
481
481
|
```
|
|
482
482
|
|
|
@@ -493,7 +493,7 @@ server.use(authMiddleware)
|
|
|
493
493
|
// Prevent abuse
|
|
494
494
|
server.configureRateLimit({
|
|
495
495
|
windowMs: 60000, // 1 minute
|
|
496
|
-
max: 100 // requests
|
|
496
|
+
max: 100, // requests
|
|
497
497
|
})
|
|
498
498
|
```
|
|
499
499
|
|
|
@@ -544,7 +544,7 @@ See our [contributing guide](https://github.com/mcp-use/mcp-use-ts/blob/main/CON
|
|
|
544
544
|
|
|
545
545
|
## 📚 Learn More
|
|
546
546
|
|
|
547
|
-
- [
|
|
547
|
+
- [mcp-use Documentation](https://github.com/mcp-use/mcp-use-ts)
|
|
548
548
|
- [Model Context Protocol](https://modelcontextprotocol.io)
|
|
549
549
|
- [Creating MCP Servers](https://github.com/mcp-use/mcp-use-ts/tree/main/packages/mcp-use#-mcp-server-framework)
|
|
550
550
|
- [Building with React](https://react.dev)
|
|
@@ -554,4 +554,4 @@ See our [contributing guide](https://github.com/mcp-use/mcp-use-ts/blob/main/CON
|
|
|
554
554
|
|
|
555
555
|
## 📜 License
|
|
556
556
|
|
|
557
|
-
MIT © [
|
|
557
|
+
MIT © [mcp-use](https://github.com/mcp-use)
|
package/dist/client/index.html
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
<title>Inspector | mcp-use</title>
|
|
13
13
|
<script type="module" crossorigin src="/inspector/assets/index-Cy3m9aYL.js"></script>
|
|
14
14
|
<link rel="stylesheet" crossorigin href="/inspector/assets/index-Ck7Qs7an.css">
|
|
15
|
-
<script>window.__INSPECTOR_VERSION__ = "0.4.1-
|
|
15
|
+
<script>window.__INSPECTOR_VERSION__ = "0.4.1-canary.0";</script>
|
|
16
16
|
</head>
|
|
17
17
|
<body>
|
|
18
18
|
<div id="root"></div>
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mcp-use/inspector",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.4.1-
|
|
4
|
+
"version": "0.4.1-canary.0",
|
|
5
5
|
"description": "MCP Inspector - A tool for inspecting and debugging MCP servers",
|
|
6
6
|
"author": "",
|
|
7
7
|
"license": "MIT",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"sonner": "^2.0.7",
|
|
66
66
|
"tailwind-merge": "^3.3.1",
|
|
67
67
|
"vite-express": "^0.21.1",
|
|
68
|
-
"mcp-use": "1.1.1-
|
|
68
|
+
"mcp-use": "1.1.1-canary.0"
|
|
69
69
|
},
|
|
70
70
|
"publishConfig": {
|
|
71
71
|
"access": "public"
|