Skip to content

config tools set

mcpd config tools set

Add allowed tools to an MCP server configuration

Synopsis

Add allowed tools to an MCP server configuration. Tools are added to the existing set of tools (append behavior). Duplicate tools are automatically deduplicated. Only tools that are available for the server (as defined in the registry) can be added.

mcpd config tools set <server-name> --tool <tool1> [--tool <tool2> ...] [flags]

Options

      --cache-dir string   Directory for caching registry manifests (default "/home/runner/.cache/mcpd/registries")
      --cache-ttl string   Time-to-live for cached registry manifests (e.g. 1h, 30m, 24h) (default "24h")
      --no-cache           Disable registry manifest caching
      --refresh-cache      Force refresh of cached registry manifests
      --tool stringArray   Tool to add to the server's allowed list (can be repeated)

Options inherited from parent commands

      --config-file string    path to config file (default ".mcpd.toml")
      --log-level string      log level for mcpd logs (default "info")
      --log-path string       log file path to use for log output
      --runtime-file string   path to runtime (execution context) file that contains env vars, and arguments for your MCP servers (default "/home/runner/.config/mcpd/secrets.dev.toml")

SEE ALSO

Auto generated by spf13/cobra on 26-Sep-2025