← Back to Home

Usage Guide

This guide covers how to run and configure `mcpproxy` using command-line arguments and environment variables.

Command-Line Options

The `mcpproxy` executable supports several flags to customize its behavior. You can view all options by running with the --help flag.


./mcpproxy --help
      

Key Arguments:

Security Flags

These flags allow you to run the proxy in a more restrictive environment:

Environment Variables

You can also configure `mcpproxy` using environment variables. These will be overridden by command-line flags if both are provided.


export MCPPROXY_LISTEN=:9000
export MCPPROXY_TRAY=false
./mcpproxy
      

Data and Logs

Data Directory

By default, `mcpproxy` stores all its data in the ~/.mcpproxy directory. This includes:

Logging

Logging is configured within your configuration file. You can control the log level, output (console, file, or both), and log rotation policies.