Skip to main content

Run Cloudaware MCP Locally With repo-manager

repo-manager can run the MCP server on your machine instead of using the hosted one. It finds the BigQuery project and dataset that hold your exported Cloudaware data (the Export Project and SObjects Dataset) for you, so you don't need to pass parameters, sign in, or use an API key.

Use a local server when your AI tool only supports stdio, or when you already use repo-manager. For everything else, the hosted server is simpler. See Connect Your AI Tool.

Before You Start​

  1. Install repo-manager. See repo-manager. The examples below assume a repo-manager command alias. Without one, use java -jar path/to/your/repo-manager.jar with the same arguments.
  2. Configure repo-manager auth. See Authentication commands. It detects your Export Project and SObjects Dataset.
  3. Sign in to gcloud with an account that has BigQuery Data Viewer and BigQuery Job User on the Export Project.

Check that the server starts:

repo-manager mcp cloudaware

Connect a stdio Client​

Your AI tool starts the server itself. Add one of the following configurations.

Claude Code​

claude mcp add --transport stdio cloudaware-mcp -- java -jar ~/.ca/repo-manager.jar mcp cloudaware

If repo-manager.jar isn't at ~/.ca/repo-manager.jar, change the path. Run /mcp in Claude Code to check the connection.

Antigravity CLI and Kilo Code​

Use this block in ~/.gemini/config/mcp_config.json or .agents/mcp_config.json for Antigravity, or in .kilocode/mcp.json for Kilo Code:

{
"mcpServers": {
"cloudaware-mcp": {
"command": "repo-manager",
"args": ["mcp", "cloudaware"]
}
}
}

Without an alias:

{
"mcpServers": {
"cloudaware-mcp": {
"command": "java",
"args": ["-jar", "path/to/your/repo-manager.jar", "mcp", "cloudaware"]
}
}
}

For legacy Gemini CLI, use the same block in ~/.gemini/settings.json.

OpenCode​

Add the following to opencode.json:

{
"mcp": {
"cloudaware-mcp": {
"type": "local",
"command": ["repo-manager", "mcp", "cloudaware"],
"enabled": true
}
}
}

Without an alias, use ["java", "-jar", "path/to/your/repo-manager.jar", "mcp", "cloudaware"] as the command.

Run as a Local HTTP Server​

For tools that need an HTTP endpoint, start the server on a port:

repo-manager mcp cloudaware --port 8888

The server is available at http://localhost:8888/mcp. You don't need a token in the client configuration.

LM Studio​

Add the following to mcp.json:

{
"mcpServers": {
"cloudaware-mcp": {
"url": "http://localhost:8888/mcp"
}
}
}

Troubleshooting​

SymptomFix
Server fails to startConfigure both repo-manager auth and gcloud, then retry.
Server starts but returns no dataRe-run repo-manager auth and gcloud auth login.
403 Forbidden on queriesYour gcloud account needs BigQuery Data Viewer and BigQuery Job User on the Export Project.