File size: 805 Bytes
b4aa678
 
 
 
 
 
adb81f2
b4aa678
adb81f2
 
b4aa678
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
#!/bin/bash

cat <<EOF > /app/config.json
{
    "mcpServers": {
        "fetch": {
            "command": "npx",
            "args": [
                "-y",
                "fetcher-mcp"
            ]
        },
        "mcp-server-time": {
            "command": "uvx",
            "args": [
                "mcp-server-time",
                "--local-timezone=Asia/Shanghai"
            ],
            "alwaysAllow": [
                "get_current_time",
                "convert_time"
            ]
        },
        "tavily-mcp": {
            "command": "npx",
            "args": [
                "-y",
                "[email protected]"
            ],
            "env": {
                "TAVILY_API_KEY": "tvly-dev-xxxxx"
            }
        }
    }
}
EOF

exec mcpo --config /app/config.json