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
# MCP Configuration Example
#
# This file configures MCP (Model Context Protocol) servers.
# MatrixCode will automatically discover and connect to these servers,
# making their tools available to the agent.
#
# Place this file in:
# - Project root: ./mcp.toml
# - Home directory: ~/.mcp.toml
[]
# Playwright browser automation
# Provides: browser_navigate, browser_click, browser_screenshot, etc.
= "npx"
= ["-y", "@playwright/mcp@latest"]
= true
# [servers.filesystem]
# # File system operations (optional)
# # Provides: read_file, write_file, list_directory, etc.
# command = "npx"
# args = ["-y", "@modelcontextprotocol/server-filesystem", "/path/to/allowed/dir"]
# enabled = true
# [servers.github]
# # GitHub operations (optional)
# # Provides: search_repositories, get_issue, create_pr, etc.
# command = "npx"
# args = ["-y", "@modelcontextprotocol/server-github"]
# env = { GITHUB_TOKEN = "your-token-here" }
# enabled = true
# [servers.custom-sse]
# # SSE-based MCP server (for remote servers)
# url = "http://localhost:3000/mcp"
# timeout_ms = 60000
# enabled = false
[]
# Auto-discover MCP servers from config files
= true
# Connection timeout in milliseconds
= 10000