What is MCP?
The (MCP) is an open standard that lets AI agents communicate with external tool servers over a lightweight JSON-RPC transport. Each MCP server exposes a set of tools (and optionally resources) that the agent can call during a session. ArgentOS supports MCP natively — you define servers in your config and they become available as agent tools automatically.Configuration
MCP servers are configured in~/.argentos/argent.json under the CLI backend that will use them. There are two approaches:
- Inline Servers
- External Config File
Define servers directly in the backend config:ArgentOS writes the inline definitions to a temporary file at runtime and passes it to the CLI backend via the
mcpConfigArg flag.Server Types
- stdio (Local Process)
- HTTP (Remote Server)
The most common type. ArgentOS spawns the server as a child process and communicates over stdin/stdout.
| Field | Description |
|---|---|
command | Executable to run (npx, node, python, etc.) |
args | Array of command-line arguments |
env | Environment variables injected into the subprocess |
Environment Variables
Environment variables defined inenv are merged into the subprocess environment. The parent process environment is inherited, so API keys already in your shell (like ANTHROPIC_API_KEY) are available without re-declaring them.
Strict Mode
WhenstrictMcpConfig is true (the default), ArgentOS appends the strictMcpConfigArg flag. This tells the CLI backend to reject unknown or malformed server entries rather than silently ignoring them. Disable it only if you need lenient parsing:
Security Considerations
Config file permissions: inline configs are written to temp files with mode
0600 (owner-read-write only) and cleaned up after the session.Reloading Servers
MCP servers are spawned per CLI backend session. To pick up config changes:- Gateway restart:
argent gateway restart— reloads the full config including MCP definitions. - Config apply: use
argent config applyor the dashboard Config Panel to write and restart in one step. - New sessions only: existing agent sessions keep their original MCP servers. New sessions launched after a config change will use the updated definitions.
There is no hot-reload for MCP servers within an active session. Restart the gateway or start a new session to apply changes.
