~/.director/config.json
- This is the main configuration file that contains the list of proxies, their targets and their configuration.~/.director/config.env
- This file is not created by default, but can be used to override the service level configuration (which can also be ser via environment variables directly).
config.json
Your configuration file is a JSON file that defines proxy connections (it’s location is~/.director/config.json
). Here’s how to structure it:
Server Configuration Options
Each server in theservers
array supports the following fields:
- name (required): A unique identifier for the server within this proxy
- transport (required): The transport configuration (either
stdio
orhttp
) - add_prefix (optional, default:
false
): When enabled, all tool names from this server will be prefixed with the server name followed by double underscores (__
)
Tool Name Prefixing
Theadd_prefix
option helps prevent naming conflicts when multiple MCP servers expose tools with the same name. When add_prefix: true
:
- A tool named
search
from a server namedgithub
becomesgithub__search
- A tool named
execute
from a server namedcode-runner
becomescode-runner__execute
- You’re aggregating multiple MCP servers that might have overlapping tool names
- You want to clearly identify which server provides which tool
- You need to maintain compatibility with clients that expect specific tool naming patterns
search
tool would be accessible. With prefixing, both are available as distinct tools.
config.env
Theconfig.env
file is not created by default, but can be used to override the service level configuration (which can also be ser via environment variables directly).