> For the complete documentation index, see [llms.txt](https://docs.mozilla.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.mozilla.ai/mcpd/cli-reference/mcpd_config_args_remove.md).

# config args remove

Remove arguments from an MCP server's configuration

## Synopsis

Remove arguments from a specified MCP server in the runtime context configuration file (e.g. `~/.config/mcpd/secrets.dev.toml`).

This command removes ALL occurrences of each specified argument, whether they are:

* Flags (e.g., --verbose, -v)
* Flags with values (e.g., --config=file.json)
* Positional arguments (e.g., /path/to/file)

Matching behavior:

* Specifying '--verbose' removes ALL '--verbose' variants (--verbose, --verbose=true, etc.)
* Specifying '--port=8080' removes ONLY exact matches of '--port=8080'
* If an argument appears multiple times, all instances are removed

```
mcpd config args remove <server-name> -- [arg ...] [--arg ...] [flags]
```

## Examples

```
remove time -- --local-timezone
```

## 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

* [mcpd config args](/mcpd/cli-reference/mcpd_config_args.md) - Manages MCP server command line args configuration

**Auto generated by spf13/cobra on 14-Aug-2026**


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.mozilla.ai/mcpd/cli-reference/mcpd_config_args_remove.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
