← gemini-cli-mcp

gemini-cli-mcp 1.0.1

npm · @cainmaila/gemini-cli-mcp · current release

4
Tools
0
Resources
0
Templates
0
Prompts

Observation

Observed 2026-08-22T21:48:34.416Z using mcpSecurity-inventory. Status: succeeded. Negotiated protocol: 2025-06-18.

Server capabilities
{
  "tools": {
    "listChanged": true
  }
}

Tools 4

ToolCategoryAnnotationsRisk
executeImageTaskUses the nanobanana extension to generate images and returns saved image paths plus execution metadata.
Input schema
{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "type": "object",
  "properties": {
    "prompt": {
      "type": "string",
      "minLength": 1,
      "description": "Image generation prompt for the nanobanana extension"
    },
    "count": {
      "description": "Optional number of images to generate",
      "type": "integer",
      "minimum": 1,
      "maximum": 8
    },
    "styles": {
      "description": "Optional style names passed to nanobanana",
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1
      }
    },
    "variations": {
      "description": "Optional variation names passed to nanobanana",
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1
      }
    },
    "cwd": {
      "description": "Optional working directory for generated image output",
      "type": "string",
      "minLength": 1
    },
    "timeoutMs": {
      "description": "Optional timeout in milliseconds",
      "type": "integer",
      "minimum": 1000,
      "maximum": 600000
    },
    "approvalMode": {
      "description": "Optional Gemini CLI approval mode. Defaults to yolo for nanobanana.",
      "type": "string",
      "enum": [
        "default",
        "auto_edit",
        "yolo",
        "plan"
      ]
    }
  },
  "required": [
    "prompt"
  ]
}
Output schema
{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "type": "object",
  "properties": {
    "ok": {
      "type": "boolean"
    },
    "responseText": {
      "type": "string"
    },
    "imagePaths": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "primaryImagePath": {
      "type": "string"
    },
    "stdout": {
      "type": "string"
    },
    "stderr": {
      "type": "string"
    },
    "exitCode": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        {
          "type": "null"
        }
      ]
    },
    "signal": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "elapsedMs": {
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991
    },
    "timedOut": {
      "type": "boolean"
    },
    "aborted": {
      "type": "boolean"
    },
    "command": {
      "type": "string"
    },
    "args": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "effectiveApprovalMode": {
      "type": "string",
      "enum": [
        "default",
        "auto_edit",
        "yolo",
        "plan"
      ]
    },
    "workingDirectory": {
      "type": "string"
    },
    "errorMessage": {
      "type": "string"
    }
  },
  "required": [
    "ok",
    "responseText",
    "imagePaths",
    "stdout",
    "stderr",
    "exitCode",
    "signal",
    "elapsedMs",
    "timedOut",
    "aborted",
    "command",
    "args"
  ],
  "additionalProperties": false
}
— · —
executePromptRuns a non-interactive prompt through the locally installed Gemini CLI and returns the final result plus execution metadata.
Input schema
{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "type": "object",
  "properties": {
    "prompt": {
      "type": "string",
      "minLength": 1,
      "description": "Prompt to send to the local Gemini CLI"
    },
    "model": {
      "description": "Optional Gemini model name",
      "type": "string",
      "minLength": 1
    },
    "cwd": {
      "description": "Optional working directory for the Gemini CLI process",
      "type": "string",
      "minLength": 1
    },
    "timeoutMs": {
      "description": "Optional timeout in milliseconds",
      "type": "integer",
      "minimum": 1000,
      "maximum": 600000
    },
    "approvalMode": {
      "description": "Optional Gemini CLI approval mode",
      "type": "string",
      "enum": [
        "default",
        "auto_edit",
        "yolo",
        "plan"
      ]
    }
  },
  "required": [
    "prompt"
  ]
}
Output schema
{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "type": "object",
  "properties": {
    "ok": {
      "type": "boolean"
    },
    "finalText": {
      "type": "string"
    },
    "stdout": {
      "type": "string"
    },
    "stderr": {
      "type": "string"
    },
    "exitCode": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        {
          "type": "null"
        }
      ]
    },
    "signal": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "elapsedMs": {
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991
    },
    "timedOut": {
      "type": "boolean"
    },
    "aborted": {
      "type": "boolean"
    },
    "command": {
      "type": "string"
    },
    "args": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "effectiveApprovalMode": {
      "type": "string",
      "enum": [
        "default",
        "auto_edit",
        "yolo",
        "plan"
      ]
    },
    "workingDirectory": {
      "type": "string"
    },
    "errorMessage": {
      "type": "string"
    }
  },
  "required": [
    "ok",
    "finalText",
    "stdout",
    "stderr",
    "exitCode",
    "signal",
    "elapsedMs",
    "timedOut",
    "aborted",
    "command",
    "args"
  ],
  "additionalProperties": false
}
— · —
executeTaskAI-friendly task interface. Accepts a task description and returns a direct, meaningful final answer plus execution metadata.
Input schema
{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "type": "object",
  "properties": {
    "task": {
      "type": "string",
      "minLength": 1,
      "description": "Task to delegate to the local Gemini CLI"
    },
    "context": {
      "description": "Optional task context for Gemini",
      "type": "string",
      "minLength": 1
    },
    "expectedOutput": {
      "description": "Optional instructions describing the desired final answer format",
      "type": "string",
      "minLength": 1
    },
    "model": {
      "description": "Optional Gemini model name",
      "type": "string",
      "minLength": 1
    },
    "cwd": {
      "description": "Optional working directory for the Gemini CLI process",
      "type": "string",
      "minLength": 1
    },
    "timeoutMs": {
      "description": "Optional timeout in milliseconds",
      "type": "integer",
      "minimum": 1000,
      "maximum": 600000
    },
    "approvalMode": {
      "description": "Optional Gemini CLI approval mode. If omitted, file-mutating tasks default to auto_edit.",
      "type": "string",
      "enum": [
        "default",
        "auto_edit",
        "yolo",
        "plan"
      ]
    }
  },
  "required": [
    "task"
  ]
}
Output schema
{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "type": "object",
  "properties": {
    "answer": {
      "type": "string"
    },
    "ok": {
      "type": "boolean"
    },
    "stdout": {
      "type": "string"
    },
    "stderr": {
      "type": "string"
    },
    "exitCode": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        {
          "type": "null"
        }
      ]
    },
    "signal": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "elapsedMs": {
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991
    },
    "timedOut": {
      "type": "boolean"
    },
    "aborted": {
      "type": "boolean"
    },
    "command": {
      "type": "string"
    },
    "args": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "effectiveApprovalMode": {
      "type": "string",
      "enum": [
        "default",
        "auto_edit",
        "yolo",
        "plan"
      ]
    },
    "workingDirectory": {
      "type": "string"
    },
    "errorMessage": {
      "type": "string"
    }
  },
  "required": [
    "answer",
    "ok",
    "stdout",
    "stderr",
    "exitCode",
    "signal",
    "elapsedMs",
    "timedOut",
    "aborted",
    "command",
    "args"
  ],
  "additionalProperties": false
}
— · —
inspectGeminiCliLists the currently available Gemini CLI commands, extensions, skills, configured MCP servers, and an optional model-reported tool summary.
Input schema
{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "type": "object",
  "properties": {
    "includeModelReportedTools": {
      "description": "Whether to ask Gemini itself for a model-reported summary of currently active tools.",
      "type": "boolean"
    },
    "timeoutMs": {
      "description": "Optional timeout in milliseconds for each inspection command",
      "type": "integer",
      "minimum": 1000,
      "maximum": 600000
    }
  }
}
Output schema
{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "type": "object",
  "properties": {
    "version": {
      "type": "string"
    },
    "commands": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "command": {
            "type": "string"
          },
          "description": {
            "type": "string"
          }
        },
        "required": [
          "command",
          "description"
        ],
        "additionalProperties": false
      }
    },
    "extensions": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "version": {
            "type": "string"
          },
          "path": {
            "type": "string"
          },
          "source": {
            "type": "string"
          },
          "enabledUser": {
            "type": "boolean"
          },
          "enabledWorkspace": {
            "type": "boolean"
          },
          "mcpServers": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "name",
          "version"
        ],
        "additionalProperties": false
      }
    },
    "skills": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "enabled": {
            "type": "boolean"
          },
          "builtIn": {
            "type": "boolean"
          },
          "description": {
            "type": "string"
          },
          "location": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "enabled",
          "builtIn"
        ],
        "additionalProperties": false
      }
    },
    "mcpServers": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "target": {
            "type": "string"
          },
          "transport": {
            "type": "string"
          },
          "status": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "target",
          "transport",
          "status"
        ],
        "additionalProperties": false
      }
    },
    "modelReportedTools": {
      "type": "string"
    },
    "modelReportedSummary": {
      "type": "object",
      "properties": {
        "builtInTools": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "extensions": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "skills": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "mcpServers": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      },
      "required": [
        "builtInTools",
        "extensions",
        "skills",
        "mcpServers"
      ],
      "additionalProperties": false
    },
    "notes": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "raw": {
      "type": "object",
      "properties": {
        "help": {
          "type": "string"
        },
        "extensions": {
          "type": "string"
        },
        "skills": {
          "type": "string"
        },
        "mcpServers": {
          "type": "string"
        },
        "modelReportedTools": {
          "type": "string"
        }
      },
      "required": [
        "help",
        "extensions",
        "skills",
        "mcpServers"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "version",
    "commands",
    "extensions",
    "skills",
    "mcpServers",
    "notes",
    "raw"
  ],
  "additionalProperties": false
}
— · —

Resources 0

Resource templates 0

Prompts 0

Let’s talk about MCP security.

Share your details and our security team will contact you.