@nuxt/docs-nightly 4.6.0-29778602.bfddf2f0 → 4.6.0-29779067.e5421201

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.
@@ -173,8 +173,6 @@ export interface Todo {
173
173
  ```
174
174
 
175
175
  ```ts [server/api/todos.get.ts]
176
- import { defineEventHandler } from 'nitro/h3'
177
-
178
176
  export default defineEventHandler((): Todo[] => {
179
177
  return []
180
178
  })
@@ -179,7 +179,6 @@ One interaction to be aware of: island slots and `nuxt-client` components rely o
179
179
  Server components are experimental, and some rough edges are tracked in open issues:
180
180
 
181
181
  - Most features for server-only and island components, such as slots and `nuxt-client` components, are only available for single file components.
182
- - Global styles of your application are sent with each island response, and island assets can be loaded twice in some setups ([#29591](https://github.com/nuxt/nuxt/issues/29591)).
183
182
  - Using islands can significantly increase the number of chunks generated at build time ([#34855](https://github.com/nuxt/nuxt/issues/34855)).
184
183
  - With webpack and Rspack, scoped `:slotted()` styles in server component slots can fail because server and client builds may generate different scope IDs ([#31510](https://github.com/nuxt/nuxt/issues/31510)).
185
184
  - Template refs cannot reference elements inside a server component from the parent ([#31512](https://github.com/nuxt/nuxt/issues/31512)).
@@ -26,36 +26,50 @@ The Nuxt MCP server provides the following tools organized by category:
26
26
 
27
27
  ### Documentation
28
28
 
29
- - **`list_documentation_pages`**: Lists all available Nuxt documentation pages with their categories and basic information. Supports version filtering (3.x, 4.x, 5.x, or all)
30
- - **`get_documentation_page`**: Retrieves documentation page content and details by path
31
- - **`get_getting_started_guide`**: Gets the getting started guide for a specific Nuxt version
29
+ - **`list-documentation-pages`**: Lists all available Nuxt documentation pages with their categories and basic information. Supports version filtering (3.x, 4.x, 5.x, or all)
30
+ - **`get-documentation-page`**: Retrieves documentation page content and details by path
31
+ - **`get-getting-started-guide`**: Gets the getting started guide for a specific Nuxt version
32
32
 
33
33
  ### Blog
34
34
 
35
- - **`list_blog_posts`**: Lists all Nuxt blog posts with metadata including dates, categories, and tags
36
- - **`get_blog_post`**: Retrieves blog post content and details by path
35
+ - **`list-blog-posts`**: Lists all Nuxt blog posts with metadata including dates, categories, and tags
36
+ - **`get-blog-post`**: Retrieves blog post content and details by path
37
37
 
38
38
  ### Deployment
39
39
 
40
- - **`list_deploy_providers`**: Lists all deployment providers and hosting platforms for Nuxt applications
41
- - **`get_deploy_provider`**: Retrieves deployment provider details and instructions by path
40
+ - **`list-deploy-providers`**: Lists all deployment providers and hosting platforms for Nuxt applications
41
+ - **`get-deploy-provider`**: Retrieves deployment provider details and instructions by path
42
42
 
43
43
  ### Modules
44
44
 
45
- - **`list_modules`**: Lists all available Nuxt modules with optional filtering and sorting by downloads, stars, or date
46
- - **`get_module`**: Retrieves complete details about a specific module including README, compatibility, maintainers, and stats
45
+ - **`list-modules`**: Lists all available Nuxt modules with optional filtering and sorting by downloads, stars, or date
46
+ - **`get-module`**: Retrieves complete details about a specific module including README, compatibility, maintainers, and stats
47
47
 
48
48
  ### Changelog
49
49
 
50
- - **`get_changelog`**: Retrieves the latest releases from Nuxt core and official modules
50
+ - **`get-changelog`**: Retrieves the latest releases from Nuxt core and official modules
51
+
52
+ ## Limit Available Tools
53
+
54
+ Set the optional `X-MCP-Tools` HTTP header to a comma-separated list of tool names to expose only the tools your assistant needs. This reduces the tool context sent to your assistant.
55
+
56
+ Use the exact kebab-case MCP tool names returned by the server, for example:
57
+
58
+ ```json
59
+ {
60
+ "X-MCP-Tools": "list-documentation-pages,get-documentation-page"
61
+ }
62
+ ```
63
+
64
+ No header exposes all tools, an empty header exposes no tools, and an unknown tool name returns a configuration error.
51
65
 
52
66
  ## Prompts
53
67
 
54
68
  The Nuxt MCP server provides guided prompts for common workflows:
55
69
 
56
- - **`find_documentation_for_topic`**: Find the best Nuxt documentation for a specific topic or feature
57
- - **`deployment_guide`**: Get deployment instructions for a specific hosting provider
58
- - **`migration_help`**: Get help with migrating between Nuxt versions
70
+ - **`find-documentation-for-topic`**: Find the best Nuxt documentation for a specific topic or feature
71
+ - **`deployment-guide`**: Get deployment instructions for a specific hosting provider
72
+ - **`migration-help`**: Get help with migrating between Nuxt versions
59
73
 
60
74
  You're able to access these resources with tools like Claude Code by using `/`.
61
75
 
@@ -12,10 +12,6 @@ When rendering an island component, the content of the island component is stati
12
12
 
13
13
  Changing the island component props triggers a refetch of the island component to re-render it again.
14
14
 
15
- ::note
16
- Global styles of your application are sent with the response.
17
- ::
18
-
19
15
  ::tip
20
16
  Server only components use `<NuxtIsland>` under the hood
21
17
  ::
@@ -330,7 +330,7 @@ export default defineNuxtModule({
330
330
  ### Type
331
331
 
332
332
  ```ts
333
- function addServerImports (dirs: Import | Import[]): void
333
+ function addServerImports (dirs: NuxtImport | NuxtImport[]): void
334
334
  ```
335
335
 
336
336
  ### Parameters
@@ -31,14 +31,14 @@ export default defineNuxtModule({
31
31
  ### Type
32
32
 
33
33
  ```ts
34
- function useLogger (tag?: string, options?: Partial<ConsolaOptions>): ConsolaInstance
34
+ function useLogger (tag?: string, options?: NuxtLoggerOptions): NuxtLogger
35
35
  ```
36
36
 
37
37
  ### Parameters
38
38
 
39
39
  **`tag`**: A tag to suffix all log messages with, displayed on the right near the timestamp.
40
40
 
41
- **`options`**: Consola configuration options.
41
+ **`options`**: Logger options, such as `level`, `reporters`, `defaults` and `formatOptions`.
42
42
 
43
43
  ### Example
44
44
 
@@ -55,7 +55,7 @@ export default defineNuxtModule({
55
55
  ### Type
56
56
 
57
57
  ```ts
58
- function addImports (imports: Import | Import[]): void
58
+ function addImports (imports: NuxtImport | NuxtImport[]): void
59
59
  ```
60
60
 
61
61
  ### Parameters
@@ -138,22 +138,22 @@ export default defineNuxtModule({
138
138
  ### Type
139
139
 
140
140
  ```ts
141
- function addImportsSources (importSources: Preset | Preset[]): void
141
+ function addImportsSources (importSources: NuxtImportPresetSource | NuxtImportPresetSource[]): void
142
142
  ```
143
143
 
144
144
  ### Parameters
145
145
 
146
146
  **importSources**: An object or an array of objects with the following properties:
147
147
 
148
- - InlinePreset
148
+ - `NuxtImportPreset`
149
149
 
150
- | Property | Type | Required | Description |
151
- |-----------|---------------------------------------------|----------|------------------------------------------------------------------------------------------------|
152
- | `from` | `string` | `true` | Module specifier to import from. |
153
- | `imports` | `PresetImport \| ImportSource[]`{lang="ts"} | `true` | An object or an array of objects, which can be import names, import objects or import sources. |
150
+ | Property | Type | Required | Description |
151
+ |-----------|------------------------------------------------------|----------|-----------------------------------------------------------------------------------|
152
+ | `from` | `string` | `true` | Module specifier to import from. |
153
+ | `imports` | `(NuxtImportEntry \| NuxtImportPreset)[]`{lang="ts"} | `true` | An array of entries, which can be import names, import objects or nested presets. |
154
154
 
155
- - PackagePreset
155
+ - `NuxtPackageImportPreset`
156
156
 
157
- | Property | Type | Required | Description |
158
- |-----------|---------------------------------------------|----------|------------------------------------------------------------------------------------------------|
159
- | `package` | `string` | `true` | Name of the package. |
157
+ | Property | Type | Required | Description |
158
+ |-----------|----------|----------|----------------------|
159
+ | `package` | `string` | `true` | Name of the package. |
@@ -47,10 +47,10 @@ The `useNuxt` function returns the Nuxt instance, which contains all the options
47
47
  | Property | Type | Description |
48
48
  | ---------- | ------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- |
49
49
  | `options` | `NuxtOptions` | The resolved Nuxt configuration. |
50
- | `hooks` | `Hookable<NuxtHooks>` | The Nuxt hook system. Allows registering and listening to lifecycle events. |
50
+ | `hooks` | `NuxtHookRegistry<NuxtHooks>` | The Nuxt hook system. Allows registering and listening to lifecycle events. |
51
51
  | `hook` | `(name: string, (...args: any[]) => Promise<void> \| void) => () => void` | Shortcut for `nuxt.hooks.hook`. Registers a single callback for a specific lifecycle hook. |
52
52
  | `callHook` | `(name: string, ...args: any[]) => Promise<any>` | Shortcut for `nuxt.hooks.callHook`. Triggers a lifecycle hook manually and runs all registered callbacks. |
53
- | `addHooks` | `(configHooks: NestedHooks) => () => void` | Shortcut for `nuxt.hooks.addHooks`. Registers multiple hooks at once. |
53
+ | `addHooks` | `(configHooks: NuxtNestedHooks) => () => void` | Shortcut for `nuxt.hooks.addHooks`. Registers multiple hooks at once. |
54
54
 
55
55
  ### Example
56
56
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuxt/docs-nightly",
3
- "version": "4.6.0-29778602.bfddf2f0",
3
+ "version": "4.6.0-29779067.e5421201",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/nuxt/nuxt.git",