Understand how to configure director.
~/.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).~/.director/config.json
). Here’s how to structure it:
servers
array supports the following fields:
stdio
or http
)false
): When enabled, all tool names from this server will be prefixed with the server name followed by double underscores (__
)add_prefix
option helps prevent naming conflicts when multiple MCP servers expose tools with the same name. When add_prefix: true
:
search
from a server named github
becomes github__search
execute
from a server named code-runner
becomes code-runner__execute
search
tool would be accessible. With prefixing, both are available as distinct tools.
config.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).