Skip to content

Commit 2bd68fe

Browse files
authored
doc: MCPの翻訳 (#73)
* translate MCP * chore * chore
1 parent 5ea9513 commit 2bd68fe

File tree

6 files changed

+59
-59
lines changed

6 files changed

+59
-59
lines changed

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

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

6-
The Svelte MCP ([Model Context Protocol](https://modelcontextprotocol.io/docs/getting-started/intro)) server can help your LLM or agent of choice write better Svelte code. It works by providing documentation relevant to the task at hand, and statically analysing generated code so that it can suggest fixes and best practices.
6+
Svelte MCP ([Model Context Protocol](https://modelcontextprotocol.io/docs/getting-started/intro)) サーバーは、あなたの LLM または選択したエージェントがより良い Svelte コードを書くのを支援します。これは、目下のタスクに関連するドキュメントを提供し、生成されたコードを静的に分析して、修正やベストプラクティスを提案できるようにします。
77

88
## Setup
99

10-
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):
10+
設定は、好みの MCP のバージョン(リモートまたはローカル)、そして選択した MCP クライアント(例: Claude CodeCodex CLIGitHub Copilot)によって異なります:
1111

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

1515
## Usage
1616

17-
To get the most out of the MCP server we recommend including the following prompt in your `AGENTS.md` (or `CLAUDE.md`, if using Claude Code). This will tell the LLM which tools are available and when it's appropriate to use them.
17+
MCP サーバーを最大限に活用するには、`AGENTS.md`(Claude Code を使用している場合は `CLAUDE.md`)に以下のプロンプトを含めることをお勧めします。これにより、LLM に利用可能なツールと、それらを使用する適切なタイミングを伝えられます。
1818

1919
```md
2020
You are able to use the Svelte MCP server, where you have access to comprehensive Svelte 5 and SvelteKit documentation. Here's how to use the available tools effectively:
@@ -42,4 +42,4 @@ Generates a Svelte Playground link with the provided code.
4242
After completing the code, ask the user if they want a playground link. Only call this tool after user confirmation and NEVER if code was written to files in their project.
4343
```
4444

45-
If your MCP client supports it, we also recommend using the [svelte-task](prompts#svelte-task) prompt to instruct the LLM on the best way to use the MCP server.
45+
もしあなたの MCP クライアントが対応しているなら、LLM に MCP サーバーの最適な使用方法を指示するために、[svelte-task](prompts#svelte-task) プロンプトを使用することもお勧めします。

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

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

6-
The local (or stdio) version of the MCP server is available via the [`@sveltejs/mcp`](https://www.npmjs.com/package/@sveltejs/mcp) npm package. You can either install it globally and then reference it in your configuration or run it with `npx`:
6+
ローカル(または stdio)バージョンの MCP サーバーは、[`@sveltejs/mcp`](https://www.npmjs.com/package/@sveltejs/mcp) npm パッケージで利用できます。グローバルにインストールして設定で参照するか、または `npx` で実行することもできます:
77

88
```bash
99
npx -y @sveltejs/mcp
1010
```
1111

12-
Here's how to set it up in some common MCP clients:
12+
以下は、一般的な MCP クライアントでの設定方法です:
1313

1414
## Claude Code
1515

16-
To include the local MCP version in Claude Code, simply run the following command:
16+
Claude Code でローカル MCP バージョンを含めるには、次のコマンドを実行するだけです:
1717

1818
```bash
1919
claude mcp add -t stdio -s [scope] svelte npx -y @sveltejs/mcp
2020
```
2121

22-
The `[scope]` must be `user`, `project` or `local`.
22+
`[scope]` には `user``project` または `local` を指定する必要があります。
2323

2424
## Claude Desktop
2525

26-
In the Settings > Developer section, click on Edit Config. It will open the folder with a `claude_desktop_config.json` file in it. Edit the file to include the following configuration:
26+
Settings > Developer セクションで、Edit Config をクリックします。`claude_desktop_config.json` ファイルがあるフォルダが開きます。そのファイルを編集して、次の構成を含めます:
2727

2828
```json
2929
{
@@ -38,7 +38,7 @@ In the Settings > Developer section, click on Edit Config. It will open the fold
3838

3939
## Codex CLI
4040

41-
Add the following to your `config.toml` (which defaults to `~/.codex/config.toml`, but refer to [the configuration documentation](https://github.com/openai/codex/blob/main/docs/config.md) for more advanced setups):
41+
`config.toml` に次の内容を追加します(デフォルトでは `~/.codex/config.toml` ですが、より高度なセットアップについては [the configuration documentation](https://github.com/openai/codex/blob/main/docs/config.md) を参照してください):
4242

4343
```toml
4444
[mcp_servers.svelte]
@@ -48,23 +48,23 @@ args = ["-y", "@sveltejs/mcp"]
4848

4949
## Gemini CLI
5050

51-
To include the local MCP version in Gemini CLI, simply run the following command:
51+
Gemini CLI でローカル MCP バージョンを含めるには、次のコマンドを実行するだけです:
5252

5353
```bash
5454
gemini mcp add -t stdio -s [scope] svelte npx -y @sveltejs/mcp
5555
```
5656

57-
The `[scope]` must be `user`, `project` or `local`.
57+
`[scope]` には `user``project` または `local` を指定する必要があります。
5858

5959
## OpenCode
6060

61-
Run the command:
61+
このコマンドを実行します:
6262

6363
```bash
6464
opencode mcp add
6565
```
6666

67-
and follow the instructions, selecting 'Local' under the 'Select MCP server type' prompt:
67+
以下のインストラクションに従い、'Select MCP server type' プロンプトで 'Local' を選択します:
6868

6969
```bash
7070
opencode mcp add
@@ -83,20 +83,20 @@ opencode mcp add
8383

8484
## VS Code
8585

86-
- Open the command palette
87-
- Select "MCP: Add Server..."
88-
- Select "Command (stdio)"
89-
- Insert `npx -y @sveltejs/mcp` in the input and press `Enter`
90-
- When prompted for a name, insert `svelte`
91-
- Select if you want to add it as a `Global` or `Workspace` MCP server
86+
- コマンドパレットを開く
87+
- "MCP: Add Server..." を選択
88+
- "Command (stdio)" を選択
89+
- 入力欄に `npx -y @sveltejs/mcp` と入力して `Enter` を押す
90+
- 名前を尋ねられたら `svelte` と入力
91+
- `Global` MCP サーバーとして追加するか `Workspace` MCP サーバーとして追加するか選択
9292

9393
## Cursor
9494

95-
- Open the command palette
96-
- Select "View: Open MCP Settings"
97-
- Click on "Add custom MCP"
95+
- コマンドパレットを開く
96+
- "View: Open MCP Settings" を選択
97+
- "Add custom MCP" をクリック
9898

99-
It will open a file with your MCP servers where you can add the following configuration:
99+
これによって MCP サーバーのファイルが開くので、次の構成を追加します:
100100

101101
```json
102102
{
@@ -111,4 +111,4 @@ It will open a file with your MCP servers where you can add the following config
111111

112112
## Other clients
113113

114-
If we didn't include the MCP client you are using, refer to their documentation for `stdio` servers and use `npx` as the command and `-y @sveltejs/mcp` as the arguments.
114+
もしお使いの MCP クライアントの設定例がない場合は、その MCP クライアントのドキュメントで `stdio` サーバーについて参照し、コマンドとして `npx`、引数として `-y @sveltejs/mcp` を使用してください。

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

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -3,31 +3,31 @@ 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 at `https://mcp.svelte.dev/mcp`.
6+
リモートバージョンの MCP サーバーは `https://mcp.svelte.dev/mcp` で利用できます。
77

8-
Here's how to set it up in some common MCP clients:
8+
以下は、一般的な MCP クライアントでの設定方法です:
99

1010
## Claude Code
1111

12-
To include the remote MCP version in Claude Code, simply run the following command:
12+
Claude Code でリモート MCP バージョンを含めるには、次のコマンドを実行するだけです:
1313

1414
```bash
1515
claude mcp add -t http -s [scope] svelte https://mcp.svelte.dev/mcp
1616
```
1717

18-
You can choose your preferred `scope` (it must be `user`, `project` or `local`) and `name`.
18+
ご希望の `scope``user``project``local` のいずれかを指定)と `name` を選択できます。
1919

2020
## Claude Desktop
2121

22-
- Open Settings > Connectors
23-
- Click on Add Custom Connector
24-
- When prompted for a name, enter `svelte`
25-
- Under the Remote MCP server URL input, use `https://mcp.svelte.dev/mcp`
26-
- Click Add
22+
- Settings > Connectors を開く
23+
- Add Custom Connector をクリック
24+
- 名前を尋ねられたら `svelte` と入力
25+
- Remote MCP server URL 入力欄に `https://mcp.svelte.dev/mcp` と入力
26+
- Add をクリック
2727

2828
## Codex CLI
2929

30-
Add the following to your `config.toml` (which defaults to `~/.codex/config.toml`, but refer to [the configuration documentation](https://github.com/openai/codex/blob/main/docs/config.md) for more advanced setups):
30+
`config.toml` に次の内容を追加します(デフォルトでは `~/.codex/config.toml` ですが、より高度なセットアップについては [the configuration documentation](https://github.com/openai/codex/blob/main/docs/config.md) を参照してください):
3131

3232
```toml
3333
experimental_use_rmcp_client = true
@@ -37,23 +37,23 @@ url = "https://mcp.svelte.dev/mcp"
3737

3838
## Gemini CLI
3939

40-
To use the remote MCP server with Gemini CLI, simply run the following command:
40+
Gemini CLI でリモート MCP バージョンを含めるには、次のコマンドを実行するだけです:
4141

4242
```bash
4343
gemini mcp add -t http -s [scope] svelte https://mcp.svelte.dev/mcp
4444
```
4545

46-
The `[scope]` must be `user`, `project` or `local`.
46+
`[scope]` には `user``project` または `local` を指定する必要があります。
4747

4848
## OpenCode
4949

50-
Run the command:
50+
このコマンドを実行します:
5151

5252
```bash
5353
opencode mcp add
5454
```
5555

56-
and follow the instructions, selecting 'Remote' under the 'Select MCP server type' prompt:
56+
以下のインストラクションに従い、'Select MCP server type' プロンプトで 'Remote' を選択します:
5757

5858
```bash
5959
opencode mcp add
@@ -72,20 +72,20 @@ opencode mcp add
7272

7373
## VS Code
7474

75-
- Open the command palette
76-
- Select "MCP: Add Server..."
77-
- Select "HTTP (HTTP or Server-Sent-Events)"
78-
- Insert `https://mcp.svelte.dev/mcp` in the input and press `Enter`
79-
- Insert your preferred name
80-
- Select if you want to add it as a `Global` or `Workspace` MCP server
75+
- コマンドパレットを開く
76+
- "MCP: Add Server..." を選択
77+
- "HTTP (HTTP or Server-Sent-Events)" を選択
78+
- 入力欄に `https://mcp.svelte.dev/mcp` と入力して `Enter` を押す
79+
- お好みの名前を入力
80+
- `Global` MCP サーバーとして追加するか `Workspace` MCP サーバーとして追加するか選択
8181

8282
## Cursor
8383

84-
- Open the command palette
85-
- Select "View: Open MCP Settings"
86-
- Click on "Add custom MCP"
84+
- コマンドパレットを開く
85+
- "View: Open MCP Settings" を選択
86+
- "Add custom MCP" をクリック
8787

88-
It will open a file with your MCP servers where you can add the following configuration:
88+
これによって MCP サーバーのファイルが開くので、次の構成を追加します:
8989

9090
```json
9191
{
@@ -99,4 +99,4 @@ It will open a file with your MCP servers where you can add the following config
9999

100100
## Other clients
101101

102-
If we didn't include the MCP client you are using, refer to their documentation for `remote` servers and use `https://mcp.svelte.dev/mcp` as the URL.
102+
もしお使いの MCP クライアントの設定例がない場合は、その MCP クライアントのドキュメントで `remote` サーバーについて参照し、URL として `https://mcp.svelte.dev/mcp` を使用してください。

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,20 @@ 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 you are using, which can decide to call one or more of them during a session:
6+
以下のツールは、MCP サーバーがあなたが使用するモデルに提供するもので、セッション中に1つ以上を呼び出すことができます:
77

88
## list-sections
99

10-
Provides a list of all the available documentation sections.
10+
利用可能な全ドキュメントセクションのリストを提供します。
1111

1212
## get-documentation
1313

14-
Allows the model to get the full (and up-to-date) documentation for the requested sections directly from [svelte.dev/docs](/docs).
14+
モデルは要求されたセクションの完全な(かつ最新の)ドキュメントを直接 [svelte.dev/docs](/docs) から取得することができます。
1515

1616
## svelte-autofixer
1717

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.
18+
静的解析を使用して、LLM が生成したコードに対する提案を提供します。エージェントループ(agentic loop)で、すべての問題と提案が解決されるまで、モデルから呼び出すことができます。
1919

2020
## playground-link
2121

22-
Generates an ephemeral playground link with the generated code. It's useful when the generated code is not written to a file in your project and you want to quickly test the generated solution. The code is not stored anywhere except the URL itself (which will often, as a consequence, be quite large).
22+
生成されたコード付きの一時的な playground のリンクを作成します。生成されたコードがプロジェクト内のファイルに書き込まれないため、生成されたソリューションをすばやくテストしたい場合に便利です。コードは URL 自体以外のどこにも保存されません(その結果、URL はしばしばかなり大きくなることがあります)。

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

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

6-
This is the list of available resources provided by the MCP server. Resources are included by the user (not by the LLM) and are useful if you want to include specific knowledge in your session. For example, if you know that the component will need to use transitions you can include the transition documentation directly without asking the LLM to do it for you.
6+
これは MCP サーバーが提供する利用可能なリソースのリストです。リソースはユーザーによって(LLM ではなく)含められるため、セッションに特定のナレッジを含めたい場合に役立ちます。例えば、コンポーネントがトランジションを使用する必要があることがわかっている場合、LLM にそれを依頼することなく、トランジションのドキュメントを直接含めることができます。
77

88
## doc-section
99

10-
This dynamic resource allows you to add every section of the Svelte documentation as a resource. The URI looks like this `svelte://slug-of-the-docs.md` and the returned resource will contain the `llms.txt` version of the specific page you selected.
10+
この動的なリソースを使用すると、Svelte ドキュメントの各セクションをリソースとして追加できます。URI `svelte://slug-of-the-docs.md` のようになり、選択した特定のページの `llms.txt` バージョンを含むリソースが返されます。

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

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

6-
This is the list of available prompts provided by the MCP server. Prompts are selected by the user and are sent as a user message. They can be useful to write repetitive instructions for the LLM on how to properly use the MCP server.
6+
これは MCP サーバーが提供する利用可能なプロンプトのリストです。プロンプトはユーザーによって選択され、ユーザーメッセージとして送信されます。LLM に対して、MCP サーバーを適切に使用する方法について反復的な指示を書くのに役立ちます。
77

88
## svelte-task
99

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.
10+
このプロンプトは、Svelte 関連のタスクにモデルに取り組むよう依頼する場合に使用する必要があります。利用可能なドキュメントセクション、呼び出すツール、呼び出すタイミング、および結果を解釈する方法を LLM に指示します。

0 commit comments

Comments
 (0)