Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/remove-mcp-addon.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'sv': minor
---

feat(ai-tools): replace `mcp` add-on with `ai-tools` add-on - set up the Svelte plugin (Claude Code, opencode) or pick individual tools (MCP server, skills, sub-agents) per client
3 changes: 2 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
packages/sv/src/cli/tests/snapshots/*
packages/sv-utils/src/tests/**/output.ts
packages/sv-utils/src/tests/**/output.ts
packages/sv/src/create/shared/+skills/*
2 changes: 1 addition & 1 deletion documentation/docs/20-commands/20-sv-add.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@ Prevents installing dependencies

## Official add-ons

- [`ai-tools`](ai-tools)
- [`better-auth`](better-auth)
- [`drizzle`](drizzle)
- [`eslint`](eslint)
- [`mcp`](mcp)
- [`mdsvex`](mdsvex)
- [`paraglide`](paraglide)
- [`playwright`](playwright)
Expand Down
56 changes: 56 additions & 0 deletions documentation/docs/30-add-ons/01-ai-tools.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
---
title: ai-tools
---

[Svelte AI Tools](/docs/ai/overview) can help your LLM write better Svelte code.

## Usage

```sh
npx sv add ai-tools
```

## What you get

You can add the tooling either through the official **Svelte plugin** or as **individual tools**.

- The **Svelte plugin** bundles everything (MCP server, [skills](https://svelte.dev/docs/ai/skills) and sub-agents) and keeps itself up to date. It's available for Claude Code and opencode. For Claude Code it's enabled through a committed `.claude/settings.json` - the first time you open the project you'll be asked to trust the workspace, then it installs automatically (no `/plugin install` needed).
- **Individual tools**, for clients without a plugin (or when you want to pick exactly what to add):
- An MCP configuration for [local](https://svelte.dev/docs/ai/local-setup) or [remote](https://svelte.dev/docs/ai/remote-setup) setup
- A [README for agents](https://agents.md/) to help you use the MCP server effectively
- [Skills](https://svelte.dev/docs/ai/skills) for clients that support them
- Sub-agents for clients that support them

## Options

### ide

The client(s) you want to use like `'claude-code'`, `'cursor'`, `'gemini'`, `'opencode'`, `'vscode'`, `'other'`.

```sh
npx sv add ai-tools="ide:cursor,vscode"
```

### delivery

How to add the tooling: `'plugin'` (the Svelte plugin, recommended) or `'tools'` (individual tools). Only asked when a selected client supports a plugin.

```sh
npx sv add ai-tools="ide:claude-code+delivery:plugin"
```

### tools

Which individual tools to add when not using the plugin, like `'mcp'`, `'svelte-code-writer'`, `'svelte-core-bestpractices'`, `'svelte-file-editor'`.

```sh
npx sv add ai-tools="ide:cursor+delivery:tools+tools:mcp,svelte-file-editor"
```

### mcpSetup

The MCP setup you want to use (`'local'` or `'remote'`). Only relevant when adding the MCP server as an individual tool.

```sh
npx sv add ai-tools="mcpSetup:local"
```
34 changes: 0 additions & 34 deletions documentation/docs/30-add-ons/17-mcp.md

This file was deleted.

2 changes: 1 addition & 1 deletion packages/sv/api-surface-testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type OfficialAddons = {
mdsvex: Addon<any>;
paraglide: Addon<any>;
storybook: Addon<any>;
mcp: Addon<any>;
aiTools: Addon<any>;
experimental: Addon<any>;
};
declare const officialAddons: OfficialAddons;
Expand Down
2 changes: 1 addition & 1 deletion packages/sv/api-surface.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ type OfficialAddons = {
mdsvex: Addon<any>;
paraglide: Addon<any>;
storybook: Addon<any>;
mcp: Addon<any>;
aiTools: Addon<any>;
experimental: Addon<any>;
};
declare const officialAddons: OfficialAddons;
Expand Down
Loading
Loading