Skip to main content
Version: 0.56.6

GM-AG-001: Invalid auth block in Gemini agent MCP server

Summary​

  • Rule ID: GM-AG-001
  • Severity: HIGH
  • Category: Gemini Agents
  • Normative Level: MUST
  • Auto-Fix: No
  • Verified On: 2026-04-26

Applicability​

  • Tool: gemini-cli
  • Version Range: unspecified
  • Spec Revision: unspecified

Evidence Sources​

Test Coverage Metadata​

  • Unit tests: true
  • Fixture tests: true
  • E2E tests: false

Examples​

The following examples demonstrate what triggers this rule and how to fix it.

Invalid​

---
kind: local
name: spanner-agent
mcp_servers:
spanner:
auth:
type: basic-auth
system_prompt: Example
---

Valid​

---
kind: local
name: spanner-agent
mcp_servers:
spanner:
url: https://spanner.googleapis.com/mcp
type: http
auth:
type: google-credentials
scopes:
- https://www.googleapis.com/auth/cloud-platform
system_prompt: Example
---