MCP Gateway CLI
Learn how to configure your locally installed MCP servers.
To accommodate different developer preferences, you have two distinct interfaces for interacting with your governed tools:
- Manual CLI Commands for your terminal, described below, and
- Automated Agentic Flow inside your IDE
CLI Commands (Manual Control)
The jf mcp-gateway CLI also provides a set of manual controls. This allows you to inspect active policies, switch project contexts, and manage your local AI environment via your terminal, without relying on an IDE.
Note:
In order to use the MCP Gateway CLI commands, you must first install the mcp gateway.
Use the following commands to manage your local setup and synchronize with the centralized JFrog MCP Registry:
| Command | Syntax | Description |
|---|---|---|
| Start Gateway | jf mcp-gateway run | Required. Starts the local server process for the IDE to connect to. |
| Initialize | jf mcp-gateway init | Re-initializes the local registry configuration and authentication settings. |
| List All | jf mcp-gateway list | Lists all MCP servers and tools currently approved for your active project. |
| List Installed | jf mcp-gateway list-installed | Displays only the MCP servers that are currently installed on your local machine. |
| List Available | jf mcp-gateway list-available | Lists all MCP servers from the JFrog MCP Registry that are approved and available for your project. |
| Add Server | jf mcp-gateway add <SERVER_NAME> | Installs an approved server and syncs its local policies. |
| Remove Server | jf mcp-gateway remove <SERVER_NAME> | Removes a server from your local configuration. |
| Edit Server | jf mcp-gateway edit <SERVER_NAME> | Edit an existing server. |
| Inspect | jf mcp-gateway inspect <SERVER_NAME> | Shows detailed metadata, source URLs, and active policies for a specific server. |
| Show Project | jf mcp-gateway project-show | Displays your currently active JFrog project context and lists other available projects. |
| Set Project | jf mcp-gateway project-set <KEY> | Switches your active project context, instantly syncing a new set of approved tools and policies. |
| Logout | jf mcp-gateway logout | Removes stored authentication for a server |
| Help | jf mcp-gateway --help | Displays the full list of available CLI commands, optional flags, and syntax help. |
Updated about 17 hours ago
