New Your team’s decisions, in one playbook every coding agent works from. Never answer your agent twice

set_config_value

Set a specific configuration value by key. WARNING: Should be used in a separate chat from file operations and command execution to prevent security issues. Config keys include: - blockedCommands (array) - defaultShell (string) - allowedDirectories (array of paths) - fileReadLineLimit (number, ma...

SERVERDesktop Commander SOURCEwonderwhy-er/DesktopCommanderMCP
Medium RISK CLASS
Category Write
Parameters 00 required
Recommended Rate-limitedsee the rule below
Registry record Grade F, identity unverified Pull the record →

This record as markdown: /tools/desktop-commander/set-config-value.md

What set_config_value does on Desktop Commander

AI agents use set_config_value to create or update resources in Desktop Commander, usually the action step of a workflow, after the agent has gathered context. Every call changes real data in your Desktop Commander environment.

Why set_config_value is rated Medium

This tool modifies system configuration settings that control security boundaries (blocked commands, allowed directories, file operation limits). While not destructive in the sense of permanent data loss, it can reversibly alter security controls. The high severity reflects that misconfiguration by an agent could bypass safety mechanisms (e.g., removing command blocks, expanding allowed directories).

From the tool's definition Tool description states 'Set a specific configuration value by key' and lists modifiable config keys including 'blockedCommands', 'defaultShell', 'allowedDirectories', and 'fileReadLineLimit'.

Questions about set_config_value

What does the set_config_value tool do? +

Set a specific configuration value by key. WARNING: Should be used in a separate chat from file operations and command execution to prevent security issues. Config keys include: - blockedCommands (array) - defaultShell (string) - allowedDirectories (array of paths) - fileReadLineLimit (number, max lines for read_file) - fileWriteLineLimit (number, max lines per write_file call) - telemetryEnabled (boolean) IMPORTANT: Setting allowedDirectories to an empty array ([]) allows full access to the entire file system, regardless of the operating system. ${CMD_PREFIX_DESCRIPTION}. It is categorised as a Write tool in the Desktop Commander MCP Server, which means it can create or modify data. Consider rate limits to prevent runaway writes.

How do I enforce a policy on set_config_value? +

Register the Desktop Commander MCP server in PolicyLayer and add a rule for set_config_value: allow, deny, rate-limit, or require approval. Point your MCP client at the PolicyLayer proxy URL and the rule is enforced on every call, before it reaches Desktop Commander. Nothing to install.

What risk level is set_config_value? +

set_config_value is a Write tool with medium risk. Write tools should be rate-limited to prevent accidental bulk modifications.

Can I rate-limit set_config_value? +

Yes. Add a rate_limit block to the set_config_value rule in your PolicyLayer policy. For example, setting max: 10 and window: 60 limits the tool to 10 calls per minute. Rate limits are tracked per agent session and reset automatically.

How do I block set_config_value completely? +

Set action: deny in the PolicyLayer policy for set_config_value. The AI agent will receive a policy violation error and cannot call the tool. You can also include a reason field to explain why the tool is blocked.

What MCP server provides set_config_value? +

set_config_value is provided by the Desktop Commander MCP server (wonderwhy-er/DesktopCommanderMCP). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.

More on Desktop Commander, and thousands of servers like it.

// THE MCP REGISTRY

PolicyLayer tracks 44,603 MCP servers and 515,000+ tools.

Every server has a live record: who publishes it, whether it answers without auth, its risk grade, every tool classified, the recommended policy. This page is one line of Desktop Commander's. Pull the full record:

Teams ship this data inside their own products. See what a licence covers →

// GET IN TOUCH

Have a question or want to learn more? Send us a message.

Message sent.

We'll get back to you soon.