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:

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:

CommandSyntaxDescription
Start Gatewayjf mcp-gateway runRequired. Starts the local server process for the IDE to connect to.
Initializejf mcp-gateway initRe-initializes the local registry configuration and authentication settings.
List Alljf mcp-gateway listLists all MCP servers and tools currently approved for your active project.
List Installedjf mcp-gateway list-installedDisplays only the MCP servers that are currently installed on your local machine.
List Availablejf mcp-gateway list-availableLists all MCP servers from the JFrog MCP Registry that are approved and available for your project.
Add Serverjf mcp-gateway add <SERVER_NAME>Installs an approved server and syncs its local policies.
Remove Serverjf mcp-gateway remove <SERVER_NAME>Removes a server from your local configuration.
Edit Serverjf mcp-gateway edit <SERVER_NAME>Edit an existing server.
Inspectjf mcp-gateway inspect <SERVER_NAME>Shows detailed metadata, source URLs, and active policies for a specific server.
Show Projectjf mcp-gateway project-showDisplays your currently active JFrog project context and lists other available projects.
Set Projectjf mcp-gateway project-set <KEY>Switches your active project context, instantly syncing a new set of approved tools and policies.
Logoutjf mcp-gateway logoutRemoves stored authentication for a server
Helpjf mcp-gateway --helpDisplays the full list of available CLI commands, optional flags, and syntax help.