-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathmcp.toml.example
More file actions
111 lines (100 loc) · 4.18 KB
/
mcp.toml.example
File metadata and controls
111 lines (100 loc) · 4.18 KB
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
# mcp.toml.example
# Configuration file for Model Context Protocol (MCP) servers.
#
# This file allows the EmailAgent to connect to various MCP servers
# and utilize the tools they provide.
#
# Security Warning:
# Enabling MCP servers, especially Stdio-based ones, involves running external commands
# and potentially arbitrary code. The `trust_remote_code=True` flag is used when loading
# these tools with smolagents, which is necessary for their operation but carries inherent risks.
# ALWAYS ENSURE YOU TRUST THE SOURCE AND IMPLEMENTATION OF ANY MCP SERVER YOU CONFIGURE.
# For Stdio-based servers, the commands are executed on the machine where the agent is running.
# For SSE-based servers, while the server itself runs remotely, ensure the endpoint is trusted.
# [[mcp_servers]] # Use a list of tables for multiple servers of the same type or for clarity
# name = "filesystem_example"
# type = "stdio" # "stdio" or "sse"
# command = "npx"
# args = [
# "-y",
# "@modelcontextprotocol/server-filesystem",
# "/path/to/your/Desktop", # Replace with actual accessible paths
# "/path/to/your/Downloads" # Replace with actual accessible paths
# ]
# # Optional environment variables for the command
# # env = { "SOME_VARIABLE" = "some_value" }
# [[mcp_servers]]
# name = "github_stdio_example"
# type = "stdio"
# command = "npx"
# args = [
# "-y",
# "@modelcontextprotocol/server-github"
# ]
# env = { GITHUB_PERSONAL_ACCESS_TOKEN = "<YOUR_GITHUB_PERSONAL_ACCESS_TOKEN>" } # Replace with your token
# [[mcp_servers]]
# name = "github_docker_example"
# type = "stdio"
# command = "docker"
# args = [
# "run",
# "-i", # For interactive processes
# "--rm", # Automatically remove the container when it exits
# "-e", "GITHUB_PERSONAL_ACCESS_TOKEN", # Pass the environment variable to the container
# "mcp/github" # The Docker image for the GitHub MCP server
# ]
# env = { GITHUB_PERSONAL_ACCESS_TOKEN = "<YOUR_DOCKER_GITHUB_TOKEN>" } # Replace with your token
# [[mcp_servers]]
# name = "remote_sse_example"
# type = "sse"
# url = "http://127.0.0.1:8000/sse" # Replace with the actual URL of your SSE MCP server
# # Optional: any other parameters required by the mcp.client.sse.sse_client
# # extra_params = { "some_other_sse_param" = "value" }
# More structured way using TOML tables:
# Each key under [mcp_servers] will be treated as a server configuration.
# The name of the server will be the key itself (e.g., "filesystem", "github_service").
[mcp_servers.filesystem]
type = "stdio" # "stdio" or "sse"
command = "npx"
args = [
"-y",
"@modelcontextprotocol/server-filesystem",
"/path/to/your/Desktop", # IMPORTANT: Replace with actual, accessible paths
"/path/to/your/Downloads" # IMPORTANT: Replace with actual, accessible paths
]
# Optional environment variables for the command
# env = { "SOME_VARIABLE" = "some_value" }
# enabled = true # Optional: defaults to true if not specified. Set to false to disable.
[mcp_servers.github_stdio]
type = "stdio"
command = "npx"
args = [
"-y",
"@modelcontextprotocol/server-github"
]
env = { GITHUB_PERSONAL_ACCESS_TOKEN = "<YOUR_GITHUB_PERSONAL_ACCESS_TOKEN>" } # IMPORTANT: Replace with your token
# enabled = true
[mcp_servers.github_docker]
type = "stdio"
command = "docker"
args = [
"run",
"-i", # For interactive processes
"--rm", # Automatically remove the container when it exits
"-e", "GITHUB_PERSONAL_ACCESS_TOKEN", # Pass the environment variable to the container
"mcp/github" # The Docker image for the GitHub MCP server
]
env = { GITHUB_PERSONAL_ACCESS_TOKEN = "<YOUR_DOCKER_GITHUB_TOKEN>" } # IMPORTANT: Replace with your token
# enabled = true
[mcp_servers.pubmed_example]
type = "stdio"
command = "uvx" # Using uvx as per smolagents documentation example
args = ["--quiet", "pubmedmcp@0.1.3"]
env = {"UV_PYTHON" = "3.12"} # Ensure this matches your environment if needed, os.environ will be merged.
# enabled = true
[mcp_servers.remote_sse_service]
type = "sse"
url = "http://127.0.0.1:8000/sse" # IMPORTANT: Replace with the actual URL of your SSE MCP server
# Optional: any other parameters required by the mcp.client.sse.sse_client for SSE connections
# extra_params = { "some_other_sse_param" = "value" }
# enabled = true