@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.
- package/2.directory-structure/1.server.md +0 -2
- package/3.guide/1.concepts/6.server-components.md +0 -1
- package/3.guide/3.ai/1.mcp.md +27 -13
- package/4.api/1.components/8.nuxt-island.md +0 -4
- package/4.api/5.kit/12.nitro.md +1 -1
- package/4.api/5.kit/14.logging.md +2 -2
- package/4.api/5.kit/4.autoimports.md +11 -11
- package/4.api/5.kit/6.context.md +2 -2
- package/package.json +1 -1
|
@@ -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)).
|
package/3.guide/3.ai/1.mcp.md
CHANGED
|
@@ -26,36 +26,50 @@ The Nuxt MCP server provides the following tools organized by category:
|
|
|
26
26
|
|
|
27
27
|
### Documentation
|
|
28
28
|
|
|
29
|
-
- **`
|
|
30
|
-
- **`
|
|
31
|
-
- **`
|
|
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
|
-
- **`
|
|
36
|
-
- **`
|
|
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
|
-
- **`
|
|
41
|
-
- **`
|
|
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
|
-
- **`
|
|
46
|
-
- **`
|
|
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
|
-
- **`
|
|
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
|
-
- **`
|
|
57
|
-
- **`
|
|
58
|
-
- **`
|
|
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
|
::
|
package/4.api/5.kit/12.nitro.md
CHANGED
|
@@ -31,14 +31,14 @@ export default defineNuxtModule({
|
|
|
31
31
|
### Type
|
|
32
32
|
|
|
33
33
|
```ts
|
|
34
|
-
function useLogger (tag?: string, options?:
|
|
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`**:
|
|
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:
|
|
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:
|
|
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
|
-
-
|
|
148
|
+
- `NuxtImportPreset`
|
|
149
149
|
|
|
150
|
-
| Property | Type
|
|
151
|
-
|
|
152
|
-
| `from` | `string`
|
|
153
|
-
| `imports` | `
|
|
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
|
-
-
|
|
155
|
+
- `NuxtPackageImportPreset`
|
|
156
156
|
|
|
157
|
-
| Property | Type
|
|
158
|
-
|
|
159
|
-
| `package` | `string`
|
|
157
|
+
| Property | Type | Required | Description |
|
|
158
|
+
|-----------|----------|----------|----------------------|
|
|
159
|
+
| `package` | `string` | `true` | Name of the package. |
|
package/4.api/5.kit/6.context.md
CHANGED
|
@@ -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` | `
|
|
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:
|
|
53
|
+
| `addHooks` | `(configHooks: NuxtNestedHooks) => () => void` | Shortcut for `nuxt.hooks.addHooks`. Registers multiple hooks at once. |
|
|
54
54
|
|
|
55
55
|
### Example
|
|
56
56
|
|