@nuxtjs/mcp-toolkit 0.6.3 → 0.6.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.
package/dist/module.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuxtjs/mcp-toolkit",
3
- "version": "0.6.3",
3
+ "version": "0.6.4",
4
4
  "configKey": "mcp",
5
5
  "docs": "https://mcp-toolkit.nuxt.dev/getting-started/installation",
6
6
  "mcp": "https://mcp-toolkit.nuxt.dev/mcp",
package/dist/module.mjs CHANGED
@@ -72,7 +72,7 @@ function generateDeeplinkUrl(baseUrl, route, ide, serverName) {
72
72
  }
73
73
 
74
74
  const name = "@nuxtjs/mcp-toolkit";
75
- const version = "0.6.3";
75
+ const version = "0.6.4";
76
76
 
77
77
  const log = logger.withTag("@nuxtjs/mcp-toolkit");
78
78
  const { resolve } = createResolver(import.meta.url);
@@ -1,5 +1,5 @@
1
1
  import { logger } from "@nuxt/kit";
2
- import { addCustomTab } from "@nuxt/devtools-kit";
2
+ import { refreshCustomTabs } from "@nuxt/devtools-kit";
3
3
  import { spawn } from "node:child_process";
4
4
  const log = logger.withTag("@nuxtjs/mcp-toolkit");
5
5
  const INSPECTOR_TIMEOUT = 15e3;
@@ -135,12 +135,13 @@ async function launchMcpInspector(nuxt, options) {
135
135
  inspectorProcess = spawn("npx", [
136
136
  "-y",
137
137
  "@modelcontextprotocol/inspector",
138
- "streamable-http",
138
+ "--transport",
139
+ "http",
140
+ "--server-url",
139
141
  mcpServerUrl
140
142
  ], {
141
143
  stdio: ["ignore", "pipe", "pipe"],
142
- env,
143
- shell: true
144
+ env
144
145
  });
145
146
  const childProcess = inspectorProcess;
146
147
  let stdoutBuffer = "";
@@ -304,38 +305,42 @@ export function addDevToolsCustomTabs(nuxt, options) {
304
305
  if (!options.enabled) {
305
306
  return;
306
307
  }
307
- addCustomTab(() => ({
308
- category: "server",
309
- name: "mcp-inspector",
310
- title: "MCP Inspector",
311
- icon: "i-lucide-circuit-board",
312
- view: isReady && inspectorUrl ? {
313
- type: "iframe",
314
- src: inspectorUrl
315
- } : {
316
- type: "launch",
317
- description: "Launch MCP Inspector to test/debug your MCP server",
318
- actions: [
319
- {
320
- label: promise ? "Starting..." : "Launch Inspector",
321
- pending: !!promise,
322
- handle() {
323
- promise = promise || launchMcpInspector(nuxt, options).finally(() => {
308
+ nuxt.hook("devtools:customTabs", (tabs) => {
309
+ tabs.push({
310
+ category: "server",
311
+ name: "mcp-inspector",
312
+ title: "MCP Inspector",
313
+ icon: "i-lucide-circuit-board",
314
+ view: isReady && inspectorUrl ? {
315
+ type: "iframe",
316
+ src: inspectorUrl
317
+ } : {
318
+ type: "launch",
319
+ description: "Launch MCP Inspector to test/debug your MCP server",
320
+ actions: [
321
+ {
322
+ label: promise ? "Starting..." : "Launch Inspector",
323
+ pending: !!promise,
324
+ handle() {
325
+ promise = promise || launchMcpInspector(nuxt, options).then(() => {
326
+ refreshCustomTabs(nuxt);
327
+ }).finally(() => {
328
+ promise = null;
329
+ });
330
+ return promise;
331
+ }
332
+ },
333
+ ...inspectorProcess ? [{
334
+ label: "Stop Inspector",
335
+ handle() {
336
+ stopMcpInspector();
324
337
  promise = null;
325
- });
326
- return promise;
327
- }
328
- },
329
- ...inspectorProcess ? [{
330
- label: "Stop Inspector",
331
- handle() {
332
- stopMcpInspector();
333
- promise = null;
334
- }
335
- }] : []
336
- ]
337
- }
338
- }), nuxt);
338
+ }
339
+ }] : []
340
+ ]
341
+ }
342
+ });
343
+ });
339
344
  nuxt.hook("close", () => {
340
345
  stopMcpInspector();
341
346
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuxtjs/mcp-toolkit",
3
- "version": "0.6.3",
3
+ "version": "0.6.4",
4
4
  "description": "Create MCP servers directly in your Nuxt application. Define tools, resources, and prompts with a simple and intuitive API.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -39,8 +39,8 @@
39
39
  "dist"
40
40
  ],
41
41
  "dependencies": {
42
- "@modelcontextprotocol/sdk": "^1.25.3",
43
- "@nuxt/kit": "^4.3.0",
42
+ "@modelcontextprotocol/sdk": "^1.26.0",
43
+ "@nuxt/kit": "^4.3.1",
44
44
  "defu": "^6.1.4",
45
45
  "ms": "^2.1.3",
46
46
  "pathe": "^2.0.3",
@@ -50,7 +50,7 @@
50
50
  },
51
51
  "peerDependencies": {
52
52
  "zod": "^4.1.13",
53
- "agents": ">=0.3.6"
53
+ "agents": ">=0.4.0"
54
54
  },
55
55
  "peerDependenciesMeta": {
56
56
  "zod": {
@@ -62,14 +62,14 @@
62
62
  },
63
63
  "devDependencies": {
64
64
  "@nuxt/devtools": "^3.1.1",
65
- "@nuxt/eslint-config": "^1.13.0",
65
+ "@nuxt/eslint-config": "^1.15.1",
66
66
  "@nuxt/module-builder": "^1.0.2",
67
- "@nuxt/schema": "^4.3.0",
67
+ "@nuxt/schema": "^4.3.1",
68
68
  "@nuxt/test-utils": "^3.23.0",
69
69
  "@types/node": "latest",
70
70
  "changelogen": "^0.6.2",
71
71
  "eslint": "^9.39.2",
72
- "nuxt": "^4.3.0",
72
+ "nuxt": "^4.3.1",
73
73
  "typescript": "~5.9.3",
74
74
  "vitest": "^4.0.18",
75
75
  "vue-tsc": "^3.2.4"