Skip to content

Commit 09a30b6

Browse files
Sync mcp docs (#1588)
Co-authored-by: svelte-docs-bot[bot] <196124396+svelte-docs-bot[bot]@users.noreply.github.com>
1 parent b1fab1f commit 09a30b6

File tree

4 files changed

+5
-22
lines changed

4 files changed

+5
-22
lines changed

apps/svelte.dev/content/docs/mcp/10-introduction/10-overview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ The Svelte MCP ([Model Context Protocol](https://modelcontextprotocol.io/docs/ge
1010
The setup varies based on the version of the MCP you prefer — remote or local — and your chosen MCP client (e.g. Claude Code, Codex CLI or GitHub Copilot):
1111

1212
- [local setup](local-setup) using `@sveltejs/mcp`
13-
- [remote setup](remote-setup) using [mcp.svelte.dev/mcp](https://mcp.svelte.dev/mcp)
13+
- [remote setup](remote-setup) using `https://mcp.svelte.dev/mcp`
1414

1515
## Usage
1616

apps/svelte.dev/content/docs/mcp/20-setup/30-remote-setup.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ NOTE: do not edit this file, it is generated in apps/svelte.dev/scripts/sync-doc
33
title: Remote setup
44
---
55

6-
The remote version of the MCP server is available on `https://mcp.svelte.dev/mcp`.
6+
The remote version of the MCP server is available at `https://mcp.svelte.dev/mcp`.
77

88
Here's how to set it up in some common MCP clients:
99

apps/svelte.dev/content/docs/mcp/30-capabilities/10-tools.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ NOTE: do not edit this file, it is generated in apps/svelte.dev/scripts/sync-doc
33
title: Tools
44
---
55

6-
The following tools are provided by the MCP server to the model, which can decide to call one or more of them during a session:
6+
The following tools are provided by the MCP server to the model you are using, which can decide to call one or more of them during a session:
77

88
## list-sections
99

@@ -15,7 +15,7 @@ Allows the model to get the full (and up-to-date) documentation for the requeste
1515

1616
## svelte-autofixer
1717

18-
Uses static analysis to provide suggestions for the generated code. It should be invoked in a loop by the model until all issues and suggestions are resolved.
18+
Uses static analysis to provide suggestions for code that your LLM generates. It can be invoked in an agentic loop by your model until all issues and suggestions are resolved.
1919

2020
## playground-link
2121

apps/svelte.dev/content/docs/mcp/30-capabilities/30-prompts.md

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,4 @@ This is the list of available prompts provided by the MCP server. Prompts are se
77

88
## svelte-task
99

10-
This prompt should be used whenever you are asking the model to work on some Svelte-related task. It will instruct the LLM on which documentation sections are available, which tool to invoke, when to invoke it, and how to interpret the result. It will ask you for the description of the task and the returned value will look like this:
11-
12-
```
13-
You are a Svelte expert tasked to build components and utilities for Svelte developers. If you need documentation for anything related to Svelte you can invoke the tool \`get-documentation\` with one of the following paths:
14-
<available-docs-paths>
15-
[all available docs]
16-
</available-docs-paths>
17-
18-
Every time you write a Svelte component or a Svelte module you MUST invoke the \`svelte-autofixer\` tool providing the code. The tool will return a list of issues or suggestions. If there are any issues or suggestions you MUST fix them and call the tool again with the updated code. You MUST keep doing this until the tool returns no issues or suggestions. Only then you can return the code to the user.
19-
20-
This is the task you will work on:
21-
22-
<task>
23-
[your task here]
24-
</task>
25-
26-
If you are not writing the code into a file, once you have the final version of the code ask the user if they want to generate a playground link to quickly check the code in it and if they answer yes call the \`playground-link\` tool and return the url to the user nicely formatted. The playground link MUST be generated only once you have the final version of the code and you are ready to share it, it MUST include an entry point file called \`App.svelte\` where the main component should live. If you have multiple files to include in the playground link you can include them all at the root.
27-
```
10+
This prompt should be used whenever you are asking the model to work on a Svelte-related task. It will instruct the LLM which documentation sections are available, which tools to invoke, when to invoke them, and how to interpret the results.

0 commit comments

Comments
 (0)