> ## Documentation Index
> Fetch the complete documentation index at: https://docs.archetype.ing/llms.txt
> Use this file to discover all available pages before exploring further.

# MCPサーバ

> 任意のMCPサーバのツールをエージェントに渡します。

サーバを追加すると、そのツールが`mcp__<server>__<tool>`としてエージェントから使えるようになります。

```bash theme={null}
# a local server, with what it needs in its environment
archetype mcp add docs --env DOCS_TOKEN=… -- docs-mcp --stdio

# a remote one
archetype mcp add linear https://mcp.example.com/mcp --header "Authorization: Bearer ${LINEAR_TOKEN}"

archetype mcp list           # the servers, and the plugins' own
archetype mcp check docs     # start it and list its tools
archetype mcp login linear   # sign in to a server that asks for it
archetype mcp remove docs
```

サーバはユーザ設定の`mcpServers`に保存され、Archetypeの起動時に読み込まれます。サーバを残したまま動かさないようにするには、そのサーバに`"disabled": true`を設定するか、アプリのMCPページで**オフにする**を使います。特定のツールをどのエンジンからも使えないようにするには、`"tools": { "deny": ["delete_repo"] }`を設定します。

承認ルールはMCPツールにも使えます。

```json theme={null}
{ "approvalRules": [{ "tool": "mcp__docs__*", "action": "allow" }] }
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.