File size: 4,784 Bytes
430354e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
<html>

<head>
    <title>Configuring MCP Servers</title>

</head>

<body>
    <div x-data>
        <section class="mcp-example-intro">
            <p>
                Agent Zero uses the standard <code>mcpServers</code> JSON shape used by MCP-compatible clients.
                Each key under <code>mcpServers</code> is one MCP server.
            </p>

            <div class="mcp-example-notes">
                <div>
                    <strong>Local command servers</strong>
                    <span>Use <code>command</code>, optional <code>args</code>, and optional <code>env</code>.</span>
                </div>
                <div>
                    <strong>Remote servers</strong>
                    <span>Use <code>url</code>, optional <code>headers</code>, and a transport <code>type</code>.</span>
                </div>
                <div>
                    <strong>Common fields</strong>
                    <span><code>description</code>, <code>disabled</code>, <code>init_timeout</code>, and <code>tool_timeout</code> work on either kind of server.</span>
                </div>
            </div>
        </section>

        <h3>Example MCP servers configuration JSON</h3>
        <div id="mcp-servers-example"></div>

        <script>
            setTimeout(() => {
                const jsonExample = JSON.stringify({
                    "mcpServers":
                    {
                        "sqlite": {
                            "command": "uvx",
                            "args": [
                                "mcp-server-sqlite",
                                "--db-path",
                                "/root/db.sqlite"
                            ],
                            "init_timeout": 10,
                            "tool_timeout": 200
                        },
                        "sequential-thinking": {
                            "disabled": true,
                            "command": "npx",
                            "args": [
                                "--yes",
                                "--package",
                                "@modelcontextprotocol/server-sequential-thinking",
                                "mcp-server-sequential-thinking"
                            ]
                        },
                        "deep-wiki": {
                            "description": "Use this MCP to analyze github repositories",
                            "url": "https://mcp.deepwiki.com/mcp",
                            "type": "streamable-http"
                        }
                    }
                }, null, 2);

                const editor = ace.edit("mcp-servers-example");
                const dark = localStorage.getItem("darkMode");
                if (dark != "false") {
                    editor.setTheme("ace/theme/github_dark");
                } else {
                    editor.setTheme("ace/theme/tomorrow");
                }
                editor.session.setMode("ace/mode/json");
                editor.setValue(jsonExample);
                editor.clearSelection();
                editor.setReadOnly(true);
            }, 0);
        </script>
    </div>

    <style>
        .mcp-example-intro {
            display: flex;
            flex-direction: column;
            gap: 0.85rem;
            margin-bottom: 1rem;
            color: var(--color-text);
        }

        .mcp-example-intro p,
        .mcp-example-intro h3 {
            margin: 0;
        }

        .mcp-example-notes {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 0.75rem;
        }

        .mcp-example-notes > div {
            display: flex;
            flex-direction: column;
            gap: 0.35rem;
            padding: 0.75rem;
            border: 1px solid var(--color-border);
            border-radius: 8px;
            background: color-mix(in srgb, var(--color-panel) 88%, transparent);
        }

        .mcp-example-notes span {
            color: var(--color-text-muted);
            font-size: 0.9rem;
            line-height: 1.4;
        }

        .mcp-example-intro code {
            padding: 0.08rem 0.28rem;
            border-radius: 4px;
            background: var(--color-input);
            color: var(--color-text);
            font-family: var(--font-family-code);
            font-size: 0.88em;
        }

        #mcp-servers-example {
            width: 100%;
            height: 40em;
            border: 1px solid var(--color-border);
            border-radius: 8px;
            overflow: hidden;
        }

        @media (max-width: 840px) {
            .mcp-example-notes {
                grid-template-columns: 1fr;
            }
        }
    </style>

</body>

</html>